ANTLR:防止“//从 <file name> 生成”
ANTLR: prevent "// Generated from <file name>"
如何告诉ANTLR工具,例如通过 VM 选项,不在包含
的 Java 文件中创建第一个注释行
// Generated from <file name>
原因是绝对文件名写在那里,这会在不同的机器上造成不必要的更改(我们将生成的 Java 文件存储在存储库中,因为如果它们只发生变化,为什么我们应该总是重新生成它们很少)。
How to tell the ANTLR tool, e.g. by an VM option, not to create the first comment line in the Java files
没有办法排除这个。
如何告诉ANTLR工具,例如通过 VM 选项,不在包含
的 Java 文件中创建第一个注释行// Generated from <file name>
原因是绝对文件名写在那里,这会在不同的机器上造成不必要的更改(我们将生成的 Java 文件存储在存储库中,因为如果它们只发生变化,为什么我们应该总是重新生成它们很少)。
How to tell the ANTLR tool, e.g. by an VM option, not to create the first comment line in the Java files
没有办法排除这个。