From: <ox-...@us...> - 2003-05-30 19:13:55
|
Update of /cvsroot/sheets/sheets/parsers In directory sc8-pr-cvs1:/tmp/cvs-serv4000/parsers Modified Files: JavaParser.jjt Log Message: 1. Updated the Java grammar to handle byte[].class construct. 2. Fixed the build file to check before recompiling javacc Index: JavaParser.jjt =================================================================== RCS file: /cvsroot/sheets/sheets/parsers/JavaParser.jjt,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** JavaParser.jjt 22 May 2002 21:46:28 -0000 1.1 --- JavaParser.jjt 30 May 2003 19:13:52 -0000 1.2 *************** *** 1,11 **** // Derived from Java1.1.jj in the JavaCC examples directory. - // ### Doesn't handle the construct "int[].class" - /** * Change history: ! * 5/11 - Incorporated changes for Java 1.4 to handle the assert keyword. ! * 11/01 - Modified this grammar to accept the strictfp keyword, which is new in ! * Java 1.2. --Stephen Chin */ --- 1,11 ---- // Derived from Java1.1.jj in the JavaCC examples directory. /** * Change history: ! * 5/30/03 - [sjc] Fixed int[].class construct ! * 5/11/02 - [sjc] Incorporated changes for Java 1.4 to handle the assert ! keyword. ! * 11/01 - Modified this grammar to accept the strictfp keyword, which is new ! * in Java 1.2. --Stephen Chin [sjc] */ *************** *** 1035,1043 **** {} { ! ArefExpression() ! ( LOOKAHEAD(2) ! DotClass() ! | (<DOT> ArefExpression()) ! )* } --- 1035,1045 ---- {} { ! ( ! LOOKAHEAD( ResultType() DotClass() ) ! ResultType() DotClass() ! | ! ArefExpression() ! ) ! ( LOOKAHEAD(2) <DOT> ArefExpression())* } |