This is a parser generated by ANTLR for MCM files from http://mcm.leeds.ac.uk/MCM/, inspired by py3antlr4book.
- Install ANTLR4-python:
pip install antlr4-python3-runtime
- Run
compile_test.py. - Check generated
tokens.txtandast.txt. - Use the parser by importing
MCMLexer.pyandMCMParser.py.