That is simple tool to generate parser for arbitrary grammar defined as sequences of tokens.
Let's make AST for file examples/function.rbc.
- Clone the project:
git clone git@github.com:mchlkrpch/Rebecca.git
cd Rebecca
- Generate parser's and tokenizer's files from file include/function.rbc; this file defines grammar of language by YACC-similar-rules
make init
cd build
cmake ..
make
./rbc ../include/function.rbc
- Parse the program.
cd ../out
make init
cd build
cmake ..
make
./rbc ../../examples/function.rbc
And we have AST of our program!
You can check details in description file