leo/grammar/README.md

14 lines
587 B
Markdown
Raw Normal View History

2020-10-31 03:17:17 +03:00
# leo-grammar
2020-07-29 08:36:10 +03:00
2021-02-11 09:27:37 +03:00
[![Crates.io](https://img.shields.io/crates/v/leo-grammar.svg?color=neon)](https://crates.io/crates/leo-grammar)
[![Authors](https://img.shields.io/badge/authors-Aleo-orange.svg)](../AUTHORS)
[![License](https://img.shields.io/badge/License-GPLv3-blue.svg)](./LICENSE.md)
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.