This is an academic project implementing a Pascal-inspired interpreter using C++ and Flex. It features a recursive descent parser written manually (no Bison/Yacc) and supports basic Pascal constructs such as variable declarations, arithmetic expressions, and control flow.
- Manual recursive descent parser in C++
- Lexical analysis using Flex (
rules.l) - Support for:
- Variable declarations
- Arithmetic operations
if,while, and other control flow
- Organized test cases in the
test_cases/folder
- Clean previous builds (optional but recommended):
makeclean
- Build the project
make
- Run the interpreter with a test file
./tips test_cases/factorial.pas