[antlr-interest] access-modifier for rules

Johannes Luber jaluber at gmx.de
Tue Jan 15 06:01:08 PST 2008


Mark Volkmann schrieb:
> I see that rule names in an ANTLR grammar can be preceded by an
> access-modifier. However, I've never seen this actually used in any
> grammars. What are examples of cases where you'd want to specify one?
> 
So far, only fragment has any effect. I don't why Ter does look for 
them, so my speculation is that  he either plans to use them at some 
time in the future or he only wants introduce better error handling.

Johannes


More information about the antlr-interest mailing list