[antlr-interest] simple query language EBNF
Harald M. Müller
harald_m_mueller at gmx.de
Tue Jan 1 09:52:06 PST 2008
>...If it is not, then you have at least an "end delimiter", and you can
define a symbol
> REST_OF_TEXT : ~NL NL ;
> where NL is your definition of an NL character.
.. well, no, you can't (even if you add the * I forgot). But you can then
define your "clauses" to be actual tokens, e.g.
FROM : 'from' (~NL)* NL;
etc.
Rest should be clear, I hope.
Regards
Harald
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080101/440b8a40/attachment-0001.html
More information about the antlr-interest
mailing list