[antlr-interest] xml grammar
Torsten Curdt
tcurdt at vafer.org
Tue Nov 15 11:06:46 PST 2005
> You will need something like lexer modes which you can simulate using
> semantic predicates. In one mode you can match text and in the other -
> the tag mode - you will have all those special characters. You will
> have to switch to that tag mode upon seeing the LT and switch back
> upon GT.
Ahhh ...came across that somewhere!
> P.S.: There actually is an existing XML grammar in the examples that
> come with ANTLR. It is a lexer only solution, though.
Will have a look. That should do it. Awesome!
Thanks a lot, Oliver!
cheers
--
Torsten
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20051115/f3a11985/PGP.bin
More information about the antlr-interest
mailing list