ANTLR(AST) - Freemarker/Velocity - output Template
1 posts in topic
Flat View  Flat View

Posted By:   Jose_Carlos
Posted On:   Tuesday, January 11, 2005 08:53 AM

How to generate an output representation using FreeMarker or Velocity, based on an AST generated with ANTLR TreeParser ?

Anybody tested these tools together (ANTLR-Velocity or ANTLR-FreeMarker)?


Re: ANTLR(AST) - Freemarker/Velocity - output Template

Posted By:   Terence_Parr  
Posted On:   Thursday, January 20, 2005 11:17 AM

Hi. Have you looked at StringTemplate ?? I will fold that into ANTLR v3.0. :)

Essentially, you walk top-down and build up a big string template bottom up. Each rule returns a StringTemplate. The top rule returns with the full translation. I'll try to write up a good example.


About | Sitemap | Contact