|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | - | - |
| aot/ | | 07-Sep-2024 | - | 1,307 | 1,028 |
| binder/ | | 07-Sep-2024 | - | 4,431 | 3,441 |
| compiler/ | | 07-Sep-2024 | - | 10,069 | 7,333 |
| ir/ | | 07-Sep-2024 | - | 24,186 | 15,413 |
| lexer/ | | 07-Sep-2024 | - | 4,959 | 3,983 |
| parser/ | | 07-Sep-2024 | - | 15,334 | 12,410 |
| scripts/ | | 07-Sep-2024 | - | 277 | 198 |
| test/ | | 07-Sep-2024 | - | 637,903 | 597,219 |
| typescript/ | | 07-Sep-2024 | - | 9,926 | 6,820 |
| util/ | | 07-Sep-2024 | - | 3,701 | 2,771 |
| BUILD.gn | D | 07-Sep-2024 | 18.8 KiB | 626 | 576 |
| CMakeLists.txt | D | 07-Sep-2024 | 10.7 KiB | 343 | 320 |
| README.md | D | 07-Sep-2024 | 1.1 KiB | 44 | 35 |
| es2abc_config.gni | D | 07-Sep-2024 | 3 KiB | 105 | 90 |
| es2panda.cpp | D | 07-Sep-2024 | 10.4 KiB | 280 | 223 |
| es2panda.h | D | 07-Sep-2024 | 6.3 KiB | 231 | 184 |
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