[antlr-interest] Comments / White-Space and All The Rest

David Holroyd dave at badgers-in-foil.co.uk
Fri Nov 24 08:39:02 PST 2006


On Fri, Nov 24, 2006 at 08:21:59AM -0800, Randall R Schulz wrote:
> How can I get the kind of behavior I want? Namely that comment action 
> code is processed in sequence with the parsing process?

I've tackled this by just build a linked list of all tokens:

http://maven.badgers-in-foil.co.uk/sites/metaas/xref/uk/co/badgersinfoil/metaas/impl/antlr/LinkedListTokenSource.html

Then I can walk back from the node-of-interest looking for doc-comments
and the like.


ta,
dave

-- 
http://david.holroyd.me.uk/


More information about the antlr-interest mailing list