mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-28 17:13:06 +03:00
10 lines
314 B
Markdown
10 lines
314 B
Markdown
# leo-grammar
|
|
|
|
## Command-line instructions
|
|
|
|
To generate an AST of the Leo program and save it as a JSON file , run:
|
|
```
|
|
leo_grammar {PATH/TO/INPUT_FILENAME}.leo {PATH/TO/OUTPUT_DIRECTORY (optional)}
|
|
```
|
|
If no output directory is provided, then the program will store the JSON file in the local working directory.
|