[stringtemplate-interest] [PATCH] STdaily stringtemplate-11-09-2007.17: Group hierarchy fix.
Terence Parr
parrt at cs.usfca.edu
Tue Dec 11 11:52:35 PST 2007
Howdy. yep, good idea. added new method to interface. Now,
group S : T ;
uses S's lexer to load T. Updated interface to allow lexer spec.
Ter
On Dec 10, 2007, at 6:47 PM, Zenaan Harkness wrote:
> On Mon, Dec 10, 2007 at 05:41:40PM -0800, Terence Parr wrote:
>> Hi. I have played around. a definite bug here...can't decide best
>> fix. Probably is to alter StringTemplateGroupLoader interface to
>> have
>>
>> public StringTemplateGroup loadGroup(String groupName,
>> Class templateLexer,
>> StringTemplateGroup superGroup);
>>
>> because it can't parse superGroup w/o knowing template format.
>> Hmm...worried about breaking code by changing the interface.
>> Thoughts?
>
> Just overload the method? Current one default to dollar lexer.
> And deprecate the old interface.
> Simple, yes?
>
>> Oh, added the nameToGroupMap update too. thanks.
>
> Very welcome.
>
> Regards
> Zen
>
> --
> Homepage: www.SoulSound.net -- Free Australia: www.UPMART.org
> Please respect the confidentiality of this email as sensibly
> warranted.
> _______________________________________________
> stringtemplate-interest mailing list
> stringtemplate-interest at antlr.org
> http://www.antlr.org:8080/mailman/listinfo/stringtemplate-interest
More information about the stringtemplate-interest
mailing list