[antlr-interest] ISO SQL 2003 Grammar

Ivan Bludov ivan.bludov at gmail.com
Sun Oct 9 03:03:34 PDT 2011


Hi all.
I'm playing with SQL2003 grammar posted on your site
(http://www.antlr.org/grammar/1304304798093/SQL2003_Grammar.zip). So as
mentioned previously sqlParser has some antlr building problems. I
figured out that this problems depends on antrl version. So with the
antlr-3.4 code-generation fails with stack-overflow exception, it seems
to fall into infinite loop. So with the antlr-3.3 version the
code-generation is successful, but the generated parser has "duplicate
case" errors of switch statement. So could you make some advice to fix
the problem? Although this problem may correspond to some internal antlr
bug.  

I also tested this grammar with antlr-3.2 and the lexer and the parser
have some other building problems both.

Ivan Bludov



More information about the antlr-interest mailing list