Rustemo is a parser generator written in Rust, where a parser is able to parse some input according to a predefined grammar. This tutorial serves as a quick start for Rustemo. We try to keep each part of the tutorial as simple as possible.
- Installation
- First Example
- Workflow
- Grammar File Format
- Comments
- Terminals
- Grammar Rules
- Disambiguation
- More About Priority
- Skipping Parts Of Input
- Names In The Action File
- Default Actions
- Custom Actions
- Changing Actions
- Changing Types
- Changing Names Of Enum Variants And Functions
- Changing Names Of Struct Fields And Function Parameters
- Combinations of Custom Actions
- Rustemo - the parser generator.
- Rustemo Book - a detailed description of Rustemo.
Pull requests for typos, incorrect information, or other ideas are welcome!
All code in the tutorial is provided under the MIT License.