[antlr-interest] access token stream from parser action

Mark Volkmann r.mark.volkmann at gmail.com
Fri Apr 16 06:27:18 PDT 2010


I'm trying to access comment tokens that are written to the hidden
channel from a parser action. I'm using the Java 1.5 grammar that
Terrance wrote. When it finds things like classes, fields and methods,
I want to grab the comment, if any, that immediately precedes it.

I think I'm close to having it figured out, but I don't know how to
get access to the token stream from a parser action. How can I do
that?

-- 
R. Mark Volkmann
Object Computing, Inc.


More information about the antlr-interest mailing list