Remeber to add the antrl4 to your JDK classpath
alias antlr4='java -jar /usr/local/lib/antlr-4.0-complete.jar'
alias grun='java org.antlr.v4.runtime.misc.TestRig'
/BB/gramatica$ antlr4 BB.g4 -encoding utf-8 -o ..\BBcompiler -package BBcompiler
/BB/gramatica$ antlr4 BB.g4 -encoding utf-8 -o ..\tests\grun
/BB/tests/grun$ grun BB bb -gui -input-filename ./ejemplo.bb
/BB/BBcompiler$ javac *.java -d ../.classes -classpath ..\libs\antlr-4.9.1-complete.jar;
/BB/$ jar --verbose --create --file BB.jar --manifest .\BBcompiler\META-INF\MANIFEST.MF -C .\.classes\ .
/BB/.classes$ java -jar .\BB.jar ..\ejemplo.bb