1)Copy Parser.jjt in a dedicated directory.
2) Grammar modificatiobns:
Grammar located in file Parser.jjt :
3) Command :
/usr/lang/JAVA/JavaCC_2.0/bin/jjtree Parser.jjt
/usr/lang/JAVA/JavaCC_2.0/bin/javacc Parser.jj
4) Files to copy back in IPAcl directory:
If you added new node (eg :IpV6Address()) copy the JDM file (eg:JDMIpV6Address.java)
In any cases copy back (These files must be checkedout in IPAcl directory):
ASCII_CharStream.java
JJTParserState.java
ParseException.java
Parser.java
ParserConstants.java
ParserTokenManager.java
ParserTreeConstants.java
TokenMgrError.java
5) You need to modify any JDM files you copied back. Lauch the compilation and you will see what is wrong.
/**代码未完, 请加载全部代码(NowJava.com).**/