This project is an RPAL (Right-reference Pedagogic Algorithmic Language) compiler implemented in Python.
It supports lexical analysis, parsing, Abstract Syntax Tree (AST) generation, Standardization (ST), and execution of RPAL programs.
- Lexical Analysis: Tokenizes the input RPAL source file.
- Parser: Builds the syntax structure from tokens.
- AST Generation: Produces the Abstract Syntax Tree for the program.
- Standardization (ST): Converts the AST into a standardized form.
- Execution: Runs RPAL programs and prints the evaluated results.
- Python 3.11 or above
- A text editor VS Code (optional)
Navigate to the project folder in your terminal before running commands.
python myrpal.py -l file_namepython myrpal.py test_cases/add python myrpal.py -ast test_cases/addpython myrpal.py -st test_cases/add