• Home
Name Date Size #Lines LOC

..--

aot/22-Oct-2025-1,8681,489

binder/22-Oct-2025-4,9893,904

compiler/22-Oct-2025-11,2528,350

ir/22-Oct-2025-24,46815,598

lexer/22-Oct-2025-5,0024,011

parser/22-Oct-2025-15,80412,820

scripts/22-Oct-2025-317234

test/22-Oct-2025-1,017,868951,746

typescript/22-Oct-2025-9,9376,837

util/22-Oct-2025-4,2803,201

BUILD.gnD22-Oct-202521.1 KiB699646

CMakeLists.txtD22-Oct-202510.7 KiB344321

README.mdD22-Oct-20251.1 KiB4435

es2abc_config.gniD22-Oct-20255.4 KiB190163

es2panda.cppD22-Oct-202512.2 KiB321263

es2panda.hD22-Oct-20257.8 KiB282222

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