Skip to content

abki12c/minipython-compiler

Repository files navigation

minipython compiler

This is a compiler built using SableCC for a subset of the Python Language called minipython

Run Instrustions

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

BNF

Below is the BNF for the minipython language

Image

About

A compliler for a subset of the Python language

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages