13af6ab5fSopenharmony_ci# Es2panda
23af6ab5fSopenharmony_ci
33af6ab5fSopenharmony_ciAll in one JavaScript/TypeScript parser and compiler.
43af6ab5fSopenharmony_ci
53af6ab5fSopenharmony_ci## Usage
63af6ab5fSopenharmony_ci```sh
73af6ab5fSopenharmony_cies2panda [OPTIONS] [input file] -- [arguments]
83af6ab5fSopenharmony_ci```
93af6ab5fSopenharmony_ci
103af6ab5fSopenharmony_ci## Optional arguments
113af6ab5fSopenharmony_ci - `--debug-info`: Compile with debug info
123af6ab5fSopenharmony_ci - `--dump-assembly`: Dump pandasm
133af6ab5fSopenharmony_ci - `--dump-ast`: Dump the parsed AST
143af6ab5fSopenharmony_ci - `--dump-debug-info`: Dump debug info
153af6ab5fSopenharmony_ci - `--dump-size-stat`: Dump binary size statistics
163af6ab5fSopenharmony_ci - `--extension`: Parse the input as the given extension (options: js | ts | as)
173af6ab5fSopenharmony_ci - `--module`: Parse the input as module
183af6ab5fSopenharmony_ci - `--opt-level`: Compiler optimization level (options: 0 | 1 | 2)
193af6ab5fSopenharmony_ci - `--output`: Compiler binary output (.abc)
203af6ab5fSopenharmony_ci - `--parse-only`: Parse the input only
213af6ab5fSopenharmony_ci - `--strict`: Parse the input in strict mode
223af6ab5fSopenharmony_ci
233af6ab5fSopenharmony_ci## Tail arguments
243af6ab5fSopenharmony_ci - `input`: input file
253af6ab5fSopenharmony_ci
263af6ab5fSopenharmony_ci## Running the tests
273af6ab5fSopenharmony_ci```sh
283af6ab5fSopenharmony_cipip install tqdm
293af6ab5fSopenharmony_ci```
303af6ab5fSopenharmony_ci```sh
313af6ab5fSopenharmony_cipython3 test/runner.py [OPTIONS] [build_directory]
323af6ab5fSopenharmony_ci```
333af6ab5fSopenharmony_ci
343af6ab5fSopenharmony_ci### Optional arguments
353af6ab5fSopenharmony_ci - `--regression`: Run regression tests
363af6ab5fSopenharmony_ci - `--test262`: Run test262
373af6ab5fSopenharmony_ci - `--no-progress`: Don't show progress bar
383af6ab5fSopenharmony_ci
393af6ab5fSopenharmony_ci### Tail arguments
403af6ab5fSopenharmony_ci - `build_directory`: Path to panda build directory
413af6ab5fSopenharmony_ci
423af6ab5fSopenharmony_ci### Skip list
433af6ab5fSopenharmony_ciSkip list for the runtime: `test/test262skiplist.txt, test/test262skiplist-long.txt`.
44