/antlrdemo

Toy interpreter with ANTLR4

Primary LanguagePython

antlrdemo

This is a minimal interpreter implementation using the new Python target in ANTLR4, for demo/example purposes. Syntactically, the language somewhat resembles assembly language. Examples can be found in the 'examples' directory.

Getting Started

$ git clone https://github.com/ianpreston/antlrdemo.git && cd antlrdemo
$ virtualenv venv && source venv/bin/activate
$ pip install -r requirements.txt
$ make
$ python main.py example.h

License

antlrdemo is under the WTFPL.