leo/grammar/README.md

10 lines
314 B
Markdown
Raw Normal View History

2020-10-31 03:17:17 +03:00
# leo-grammar
2020-07-29 08:36:10 +03:00
## Command-line instructions
To generate an AST of the Leo program and save it as a JSON file , run:
```
2020-10-31 03:17:17 +03:00
leo_grammar {PATH/TO/INPUT_FILENAME}.leo {PATH/TO/OUTPUT_DIRECTORY (optional)}
2020-07-29 08:36:10 +03:00
```
If no output directory is provided, then the program will store the JSON file in the local working directory.