1 /* Generated By:JavaCC: Do not edit this line. PHPParser.java */
4 import org.eclipse.core.resources.IFile;
5 import org.eclipse.core.resources.IMarker;
6 import org.eclipse.core.runtime.CoreException;
7 import org.eclipse.ui.texteditor.MarkerUtilities;
8 import org.eclipse.jface.preference.IPreferenceStore;
10 import java.util.Hashtable;
11 import java.io.StringReader;
12 import java.text.MessageFormat;
14 import net.sourceforge.phpeclipse.actions.PHPStartApacheAction;
15 import net.sourceforge.phpeclipse.PHPeclipsePlugin;
16 import net.sourceforge.phpdt.internal.compiler.parser.PHPOutlineInfo;
17 import net.sourceforge.phpdt.internal.compiler.parser.PHPSegmentWithChildren;
18 import net.sourceforge.phpdt.internal.compiler.parser.PHPFunctionDeclaration;
19 import net.sourceforge.phpdt.internal.compiler.parser.PHPClassDeclaration;
20 import net.sourceforge.phpdt.internal.compiler.parser.PHPVarDeclaration;
21 import net.sourceforge.phpdt.internal.compiler.parser.PHPReqIncDeclaration;
25 * This php parser is inspired by the Java 1.2 grammar example
26 * given with JavaCC. You can get JavaCC at http://www.webgain.com
27 * You can test the parser with the PHPParserTestCase2.java
28 * @author Matthieu Casanova
30 public final class PHPParser extends PHPParserSuperclass implements PHPParserConstants {
32 private static IFile fileToParse;
34 /** The current segment */
35 private static PHPSegmentWithChildren currentSegment;
37 private static final String PARSE_ERROR_STRING = "Parse error"; //$NON-NLS-1$
38 private static final String PARSE_WARNING_STRING = "Warning"; //$NON-NLS-1$
39 PHPOutlineInfo outlineInfo;
40 private static int errorLevel = ERROR;
41 private static String errorMessage;
46 public final void setFileToParse(final IFile fileToParse) {
47 this.fileToParse = fileToParse;
50 public PHPParser(final IFile fileToParse) {
51 this(new StringReader(""));
52 this.fileToParse = fileToParse;
55 public static final void phpParserTester(final String strEval) throws CoreException, ParseException {
56 PHPParserTokenManager.SwitchTo(PHPParserTokenManager.PHPPARSING);
57 final StringReader stream = new StringReader(strEval);
58 if (jj_input_stream == null) {
59 jj_input_stream = new SimpleCharStream(stream, 1, 1);
61 ReInit(new StringReader(strEval));
65 public static final void htmlParserTester(final String strEval) throws CoreException, ParseException {
66 final StringReader stream = new StringReader(strEval);
67 if (jj_input_stream == null) {
68 jj_input_stream = new SimpleCharStream(stream, 1, 1);
74 public final PHPOutlineInfo parseInfo(final Object parent, final String s) {
75 outlineInfo = new PHPOutlineInfo(parent);
76 currentSegment = outlineInfo.getDeclarations();
77 final StringReader stream = new StringReader(s);
78 if (jj_input_stream == null) {
79 jj_input_stream = new SimpleCharStream(stream, 1, 1);
84 } catch (ParseException e) {
85 processParseException(e);
91 * This method will process the parse exception.
92 * If the error message is null, the parse exception wasn't catched and a trace is written in the log
93 * @param e the ParseException
95 private static void processParseException(final ParseException e) {
96 if (errorMessage == null) {
97 PHPeclipsePlugin.log(e);
98 errorMessage = "this exception wasn't handled by the parser please tell us how to reproduce it";
105 * Create marker for the parse error
106 * @param e the ParseException
108 private static void setMarker(final ParseException e) {
110 setMarker(fileToParse,
112 jj_input_stream.tokenBegin,
113 jj_input_stream.tokenBegin + e.currentToken.image.length(),
115 "Line " + e.currentToken.beginLine);
116 } catch (CoreException e2) {
117 PHPeclipsePlugin.log(e2);
122 * Create markers according to the external parser output
124 private static void createMarkers(final String output, final IFile file) throws CoreException {
125 // delete all markers
126 file.deleteMarkers(IMarker.PROBLEM, false, 0);
131 while ((brIndx = output.indexOf("<br />", indx)) != -1) {
132 // newer php error output (tested with 4.2.3)
133 scanLine(output, file, indx, brIndx);
138 while ((brIndx = output.indexOf("<br>", indx)) != -1) {
139 // older php error output (tested with 4.2.3)
140 scanLine(output, file, indx, brIndx);
146 private static void scanLine(final String output,
149 final int brIndx) throws CoreException {
151 StringBuffer lineNumberBuffer = new StringBuffer(10);
153 current = output.substring(indx, brIndx);
155 if (current.indexOf(PARSE_WARNING_STRING) != -1 || current.indexOf(PARSE_ERROR_STRING) != -1) {
156 int onLine = current.indexOf("on line <b>");
158 lineNumberBuffer.delete(0, lineNumberBuffer.length());
159 for (int i = onLine; i < current.length(); i++) {
160 ch = current.charAt(i);
161 if ('0' <= ch && '9' >= ch) {
162 lineNumberBuffer.append(ch);
166 int lineNumber = Integer.parseInt(lineNumberBuffer.toString());
168 Hashtable attributes = new Hashtable();
170 current = current.replaceAll("\n", "");
171 current = current.replaceAll("<b>", "");
172 current = current.replaceAll("</b>", "");
173 MarkerUtilities.setMessage(attributes, current);
175 if (current.indexOf(PARSE_ERROR_STRING) != -1)
176 attributes.put(IMarker.SEVERITY, new Integer(IMarker.SEVERITY_ERROR));
177 else if (current.indexOf(PARSE_WARNING_STRING) != -1)
178 attributes.put(IMarker.SEVERITY, new Integer(IMarker.SEVERITY_WARNING));
180 attributes.put(IMarker.SEVERITY, new Integer(IMarker.SEVERITY_INFO));
181 MarkerUtilities.setLineNumber(attributes, lineNumber);
182 MarkerUtilities.createMarker(file, attributes, IMarker.PROBLEM);
187 public final void parse(final String s) throws CoreException {
188 final StringReader stream = new StringReader(s);
189 if (jj_input_stream == null) {
190 jj_input_stream = new SimpleCharStream(stream, 1, 1);
195 } catch (ParseException e) {
196 processParseException(e);
201 * Call the php parse command ( php -l -f <filename> )
202 * and create markers according to the external parser output
204 public static void phpExternalParse(final IFile file) {
205 final IPreferenceStore store = PHPeclipsePlugin.getDefault().getPreferenceStore();
206 final String filename = file.getLocation().toString();
208 final String[] arguments = { filename };
209 final MessageFormat form = new MessageFormat(store.getString(PHPeclipsePlugin.EXTERNAL_PARSER_PREF));
210 final String command = form.format(arguments);
212 final String parserResult = PHPStartApacheAction.getParserOutput(command, "External parser: ");
215 // parse the buffer to find the errors and warnings
216 createMarkers(parserResult, file);
217 } catch (CoreException e) {
218 PHPeclipsePlugin.log(e);
222 public static final void parse() throws ParseException {
226 static final public void phpTest() throws ParseException {
231 static final public void phpFile() throws ParseException {
235 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
265 case INTEGER_LITERAL:
266 case FLOATING_POINT_LITERAL:
290 } catch (TokenMgrError e) {
291 errorMessage = e.getMessage();
293 {if (true) throw generateParseException();}
297 static final public void PhpBlock() throws ParseException {
298 final int start = jj_input_stream.bufpos;
299 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
301 jj_consume_token(PHPECHOSTART);
303 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
305 jj_consume_token(SEMICOLON);
311 jj_consume_token(PHPEND);
341 case INTEGER_LITERAL:
342 case FLOATING_POINT_LITERAL:
357 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
360 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
362 jj_consume_token(PHPSTARTLONG);
365 jj_consume_token(PHPSTARTSHORT);
367 setMarker(fileToParse,
368 "You should use '<?php' instead of '<?' it will avoid some problems with XML",
370 jj_input_stream.bufpos,
372 "Line " + token.beginLine);
373 } catch (CoreException e) {
374 PHPeclipsePlugin.log(e);
379 jj_consume_token(-1);
380 throw new ParseException();
389 jj_consume_token(PHPEND);
390 } catch (ParseException e) {
391 errorMessage = "'?>' expected";
398 jj_consume_token(-1);
399 throw new ParseException();
403 static final public void Php() throws ParseException {
406 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
432 case INTEGER_LITERAL:
433 case FLOATING_POINT_LITERAL:
458 static final public void ClassDeclaration() throws ParseException {
459 final PHPClassDeclaration classDeclaration;
460 final Token className;
461 final int pos = jj_input_stream.bufpos;
462 jj_consume_token(CLASS);
463 className = jj_consume_token(IDENTIFIER);
464 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
466 jj_consume_token(EXTENDS);
467 jj_consume_token(IDENTIFIER);
473 if (currentSegment != null) {
474 classDeclaration = new PHPClassDeclaration(currentSegment,className.image,pos);
475 currentSegment.add(classDeclaration);
476 currentSegment = classDeclaration;
479 if (currentSegment != null) {
480 currentSegment = (PHPSegmentWithChildren) currentSegment.getParent();
484 static final public void ClassBody() throws ParseException {
486 jj_consume_token(LBRACE);
487 } catch (ParseException e) {
488 errorMessage = "'{' expected";
494 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
503 ClassBodyDeclaration();
506 jj_consume_token(RBRACE);
507 } catch (ParseException e) {
508 errorMessage = "'var', 'function' or '}' expected";
514 static final public void ClassBodyDeclaration() throws ParseException {
515 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
524 jj_consume_token(-1);
525 throw new ParseException();
529 static final public void FieldDeclaration() throws ParseException {
530 PHPVarDeclaration variableDeclaration;
531 jj_consume_token(VAR);
532 variableDeclaration = VariableDeclarator();
533 if (currentSegment != null) {
534 currentSegment.add(variableDeclaration);
538 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
546 jj_consume_token(COMMA);
547 variableDeclaration = VariableDeclarator();
548 if (currentSegment != null) {
549 currentSegment.add(variableDeclaration);
553 jj_consume_token(SEMICOLON);
554 } catch (ParseException e) {
555 errorMessage = "';' expected after variable declaration";
561 static final public PHPVarDeclaration VariableDeclarator() throws ParseException {
562 final String varName;
563 String varValue = null;
564 final int pos = jj_input_stream.bufpos;
565 varName = VariableDeclaratorId();
566 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
568 jj_consume_token(ASSIGN);
570 varValue = VariableInitializer();
571 {if (true) return new PHPVarDeclaration(currentSegment,varName,pos,varValue);}
572 } catch (ParseException e) {
573 errorMessage = "Literal expression expected in variable initializer";
582 {if (true) return new PHPVarDeclaration(currentSegment,varName,pos);}
583 throw new Error("Missing return statement in function");
586 static final public String VariableDeclaratorId() throws ParseException {
588 final StringBuffer buff = new StringBuffer();
599 expr = VariableSuffix();
602 {if (true) return buff.toString();}
603 } catch (ParseException e) {
604 errorMessage = "'$' expected for variable identifier";
608 throw new Error("Missing return statement in function");
611 static final public String Variable() throws ParseException {
614 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
616 token = jj_consume_token(DOLLAR_ID);
617 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
619 jj_consume_token(LBRACE);
621 jj_consume_token(RBRACE);
628 {if (true) return token.image;}
630 {if (true) return token + "{" + expr + "}";}
633 jj_consume_token(DOLLAR);
634 expr = VariableName();
635 {if (true) return "$" + expr;}
639 jj_consume_token(-1);
640 throw new ParseException();
642 throw new Error("Missing return statement in function");
645 static final public String VariableName() throws ParseException {
648 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
650 jj_consume_token(LBRACE);
652 jj_consume_token(RBRACE);
653 {if (true) return "{"+expr+"}";}
656 token = jj_consume_token(IDENTIFIER);
657 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
659 jj_consume_token(LBRACE);
661 jj_consume_token(RBRACE);
668 {if (true) return token.image;}
670 {if (true) return token + "{" + expr + "}";}
673 jj_consume_token(DOLLAR);
674 expr = VariableName();
675 {if (true) return "$" + expr;}
678 token = jj_consume_token(DOLLAR_ID);
679 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
684 expr = VariableName();
691 {if (true) return token.image;}
693 {if (true) return token.image + expr;}
697 jj_consume_token(-1);
698 throw new ParseException();
700 throw new Error("Missing return statement in function");
703 static final public String VariableInitializer() throws ParseException {
706 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
710 case INTEGER_LITERAL:
711 case FLOATING_POINT_LITERAL:
714 {if (true) return expr;}
717 jj_consume_token(MINUS);
718 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
719 case INTEGER_LITERAL:
720 token = jj_consume_token(INTEGER_LITERAL);
722 case FLOATING_POINT_LITERAL:
723 token = jj_consume_token(FLOATING_POINT_LITERAL);
727 jj_consume_token(-1);
728 throw new ParseException();
730 {if (true) return "-" + token.image;}
733 jj_consume_token(PLUS);
734 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
735 case INTEGER_LITERAL:
736 token = jj_consume_token(INTEGER_LITERAL);
738 case FLOATING_POINT_LITERAL:
739 token = jj_consume_token(FLOATING_POINT_LITERAL);
743 jj_consume_token(-1);
744 throw new ParseException();
746 {if (true) return "+" + token.image;}
749 expr = ArrayDeclarator();
750 {if (true) return expr;}
753 token = jj_consume_token(IDENTIFIER);
754 {if (true) return token.image;}
758 jj_consume_token(-1);
759 throw new ParseException();
761 throw new Error("Missing return statement in function");
764 static final public String ArrayVariable() throws ParseException {
766 final StringBuffer buff = new StringBuffer();
769 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
771 jj_consume_token(ARRAYASSIGN);
773 buff.append("=>").append(expr);
779 {if (true) return buff.toString();}
780 throw new Error("Missing return statement in function");
783 static final public String ArrayInitializer() throws ParseException {
785 final StringBuffer buff = new StringBuffer("(");
786 jj_consume_token(LPAREN);
787 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
795 case INTEGER_LITERAL:
796 case FLOATING_POINT_LITERAL:
809 expr = ArrayVariable();
818 jj_consume_token(COMMA);
819 expr = ArrayVariable();
820 buff.append(",").append(expr);
827 jj_consume_token(RPAREN);
829 {if (true) return buff.toString();}
830 throw new Error("Missing return statement in function");
833 static final public void MethodDeclaration() throws ParseException {
834 final PHPFunctionDeclaration functionDeclaration;
835 jj_consume_token(FUNCTION);
836 functionDeclaration = MethodDeclarator();
837 if (currentSegment != null) {
838 currentSegment.add(functionDeclaration);
839 currentSegment = functionDeclaration;
842 if (currentSegment != null) {
843 currentSegment = (PHPSegmentWithChildren) currentSegment.getParent();
847 static final public PHPFunctionDeclaration MethodDeclarator() throws ParseException {
848 final Token identifier;
849 final StringBuffer methodDeclaration = new StringBuffer();
850 final String formalParameters;
851 final int pos = jj_input_stream.bufpos;
852 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
854 jj_consume_token(BIT_AND);
855 methodDeclaration.append("&");
861 identifier = jj_consume_token(IDENTIFIER);
862 methodDeclaration.append(identifier);
863 formalParameters = FormalParameters();
864 methodDeclaration.append(formalParameters);
865 {if (true) return new PHPFunctionDeclaration(currentSegment,methodDeclaration.toString(),pos);}
866 throw new Error("Missing return statement in function");
869 static final public String FormalParameters() throws ParseException {
871 final StringBuffer buff = new StringBuffer("(");
873 jj_consume_token(LPAREN);
874 } catch (ParseException e) {
875 errorMessage = "Formal parameter expected after function identifier";
877 jj_consume_token(token.kind);
879 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
883 expr = FormalParameter();
887 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
895 jj_consume_token(COMMA);
896 expr = FormalParameter();
897 buff.append(",").append(expr);
905 jj_consume_token(RPAREN);
906 } catch (ParseException e) {
907 errorMessage = "')' expected";
912 {if (true) return buff.toString();}
913 throw new Error("Missing return statement in function");
916 static final public String FormalParameter() throws ParseException {
917 final PHPVarDeclaration variableDeclaration;
918 final StringBuffer buff = new StringBuffer();
919 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
921 jj_consume_token(BIT_AND);
928 variableDeclaration = VariableDeclarator();
929 buff.append(variableDeclaration.toString());
930 {if (true) return buff.toString();}
931 throw new Error("Missing return statement in function");
934 static final public String Type() throws ParseException {
935 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
937 jj_consume_token(STRING);
938 {if (true) return "string";}
941 jj_consume_token(BOOL);
942 {if (true) return "bool";}
945 jj_consume_token(BOOLEAN);
946 {if (true) return "boolean";}
949 jj_consume_token(REAL);
950 {if (true) return "real";}
953 jj_consume_token(DOUBLE);
954 {if (true) return "double";}
957 jj_consume_token(FLOAT);
958 {if (true) return "float";}
961 jj_consume_token(INT);
962 {if (true) return "int";}
965 jj_consume_token(INTEGER);
966 {if (true) return "integer";}
969 jj_consume_token(OBJECT);
970 {if (true) return "object";}
974 jj_consume_token(-1);
975 throw new ParseException();
977 throw new Error("Missing return statement in function");
980 static final public String Expression() throws ParseException {
982 final String assignOperator;
984 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
986 expr = PrintExpression();
987 {if (true) return expr;}
990 expr = ListExpression();
991 {if (true) return expr;}
998 case INTEGER_LITERAL:
999 case FLOATING_POINT_LITERAL:
1000 case STRING_LITERAL:
1012 expr = ConditionalExpression();
1013 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1026 case RSIGNEDSHIFTASSIGN:
1027 assignOperator = AssignmentOperator();
1029 expr2 = Expression();
1030 {if (true) return expr + assignOperator + expr2;}
1031 } catch (ParseException e) {
1032 errorMessage = "expression expected";
1034 {if (true) throw e;}
1038 jj_la1[26] = jj_gen;
1041 {if (true) return expr;}
1044 jj_la1[27] = jj_gen;
1045 jj_consume_token(-1);
1046 throw new ParseException();
1048 throw new Error("Missing return statement in function");
1051 static final public String AssignmentOperator() throws ParseException {
1052 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1054 jj_consume_token(ASSIGN);
1055 {if (true) return "=";}
1058 jj_consume_token(STARASSIGN);
1059 {if (true) return "*=";}
1062 jj_consume_token(SLASHASSIGN);
1063 {if (true) return "/=";}
1066 jj_consume_token(REMASSIGN);
1067 {if (true) return "%=";}
1070 jj_consume_token(PLUSASSIGN);
1071 {if (true) return "+=";}
1074 jj_consume_token(MINUSASSIGN);
1075 {if (true) return "-=";}
1078 jj_consume_token(LSHIFTASSIGN);
1079 {if (true) return "<<=";}
1081 case RSIGNEDSHIFTASSIGN:
1082 jj_consume_token(RSIGNEDSHIFTASSIGN);
1083 {if (true) return ">>=";}
1086 jj_consume_token(ANDASSIGN);
1087 {if (true) return "&=";}
1090 jj_consume_token(XORASSIGN);
1091 {if (true) return "|=";}
1094 jj_consume_token(ORASSIGN);
1095 {if (true) return "|=";}
1098 jj_consume_token(DOTASSIGN);
1099 {if (true) return ".=";}
1102 jj_consume_token(TILDEEQUAL);
1103 {if (true) return "~=";}
1106 jj_la1[28] = jj_gen;
1107 jj_consume_token(-1);
1108 throw new ParseException();
1110 throw new Error("Missing return statement in function");
1113 static final public String ConditionalExpression() throws ParseException {
1115 String expr2 = null;
1116 String expr3 = null;
1117 expr = ConditionalOrExpression();
1118 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1120 jj_consume_token(HOOK);
1121 expr2 = Expression();
1122 jj_consume_token(COLON);
1123 expr3 = ConditionalExpression();
1126 jj_la1[29] = jj_gen;
1129 if (expr3 == null) {
1130 {if (true) return expr;}
1132 {if (true) return expr + "?" + expr2 + ":" + expr3;}
1134 throw new Error("Missing return statement in function");
1137 static final public String ConditionalOrExpression() throws ParseException {
1140 final StringBuffer buff = new StringBuffer();
1141 expr = ConditionalAndExpression();
1145 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1151 jj_la1[30] = jj_gen;
1154 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1156 operator = jj_consume_token(SC_OR);
1159 operator = jj_consume_token(_ORL);
1162 jj_la1[31] = jj_gen;
1163 jj_consume_token(-1);
1164 throw new ParseException();
1166 expr = ConditionalAndExpression();
1167 buff.append(operator.image);
1170 {if (true) return buff.toString();}
1171 throw new Error("Missing return statement in function");
1174 static final public String ConditionalAndExpression() throws ParseException {
1177 final StringBuffer buff = new StringBuffer();
1178 expr = ConcatExpression();
1182 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1188 jj_la1[32] = jj_gen;
1191 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1193 operator = jj_consume_token(SC_AND);
1196 operator = jj_consume_token(_ANDL);
1199 jj_la1[33] = jj_gen;
1200 jj_consume_token(-1);
1201 throw new ParseException();
1203 expr = ConcatExpression();
1204 buff.append(operator.image);
1207 {if (true) return buff.toString();}
1208 throw new Error("Missing return statement in function");
1211 static final public String ConcatExpression() throws ParseException {
1213 final StringBuffer buff = new StringBuffer();
1214 expr = InclusiveOrExpression();
1218 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1223 jj_la1[34] = jj_gen;
1226 jj_consume_token(DOT);
1227 expr = InclusiveOrExpression();
1228 buff.append(".").append(expr);
1230 {if (true) return buff.toString();}
1231 throw new Error("Missing return statement in function");
1234 static final public String InclusiveOrExpression() throws ParseException {
1236 final StringBuffer buff = new StringBuffer();
1237 expr = ExclusiveOrExpression();
1241 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1246 jj_la1[35] = jj_gen;
1249 jj_consume_token(BIT_OR);
1250 expr = ExclusiveOrExpression();
1251 buff.append("|").append(expr);
1253 {if (true) return buff.toString();}
1254 throw new Error("Missing return statement in function");
1257 static final public String ExclusiveOrExpression() throws ParseException {
1259 final StringBuffer buff = new StringBuffer();
1260 expr = AndExpression();
1264 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1269 jj_la1[36] = jj_gen;
1272 jj_consume_token(XOR);
1273 expr = AndExpression();
1277 {if (true) return buff.toString();}
1278 throw new Error("Missing return statement in function");
1281 static final public String AndExpression() throws ParseException {
1283 final StringBuffer buff = new StringBuffer();
1284 expr = EqualityExpression();
1288 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1293 jj_la1[37] = jj_gen;
1296 jj_consume_token(BIT_AND);
1297 expr = EqualityExpression();
1298 buff.append("&").append(expr);
1300 {if (true) return buff.toString();}
1301 throw new Error("Missing return statement in function");
1304 static final public String EqualityExpression() throws ParseException {
1307 final StringBuffer buff = new StringBuffer();
1308 expr = RelationalExpression();
1312 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1316 case BANGDOUBLEEQUAL:
1321 jj_la1[38] = jj_gen;
1324 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1326 operator = jj_consume_token(EQ);
1329 operator = jj_consume_token(DIF);
1332 operator = jj_consume_token(NE);
1334 case BANGDOUBLEEQUAL:
1335 operator = jj_consume_token(BANGDOUBLEEQUAL);
1338 operator = jj_consume_token(TRIPLEEQUAL);
1341 jj_la1[39] = jj_gen;
1342 jj_consume_token(-1);
1343 throw new ParseException();
1345 expr = RelationalExpression();
1346 buff.append(operator.image);
1349 {if (true) return buff.toString();}
1350 throw new Error("Missing return statement in function");
1353 static final public String RelationalExpression() throws ParseException {
1356 final StringBuffer buff = new StringBuffer();
1357 expr = ShiftExpression();
1361 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1369 jj_la1[40] = jj_gen;
1372 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1374 operator = jj_consume_token(LT);
1377 operator = jj_consume_token(GT);
1380 operator = jj_consume_token(LE);
1383 operator = jj_consume_token(GE);
1386 jj_la1[41] = jj_gen;
1387 jj_consume_token(-1);
1388 throw new ParseException();
1390 expr = ShiftExpression();
1391 buff.append(operator.image).append(expr);
1393 {if (true) return buff.toString();}
1394 throw new Error("Missing return statement in function");
1397 static final public String ShiftExpression() throws ParseException {
1400 final StringBuffer buff = new StringBuffer();
1401 expr = AdditiveExpression();
1405 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1408 case RUNSIGNEDSHIFT:
1412 jj_la1[42] = jj_gen;
1415 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1417 operator = jj_consume_token(LSHIFT);
1420 operator = jj_consume_token(RSIGNEDSHIFT);
1422 case RUNSIGNEDSHIFT:
1423 operator = jj_consume_token(RUNSIGNEDSHIFT);
1426 jj_la1[43] = jj_gen;
1427 jj_consume_token(-1);
1428 throw new ParseException();
1430 expr = AdditiveExpression();
1431 buff.append(operator.image);
1434 {if (true) return buff.toString();}
1435 throw new Error("Missing return statement in function");
1438 static final public String AdditiveExpression() throws ParseException {
1441 final StringBuffer buff = new StringBuffer();
1442 expr = MultiplicativeExpression();
1446 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1452 jj_la1[44] = jj_gen;
1455 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1457 operator = jj_consume_token(PLUS);
1460 operator = jj_consume_token(MINUS);
1463 jj_la1[45] = jj_gen;
1464 jj_consume_token(-1);
1465 throw new ParseException();
1467 expr = MultiplicativeExpression();
1468 buff.append(operator.image);
1471 {if (true) return buff.toString();}
1472 throw new Error("Missing return statement in function");
1475 static final public String MultiplicativeExpression() throws ParseException {
1478 final StringBuffer buff = new StringBuffer();
1479 expr = UnaryExpression();
1483 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1490 jj_la1[46] = jj_gen;
1493 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1495 operator = jj_consume_token(STAR);
1498 operator = jj_consume_token(SLASH);
1501 operator = jj_consume_token(REM);
1504 jj_la1[47] = jj_gen;
1505 jj_consume_token(-1);
1506 throw new ParseException();
1508 expr = UnaryExpression();
1509 buff.append(operator.image);
1512 {if (true) return buff.toString();}
1513 throw new Error("Missing return statement in function");
1517 * An unary expression starting with @, & or nothing
1519 static final public String UnaryExpression() throws ParseException {
1522 final StringBuffer buff = new StringBuffer();
1523 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1525 token = jj_consume_token(BIT_AND);
1526 expr = UnaryExpressionNoPrefix();
1527 if (token == null) {
1528 {if (true) return expr;}
1530 {if (true) return token.image + expr;}
1537 case INTEGER_LITERAL:
1538 case FLOATING_POINT_LITERAL:
1539 case STRING_LITERAL:
1552 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1557 jj_la1[48] = jj_gen;
1560 jj_consume_token(AT);
1563 expr = UnaryExpressionNoPrefix();
1564 {if (true) return buff.append(expr).toString();}
1567 jj_la1[49] = jj_gen;
1568 jj_consume_token(-1);
1569 throw new ParseException();
1571 throw new Error("Missing return statement in function");
1574 static final public String UnaryExpressionNoPrefix() throws ParseException {
1577 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1580 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1582 token = jj_consume_token(PLUS);
1585 token = jj_consume_token(MINUS);
1588 jj_la1[50] = jj_gen;
1589 jj_consume_token(-1);
1590 throw new ParseException();
1592 expr = UnaryExpression();
1593 {if (true) return token.image + expr;}
1596 expr = PreIncrementExpression();
1597 {if (true) return expr;}
1600 expr = PreDecrementExpression();
1601 {if (true) return expr;}
1608 case INTEGER_LITERAL:
1609 case FLOATING_POINT_LITERAL:
1610 case STRING_LITERAL:
1616 expr = UnaryExpressionNotPlusMinus();
1617 {if (true) return expr;}
1620 jj_la1[51] = jj_gen;
1621 jj_consume_token(-1);
1622 throw new ParseException();
1624 throw new Error("Missing return statement in function");
1627 static final public String PreIncrementExpression() throws ParseException {
1629 jj_consume_token(INCR);
1630 expr = PrimaryExpression();
1631 {if (true) return "++"+expr;}
1632 throw new Error("Missing return statement in function");
1635 static final public String PreDecrementExpression() throws ParseException {
1637 jj_consume_token(DECR);
1638 expr = PrimaryExpression();
1639 {if (true) return "--"+expr;}
1640 throw new Error("Missing return statement in function");
1643 static final public String UnaryExpressionNotPlusMinus() throws ParseException {
1645 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1647 jj_consume_token(BANG);
1648 expr = UnaryExpression();
1649 {if (true) return "!" + expr;}
1652 jj_la1[52] = jj_gen;
1653 if (jj_2_3(2147483647)) {
1654 expr = CastExpression();
1655 {if (true) return expr;}
1657 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1663 expr = PostfixExpression();
1664 {if (true) return expr;}
1669 case INTEGER_LITERAL:
1670 case FLOATING_POINT_LITERAL:
1671 case STRING_LITERAL:
1673 {if (true) return expr;}
1676 jj_consume_token(LPAREN);
1677 expr = Expression();
1678 jj_consume_token(RPAREN);
1679 {if (true) return "("+expr+")";}
1682 jj_la1[53] = jj_gen;
1683 jj_consume_token(-1);
1684 throw new ParseException();
1688 throw new Error("Missing return statement in function");
1691 static final public String CastExpression() throws ParseException {
1692 final String type, expr;
1693 jj_consume_token(LPAREN);
1695 jj_consume_token(RPAREN);
1696 expr = UnaryExpression();
1697 {if (true) return "(" + type + ")" + expr;}
1698 throw new Error("Missing return statement in function");
1701 static final public String PostfixExpression() throws ParseException {
1703 Token operator = null;
1704 expr = PrimaryExpression();
1705 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1708 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1710 operator = jj_consume_token(INCR);
1713 operator = jj_consume_token(DECR);
1716 jj_la1[54] = jj_gen;
1717 jj_consume_token(-1);
1718 throw new ParseException();
1722 jj_la1[55] = jj_gen;
1725 if (operator == null) {
1726 {if (true) return expr;}
1728 {if (true) return expr + operator.image;}
1729 throw new Error("Missing return statement in function");
1732 static final public String PrimaryExpression() throws ParseException {
1733 final Token identifier;
1735 final StringBuffer buff = new StringBuffer();
1737 identifier = jj_consume_token(IDENTIFIER);
1738 jj_consume_token(STATICCLASSACCESS);
1739 expr = ClassIdentifier();
1740 buff.append(identifier.image).append("::").append(expr);
1743 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1750 jj_la1[56] = jj_gen;
1753 expr = PrimarySuffix();
1756 {if (true) return buff.toString();}
1758 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1763 expr = PrimaryPrefix();
1767 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1774 jj_la1[57] = jj_gen;
1777 expr = PrimarySuffix();
1780 {if (true) return buff.toString();}
1783 expr = ArrayDeclarator();
1784 {if (true) return "array" + expr;}
1787 jj_la1[58] = jj_gen;
1788 jj_consume_token(-1);
1789 throw new ParseException();
1792 throw new Error("Missing return statement in function");
1795 static final public String ArrayDeclarator() throws ParseException {
1797 jj_consume_token(ARRAY);
1798 expr = ArrayInitializer();
1799 {if (true) return "array" + expr;}
1800 throw new Error("Missing return statement in function");
1803 static final public String PrimaryPrefix() throws ParseException {
1806 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1808 token = jj_consume_token(IDENTIFIER);
1809 {if (true) return token.image;}
1812 jj_consume_token(NEW);
1813 expr = ClassIdentifier();
1814 {if (true) return "new " + expr;}
1818 expr = VariableDeclaratorId();
1819 {if (true) return expr;}
1822 jj_la1[59] = jj_gen;
1823 jj_consume_token(-1);
1824 throw new ParseException();
1826 throw new Error("Missing return statement in function");
1829 static final public String ClassIdentifier() throws ParseException {
1832 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1834 token = jj_consume_token(IDENTIFIER);
1835 {if (true) return token.image;}
1839 expr = VariableDeclaratorId();
1840 {if (true) return expr;}
1843 jj_la1[60] = jj_gen;
1844 jj_consume_token(-1);
1845 throw new ParseException();
1847 throw new Error("Missing return statement in function");
1850 static final public String PrimarySuffix() throws ParseException {
1852 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1855 {if (true) return expr;}
1859 expr = VariableSuffix();
1860 {if (true) return expr;}
1863 jj_la1[61] = jj_gen;
1864 jj_consume_token(-1);
1865 throw new ParseException();
1867 throw new Error("Missing return statement in function");
1870 static final public String VariableSuffix() throws ParseException {
1872 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1874 jj_consume_token(CLASSACCESS);
1875 expr = VariableName();
1876 {if (true) return "->" + expr;}
1879 jj_consume_token(LBRACKET);
1880 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1888 case INTEGER_LITERAL:
1889 case FLOATING_POINT_LITERAL:
1890 case STRING_LITERAL:
1902 expr = Expression();
1905 jj_la1[62] = jj_gen;
1909 jj_consume_token(RBRACKET);
1910 } catch (ParseException e) {
1911 errorMessage = "']' expected";
1913 {if (true) throw e;}
1916 {if (true) return "[]";}
1918 {if (true) return "[" + expr + "]";}
1921 jj_la1[63] = jj_gen;
1922 jj_consume_token(-1);
1923 throw new ParseException();
1925 throw new Error("Missing return statement in function");
1928 static final public String Literal() throws ParseException {
1931 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1932 case INTEGER_LITERAL:
1933 token = jj_consume_token(INTEGER_LITERAL);
1934 {if (true) return token.image;}
1936 case FLOATING_POINT_LITERAL:
1937 token = jj_consume_token(FLOATING_POINT_LITERAL);
1938 {if (true) return token.image;}
1940 case STRING_LITERAL:
1941 token = jj_consume_token(STRING_LITERAL);
1942 {if (true) return token.image;}
1946 expr = BooleanLiteral();
1947 {if (true) return expr;}
1950 expr = NullLiteral();
1951 {if (true) return expr;}
1954 jj_la1[64] = jj_gen;
1955 jj_consume_token(-1);
1956 throw new ParseException();
1958 throw new Error("Missing return statement in function");
1961 static final public String BooleanLiteral() throws ParseException {
1962 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1964 jj_consume_token(TRUE);
1965 {if (true) return "true";}
1968 jj_consume_token(FALSE);
1969 {if (true) return "false";}
1972 jj_la1[65] = jj_gen;
1973 jj_consume_token(-1);
1974 throw new ParseException();
1976 throw new Error("Missing return statement in function");
1979 static final public String NullLiteral() throws ParseException {
1980 jj_consume_token(NULL);
1981 {if (true) return "null";}
1982 throw new Error("Missing return statement in function");
1985 static final public String Arguments() throws ParseException {
1987 jj_consume_token(LPAREN);
1988 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1996 case INTEGER_LITERAL:
1997 case FLOATING_POINT_LITERAL:
1998 case STRING_LITERAL:
2010 expr = ArgumentList();
2013 jj_la1[66] = jj_gen;
2017 jj_consume_token(RPAREN);
2018 } catch (ParseException e) {
2019 errorMessage = "')' expected to close the argument list";
2021 {if (true) throw e;}
2024 {if (true) return "()";}
2026 {if (true) return "(" + expr + ")";}
2027 throw new Error("Missing return statement in function");
2030 static final public String ArgumentList() throws ParseException {
2032 final StringBuffer buff = new StringBuffer();
2033 expr = Expression();
2037 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2042 jj_la1[67] = jj_gen;
2045 jj_consume_token(COMMA);
2047 expr = Expression();
2048 } catch (ParseException e) {
2049 errorMessage = "expression expected after a comma in argument list";
2051 {if (true) throw e;}
2053 buff.append(",").append(expr);
2055 {if (true) return buff.toString();}
2056 throw new Error("Missing return statement in function");
2060 * Statement syntax follows.
2062 static final public void Statement() throws ParseException {
2066 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2068 jj_consume_token(SEMICOLON);
2071 jj_consume_token(PHPEND);
2074 jj_la1[68] = jj_gen;
2075 jj_consume_token(-1);
2076 throw new ParseException();
2078 } catch (ParseException e) {
2079 errorMessage = "';' expected";
2081 {if (true) throw e;}
2083 } else if (jj_2_6(2)) {
2086 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2100 StatementExpression();
2102 jj_consume_token(SEMICOLON);
2103 } catch (ParseException e) {
2104 errorMessage = "';' expected after expression";
2106 {if (true) throw e;}
2131 ContinueStatement();
2144 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2146 jj_consume_token(AT);
2149 jj_la1[69] = jj_gen;
2161 jj_la1[70] = jj_gen;
2162 jj_consume_token(-1);
2163 throw new ParseException();
2168 static final public void IncludeStatement() throws ParseException {
2170 final int pos = jj_input_stream.bufpos;
2171 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2173 jj_consume_token(REQUIRE);
2174 expr = Expression();
2175 if (currentSegment != null) {
2176 currentSegment.add(new PHPReqIncDeclaration(currentSegment, "require",pos,expr));
2179 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2181 jj_consume_token(SEMICOLON);
2184 jj_consume_token(138);
2187 jj_la1[71] = jj_gen;
2188 jj_consume_token(-1);
2189 throw new ParseException();
2191 } catch (ParseException e) {
2192 errorMessage = "';' expected";
2194 {if (true) throw e;}
2198 jj_consume_token(REQUIRE_ONCE);
2199 expr = Expression();
2200 if (currentSegment != null) {
2201 currentSegment.add(new PHPReqIncDeclaration(currentSegment, "require_once",pos,expr));
2204 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2206 jj_consume_token(SEMICOLON);
2209 jj_consume_token(138);
2212 jj_la1[72] = jj_gen;
2213 jj_consume_token(-1);
2214 throw new ParseException();
2216 } catch (ParseException e) {
2217 errorMessage = "';' expected";
2219 {if (true) throw e;}
2223 jj_consume_token(INCLUDE);
2224 expr = Expression();
2225 if (currentSegment != null) {
2226 currentSegment.add(new PHPReqIncDeclaration(currentSegment, "include",pos,expr));
2229 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2231 jj_consume_token(SEMICOLON);
2234 jj_consume_token(138);
2237 jj_la1[73] = jj_gen;
2238 jj_consume_token(-1);
2239 throw new ParseException();
2241 } catch (ParseException e) {
2242 errorMessage = "';' expected";
2244 {if (true) throw e;}
2248 jj_consume_token(INCLUDE_ONCE);
2249 expr = Expression();
2250 if (currentSegment != null) {
2251 currentSegment.add(new PHPReqIncDeclaration(currentSegment, "include_once",pos,expr));
2254 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2256 jj_consume_token(SEMICOLON);
2259 jj_consume_token(138);
2262 jj_la1[74] = jj_gen;
2263 jj_consume_token(-1);
2264 throw new ParseException();
2266 } catch (ParseException e) {
2267 errorMessage = "';' expected";
2269 {if (true) throw e;}
2273 jj_la1[75] = jj_gen;
2274 jj_consume_token(-1);
2275 throw new ParseException();
2279 static final public String PrintExpression() throws ParseException {
2280 final StringBuffer buff = new StringBuffer("print ");
2282 jj_consume_token(PRINT);
2283 expr = Expression();
2285 {if (true) return buff.toString();}
2286 throw new Error("Missing return statement in function");
2289 static final public String ListExpression() throws ParseException {
2290 final StringBuffer buff = new StringBuffer("list(");
2292 jj_consume_token(LIST);
2293 jj_consume_token(LPAREN);
2294 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2297 expr = VariableDeclaratorId();
2301 jj_la1[76] = jj_gen;
2304 jj_consume_token(COMMA);
2306 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2309 expr = VariableDeclaratorId();
2313 jj_la1[77] = jj_gen;
2316 jj_consume_token(RPAREN);
2318 {if (true) return buff.toString();}
2319 throw new Error("Missing return statement in function");
2322 static final public void EchoStatement() throws ParseException {
2323 jj_consume_token(ECHO);
2327 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2332 jj_la1[78] = jj_gen;
2335 jj_consume_token(COMMA);
2339 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2341 jj_consume_token(SEMICOLON);
2344 jj_consume_token(138);
2347 jj_la1[79] = jj_gen;
2348 jj_consume_token(-1);
2349 throw new ParseException();
2351 } catch (ParseException e) {
2352 errorMessage = "';' expected after 'echo' statement";
2354 {if (true) throw e;}
2358 static final public void GlobalStatement() throws ParseException {
2359 jj_consume_token(GLOBAL);
2360 VariableDeclaratorId();
2363 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2368 jj_la1[80] = jj_gen;
2371 jj_consume_token(COMMA);
2372 VariableDeclaratorId();
2375 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2377 jj_consume_token(SEMICOLON);
2380 jj_consume_token(138);
2383 jj_la1[81] = jj_gen;
2384 jj_consume_token(-1);
2385 throw new ParseException();
2387 } catch (ParseException e) {
2388 errorMessage = "';' expected";
2390 {if (true) throw e;}
2394 static final public void StaticStatement() throws ParseException {
2395 jj_consume_token(STATIC);
2396 VariableDeclarator();
2399 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2404 jj_la1[82] = jj_gen;
2407 jj_consume_token(COMMA);
2408 VariableDeclarator();
2411 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2413 jj_consume_token(SEMICOLON);
2416 jj_consume_token(138);
2419 jj_la1[83] = jj_gen;
2420 jj_consume_token(-1);
2421 throw new ParseException();
2423 } catch (ParseException e) {
2424 errorMessage = "';' expected";
2426 {if (true) throw e;}
2430 static final public void LabeledStatement() throws ParseException {
2431 jj_consume_token(IDENTIFIER);
2432 jj_consume_token(COLON);
2436 static final public void Block() throws ParseException {
2438 jj_consume_token(LBRACE);
2439 } catch (ParseException e) {
2440 errorMessage = "'{' expected";
2442 {if (true) throw e;}
2446 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2472 case INTEGER_LITERAL:
2473 case FLOATING_POINT_LITERAL:
2474 case STRING_LITERAL:
2491 jj_la1[84] = jj_gen;
2496 jj_consume_token(RBRACE);
2499 static final public void BlockStatement() throws ParseException {
2500 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2524 case INTEGER_LITERAL:
2525 case FLOATING_POINT_LITERAL:
2526 case STRING_LITERAL:
2546 MethodDeclaration();
2549 jj_la1[85] = jj_gen;
2550 jj_consume_token(-1);
2551 throw new ParseException();
2555 static final public void LocalVariableDeclaration() throws ParseException {
2556 LocalVariableDeclarator();
2559 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2564 jj_la1[86] = jj_gen;
2567 jj_consume_token(COMMA);
2568 LocalVariableDeclarator();
2572 static final public void LocalVariableDeclarator() throws ParseException {
2573 VariableDeclaratorId();
2574 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2576 jj_consume_token(ASSIGN);
2580 jj_la1[87] = jj_gen;
2585 static final public void EmptyStatement() throws ParseException {
2586 jj_consume_token(SEMICOLON);
2589 static final public void StatementExpression() throws ParseException {
2590 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2592 PreIncrementExpression();
2595 PreDecrementExpression();
2602 PrimaryExpression();
2603 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2618 case RSIGNEDSHIFTASSIGN:
2619 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2621 jj_consume_token(INCR);
2624 jj_consume_token(DECR);
2638 case RSIGNEDSHIFTASSIGN:
2639 AssignmentOperator();
2643 jj_la1[88] = jj_gen;
2644 jj_consume_token(-1);
2645 throw new ParseException();
2649 jj_la1[89] = jj_gen;
2654 jj_la1[90] = jj_gen;
2655 jj_consume_token(-1);
2656 throw new ParseException();
2660 static final public void SwitchStatement() throws ParseException {
2661 jj_consume_token(SWITCH);
2662 jj_consume_token(LPAREN);
2664 jj_consume_token(RPAREN);
2665 jj_consume_token(LBRACE);
2668 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2674 jj_la1[91] = jj_gen;
2680 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2706 case INTEGER_LITERAL:
2707 case FLOATING_POINT_LITERAL:
2708 case STRING_LITERAL:
2725 jj_la1[92] = jj_gen;
2731 jj_consume_token(RBRACE);
2734 static final public void SwitchLabel() throws ParseException {
2735 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2737 jj_consume_token(CASE);
2739 jj_consume_token(COLON);
2742 jj_consume_token(_DEFAULT);
2743 jj_consume_token(COLON);
2746 jj_la1[93] = jj_gen;
2747 jj_consume_token(-1);
2748 throw new ParseException();
2752 static final public void IfStatement() throws ParseException {
2754 final int pos = jj_input_stream.bufpos;
2755 token = jj_consume_token(IF);
2757 IfStatement0(pos,pos+token.image.length());
2760 static final public void Condition(final String keyword) throws ParseException {
2762 jj_consume_token(LPAREN);
2763 } catch (ParseException e) {
2764 errorMessage = "'(' expected after " + keyword + " keyword";
2766 {if (true) throw e;}
2770 jj_consume_token(RPAREN);
2771 } catch (ParseException e) {
2772 errorMessage = "')' expected after " + keyword + " keyword";
2774 {if (true) throw e;}
2778 static final public void IfStatement0(final int start,final int end) throws ParseException {
2779 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2781 jj_consume_token(COLON);
2784 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2808 case INTEGER_LITERAL:
2809 case FLOATING_POINT_LITERAL:
2810 case STRING_LITERAL:
2827 jj_la1[94] = jj_gen;
2834 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2839 jj_la1[95] = jj_gen;
2842 ElseIfStatementColon();
2844 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2846 ElseStatementColon();
2849 jj_la1[96] = jj_gen;
2853 setMarker(fileToParse,
2854 "Ugly syntax detected, you should if () {...} instead of if (): ... endif;",
2858 "Line " + token.beginLine);
2859 } catch (CoreException e) {
2860 PHPeclipsePlugin.log(e);
2863 jj_consume_token(ENDIF);
2864 } catch (ParseException e) {
2865 errorMessage = "'endif' expected";
2867 {if (true) throw e;}
2870 jj_consume_token(SEMICOLON);
2871 } catch (ParseException e) {
2872 errorMessage = "';' expected 'endif' keyword";
2874 {if (true) throw e;}
2900 case INTEGER_LITERAL:
2901 case FLOATING_POINT_LITERAL:
2902 case STRING_LITERAL:
2919 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2924 jj_la1[97] = jj_gen;
2929 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2931 jj_consume_token(ELSE);
2935 jj_la1[98] = jj_gen;
2940 jj_la1[99] = jj_gen;
2941 jj_consume_token(-1);
2942 throw new ParseException();
2946 static final public void ElseIfStatementColon() throws ParseException {
2947 jj_consume_token(ELSEIF);
2948 Condition("elseif");
2949 jj_consume_token(COLON);
2952 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2976 case INTEGER_LITERAL:
2977 case FLOATING_POINT_LITERAL:
2978 case STRING_LITERAL:
2995 jj_la1[100] = jj_gen;
3002 static final public void ElseStatementColon() throws ParseException {
3003 jj_consume_token(ELSE);
3004 jj_consume_token(COLON);
3007 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3031 case INTEGER_LITERAL:
3032 case FLOATING_POINT_LITERAL:
3033 case STRING_LITERAL:
3050 jj_la1[101] = jj_gen;
3057 static final public void ElseIfStatement() throws ParseException {
3058 jj_consume_token(ELSEIF);
3059 Condition("elseif");
3063 static final public void WhileStatement() throws ParseException {
3065 final int pos = jj_input_stream.bufpos;
3066 token = jj_consume_token(WHILE);
3068 WhileStatement0(pos,pos + token.image.length());
3071 static final public void WhileStatement0(final int start, final int end) throws ParseException {
3072 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3074 jj_consume_token(COLON);
3077 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3101 case INTEGER_LITERAL:
3102 case FLOATING_POINT_LITERAL:
3103 case STRING_LITERAL:
3120 jj_la1[102] = jj_gen;
3126 setMarker(fileToParse,
3127 "Ugly syntax detected, you should while () {...} instead of while (): ... endwhile;",
3131 "Line " + token.beginLine);
3132 } catch (CoreException e) {
3133 PHPeclipsePlugin.log(e);
3136 jj_consume_token(ENDWHILE);
3137 } catch (ParseException e) {
3138 errorMessage = "'endwhile' expected";
3140 {if (true) throw e;}
3143 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3145 jj_consume_token(SEMICOLON);
3148 jj_consume_token(138);
3151 jj_la1[103] = jj_gen;
3152 jj_consume_token(-1);
3153 throw new ParseException();
3155 } catch (ParseException e) {
3156 errorMessage = "';' expected after 'endwhile' keyword";
3158 {if (true) throw e;}
3184 case INTEGER_LITERAL:
3185 case FLOATING_POINT_LITERAL:
3186 case STRING_LITERAL:
3203 jj_la1[104] = jj_gen;
3204 jj_consume_token(-1);
3205 throw new ParseException();
3209 static final public void DoStatement() throws ParseException {
3210 jj_consume_token(DO);
3212 jj_consume_token(WHILE);
3215 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3217 jj_consume_token(SEMICOLON);
3220 jj_consume_token(138);
3223 jj_la1[105] = jj_gen;
3224 jj_consume_token(-1);
3225 throw new ParseException();
3227 } catch (ParseException e) {
3228 errorMessage = "';' expected";
3230 {if (true) throw e;}
3234 static final public void ForeachStatement() throws ParseException {
3235 jj_consume_token(FOREACH);
3237 jj_consume_token(LPAREN);
3238 } catch (ParseException e) {
3239 errorMessage = "'(' expected after 'foreach' keyword";
3241 {if (true) throw e;}
3245 } catch (ParseException e) {
3246 errorMessage = "variable expected";
3248 {if (true) throw e;}
3250 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3256 jj_la1[106] = jj_gen;
3260 jj_consume_token(AS);
3261 } catch (ParseException e) {
3262 errorMessage = "'as' expected";
3264 {if (true) throw e;}
3268 } catch (ParseException e) {
3269 errorMessage = "variable expected";
3271 {if (true) throw e;}
3273 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3275 jj_consume_token(ARRAYASSIGN);
3279 jj_la1[107] = jj_gen;
3283 jj_consume_token(RPAREN);
3284 } catch (ParseException e) {
3285 errorMessage = "')' expected after 'foreach' keyword";
3287 {if (true) throw e;}
3291 } catch (ParseException e) {
3292 if (errorMessage != null) {if (true) throw e;}
3293 errorMessage = "statement expected";
3295 {if (true) throw e;}
3299 static final public void ForStatement() throws ParseException {
3301 final int pos = jj_input_stream.bufpos;
3302 token = jj_consume_token(FOR);
3304 jj_consume_token(LPAREN);
3305 } catch (ParseException e) {
3306 errorMessage = "'(' expected after 'for' keyword";
3308 {if (true) throw e;}
3310 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3321 jj_la1[108] = jj_gen;
3324 jj_consume_token(SEMICOLON);
3325 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3333 case INTEGER_LITERAL:
3334 case FLOATING_POINT_LITERAL:
3335 case STRING_LITERAL:
3350 jj_la1[109] = jj_gen;
3353 jj_consume_token(SEMICOLON);
3354 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3365 jj_la1[110] = jj_gen;
3368 jj_consume_token(RPAREN);
3369 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3393 case INTEGER_LITERAL:
3394 case FLOATING_POINT_LITERAL:
3395 case STRING_LITERAL:
3412 jj_consume_token(COLON);
3415 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3439 case INTEGER_LITERAL:
3440 case FLOATING_POINT_LITERAL:
3441 case STRING_LITERAL:
3458 jj_la1[111] = jj_gen;
3464 setMarker(fileToParse,
3465 "Ugly syntax detected, you should for () {...} instead of for (): ... endfor;",
3467 pos+token.image.length(),
3469 "Line " + token.beginLine);
3470 } catch (CoreException e) {
3471 PHPeclipsePlugin.log(e);
3474 jj_consume_token(ENDFOR);
3475 } catch (ParseException e) {
3476 errorMessage = "'endfor' expected";
3478 {if (true) throw e;}
3481 jj_consume_token(SEMICOLON);
3482 } catch (ParseException e) {
3483 errorMessage = "';' expected 'endfor' keyword";
3485 {if (true) throw e;}
3489 jj_la1[112] = jj_gen;
3490 jj_consume_token(-1);
3491 throw new ParseException();
3495 static final public void ForInit() throws ParseException {
3496 if (jj_2_7(2147483647)) {
3497 LocalVariableDeclaration();
3499 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3507 StatementExpressionList();
3510 jj_la1[113] = jj_gen;
3511 jj_consume_token(-1);
3512 throw new ParseException();
3517 static final public void StatementExpressionList() throws ParseException {
3518 StatementExpression();
3521 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3526 jj_la1[114] = jj_gen;
3529 jj_consume_token(COMMA);
3530 StatementExpression();
3534 static final public void ForUpdate() throws ParseException {
3535 StatementExpressionList();
3538 static final public void BreakStatement() throws ParseException {
3539 jj_consume_token(BREAK);
3540 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3542 jj_consume_token(IDENTIFIER);
3545 jj_la1[115] = jj_gen;
3548 jj_consume_token(SEMICOLON);
3551 static final public void ContinueStatement() throws ParseException {
3552 jj_consume_token(CONTINUE);
3553 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3555 jj_consume_token(IDENTIFIER);
3558 jj_la1[116] = jj_gen;
3561 jj_consume_token(SEMICOLON);
3564 static final public void ReturnStatement() throws ParseException {
3565 jj_consume_token(RETURN);
3566 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3574 case INTEGER_LITERAL:
3575 case FLOATING_POINT_LITERAL:
3576 case STRING_LITERAL:
3591 jj_la1[117] = jj_gen;
3594 jj_consume_token(SEMICOLON);
3597 static final private boolean jj_2_1(int xla) {
3598 jj_la = xla; jj_lastpos = jj_scanpos = token;
3599 boolean retval = !jj_3_1();
3604 static final private boolean jj_2_2(int xla) {
3605 jj_la = xla; jj_lastpos = jj_scanpos = token;
3606 boolean retval = !jj_3_2();
3611 static final private boolean jj_2_3(int xla) {
3612 jj_la = xla; jj_lastpos = jj_scanpos = token;
3613 boolean retval = !jj_3_3();
3618 static final private boolean jj_2_4(int xla) {
3619 jj_la = xla; jj_lastpos = jj_scanpos = token;
3620 boolean retval = !jj_3_4();
3625 static final private boolean jj_2_5(int xla) {
3626 jj_la = xla; jj_lastpos = jj_scanpos = token;
3627 boolean retval = !jj_3_5();
3632 static final private boolean jj_2_6(int xla) {
3633 jj_la = xla; jj_lastpos = jj_scanpos = token;
3634 boolean retval = !jj_3_6();
3639 static final private boolean jj_2_7(int xla) {
3640 jj_la = xla; jj_lastpos = jj_scanpos = token;
3641 boolean retval = !jj_3_7();
3646 static final private boolean jj_3R_118() {
3647 if (jj_scan_token(EQ)) return true;
3648 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3652 static final private boolean jj_3_5() {
3653 if (jj_3R_41()) return true;
3654 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3659 if (jj_3R_43()) return true;
3660 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3661 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3665 static final private boolean jj_3R_115() {
3676 if (jj_3R_122()) return true;
3677 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3678 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3679 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3680 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3681 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3682 if (jj_3R_114()) return true;
3683 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3687 static final private boolean jj_3R_99() {
3688 if (jj_scan_token(LBRACE)) return true;
3689 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3690 if (jj_3R_41()) return true;
3691 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3692 if (jj_scan_token(RBRACE)) return true;
3693 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3697 static final private boolean jj_3R_71() {
3698 if (jj_scan_token(IDENTIFIER)) return true;
3699 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3702 if (jj_3R_108()) jj_scanpos = xsp;
3703 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3707 static final private boolean jj_3R_112() {
3708 if (jj_3R_114()) return true;
3709 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3713 if (jj_3R_115()) { jj_scanpos = xsp; break; }
3714 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3719 static final private boolean jj_3R_70() {
3720 if (jj_scan_token(LBRACE)) return true;
3721 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3722 if (jj_3R_41()) return true;
3723 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3724 if (jj_scan_token(RBRACE)) return true;
3725 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3729 static final private boolean jj_3R_62() {
3738 if (jj_3R_73()) return true;
3739 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3740 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3741 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3742 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3746 static final private boolean jj_3R_94() {
3747 if (jj_scan_token(DOLLAR)) return true;
3748 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3749 if (jj_3R_62()) return true;
3750 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3754 static final private boolean jj_3R_113() {
3755 if (jj_scan_token(BIT_AND)) return true;
3756 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3757 if (jj_3R_112()) return true;
3758 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3762 static final private boolean jj_3R_196() {
3763 if (jj_scan_token(COMMA)) return true;
3764 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3765 if (jj_3R_41()) return true;
3766 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3770 static final private boolean jj_3R_195() {
3771 if (jj_3R_41()) return true;
3772 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3776 if (jj_3R_196()) { jj_scanpos = xsp; break; }
3777 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3782 static final private boolean jj_3R_93() {
3783 if (jj_scan_token(DOLLAR_ID)) return true;
3784 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3787 if (jj_3R_99()) jj_scanpos = xsp;
3788 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3792 static final private boolean jj_3R_77() {
3797 if (jj_3R_94()) return true;
3798 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3799 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3803 static final private boolean jj_3R_110() {
3804 if (jj_3R_112()) return true;
3805 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3809 if (jj_3R_113()) { jj_scanpos = xsp; break; }
3810 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3815 static final private boolean jj_3R_193() {
3816 if (jj_3R_195()) return true;
3817 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3821 static final private boolean jj_3_1() {
3822 if (jj_3R_38()) return true;
3823 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3827 static final private boolean jj_3R_111() {
3828 if (jj_scan_token(XOR)) return true;
3829 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3830 if (jj_3R_110()) return true;
3831 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3835 static final private boolean jj_3R_68() {
3836 if (jj_3R_77()) return true;
3837 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3841 if (jj_3_1()) { jj_scanpos = xsp; break; }
3842 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3847 static final private boolean jj_3R_191() {
3848 if (jj_scan_token(LPAREN)) return true;
3849 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3852 if (jj_3R_193()) jj_scanpos = xsp;
3853 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3854 if (jj_scan_token(RPAREN)) return true;
3855 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3859 static final private boolean jj_3R_106() {
3860 if (jj_3R_110()) return true;
3861 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3865 if (jj_3R_111()) { jj_scanpos = xsp; break; }
3866 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3871 static final private boolean jj_3R_174() {
3872 if (jj_scan_token(NULL)) return true;
3873 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3877 static final private boolean jj_3R_107() {
3878 if (jj_scan_token(BIT_OR)) return true;
3879 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3880 if (jj_3R_106()) return true;
3881 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3885 static final private boolean jj_3R_181() {
3886 if (jj_scan_token(FALSE)) return true;
3887 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3891 static final private boolean jj_3R_100() {
3892 if (jj_3R_106()) return true;
3893 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3897 if (jj_3R_107()) { jj_scanpos = xsp; break; }
3898 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3903 static final private boolean jj_3R_180() {
3904 if (jj_scan_token(TRUE)) return true;
3905 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3909 static final private boolean jj_3R_173() {
3914 if (jj_3R_181()) return true;
3915 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3916 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3920 static final private boolean jj_3R_103() {
3921 if (jj_scan_token(_ANDL)) return true;
3922 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3926 static final private boolean jj_3R_169() {
3927 if (jj_3R_174()) return true;
3928 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3932 static final private boolean jj_3R_101() {
3933 if (jj_scan_token(DOT)) return true;
3934 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3935 if (jj_3R_100()) return true;
3936 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3940 static final private boolean jj_3R_168() {
3941 if (jj_3R_173()) return true;
3942 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3946 static final private boolean jj_3R_95() {
3947 if (jj_3R_100()) return true;
3948 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3952 if (jj_3R_101()) { jj_scanpos = xsp; break; }
3953 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3958 static final private boolean jj_3R_167() {
3959 if (jj_scan_token(STRING_LITERAL)) return true;
3960 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3964 static final private boolean jj_3R_166() {
3965 if (jj_scan_token(FLOATING_POINT_LITERAL)) return true;
3966 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3970 static final private boolean jj_3R_162() {
3981 if (jj_3R_169()) return true;
3982 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3983 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3984 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3985 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3986 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3990 static final private boolean jj_3R_165() {
3991 if (jj_scan_token(INTEGER_LITERAL)) return true;
3992 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3996 static final private boolean jj_3R_98() {
3997 if (jj_scan_token(_ORL)) return true;
3998 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4002 static final private boolean jj_3R_102() {
4003 if (jj_scan_token(SC_AND)) return true;
4004 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4008 static final private boolean jj_3R_96() {
4013 if (jj_3R_103()) return true;
4014 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4015 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4016 if (jj_3R_95()) return true;
4017 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4021 static final private boolean jj_3R_63() {
4022 if (jj_3R_41()) return true;
4023 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4027 static final private boolean jj_3R_78() {
4028 if (jj_3R_95()) return true;
4029 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4033 if (jj_3R_96()) { jj_scanpos = xsp; break; }
4034 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4039 static final private boolean jj_3R_75() {
4040 if (jj_scan_token(HOOK)) return true;
4041 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4042 if (jj_3R_41()) return true;
4043 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4044 if (jj_scan_token(COLON)) return true;
4045 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4046 if (jj_3R_66()) return true;
4047 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4051 static final private boolean jj_3R_47() {
4052 if (jj_scan_token(LBRACKET)) return true;
4053 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4056 if (jj_3R_63()) jj_scanpos = xsp;
4057 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4058 if (jj_scan_token(RBRACKET)) return true;
4059 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4063 static final private boolean jj_3R_46() {
4064 if (jj_scan_token(CLASSACCESS)) return true;
4065 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4066 if (jj_3R_62()) return true;
4067 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4071 static final private boolean jj_3R_38() {
4076 if (jj_3R_47()) return true;
4077 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4078 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4082 static final private boolean jj_3R_97() {
4083 if (jj_scan_token(SC_OR)) return true;
4084 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4088 static final private boolean jj_3R_79() {
4093 if (jj_3R_98()) return true;
4094 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4095 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4096 if (jj_3R_78()) return true;
4097 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4101 static final private boolean jj_3R_74() {
4102 if (jj_3R_78()) return true;
4103 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4107 if (jj_3R_79()) { jj_scanpos = xsp; break; }
4108 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4113 static final private boolean jj_3R_188() {
4114 if (jj_3R_38()) return true;
4115 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4119 static final private boolean jj_3R_187() {
4120 if (jj_3R_191()) return true;
4121 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4125 static final private boolean jj_3R_183() {
4130 if (jj_3R_188()) return true;
4131 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4132 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4136 static final private boolean jj_3R_69() {
4137 if (jj_scan_token(ASSIGN)) return true;
4138 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4139 if (jj_3R_41()) return true;
4140 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4144 static final private boolean jj_3R_61() {
4145 if (jj_scan_token(COMMA)) return true;
4146 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4147 if (jj_3R_60()) return true;
4148 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4152 static final private boolean jj_3R_190() {
4153 if (jj_3R_68()) return true;
4154 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4158 static final private boolean jj_3R_189() {
4159 if (jj_scan_token(IDENTIFIER)) return true;
4160 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4164 static final private boolean jj_3R_185() {
4169 if (jj_3R_190()) return true;
4170 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4171 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4175 static final private boolean jj_3R_66() {
4176 if (jj_3R_74()) return true;
4177 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4180 if (jj_3R_75()) jj_scanpos = xsp;
4181 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4185 static final private boolean jj_3R_177() {
4186 if (jj_3R_68()) return true;
4187 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4191 static final private boolean jj_3R_92() {
4192 if (jj_scan_token(TILDEEQUAL)) return true;
4193 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4197 static final private boolean jj_3R_91() {
4198 if (jj_scan_token(DOTASSIGN)) return true;
4199 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4203 static final private boolean jj_3R_176() {
4204 if (jj_scan_token(NEW)) return true;
4205 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4206 if (jj_3R_185()) return true;
4207 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4211 static final private boolean jj_3R_90() {
4212 if (jj_scan_token(ORASSIGN)) return true;
4213 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4217 static final private boolean jj_3R_60() {
4218 if (jj_3R_68()) return true;
4219 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4222 if (jj_3R_69()) jj_scanpos = xsp;
4223 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4227 static final private boolean jj_3R_179() {
4228 if (jj_scan_token(DECR)) return true;
4229 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4233 static final private boolean jj_3R_89() {
4234 if (jj_scan_token(XORASSIGN)) return true;
4235 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4239 static final private boolean jj_3R_175() {
4240 if (jj_scan_token(IDENTIFIER)) return true;
4241 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4245 static final private boolean jj_3R_170() {
4252 if (jj_3R_177()) return true;
4253 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4254 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4255 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4259 static final private boolean jj_3R_88() {
4260 if (jj_scan_token(ANDASSIGN)) return true;
4261 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4265 static final private boolean jj_3R_87() {
4266 if (jj_scan_token(RSIGNEDSHIFTASSIGN)) return true;
4267 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4271 static final private boolean jj_3R_45() {
4272 if (jj_3R_60()) return true;
4273 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4277 if (jj_3R_61()) { jj_scanpos = xsp; break; }
4278 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4283 static final private boolean jj_3R_86() {
4284 if (jj_scan_token(LSHIFTASSIGN)) return true;
4285 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4289 static final private boolean jj_3R_85() {
4290 if (jj_scan_token(MINUSASSIGN)) return true;
4291 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4295 static final private boolean jj_3R_84() {
4296 if (jj_scan_token(PLUSASSIGN)) return true;
4297 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4301 static final private boolean jj_3R_171() {
4302 if (jj_scan_token(ARRAY)) return true;
4303 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4304 if (jj_3R_184()) return true;
4305 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4309 static final private boolean jj_3R_83() {
4310 if (jj_scan_token(REMASSIGN)) return true;
4311 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4315 static final private boolean jj_3R_82() {
4316 if (jj_scan_token(SLASHASSIGN)) return true;
4317 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4321 static final private boolean jj_3R_81() {
4322 if (jj_scan_token(STARASSIGN)) return true;
4323 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4327 static final private boolean jj_3R_80() {
4328 if (jj_scan_token(ASSIGN)) return true;
4329 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4333 static final private boolean jj_3R_76() {
4360 if (jj_3R_92()) return true;
4361 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4362 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4363 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4364 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4365 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4366 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4367 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4368 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4369 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4370 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4371 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4372 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4373 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4377 static final private boolean jj_3R_178() {
4378 if (jj_scan_token(INCR)) return true;
4379 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4383 static final private boolean jj_3R_164() {
4384 if (jj_3R_171()) return true;
4385 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4389 static final private boolean jj_3R_172() {
4394 if (jj_3R_179()) return true;
4395 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4396 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4400 static final private boolean jj_3R_182() {
4401 if (jj_3R_183()) return true;
4402 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4406 static final private boolean jj_3R_163() {
4407 if (jj_3R_170()) return true;
4408 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4412 if (jj_3R_182()) { jj_scanpos = xsp; break; }
4413 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4418 static final private boolean jj_3R_186() {
4419 if (jj_3R_183()) return true;
4420 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4424 static final private boolean jj_3R_67() {
4425 if (jj_3R_76()) return true;
4426 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4427 if (jj_3R_41()) return true;
4428 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4432 static final private boolean jj_3_4() {
4433 if (jj_scan_token(IDENTIFIER)) return true;
4434 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4435 if (jj_scan_token(STATICCLASSACCESS)) return true;
4436 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4437 if (jj_3R_185()) return true;
4438 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4442 if (jj_3R_186()) { jj_scanpos = xsp; break; }
4443 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4448 static final private boolean jj_3R_159() {
4455 if (jj_3R_164()) return true;
4456 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4457 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4458 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4462 static final private boolean jj_3R_44() {
4463 if (jj_scan_token(IDENTIFIER)) return true;
4464 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4465 if (jj_scan_token(COLON)) return true;
4466 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4470 static final private boolean jj_3R_59() {
4471 if (jj_3R_66()) return true;
4472 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4475 if (jj_3R_67()) jj_scanpos = xsp;
4476 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4480 static final private boolean jj_3R_58() {
4481 if (jj_3R_65()) return true;
4482 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4486 static final private boolean jj_3R_41() {
4493 if (jj_3R_59()) return true;
4494 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4495 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4496 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4500 static final private boolean jj_3R_57() {
4501 if (jj_3R_64()) return true;
4502 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4506 static final private boolean jj_3R_161() {
4507 if (jj_3R_159()) return true;
4508 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4511 if (jj_3R_172()) jj_scanpos = xsp;
4512 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4516 static final private boolean jj_3R_56() {
4517 if (jj_scan_token(OBJECT)) return true;
4518 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4522 static final private boolean jj_3R_55() {
4523 if (jj_scan_token(INTEGER)) return true;
4524 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4528 static final private boolean jj_3R_54() {
4529 if (jj_scan_token(INT)) return true;
4530 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4534 static final private boolean jj_3R_160() {
4535 if (jj_scan_token(LPAREN)) return true;
4536 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4537 if (jj_3R_40()) return true;
4538 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4539 if (jj_scan_token(RPAREN)) return true;
4540 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4541 if (jj_3R_134()) return true;
4542 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4546 static final private boolean jj_3R_53() {
4547 if (jj_scan_token(FLOAT)) return true;
4548 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4552 static final private boolean jj_3R_52() {
4553 if (jj_scan_token(DOUBLE)) return true;
4554 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4558 static final private boolean jj_3_3() {
4559 if (jj_scan_token(LPAREN)) return true;
4560 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4561 if (jj_3R_40()) return true;
4562 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4563 if (jj_scan_token(RPAREN)) return true;
4564 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4568 static final private boolean jj_3R_51() {
4569 if (jj_scan_token(REAL)) return true;
4570 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4574 static final private boolean jj_3R_158() {
4575 if (jj_scan_token(LPAREN)) return true;
4576 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4577 if (jj_3R_41()) return true;
4578 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4579 if (jj_scan_token(RPAREN)) return true;
4580 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4584 static final private boolean jj_3R_50() {
4585 if (jj_scan_token(BOOLEAN)) return true;
4586 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4590 static final private boolean jj_3R_157() {
4591 if (jj_3R_162()) return true;
4592 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4596 static final private boolean jj_3R_49() {
4597 if (jj_scan_token(BOOL)) return true;
4598 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4602 static final private boolean jj_3R_156() {
4603 if (jj_3R_161()) return true;
4604 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4608 static final private boolean jj_3R_40() {
4627 if (jj_3R_56()) return true;
4628 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4629 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4630 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4631 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4632 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4633 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4634 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4635 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4636 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4640 static final private boolean jj_3R_48() {
4641 if (jj_scan_token(STRING)) return true;
4642 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4646 static final private boolean jj_3R_155() {
4647 if (jj_3R_160()) return true;
4648 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4652 static final private boolean jj_3R_153() {
4663 if (jj_3R_158()) return true;
4664 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4665 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4666 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4667 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4668 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4672 static final private boolean jj_3R_154() {
4673 if (jj_scan_token(BANG)) return true;
4674 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4675 if (jj_3R_134()) return true;
4676 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4680 static final private boolean jj_3R_105() {
4681 if (jj_3R_68()) return true;
4682 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4686 static final private boolean jj_3R_152() {
4687 if (jj_scan_token(DECR)) return true;
4688 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4689 if (jj_3R_159()) return true;
4690 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4694 static final private boolean jj_3R_104() {
4695 if (jj_3R_68()) return true;
4696 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4700 static final private boolean jj_3_7() {
4701 if (jj_3R_45()) return true;
4702 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4706 static final private boolean jj_3R_65() {
4707 if (jj_scan_token(LIST)) return true;
4708 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4709 if (jj_scan_token(LPAREN)) return true;
4710 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4713 if (jj_3R_104()) jj_scanpos = xsp;
4714 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4715 if (jj_scan_token(COMMA)) return true;
4716 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4718 if (jj_3R_105()) jj_scanpos = xsp;
4719 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4720 if (jj_scan_token(RPAREN)) return true;
4721 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4725 static final private boolean jj_3R_151() {
4726 if (jj_scan_token(INCR)) return true;
4727 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4728 if (jj_3R_159()) return true;
4729 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4733 static final private boolean jj_3R_150() {
4734 if (jj_scan_token(MINUS)) return true;
4735 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4739 static final private boolean jj_3R_64() {
4740 if (jj_scan_token(PRINT)) return true;
4741 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4742 if (jj_3R_41()) return true;
4743 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4747 static final private boolean jj_3R_148() {
4748 if (jj_3R_153()) return true;
4749 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4753 static final private boolean jj_3R_147() {
4754 if (jj_3R_152()) return true;
4755 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4759 static final private boolean jj_3R_142() {
4760 if (jj_scan_token(REM)) return true;
4761 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4765 static final private boolean jj_3R_146() {
4766 if (jj_3R_151()) return true;
4767 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4771 static final private boolean jj_3R_149() {
4772 if (jj_scan_token(PLUS)) return true;
4773 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4777 static final private boolean jj_3R_143() {
4786 if (jj_3R_148()) return true;
4787 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4788 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4789 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4790 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4794 static final private boolean jj_3R_145() {
4799 if (jj_3R_150()) return true;
4800 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4801 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4802 if (jj_3R_134()) return true;
4803 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4807 static final private boolean jj_3R_144() {
4808 if (jj_scan_token(AT)) return true;
4809 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4813 static final private boolean jj_3R_139() {
4817 if (jj_3R_144()) { jj_scanpos = xsp; break; }
4818 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4820 if (jj_3R_143()) return true;
4821 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4825 static final private boolean jj_3R_141() {
4826 if (jj_scan_token(SLASH)) return true;
4827 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4831 static final private boolean jj_3R_134() {
4836 if (jj_3R_139()) return true;
4837 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4838 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4842 static final private boolean jj_3R_138() {
4843 if (jj_scan_token(BIT_AND)) return true;
4844 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4845 if (jj_3R_143()) return true;
4846 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4850 static final private boolean jj_3R_133() {
4851 if (jj_scan_token(RUNSIGNEDSHIFT)) return true;
4852 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4856 static final private boolean jj_3R_137() {
4857 if (jj_scan_token(MINUS)) return true;
4858 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4862 static final private boolean jj_3R_128() {
4863 if (jj_scan_token(GE)) return true;
4864 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4868 static final private boolean jj_3R_140() {
4869 if (jj_scan_token(STAR)) return true;
4870 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4874 static final private boolean jj_3R_135() {
4881 if (jj_3R_142()) return true;
4882 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4883 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4884 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4885 if (jj_3R_134()) return true;
4886 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4890 static final private boolean jj_3R_129() {
4891 if (jj_3R_134()) return true;
4892 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4896 if (jj_3R_135()) { jj_scanpos = xsp; break; }
4897 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4902 static final private boolean jj_3_2() {
4903 if (jj_scan_token(COMMA)) return true;
4904 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4905 if (jj_3R_39()) return true;
4906 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4910 static final private boolean jj_3R_192() {
4911 if (jj_3R_39()) return true;
4912 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4916 if (jj_3_2()) { jj_scanpos = xsp; break; }
4917 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4922 static final private boolean jj_3R_132() {
4923 if (jj_scan_token(RSIGNEDSHIFT)) return true;
4924 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4928 static final private boolean jj_3R_127() {
4929 if (jj_scan_token(LE)) return true;
4930 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4934 static final private boolean jj_3R_136() {
4935 if (jj_scan_token(PLUS)) return true;
4936 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4940 static final private boolean jj_3R_130() {
4945 if (jj_3R_137()) return true;
4946 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4947 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4948 if (jj_3R_129()) return true;
4949 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4953 static final private boolean jj_3R_184() {
4954 if (jj_scan_token(LPAREN)) return true;
4955 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4958 if (jj_3R_192()) jj_scanpos = xsp;
4959 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4960 if (jj_scan_token(RPAREN)) return true;
4961 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4965 static final private boolean jj_3R_123() {
4966 if (jj_3R_129()) return true;
4967 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4971 if (jj_3R_130()) { jj_scanpos = xsp; break; }
4972 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4977 static final private boolean jj_3R_194() {
4978 if (jj_scan_token(ARRAYASSIGN)) return true;
4979 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4980 if (jj_3R_41()) return true;
4981 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4985 static final private boolean jj_3R_39() {
4986 if (jj_3R_41()) return true;
4987 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4990 if (jj_3R_194()) jj_scanpos = xsp;
4991 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4995 static final private boolean jj_3R_126() {
4996 if (jj_scan_token(GT)) return true;
4997 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5001 static final private boolean jj_3R_131() {
5002 if (jj_scan_token(LSHIFT)) return true;
5003 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5007 static final private boolean jj_3R_124() {
5014 if (jj_3R_133()) return true;
5015 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5016 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5017 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5018 if (jj_3R_123()) return true;
5019 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5023 static final private boolean jj_3R_116() {
5024 if (jj_3R_123()) return true;
5025 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5029 if (jj_3R_124()) { jj_scanpos = xsp; break; }
5030 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5035 static final private boolean jj_3R_109() {
5036 if (jj_3R_62()) return true;
5037 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5041 static final private boolean jj_3R_125() {
5042 if (jj_scan_token(LT)) return true;
5043 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5047 static final private boolean jj_3R_117() {
5056 if (jj_3R_128()) return true;
5057 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5058 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5059 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5060 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5061 if (jj_3R_116()) return true;
5062 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5066 static final private boolean jj_3R_114() {
5067 if (jj_3R_116()) return true;
5068 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5072 if (jj_3R_117()) { jj_scanpos = xsp; break; }
5073 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5078 static final private boolean jj_3R_43() {
5079 if (jj_scan_token(PHPEND)) return true;
5080 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5084 static final private boolean jj_3R_108() {
5085 if (jj_scan_token(LBRACE)) return true;
5086 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5087 if (jj_3R_41()) return true;
5088 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5089 if (jj_scan_token(RBRACE)) return true;
5090 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5094 static final private boolean jj_3_6() {
5095 if (jj_3R_44()) return true;
5096 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5100 static final private boolean jj_3R_73() {
5101 if (jj_scan_token(DOLLAR_ID)) return true;
5102 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5105 if (jj_3R_109()) jj_scanpos = xsp;
5106 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5110 static final private boolean jj_3R_122() {
5111 if (jj_scan_token(TRIPLEEQUAL)) return true;
5112 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5116 static final private boolean jj_3R_42() {
5117 if (jj_scan_token(SEMICOLON)) return true;
5118 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5122 static final private boolean jj_3R_121() {
5123 if (jj_scan_token(BANGDOUBLEEQUAL)) return true;
5124 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5128 static final private boolean jj_3R_72() {
5129 if (jj_scan_token(DOLLAR)) return true;
5130 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5131 if (jj_3R_62()) return true;
5132 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5136 static final private boolean jj_3R_120() {
5137 if (jj_scan_token(NE)) return true;
5138 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5142 static final private boolean jj_3R_119() {
5143 if (jj_scan_token(DIF)) return true;
5144 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5148 static private boolean jj_initialized_once = false;
5149 static public PHPParserTokenManager token_source;
5150 static SimpleCharStream jj_input_stream;
5151 static public Token token, jj_nt;
5152 static private int jj_ntk;
5153 static private Token jj_scanpos, jj_lastpos;
5154 static private int jj_la;
5155 static public boolean lookingAhead = false;
5156 static private boolean jj_semLA;
5157 static private int jj_gen;
5158 static final private int[] jj_la1 = new int[118];
5159 static private int[] jj_la1_0;
5160 static private int[] jj_la1_1;
5161 static private int[] jj_la1_2;
5162 static private int[] jj_la1_3;
5163 static private int[] jj_la1_4;
5171 private static void jj_la1_0() {
5172 jj_la1_0 = new int[] {0xfe58001e,0x0,0x6,0x6,0xfe58001e,0xfe580000,0x0,0x300000,0x300000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x2000000,0x0,0xa000000,0x0,0x0,0x0,0x0,0x0,0x0,0xa000000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x2000000,0x0,0x2000000,0x0,0x2000000,0x0,0x0,0x0,0x0,0x2000000,0x0,0x0,0x0,0xa000000,0x0,0x0,0x0,0xa000000,0x0,0x10,0x0,0xf6400000,0x0,0x0,0x0,0x0,0xe0000000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xfe580000,0xfe580000,0x0,0x0,0x0,0x0,0x2000000,0x0,0xfe580000,0x0,0xfe400000,0x800000,0x1000000,0x800000,0x1000000,0xfe400000,0xfe400000,0xfe400000,0xfe400000,0x0,0xfe400000,0x0,0x0,0x0,0x2000000,0xa000000,0x2000000,0xfe400000,0xfe400000,0x2000000,0x0,0x0,0x0,0xa000000,};
5174 private static void jj_la1_1() {
5175 jj_la1_1 = new int[] {0x8ebaa47,0x0,0x0,0x0,0x8ebaa47,0x8ebaa47,0x1000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x610000,0x20,0x618040,0x0,0x0,0x0,0x0,0xe0000000,0x0,0x618040,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x618000,0x0,0x618000,0x0,0x618000,0x0,0x0,0x8,0x8,0x8000,0x8000,0x0,0x8,0x618040,0x8,0x610000,0x600000,0x618040,0x0,0x0,0x0,0x88aaa07,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x8ebaa47,0x8ebaa47,0x0,0x0,0x0,0x0,0x8000,0x480,0x8ebaa47,0x480,0x8ebaa47,0x0,0x0,0x0,0x0,0x8ebaa47,0x8ebaa47,0x8ebaa47,0x8ebaa47,0x0,0x8ebaa47,0x0,0x8,0x20,0x8000,0x618040,0x8000,0x8ebaa47,0x8ebaa47,0x8000,0x0,0x0,0x0,0x618040,};
5177 private static void jj_la1_2() {
5178 jj_la1_2 = new int[] {0x11445100,0x10000000,0x0,0x0,0x11445100,0x11445100,0x0,0x0,0x0,0x20000000,0x0,0x1000000,0x0,0x1000000,0x1040000,0x1040000,0x1100,0x1100,0x45100,0x0,0x445100,0x0,0x20000000,0x0,0x0,0x3f,0x0,0x445100,0x0,0x0,0x40,0x40,0x80,0x80,0x40000000,0x0,0x0,0x0,0x0,0x0,0x80000000,0x80000000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x445100,0x0,0x445100,0x0,0x445100,0x0,0x0,0x4400000,0x4400000,0x40000,0x40000,0x40000,0x4400000,0x445100,0x4000000,0x5100,0x0,0x445100,0x20000000,0x10000000,0x0,0x11040000,0x10000000,0x10000000,0x10000000,0x10000000,0x0,0x0,0x0,0x20000000,0x10000000,0x20000000,0x10000000,0x20000000,0x10000000,0x11445100,0x11445100,0x20000000,0x0,0x0,0x0,0x40000,0x0,0x11445100,0x0,0x11445100,0x0,0x0,0x0,0x0,0x11445100,0x11445100,0x11445100,0x11445100,0x10000000,0x11445100,0x10000000,0x4000000,0x0,0x40000,0x445100,0x40000,0x11445100,0x11445100,0x40000,0x20000000,0x40000,0x40000,0x445100,};
5180 private static void jj_la1_3() {
5181 jj_la1_3 = new int[] {0x3c380000,0x0,0x0,0x0,0x3c380000,0x3c380000,0x0,0x0,0x0,0x0,0x100,0x0,0x100000,0x0,0x100000,0x100000,0x0,0x0,0x30000000,0x0,0x3c380000,0x0,0x0,0x100000,0x0,0x0,0x7ff00,0x3c380000,0x7ff00,0x400000,0x1000000,0x1000000,0x2000000,0x2000000,0x0,0x0,0x0,0x0,0xf2,0xf2,0xd,0xd,0x0,0x0,0x30000000,0x30000000,0xc0000000,0xc0000000,0x80000,0x3c380000,0x30000000,0x3c300000,0x200000,0x100000,0xc000000,0xc000000,0x0,0x0,0x100000,0x100000,0x100000,0x0,0x3c380000,0x0,0x0,0x0,0x3c380000,0x0,0x0,0x80000,0xc180000,0x0,0x0,0x0,0x0,0x0,0x100000,0x100000,0x0,0x0,0x0,0x0,0x0,0x0,0x3c380000,0x3c380000,0x0,0x100,0xc07ff00,0xc07ff00,0xc100000,0x0,0x3c380000,0x0,0x3c380000,0x0,0x0,0x0,0x0,0x3cb80000,0x3c380000,0x3c380000,0x3c380000,0x0,0x3cb80000,0x0,0x0,0x0,0xc100000,0x3c380000,0xc100000,0x3c380000,0x3cb80000,0xc100000,0x0,0x0,0x0,0x3c380000,};
5183 private static void jj_la1_4() {
5184 jj_la1_4 = new int[] {0x201,0x0,0x0,0x0,0x201,0x201,0x0,0x0,0x0,0x0,0x0,0x0,0x200,0x0,0x200,0x200,0x0,0x0,0x0,0x0,0x201,0x1,0x0,0x201,0x1,0x0,0x180,0x201,0x180,0x0,0x0,0x0,0x0,0x0,0x0,0x2,0x4,0x1,0x0,0x0,0x0,0x0,0x70,0x70,0x0,0x0,0x8,0x8,0x0,0x201,0x0,0x200,0x0,0x200,0x0,0x0,0x0,0x0,0x200,0x200,0x200,0x0,0x201,0x0,0x0,0x0,0x201,0x0,0x0,0x0,0x200,0x400,0x400,0x400,0x400,0x0,0x200,0x200,0x0,0x400,0x0,0x400,0x0,0x400,0x201,0x201,0x0,0x0,0x180,0x180,0x200,0x0,0x201,0x0,0x201,0x0,0x0,0x0,0x0,0x201,0x201,0x201,0x201,0x400,0x201,0x400,0x0,0x0,0x200,0x201,0x200,0x201,0x201,0x200,0x0,0x0,0x0,0x201,};
5186 static final private JJCalls[] jj_2_rtns = new JJCalls[7];
5187 static private boolean jj_rescan = false;
5188 static private int jj_gc = 0;
5190 public PHPParser(java.io.InputStream stream) {
5191 if (jj_initialized_once) {
5192 System.out.println("ERROR: Second call to constructor of static parser. You must");
5193 System.out.println(" either use ReInit() or set the JavaCC option STATIC to false");
5194 System.out.println(" during parser generation.");
5197 jj_initialized_once = true;
5198 jj_input_stream = new SimpleCharStream(stream, 1, 1);
5199 token_source = new PHPParserTokenManager(jj_input_stream);
5200 token = new Token();
5203 for (int i = 0; i < 118; i++) jj_la1[i] = -1;
5204 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
5207 static public void ReInit(java.io.InputStream stream) {
5208 jj_input_stream.ReInit(stream, 1, 1);
5209 token_source.ReInit(jj_input_stream);
5210 token = new Token();
5213 for (int i = 0; i < 118; i++) jj_la1[i] = -1;
5214 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
5217 public PHPParser(java.io.Reader stream) {
5218 if (jj_initialized_once) {
5219 System.out.println("ERROR: Second call to constructor of static parser. You must");
5220 System.out.println(" either use ReInit() or set the JavaCC option STATIC to false");
5221 System.out.println(" during parser generation.");
5224 jj_initialized_once = true;
5225 jj_input_stream = new SimpleCharStream(stream, 1, 1);
5226 token_source = new PHPParserTokenManager(jj_input_stream);
5227 token = new Token();
5230 for (int i = 0; i < 118; i++) jj_la1[i] = -1;
5231 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
5234 static public void ReInit(java.io.Reader stream) {
5235 jj_input_stream.ReInit(stream, 1, 1);
5236 token_source.ReInit(jj_input_stream);
5237 token = new Token();
5240 for (int i = 0; i < 118; i++) jj_la1[i] = -1;
5241 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
5244 public PHPParser(PHPParserTokenManager tm) {
5245 if (jj_initialized_once) {
5246 System.out.println("ERROR: Second call to constructor of static parser. You must");
5247 System.out.println(" either use ReInit() or set the JavaCC option STATIC to false");
5248 System.out.println(" during parser generation.");
5251 jj_initialized_once = true;
5253 token = new Token();
5256 for (int i = 0; i < 118; i++) jj_la1[i] = -1;
5257 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
5260 public void ReInit(PHPParserTokenManager tm) {
5262 token = new Token();
5265 for (int i = 0; i < 118; i++) jj_la1[i] = -1;
5266 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
5269 static final private Token jj_consume_token(int kind) throws ParseException {
5271 if ((oldToken = token).next != null) token = token.next;
5272 else token = token.next = token_source.getNextToken();
5274 if (token.kind == kind) {
5276 if (++jj_gc > 100) {
5278 for (int i = 0; i < jj_2_rtns.length; i++) {
5279 JJCalls c = jj_2_rtns[i];
5281 if (c.gen < jj_gen) c.first = null;
5290 throw generateParseException();
5293 static final private boolean jj_scan_token(int kind) {
5294 if (jj_scanpos == jj_lastpos) {
5296 if (jj_scanpos.next == null) {
5297 jj_lastpos = jj_scanpos = jj_scanpos.next = token_source.getNextToken();
5299 jj_lastpos = jj_scanpos = jj_scanpos.next;
5302 jj_scanpos = jj_scanpos.next;
5305 int i = 0; Token tok = token;
5306 while (tok != null && tok != jj_scanpos) { i++; tok = tok.next; }
5307 if (tok != null) jj_add_error_token(kind, i);
5309 return (jj_scanpos.kind != kind);
5312 static final public Token getNextToken() {
5313 if (token.next != null) token = token.next;
5314 else token = token.next = token_source.getNextToken();
5320 static final public Token getToken(int index) {
5321 Token t = lookingAhead ? jj_scanpos : token;
5322 for (int i = 0; i < index; i++) {
5323 if (t.next != null) t = t.next;
5324 else t = t.next = token_source.getNextToken();
5329 static final private int jj_ntk() {
5330 if ((jj_nt=token.next) == null)
5331 return (jj_ntk = (token.next=token_source.getNextToken()).kind);
5333 return (jj_ntk = jj_nt.kind);
5336 static private java.util.Vector jj_expentries = new java.util.Vector();
5337 static private int[] jj_expentry;
5338 static private int jj_kind = -1;
5339 static private int[] jj_lasttokens = new int[100];
5340 static private int jj_endpos;
5342 static private void jj_add_error_token(int kind, int pos) {
5343 if (pos >= 100) return;
5344 if (pos == jj_endpos + 1) {
5345 jj_lasttokens[jj_endpos++] = kind;
5346 } else if (jj_endpos != 0) {
5347 jj_expentry = new int[jj_endpos];
5348 for (int i = 0; i < jj_endpos; i++) {
5349 jj_expentry[i] = jj_lasttokens[i];
5351 boolean exists = false;
5352 for (java.util.Enumeration enum = jj_expentries.elements(); enum.hasMoreElements();) {
5353 int[] oldentry = (int[])(enum.nextElement());
5354 if (oldentry.length == jj_expentry.length) {
5356 for (int i = 0; i < jj_expentry.length; i++) {
5357 if (oldentry[i] != jj_expentry[i]) {
5365 if (!exists) jj_expentries.addElement(jj_expentry);
5366 if (pos != 0) jj_lasttokens[(jj_endpos = pos) - 1] = kind;
5370 static public ParseException generateParseException() {
5371 jj_expentries.removeAllElements();
5372 boolean[] la1tokens = new boolean[139];
5373 for (int i = 0; i < 139; i++) {
5374 la1tokens[i] = false;
5377 la1tokens[jj_kind] = true;
5380 for (int i = 0; i < 118; i++) {
5381 if (jj_la1[i] == jj_gen) {
5382 for (int j = 0; j < 32; j++) {
5383 if ((jj_la1_0[i] & (1<<j)) != 0) {
5384 la1tokens[j] = true;
5386 if ((jj_la1_1[i] & (1<<j)) != 0) {
5387 la1tokens[32+j] = true;
5389 if ((jj_la1_2[i] & (1<<j)) != 0) {
5390 la1tokens[64+j] = true;
5392 if ((jj_la1_3[i] & (1<<j)) != 0) {
5393 la1tokens[96+j] = true;
5395 if ((jj_la1_4[i] & (1<<j)) != 0) {
5396 la1tokens[128+j] = true;
5401 for (int i = 0; i < 139; i++) {
5403 jj_expentry = new int[1];
5405 jj_expentries.addElement(jj_expentry);
5410 jj_add_error_token(0, 0);
5411 int[][] exptokseq = new int[jj_expentries.size()][];
5412 for (int i = 0; i < jj_expentries.size(); i++) {
5413 exptokseq[i] = (int[])jj_expentries.elementAt(i);
5415 return new ParseException(token, exptokseq, tokenImage);
5418 static final public void enable_tracing() {
5421 static final public void disable_tracing() {
5424 static final private void jj_rescan_token() {
5426 for (int i = 0; i < 7; i++) {
5427 JJCalls p = jj_2_rtns[i];
5429 if (p.gen > jj_gen) {
5430 jj_la = p.arg; jj_lastpos = jj_scanpos = p.first;
5432 case 0: jj_3_1(); break;
5433 case 1: jj_3_2(); break;
5434 case 2: jj_3_3(); break;
5435 case 3: jj_3_4(); break;
5436 case 4: jj_3_5(); break;
5437 case 5: jj_3_6(); break;
5438 case 6: jj_3_7(); break;
5442 } while (p != null);
5447 static final private void jj_save(int index, int xla) {
5448 JJCalls p = jj_2_rtns[index];
5449 while (p.gen > jj_gen) {
5450 if (p.next == null) { p = p.next = new JJCalls(); break; }
5453 p.gen = jj_gen + xla - jj_la; p.first = token; p.arg = xla;
5456 static final class JJCalls {