[antlr-interest] Fragment for Parserrules
Kay Roepke
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
> there
> 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-
reserved
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?
cheers,
-k
--
Kay Röpke
http://classdump.org/
More information about the antlr-interest
mailing list