At 08:30 17/07/2009, Benoit Fouletier wrote:
>BTW, should I mark these kind of subrule as fragments? I don't 
>really get when to use fragment.

No, fragment applies only to lexer rules (with an initial 
capital); it makes them non-toplevel rules.  To put it another 
way, every lexer rule that does *not* use fragment is a candidate 
output token.  (And in general, a non-fragment lexer rule should 
not call another non-fragment lexer rule, as that suggests 
ambiguity.)


List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to