[stringtemplate-interest] who uses regions?

Terence Parr parrt at cs.usfca.edu
Thu Jun 30 12:10:30 PDT 2011


I should leave them in but I'm going to put in a warning that they are ill-advised (ie. broken) if defined in subdirs. i love open source software ;)
Ter
On Jun 30, 2011, at 12:01 PM, Robert Clark wrote:

> On June 30, 2011 2:55:35 PM Terence Parr wrote:
>> they are driving me nuts in STv4 implementation. i'm not even sure what
>> they mean anymore with subdirs and /a/b/c/d style references with
>> inheritance mixed in.
>> 
>> I don't use anymore myself. I released I needed them in ANTLR v3 code
>> gen due to forcing too much of logic into templates.  v4 does all
>> thinking in code and constructs internal model and then just makes
>> templates and fills and renders.
>> 
>> i'd love to eject regions but not if people use.  I guess ANTLR 3.4
>> needs them...hmm...
> 
> I'm currently using regions with 4.0.something to allow customizations of 
> templates under special conditions. I suppose I could do the same thing 
> with a mix of references and inheritance, but up until now I've been too 
> lazy to learn how to do so.
> 
> If the same functionality can be achieved without regions, then I'd have no 
> problem re-tweaking my templates to get rid of them. Especially if they are 
> making maintenance harder.
> 
> - Rob
> _______________________________________________
> 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