[antlr-interest] v3 & templates question
Terence Parr
parrt at cs.usfca.edu
Thu Sep 28 13:37:38 PDT 2006
On Sep 28, 2006, at 12:34 PM, Robert Hill wrote:
> Ahh, there's the missing link right there...
>
> codegen.setTemplateLib(generator.templates);
>
> I did look for some form of linking the templates to the
> treewalker, (im
> using intelliJ) but the intellisense doesn't show that method,
> hence my
> confusion. I saw the references to templates in the rewrite rules,
> but no
> method to make the connection ..
>
> Brilliant! I was hoping for something better than masses of
> setAttributes
> this time round :)
>
> V3 absolutely Rocks.
Hooray! I'm glad you like the -> template(args) notation. I love it
too...I plan to improve with experience. Note you can use %template
(args) etc... inside actions.
Ter
More information about the antlr-interest
mailing list