Once you have created an instance of your tree walker, then you must tell it 
what template to use:      

        treeWalker.setTemplateLib(jgg.getTemplates());

ANTLRWorks does not let you do this kind of development, so what you must do is 
move to a project such as Maven or Netbeans with Maven, then generate your 
grammar using the -debug option to ANTLR. You can still use ANTLRWorks in 
remote debugging mode - that is the point of remote debugging because you 
cannot use ANTLRWorks with a full blown code environment otherwise.

Jim

> -----Original Message-----
> From: [email protected] [mailto:antlr-interest-
> [email protected]] On Behalf Of Nourchn Nor
> Sent: Thursday, April 29, 2010 3:22 AM
> To: [email protected]
> Subject: [antlr-interest] problem in translation with tree walker
> 
> Hello everybody,
> I want to make a translation between two languages A and B and I choose
> to
> use the ANTLRWork, I'm writing a  grammar of A  and the string template
> of
> B,  and I am spirit of writing the tree walker of translation with the
> template which I have defines in the string template, but the problem
> is
> that this templates don't known in this Tree walker. What can I do? Or
> how I
> have to make or add, please?
> Note that I want to use only the ANTLRWork.
> Please help me
> 
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-
> email-address




List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.

Reply via email to