This is a compiler built using SableCC for a subset of the Python Language called minipython
To generate the minipython package using the grammar file use the following command:
sablecc minipython.grammar
The minipython package is already included in this repository
To run some tests included in the example.py use the following commands:
javac ParserTest.java
java ParserTest example.py
Before you run the example tests, remove the comments for each test case you want to test
Below is the BNF for the minipython language