CLR-Parser

A simple string parser based on CLR to check whether a string is acceptable or not for a given grammar.

INSTRUCTIONS TO RUN THE PROGRAM:

  1. in your cmd, run python clr.py
  2. as input, provide the name of the file (input_grammar.txt) where the grammar rules are stored
  3. as input, provide the name of the file (input_code.txt) where the input program is stored

GitHub

View Github