yantra
A C++ parser generator that combines lexer, parser, and abstract syntax tree generation in 1 tool.
What does it do?
Yantra is an LALR(1) parser generator written in C++. It generates a C++ parser from a grammar file that can be compiled independently and turns input into an abstract syntax tree. It traverses the generated tree from top to bottom and invokes defined semantic actions.
Key features
- Generates a C++ parser from a grammar file.
- Parses the entire input into an abstract syntax tree.
- Traverses the syntax tree from top to bottom and invokes semantic actions.
- Builds the generator executable with CMake.