I found the solution. I will post it here to help others who may have
trouble with this well documented feature.
My basic problem was what I need to use the rewrite option with my template
output in the grammar like so:
options {
output=template;
rewrite=true;
}
Then just follow the simple instructions in the definitive guide, section
5.6 Rewrite Option
In my Test class:
changed CommonTokenStream to TokenRewriteStream
print out the tokens from the TokenRewriteStream. - In my mind this was
what my question was about. If I don't pass a template in I don't have
anything in hand to render. TokenRewriteStream provides that.
--
View this message in context:
http://antlr.1301665.n2.nabble.com/inline-template-output-tp5665577p5667544.html
Sent from the ANTLR mailing list archive at Nabble.com.
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.