Before running the code, ensure the following Python packages are installed:
pip install antlr4-python3-runtime antlr4-tools tabulate ttkthemes
To compile the lexer and parser files from the grammar definitions, use ANTLR:
antlr4 -Dlanguage=Python3 ./automata/AbstractMachineLexer.g4 -o ./automata
antlr4 -Dlanguage=Python3 ./automata/AbstractMachineParser.g4 -o ./automata -visitor
To run the main program and execute the interpreter, use:
python main.py