[stringtemplate-interest] outline assignment symbols

Philippe Faes philippe.faes at sigasi.com
Mon Apr 13 11:52:59 PDT 2009


Thanks Frédéric,

I have tried this and it works great if you know in advance the length  
of your longest identifier (in this case it was "foobar"). Any hints  
on how to figure out automatically how much whitespace I need to append?

thanks

Philippe

On 13 Apr 2009, at 19:06, Frédéric Delanoy wrote:

> Hi,
>
> you can use the registerRenderer(Class, AttributeRenderer) method on
> your template.
>
> See http://www.antlr.org/pipermail/stringtemplate-interest/2009-February/001786.html 
> .
>
> Frédéric
>
> 2009/4/13 Philippe Faes <philippe.faes at sigasi.com>:
>> Dear stringtemplate users,
>> In the VHDL language, many users like to outline assingments so  
>> that the
>> assignment symbols line up, like this:
>> foo    := 1;
>> a      := 2;
>> foobar := 3;
>> Is it possible/feasible/easy to generate code like this with  
>> stringtemplate?
>> thanks
>> Philippe
>>
>> _______________________________________________
>> 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