[stringtemplate-interest] templateLib in imported grammar
Terence Parr
parrt at cs.usfca.edu
Fri Jun 17 10:03:03 PDT 2011
hi. i'd start by looking at library source.
Ter
On Jun 17, 2011, at 7:04 AM, alejandro.osso at integraware.com.br wrote:
> Good morning Ter, and thank you for your reply.
>
> Can I? I learned in your books how to call setTemplateLib in the class which invokes the parser, but I haven't figured out how to pass this information to imported grammars.
>
> Kind regards,
>
> Alejandro Osso
>
>
>
>
> From: Terence Parr <parrt at cs.usfca.edu>
> To: alejandro.osso at integraware.com.br
> Cc: stringtemplate-interest at antlr.org
> Date: 16/06/2011 15:50
> Subject: Re: [stringtemplate-interest] templateLib in imported grammar
>
>
>
> Hi. can you call setTemplateLib on the subordinate?
> Ter
> On Jun 7, 2011, at 9:15 AM, alejandro.osso at integraware.com.br wrote:
>
>
> Good morning to all!
>
> I have a root tree grammar R which imports another one A. The root grammar finds the template group correctly, but the subordinate grammar does not; it seems to be looking for a "R_ATemplates" group.
>
> How can I tell the subordinate grammar to use the same template group as the root grammar?
>
> Thanks in advance.
>
> Kind regards,
>
> Alejandro Osso_______________________________________________
> stringtemplate-interest mailing list
> stringtemplate-interest at antlr.org
> http://www.antlr.org/mailman/listinfo/stringtemplate-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/stringtemplate-interest/attachments/20110617/a04fc3db/attachment.html
More information about the stringtemplate-interest
mailing list