Complete translation to antlr4, performance improvements and descriptive
error messages