[antlr-interest] Fragment for Parserrules
kroepke at classdump.org
Mon Jan 15 12:47:23 PST 2007
On 15. Jan 2007, at 17:09 , Alexander Gängel wrote:
> But right now don't see why not just make it possible to make a parser
> rule a fragment, cause it would solve the problem easy and would not
> change the normal behavior of ANTLR when you just don't use fragment
> before the rule. (but ok I'm not into the code from Antlr so maybe
> would be Problems I just don't know about right now)
As Shmuel said, parser rules are effectively fragment rules. I don't
see how a (non-)fragment concept would help in the case with non-
keywords. You will always have to supply some context and custom code to
make the right decision.
Could you elaborate what you mean by a fragment parser rule and how this
would solve the problem?
More information about the antlr-interest