• Home
Name Date Size #Lines LOC

..--

aot/06-May-2025-283226

ast_verifier/06-May-2025-3,1121,883

checker/06-May-2025-48,04336,616

cmake/06-May-2025-3730

compiler/06-May-2025-36,18427,211

declgen_ets2ts/06-May-2025-947767

docs/06-May-2025-1,3421,036

evaluate/06-May-2025-3,8572,496

ir/06-May-2025-35,11124,050

lexer/06-May-2025-6,5235,155

linter/06-May-2025-100,53190,336

parser/06-May-2025-21,97117,277

public/06-May-2025-9,2747,734

scripts/06-May-2025-551371

test/06-May-2025-1,174,9751,141,106

util/06-May-2025-12,5457,958

varbinder/06-May-2025-6,7645,157

.clang-formatD06-May-20253.2 KiB115113

AUTHORSD06-May-20252.4 KiB151149

BUILD.gnD06-May-202545.3 KiB1,1651,133

CMakeLists.txtD06-May-202520.5 KiB624596

LICENSE.txtD06-May-202510.5 KiB192160

README.mdD06-May-20251.1 KiB4435

REVIEWERSD06-May-20254.7 KiB7471

es2panda.cppD06-May-20252.7 KiB9864

es2panda.hD06-May-20257.3 KiB281217

ets2abc_config.gniD06-May-20253.1 KiB8775

README.md

1# Es2panda
2
3All in one JavaScript/TypeScript parser and compiler.
4
5## Usage
6```sh
7es2panda [OPTIONS] [input file] -- [arguments]
8```
9
10## Optional arguments
11 - `--debug-info`: Compile with debug info
12 - `--dump-assembly`: Dump pandasm
13 - `--dump-ast`: Dump the parsed AST
14 - `--dump-debug-info`: Dump debug info
15 - `--dump-size-stat`: Dump binary size statistics
16 - `--extension`: Parse the input as the given extension (options: js | ts | as)
17 - `--module`: Parse the input as module
18 - `--opt-level`: Compiler optimization level (options: 0 | 1 | 2)
19 - `--output`: Compiler binary output (.abc)
20 - `--parse-only`: Parse the input only
21 - `--strict`: Parse the input in strict mode
22
23## Tail arguments
24 - `input`: input file
25
26## Running the tests
27```sh
28pip install tqdm
29```
30```sh
31python3 test/runner.py [OPTIONS] [build_directory]
32```
33
34### Optional arguments
35 - `--regression`: Run regression tests
36 - `--test262`: Run test262
37 - `--no-progress`: Don't show progress bar
38
39### Tail arguments
40 - `build_directory`: Path to panda build directory
41
42### Skip list
43Skip list for the runtime: `test/test262skiplist.txt, test/test262skiplist-long.txt`.
44