[antlr-interest] More on TokenWithIndex

Paul J. Lucas pauljlucas at mac.com
Wed Oct 27 09:41:49 PDT 2004


On Wed, 27 Oct 2004, Monty Zukowski wrote:

> Well, for your DECLARE, you could have DECLARE^ instead of DECLARE!  

	Yes, but that produces a tree with otherwise useless nodes in
	it, i.e.:

		DECLARE			<-- this isn't really needed
		   BASE_URL_DECL
		       ...

> Another approach would be to keep some sort of stack of "interesting" 
> regions.

	Yeah.  It would be nice if ANTLR did all this sort of thing for
	you since the entire problem is of general interest.  (Terrence?)

	- Paul



 
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