you are not logged in


User login

ANTLR issues v2 vs v3

The development of the grammar files has been taken onto several routes, mostly involving a different version of ANTLR.

Issues with ANTLR 3:

  • Sometimes ANTLR picked up a character and interpreted it as an illegal token when it was in fact a character sequence meant as input (for example: "create table castle;" would trigger the recognition of 'c' from castle as a non-existent token)
  • Parsing multiline comments with the following code:
    '/*' (options {greedy=false;} : .)* '*/' {channel=HIDDEN;}
    Worked perfectly, however when matched with a single line comment (apparent within the multiline comment) the ANTLR 3 couldn't match the */ at the end of the multiline comment