[antlr-interest] Re: "protected" lexer rules

John D. Mitchell johnm-antlr at non.net
Wed Nov 10 07:47:13 PST 2004


>>>>> "Lubos" == Lubos Vnuk <lubos.vnuk at rts.at> writes:
[...]
> I have never heard of referring to a part of a complicated lexer rule as
> a subtoken. I'd call it a segment, a part, a fragment... Isn't a subtoken
> supposed to be a token as well as a subset is a set or a subprocedure is
> still a procedure? If yes, then the 'A' in the following example cannot
> be called "subtoken":

> rule: ABC subrule; ABC: 'A' BC; protected BC: 'B' 'C';

Sure it can and that's the whole point... "sub" is a very ambiguous
qualifier.

Take care,
	John


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/antlr-interest/

<*> To unsubscribe from this group, send an email to:
    antlr-interest-unsubscribe at yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 





More information about the antlr-interest mailing list