代码生成的指令参数
此处,我的环境是windows。Linux下相似。
C:\Users\Jeremy>java -jar c:\Javalib\antlr-4.7-complete.jar
ANTLR Parser Generator Version 4.7
-o ___ specify output directory where all output is generated(指定生成代码的
存放目录)
-lib ___ specify location of grammars, tokens files
-atn generate rule augmented transition network diagrams
-encoding ___ specify grammar file encoding; e.g., euc-jp
-message-format ___ specify output style for messages in antlr, gnu, vs2005
-long-messages show exception details when available for errors and warnings
-listener generate parse tree listener (default)
-no-listener don't generate parse tree listener
-visitor generate parse tree visitor(指定要生成
用于遍历parse tree的visitor相关类方法)
-no-visitor don't generate parse tree visitor (default)
-package ___ specify a package/namespace for the