A tool for checking correctness of arithmetic expressions (multiplications) using Type-0 and Type-1 grammars. Currently implemented with unary numeral system.
You will need only Python 3.8 to run the tool from command line:
python main.py grammar word
grammar
: could bet0
(to use Recursively enumerable grammar) ort1
(to use Context-sensitive grammar)word
: a word to check for correctness, use symbols1
,*
, and=
without spaces
python main.py t0 1*11=1
python main.py t1 111*11=111111