SableCC is a parser generator which generates object-oriented frameworks for building compilers, interpreters and other text parsers. SableCC keeps a clean separation between machine and user code which leads to a shorter development cycle.
- Clone/download the source to somewhere in your home directory
- Add the SableCC bin to your path:
export PATH=$HOME/<path-to-sablecc-root>/bin:$PATH
To generate the Java files from your grammar file, run sablecc:
sablecc <grammar-file>
See TinyLang to learn how the generated files integrate into your compiler project
NOTE: this repository includes files from SableCC 3.7 with a modified bin for minimal configuration