[stringtemplate-interest] visualizer mockup

Terence Parr parrt at cs.usfca.edu
Thu Nov 26 09:36:21 PST 2009


Hi gang.  In order to produce 1 GUI (in Java I guess), Python and C#  
targets will have to get data to it.  That means a text or binary  
marshalling protocol. no way around it. we either write it or reuse  
existing one. In java, i can just pass the objects which is how I'll  
start.

I have a nice  prototype of debug info going.  First, ST bytecode  
compiler always generates instructions that know which expression in  
template they are executing.  This is good for errors and lets me  
track info for GUI.  I am collecting objects now that know the exact  
output generatd for the exact part of the template source; knows all  
attribute values etc....  A little clean up and I can try a braindead  
visualizer that highlights text for each template/expression in an  
textpane

T

On Nov 25, 2009, at 7:50 PM, Barrie Treloar wrote:

> On Thu, Nov 26, 2009 at 12:31 PM, Gerald Rosenberg  
> <gerald at certiv.net> wrote:
>> Writing and then reading the metadata from disk would still leave  
>> you with
>> the marshalling and cross-language issues.
>
> I'm confused, what cross-language issues?
> I thought this was visualizing the ST template generation - which only
> comes in one flavor - ST.
> The target language of the template is not an issue.
> Other language ports of ST need to adhere to the ST metadata interface
> when dumping the metadata, so you only need one instance of the tool.
> _______________________________________________
> stringtemplate-interest mailing list
> stringtemplate-interest at antlr.org
> http://www.antlr.org/mailman/listinfo/stringtemplate-interest



More information about the stringtemplate-interest mailing list