[stringtemplate-interest] printing using string template
Terence Parr
parrt at cs.usfca.edu
Tue Jul 18 18:35:56 PDT 2006
On Jul 18, 2006, at 6:25 PM, Amrinder Singh wrote:
> Hello,
> I was gong through the Mantra codgen.g and observed that some of
> the rules did
> not have any string template actions on it. How are these rules
> handled.
Those do not return a ST by default.
> Also,
> after building a walker, I want to try printing the file using string
> template, what are the minimum actions that I must add to just
> print the file
> as it is.
well, print is different than build an ST. First you build the ST
with antlr and then you call toString. or, you add println
statements to the tree walker.
Ter
More information about the stringtemplate-interest
mailing list