This project involves the creation of a parser for a subset of the Python programming language. Using ANTLR (ANother Tool for Language Recognition), we have developed a grammar that can parse and interpret basic Python syntax including conditional statements, loops, and basic arithmetic operations. The parser is designed to be a foundational tool for further language processing and understanding tasks.
- Christian VanMeter
- Crew Gamble
- Drew Rothweil
- Joshua Jaworski
- Logan Brenningmeyer
To run this parser, you'll need the following environment setup:
- Windows subsystem for Linux
- Ubunutu on WSL
- ANTLR4 Tool
- Python 3 Runtime
- pip install antlr4-tools
- pip install antlr4-python3-runtime
- Compile ANTLR4 file: antlr4 -Dlanguage=Python3 Expr.g4
- Run testcase: python3 Driver.py "your_testcase_file.py"