huanglangwen / MCMParser

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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


Languages

Language:Python 89.4%Language:ANTLR 8.2%Language:Batchfile 2.4%