[antlr-interest] Proposal to make writing language targets a biteasier
Terence Parr
parrt at cs.usfca.edu
Tue Jan 20 13:26:25 PST 2009
On Jan 19, 2009, at 7:21 PM, Sidharth Kuruvila wrote:
>
> It should be enough to add your Target's java directory to the
> classpath. So you don't need to physically put the code into the
> antlr source.
Yep, to add a new target, all you have to do is define the directory
of templates and put it into the path. This is also an effective way
to override the standard Java or whatever templates. If you need
XTarget.java for for language X, just add it to the class path (with
the right package org.antlr.tool.codegen) and ANTLR sees it also.
Ter
More information about the antlr-interest
mailing list