[antlr-interest] SQL string literals
mzukowski at yci.com
mzukowski at yci.com
Fri May 31 07:57:36 PDT 2002
> STRING
> : '"'! (~('"')|'"''"'!)* '"'!
> ;
>
> Which results in:
>
> ANTLR Parser Generator Version 2.7.2a2 (20020112-1)
> 1989-2002 jGuru.com
> sql.g:4: warning: lexical nondeterminism upon
> sql.g:4: k==1:'"'
> sql.g:4: between alt 2 and exit branch of block
I think a syntactic predicate would do the trick. Try this:
STRING
: '"'! (~('"')|('"''"')=>'"''"'!)* '"'!
;
Monty
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list