I am working on a Delphi version of StringTemplate 4. To do that I need access to all the Java source files. I downloaded the Java source on 19 Nov 2013.

In the file Compiler.java in the folder Compiler is the routine :-

/** Compile full template with respect to a list of formal arguments. */
public CompiledST compile( ...

In this routine is a call to STParser.

Looking in the folder Compiler is the file 'STParser.g'. However there is no file 'STParser.java'. Similar problems exist for the files 'CodeGenerator.g' and 'Group.g'.

Where are the Java versions of those files? How can I obtain them?

有帮助吗?

解决方案

Those files are generated by ANTLR 3 during the Maven compilation process. Since ANTLR 3 does not currently have a Delphi target, you'll need to provide one for the both the parser code generation and the associated runtime library.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top