[antlr-interest] disable warnings in v3?

fhaupt at informatik.uni-wuerzburg.de fhaupt at informatik.uni-wuerzburg.de
Mon Jan 8 16:35:48 PST 2007


Hi there,

I have made a grammar working quite well, so far for twiki-datafiles. However I now ran into a Problem:

There is a keyword <verbatim> </verbatim> in twiki in between which nothing should be interpreted. 

So I tried to use the rule:

verbatim: '<verbatim>' .* '</verbatim>'


however, now antlr complains a lot about ambiguity there. I see the point, that .* matches everything even my tags somewhere 
else, but in here that doesn't matter.

Is there a way to temporarily disable every matching besides the 
'</verbatim>'- endtag? Or to disable the warnings at least?



Thanks for any suggestions

Fabian

ps. if you need to look at the complete grammar tell me so, i'll send it along.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20070109/7fb1df5d/attachment.bin 


More information about the antlr-interest mailing list