- Hector Miranda Garcia
- Victor Hugo Portilla Ortiz
run examples
- test: has no errors
- test 2: has no errors
- test 3: has errors
python main.py ./tests/test_1.txt
python main.py ./tests/test_2.txt
python main.py ./tests/test_3.txt
Generate Nix Environment
nix-shell
Generate Python files from g4
cd ./antlr_files/
antlr4 -Dlanguage=Python3 *.g4 -visitor -o ../walkers/
You need to create the Java files out of .g4.
antlr4 *.g4
javac *.java
Command to generate UI Tree
cd ./antlr_files
java org.antlr.v4.gui.TestRig CLang program --tree ../tests/test_1.cl -gui
java org.antlr.v4.gui.TestRig Cl program --tree ../tests/test_1.cl