• Home
Name Date Size #Lines LOC

..--

aot/06-Mar-2025-271216

ast_verifier/06-Mar-2025-2,6441,624

checker/06-Mar-2025-44,89934,060

cmake/06-Mar-2025-3730

compiler/06-Mar-2025-34,32325,848

declgen_ets2ts/06-Mar-2025-942761

docs/06-Mar-2025-206151

ir/06-Mar-2025-33,07222,593

lexer/06-Mar-2025-6,4315,067

linter/06-Mar-2025-76,64667,542

parser/06-Mar-2025-20,41616,133

public/06-Mar-2025-3,1552,608

scripts/06-Mar-2025-546367

test/06-Mar-2025-1,124,4921,095,162

util/06-Mar-2025-7,2455,052

varbinder/06-Mar-2025-6,4114,877

.clang-formatD06-Mar-20253.2 KiB115113

AUTHORSD06-Mar-20252.4 KiB151149

BUILD.gnD06-Mar-202519 KiB561540

CMakeLists.txtD06-Mar-202519.5 KiB609578

LICENSE.txtD06-Mar-202510.5 KiB192160

README.mdD06-Mar-20251.1 KiB4435

REVIEWERSD06-Mar-20251.2 KiB2826

es2panda.cppD06-Mar-20252.6 KiB9360

es2panda.hD06-Mar-20257 KiB273210

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