A compiler design project implemented in Java.
This project focuses on building a Recursive Descent Parser for a small educational programming language.
SlimParser is a simple compiler developed for academic purposes. It performs syntax analysis by validating program structure according to predefined grammar rules.
- Token definitions
- Lexer (token stream simulation)
- Recursive Descent Parser
- Main execution class
- Program structure (prg, deb, fin)
- Variable declarations (int, float, bool, string)
- Assignment statements
- Conditional statements (si / sin / is)
- Loop statements (tq / qt)
- Input instruction (lre)
- Output instruction (ecr)
- Arithmetic expressions
- Boolean expressions
- Relational operators
The project uses the Recursive Descent Parsing technique. Each grammar rule is implemented as a Java method.
- Understand compiler design concepts
- Learn syntax analysis
- Apply grammar rules in code
- Practice recursive descent parsing
- Java