diff --git a/README.md b/README.md index d9c46e1..fee8585 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ 1. Install antlr4 exactly like described under Quick start: http://www.antlr.org/ 2. `pip install antlr4-python2-runtime` 3. `pip install pystache` -4. Generate python parser / lexer for `NaCl.g4` grammar WITH visitor (NaClVisitor.py): `antlr4 -Dlanguage=Python2 NaCl.g4 -visitor` +4. Generate python parser / lexer for `NaCl.g4` grammar WITH visitor (NaClVisitor.py): `antlr4 -Dlanguage=Python2 NaCl.g4 -visitor -o bin` 5. Make transpiler program executable: `chmod u+x NaCl.py` 6. run with `cat examples/nacl.nacl | ./NaCl.py` 7. For testing, using the `grun` program (alias really) is nice. This requires that you generate the java lexer / parser diff --git a/create_bundle.sh b/create_bundle.sh index 495f0d5..a915503 100755 --- a/create_bundle.sh +++ b/create_bundle.sh @@ -1,4 +1,4 @@ -antlr4 -Dlanguage=Python2 NaCl.g4 -visitor -o bin +#!/bin/bash TARFILE="nacl_bin.tar.gz" tar -zcvf $TARFILE bin