lexer.l: Flex lexical analyzer.parser.y: Bison syntax parser.tests: Sample C++ codes samples to test the grammar.Makefile: Automates the build process.
- Ensure
flexandbisonare installed - Compile the project:
make
- Run and Test:
./build/compiler < test.cpp or make test