[antlr-interest] StringTemplate + preserving comments
Edward O'Flynn
esof1 at student.cs.ucc.ie
Tue Nov 8 03:14:34 PST 2005
Sohail Somani wrote:
>I think the subject line is basically impossible with antlr
>+stringtemplate, BUT in the off-chance someone has any ideas to do this,
>I would appreciate some pointers.
>
>It would be really nice if one could do it without a TreeParser :)
>
>Thanks!
>
>Sohail
>
>
>
Hi
I don't know much about Stringtemplate, but if you want to preserve
comments,
you could use a tokenstreamhiddentoken filter after pasrsing, see
http://www.antlr.org/doc/streams.html
ed.
More information about the antlr-interest
mailing list