[antlr-interest] Proposal to make writing language targets a biteasier
Rick Mann
rmann at latencyzero.com
Mon Jan 19 18:26:29 PST 2009
On Jan 19, 2009, at 18:16:13, Sam Harwell wrote:
> Here's what I'm working on in the C# port:
>
> If a target class is not present in the executable (Antlr3.exe), it
> tries to load Antlr3.Target.<targetname>.dll, then check for the
> target
> in there. Then it has the target return a StringTemplateGroup that
> knows
> the location of the .stg file, whether embedded in the satellite
> assembly or located on disk.
I'm not sure I understand. Did you modify the ANTLR tool code to do
this? I don't really know how loading, etc. works on Windows. I didn't
see anything in the XYZTarget.java file that lets one easily change
where to find the other bits.
I changed CodeGenerator.loadTemplates() to do it.
--
Rick
More information about the antlr-interest
mailing list