/MCMParser

Parser for MCM file from http://mcm.leeds.ac.uk/MCM/

Primary LanguagePython

MCM Parser

This is a parser generated by ANTLR for MCM files from http://mcm.leeds.ac.uk/MCM/, inspired by py3antlr4book.

Usage

  1. Install ANTLR4-python:
pip install antlr4-python3-runtime
  1. Run compile_test.py.
  2. Check generated tokens.txt and ast.txt.
  3. Use the parser by importing MCMLexer.py and MCMParser.py.