Name |
Date |
Size |
#Lines |
LOC |
||
---|---|---|---|---|---|---|
.. | - | - | ||||
aot/ | 12-May-2024 | - | 255 | 202 | ||
checker/ | 12-May-2024 | - | 37,127 | 27,988 | ||
cmake/ | 12-May-2024 | - | 37 | 30 | ||
compiler/ | 12-May-2024 | - | 27,284 | 20,857 | ||
ir/ | 12-May-2024 | - | 30,505 | 20,515 | ||
lexer/ | 12-May-2024 | - | 6,394 | 5,040 | ||
linter/ | 12-May-2024 | - | 56,130 | 46,032 | ||
linter-4.2/ | 12-May-2024 | - | 56,447 | 46,632 | ||
parser/ | 12-May-2024 | - | 18,942 | 14,953 | ||
public/ | 12-May-2024 | - | 3,157 | 2,612 | ||
scripts/ | 12-May-2024 | - | 134 | 76 | ||
test/ | 12-May-2024 | - | 1,315,349 | 1,290,446 | ||
util/ | 12-May-2024 | - | 4,336 | 3,315 | ||
varbinder/ | 12-May-2024 | - | 5,989 | 4,538 | ||
.clang-format | D | 12-May-2024 | 3.2 KiB | 115 | 113 | |
AUTHORS | D | 12-May-2024 | 2.4 KiB | 151 | 149 | |
BUILD.gn | D | 12-May-2024 | 15.9 KiB | 484 | 465 | |
CMakeLists.txt | D | 12-May-2024 | 16.2 KiB | 520 | 491 | |
LICENSE.txt | D | 12-May-2024 | 10.5 KiB | 192 | 160 | |
README.md | D | 12-May-2024 | 1.1 KiB | 44 | 35 | |
es2panda.cpp | D | 12-May-2024 | 2.6 KiB | 88 | 56 | |
es2panda.h | D | 12-May-2024 | 5.7 KiB | 236 | 183 |
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