- Write the language grammar
- Generate the language parser
cargo run --features=gen
- Parse a human-readable expression into an Abstract Syntax Tree
cargo run --example parse "<expression>"
cargo run --example parse "[0,1,2][0]"
How do we differentiate between these two:
- a list with a single integer element:
[0]
- a list access operator:
[1,2,3][0]