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 Token breakToken = null;
2663 jj_consume_token(SWITCH);
2665 jj_consume_token(LPAREN);
2666 } catch (ParseException e) {
2667 errorMessage = "'(' expected after 'switch'";
2669 {if (true) throw e;}
2673 jj_consume_token(RPAREN);
2674 } catch (ParseException e) {
2675 errorMessage = "')' expected";
2677 {if (true) throw e;}
2680 jj_consume_token(LBRACE);
2681 } catch (ParseException e) {
2682 errorMessage = "'{' expected";
2684 {if (true) throw e;}
2688 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2694 jj_la1[91] = jj_gen;
2697 line = SwitchLabel();
2700 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2726 case INTEGER_LITERAL:
2727 case FLOATING_POINT_LITERAL:
2728 case STRING_LITERAL:
2745 jj_la1[92] = jj_gen;
2750 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2752 breakToken = jj_consume_token(BREAK);
2755 jj_la1[93] = jj_gen;
2759 if (breakToken == null) {
2760 setMarker(fileToParse,
2761 "You should use put a 'break' at the end of your statement",
2766 } catch (CoreException e) {
2767 PHPeclipsePlugin.log(e);
2771 jj_consume_token(RBRACE);
2772 } catch (ParseException e) {
2773 errorMessage = "'}' expected";
2775 {if (true) throw e;}
2779 static final public int SwitchLabel() throws ParseException {
2781 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2783 token = jj_consume_token(CASE);
2786 } catch (ParseException e) {
2787 if (errorMessage != null) {if (true) throw e;}
2788 errorMessage = "expression expected after 'case' keyword";
2790 {if (true) throw e;}
2793 jj_consume_token(COLON);
2794 } catch (ParseException e) {
2795 errorMessage = "':' expected after case expression";
2797 {if (true) throw e;}
2799 {if (true) return token.beginLine;}
2802 token = jj_consume_token(_DEFAULT);
2804 jj_consume_token(COLON);
2805 } catch (ParseException e) {
2806 errorMessage = "':' expected after 'default' keyword";
2808 {if (true) throw e;}
2810 {if (true) return token.beginLine;}
2813 jj_la1[94] = jj_gen;
2814 jj_consume_token(-1);
2815 throw new ParseException();
2817 throw new Error("Missing return statement in function");
2820 static final public void IfStatement() throws ParseException {
2822 final int pos = jj_input_stream.bufpos;
2823 token = jj_consume_token(IF);
2825 IfStatement0(pos,pos+token.image.length());
2828 static final public void Condition(final String keyword) throws ParseException {
2830 jj_consume_token(LPAREN);
2831 } catch (ParseException e) {
2832 errorMessage = "'(' expected after " + keyword + " keyword";
2834 {if (true) throw e;}
2838 jj_consume_token(RPAREN);
2839 } catch (ParseException e) {
2840 errorMessage = "')' expected after " + keyword + " keyword";
2842 {if (true) throw e;}
2846 static final public void IfStatement0(final int start,final int end) throws ParseException {
2847 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2849 jj_consume_token(COLON);
2852 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2876 case INTEGER_LITERAL:
2877 case FLOATING_POINT_LITERAL:
2878 case STRING_LITERAL:
2895 jj_la1[95] = jj_gen;
2902 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2907 jj_la1[96] = jj_gen;
2910 ElseIfStatementColon();
2912 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2914 ElseStatementColon();
2917 jj_la1[97] = jj_gen;
2921 setMarker(fileToParse,
2922 "Ugly syntax detected, you should if () {...} instead of if (): ... endif;",
2926 "Line " + token.beginLine);
2927 } catch (CoreException e) {
2928 PHPeclipsePlugin.log(e);
2931 jj_consume_token(ENDIF);
2932 } catch (ParseException e) {
2933 errorMessage = "'endif' expected";
2935 {if (true) throw e;}
2938 jj_consume_token(SEMICOLON);
2939 } catch (ParseException e) {
2940 errorMessage = "';' expected 'endif' keyword";
2942 {if (true) throw e;}
2968 case INTEGER_LITERAL:
2969 case FLOATING_POINT_LITERAL:
2970 case STRING_LITERAL:
2987 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2992 jj_la1[98] = jj_gen;
2997 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2999 jj_consume_token(ELSE);
3003 jj_la1[99] = jj_gen;
3008 jj_la1[100] = jj_gen;
3009 jj_consume_token(-1);
3010 throw new ParseException();
3014 static final public void ElseIfStatementColon() throws ParseException {
3015 jj_consume_token(ELSEIF);
3016 Condition("elseif");
3017 jj_consume_token(COLON);
3020 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3044 case INTEGER_LITERAL:
3045 case FLOATING_POINT_LITERAL:
3046 case STRING_LITERAL:
3063 jj_la1[101] = jj_gen;
3070 static final public void ElseStatementColon() throws ParseException {
3071 jj_consume_token(ELSE);
3072 jj_consume_token(COLON);
3075 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3099 case INTEGER_LITERAL:
3100 case FLOATING_POINT_LITERAL:
3101 case STRING_LITERAL:
3118 jj_la1[102] = jj_gen;
3125 static final public void ElseIfStatement() throws ParseException {
3126 jj_consume_token(ELSEIF);
3127 Condition("elseif");
3131 static final public void WhileStatement() throws ParseException {
3133 final int pos = jj_input_stream.bufpos;
3134 token = jj_consume_token(WHILE);
3136 WhileStatement0(pos,pos + token.image.length());
3139 static final public void WhileStatement0(final int start, final int end) throws ParseException {
3140 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3142 jj_consume_token(COLON);
3145 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3169 case INTEGER_LITERAL:
3170 case FLOATING_POINT_LITERAL:
3171 case STRING_LITERAL:
3188 jj_la1[103] = jj_gen;
3194 setMarker(fileToParse,
3195 "Ugly syntax detected, you should while () {...} instead of while (): ... endwhile;",
3199 "Line " + token.beginLine);
3200 } catch (CoreException e) {
3201 PHPeclipsePlugin.log(e);
3204 jj_consume_token(ENDWHILE);
3205 } catch (ParseException e) {
3206 errorMessage = "'endwhile' expected";
3208 {if (true) throw e;}
3211 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3213 jj_consume_token(SEMICOLON);
3216 jj_consume_token(138);
3219 jj_la1[104] = jj_gen;
3220 jj_consume_token(-1);
3221 throw new ParseException();
3223 } catch (ParseException e) {
3224 errorMessage = "';' expected after 'endwhile' keyword";
3226 {if (true) throw e;}
3252 case INTEGER_LITERAL:
3253 case FLOATING_POINT_LITERAL:
3254 case STRING_LITERAL:
3271 jj_la1[105] = jj_gen;
3272 jj_consume_token(-1);
3273 throw new ParseException();
3277 static final public void DoStatement() throws ParseException {
3278 jj_consume_token(DO);
3280 jj_consume_token(WHILE);
3283 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3285 jj_consume_token(SEMICOLON);
3288 jj_consume_token(138);
3291 jj_la1[106] = jj_gen;
3292 jj_consume_token(-1);
3293 throw new ParseException();
3295 } catch (ParseException e) {
3296 errorMessage = "';' expected";
3298 {if (true) throw e;}
3302 static final public void ForeachStatement() throws ParseException {
3303 jj_consume_token(FOREACH);
3305 jj_consume_token(LPAREN);
3306 } catch (ParseException e) {
3307 errorMessage = "'(' expected after 'foreach' keyword";
3309 {if (true) throw e;}
3313 } catch (ParseException e) {
3314 errorMessage = "variable expected";
3316 {if (true) throw e;}
3318 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3324 jj_la1[107] = jj_gen;
3328 jj_consume_token(AS);
3329 } catch (ParseException e) {
3330 errorMessage = "'as' expected";
3332 {if (true) throw e;}
3336 } catch (ParseException e) {
3337 errorMessage = "variable expected";
3339 {if (true) throw e;}
3341 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3343 jj_consume_token(ARRAYASSIGN);
3347 jj_la1[108] = jj_gen;
3351 jj_consume_token(RPAREN);
3352 } catch (ParseException e) {
3353 errorMessage = "')' expected after 'foreach' keyword";
3355 {if (true) throw e;}
3359 } catch (ParseException e) {
3360 if (errorMessage != null) {if (true) throw e;}
3361 errorMessage = "statement expected";
3363 {if (true) throw e;}
3367 static final public void ForStatement() throws ParseException {
3369 final int pos = jj_input_stream.bufpos;
3370 token = jj_consume_token(FOR);
3372 jj_consume_token(LPAREN);
3373 } catch (ParseException e) {
3374 errorMessage = "'(' expected after 'for' keyword";
3376 {if (true) throw e;}
3378 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3389 jj_la1[109] = jj_gen;
3392 jj_consume_token(SEMICOLON);
3393 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3401 case INTEGER_LITERAL:
3402 case FLOATING_POINT_LITERAL:
3403 case STRING_LITERAL:
3418 jj_la1[110] = jj_gen;
3421 jj_consume_token(SEMICOLON);
3422 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3433 jj_la1[111] = jj_gen;
3436 jj_consume_token(RPAREN);
3437 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3461 case INTEGER_LITERAL:
3462 case FLOATING_POINT_LITERAL:
3463 case STRING_LITERAL:
3480 jj_consume_token(COLON);
3483 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3507 case INTEGER_LITERAL:
3508 case FLOATING_POINT_LITERAL:
3509 case STRING_LITERAL:
3526 jj_la1[112] = jj_gen;
3532 setMarker(fileToParse,
3533 "Ugly syntax detected, you should for () {...} instead of for (): ... endfor;",
3535 pos+token.image.length(),
3537 "Line " + token.beginLine);
3538 } catch (CoreException e) {
3539 PHPeclipsePlugin.log(e);
3542 jj_consume_token(ENDFOR);
3543 } catch (ParseException e) {
3544 errorMessage = "'endfor' expected";
3546 {if (true) throw e;}
3549 jj_consume_token(SEMICOLON);
3550 } catch (ParseException e) {
3551 errorMessage = "';' expected 'endfor' keyword";
3553 {if (true) throw e;}
3557 jj_la1[113] = jj_gen;
3558 jj_consume_token(-1);
3559 throw new ParseException();
3563 static final public void ForInit() throws ParseException {
3564 if (jj_2_7(2147483647)) {
3565 LocalVariableDeclaration();
3567 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3575 StatementExpressionList();
3578 jj_la1[114] = jj_gen;
3579 jj_consume_token(-1);
3580 throw new ParseException();
3585 static final public void StatementExpressionList() throws ParseException {
3586 StatementExpression();
3589 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3594 jj_la1[115] = jj_gen;
3597 jj_consume_token(COMMA);
3598 StatementExpression();
3602 static final public void ForUpdate() throws ParseException {
3603 StatementExpressionList();
3606 static final public void BreakStatement() throws ParseException {
3607 jj_consume_token(BREAK);
3608 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3610 jj_consume_token(IDENTIFIER);
3613 jj_la1[116] = jj_gen;
3616 jj_consume_token(SEMICOLON);
3619 static final public void ContinueStatement() throws ParseException {
3620 jj_consume_token(CONTINUE);
3621 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3623 jj_consume_token(IDENTIFIER);
3626 jj_la1[117] = jj_gen;
3629 jj_consume_token(SEMICOLON);
3632 static final public void ReturnStatement() throws ParseException {
3633 jj_consume_token(RETURN);
3634 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3642 case INTEGER_LITERAL:
3643 case FLOATING_POINT_LITERAL:
3644 case STRING_LITERAL:
3659 jj_la1[118] = jj_gen;
3662 jj_consume_token(SEMICOLON);
3665 static final private boolean jj_2_1(int xla) {
3666 jj_la = xla; jj_lastpos = jj_scanpos = token;
3667 boolean retval = !jj_3_1();
3672 static final private boolean jj_2_2(int xla) {
3673 jj_la = xla; jj_lastpos = jj_scanpos = token;
3674 boolean retval = !jj_3_2();
3679 static final private boolean jj_2_3(int xla) {
3680 jj_la = xla; jj_lastpos = jj_scanpos = token;
3681 boolean retval = !jj_3_3();
3686 static final private boolean jj_2_4(int xla) {
3687 jj_la = xla; jj_lastpos = jj_scanpos = token;
3688 boolean retval = !jj_3_4();
3693 static final private boolean jj_2_5(int xla) {
3694 jj_la = xla; jj_lastpos = jj_scanpos = token;
3695 boolean retval = !jj_3_5();
3700 static final private boolean jj_2_6(int xla) {
3701 jj_la = xla; jj_lastpos = jj_scanpos = token;
3702 boolean retval = !jj_3_6();
3707 static final private boolean jj_2_7(int xla) {
3708 jj_la = xla; jj_lastpos = jj_scanpos = token;
3709 boolean retval = !jj_3_7();
3714 static final private boolean jj_3R_118() {
3715 if (jj_scan_token(EQ)) return true;
3716 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3720 static final private boolean jj_3_5() {
3721 if (jj_3R_41()) return true;
3722 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3727 if (jj_3R_43()) return true;
3728 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3729 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3733 static final private boolean jj_3R_115() {
3744 if (jj_3R_122()) return true;
3745 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3746 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3747 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3748 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3749 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3750 if (jj_3R_114()) return true;
3751 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3755 static final private boolean jj_3R_99() {
3756 if (jj_scan_token(LBRACE)) return true;
3757 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3758 if (jj_3R_41()) return true;
3759 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3760 if (jj_scan_token(RBRACE)) return true;
3761 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3765 static final private boolean jj_3R_71() {
3766 if (jj_scan_token(IDENTIFIER)) return true;
3767 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3770 if (jj_3R_108()) jj_scanpos = xsp;
3771 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3775 static final private boolean jj_3R_112() {
3776 if (jj_3R_114()) return true;
3777 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3781 if (jj_3R_115()) { jj_scanpos = xsp; break; }
3782 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3787 static final private boolean jj_3R_70() {
3788 if (jj_scan_token(LBRACE)) return true;
3789 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3790 if (jj_3R_41()) return true;
3791 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3792 if (jj_scan_token(RBRACE)) return true;
3793 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3797 static final private boolean jj_3R_62() {
3806 if (jj_3R_73()) return true;
3807 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3808 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3809 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3810 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3814 static final private boolean jj_3R_94() {
3815 if (jj_scan_token(DOLLAR)) return true;
3816 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3817 if (jj_3R_62()) return true;
3818 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3822 static final private boolean jj_3R_113() {
3823 if (jj_scan_token(BIT_AND)) return true;
3824 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3825 if (jj_3R_112()) return true;
3826 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3830 static final private boolean jj_3R_196() {
3831 if (jj_scan_token(COMMA)) return true;
3832 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3833 if (jj_3R_41()) return true;
3834 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3838 static final private boolean jj_3R_195() {
3839 if (jj_3R_41()) return true;
3840 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3844 if (jj_3R_196()) { jj_scanpos = xsp; break; }
3845 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3850 static final private boolean jj_3R_93() {
3851 if (jj_scan_token(DOLLAR_ID)) return true;
3852 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3855 if (jj_3R_99()) jj_scanpos = xsp;
3856 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3860 static final private boolean jj_3R_77() {
3865 if (jj_3R_94()) return true;
3866 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3867 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3871 static final private boolean jj_3R_110() {
3872 if (jj_3R_112()) return true;
3873 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3877 if (jj_3R_113()) { jj_scanpos = xsp; break; }
3878 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3883 static final private boolean jj_3R_193() {
3884 if (jj_3R_195()) return true;
3885 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3889 static final private boolean jj_3_1() {
3890 if (jj_3R_38()) return true;
3891 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3895 static final private boolean jj_3R_111() {
3896 if (jj_scan_token(XOR)) return true;
3897 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3898 if (jj_3R_110()) return true;
3899 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3903 static final private boolean jj_3R_68() {
3904 if (jj_3R_77()) return true;
3905 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3909 if (jj_3_1()) { jj_scanpos = xsp; break; }
3910 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3915 static final private boolean jj_3R_191() {
3916 if (jj_scan_token(LPAREN)) return true;
3917 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3920 if (jj_3R_193()) jj_scanpos = xsp;
3921 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3922 if (jj_scan_token(RPAREN)) return true;
3923 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3927 static final private boolean jj_3R_106() {
3928 if (jj_3R_110()) return true;
3929 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3933 if (jj_3R_111()) { jj_scanpos = xsp; break; }
3934 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3939 static final private boolean jj_3R_174() {
3940 if (jj_scan_token(NULL)) return true;
3941 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3945 static final private boolean jj_3R_107() {
3946 if (jj_scan_token(BIT_OR)) return true;
3947 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3948 if (jj_3R_106()) return true;
3949 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3953 static final private boolean jj_3R_181() {
3954 if (jj_scan_token(FALSE)) return true;
3955 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3959 static final private boolean jj_3R_100() {
3960 if (jj_3R_106()) return true;
3961 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3965 if (jj_3R_107()) { jj_scanpos = xsp; break; }
3966 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3971 static final private boolean jj_3R_180() {
3972 if (jj_scan_token(TRUE)) return true;
3973 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3977 static final private boolean jj_3R_173() {
3982 if (jj_3R_181()) return true;
3983 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3984 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3988 static final private boolean jj_3R_103() {
3989 if (jj_scan_token(_ANDL)) return true;
3990 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3994 static final private boolean jj_3R_169() {
3995 if (jj_3R_174()) return true;
3996 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4000 static final private boolean jj_3R_101() {
4001 if (jj_scan_token(DOT)) return true;
4002 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4003 if (jj_3R_100()) return true;
4004 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4008 static final private boolean jj_3R_168() {
4009 if (jj_3R_173()) return true;
4010 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4014 static final private boolean jj_3R_95() {
4015 if (jj_3R_100()) return true;
4016 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4020 if (jj_3R_101()) { jj_scanpos = xsp; break; }
4021 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4026 static final private boolean jj_3R_167() {
4027 if (jj_scan_token(STRING_LITERAL)) return true;
4028 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4032 static final private boolean jj_3R_166() {
4033 if (jj_scan_token(FLOATING_POINT_LITERAL)) return true;
4034 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4038 static final private boolean jj_3R_162() {
4049 if (jj_3R_169()) return true;
4050 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4051 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4052 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4053 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4054 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4058 static final private boolean jj_3R_165() {
4059 if (jj_scan_token(INTEGER_LITERAL)) return true;
4060 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4064 static final private boolean jj_3R_98() {
4065 if (jj_scan_token(_ORL)) return true;
4066 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4070 static final private boolean jj_3R_102() {
4071 if (jj_scan_token(SC_AND)) return true;
4072 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4076 static final private boolean jj_3R_96() {
4081 if (jj_3R_103()) return true;
4082 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4083 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4084 if (jj_3R_95()) return true;
4085 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4089 static final private boolean jj_3R_63() {
4090 if (jj_3R_41()) return true;
4091 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4095 static final private boolean jj_3R_78() {
4096 if (jj_3R_95()) return true;
4097 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4101 if (jj_3R_96()) { jj_scanpos = xsp; break; }
4102 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4107 static final private boolean jj_3R_75() {
4108 if (jj_scan_token(HOOK)) return true;
4109 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4110 if (jj_3R_41()) return true;
4111 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4112 if (jj_scan_token(COLON)) return true;
4113 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4114 if (jj_3R_66()) return true;
4115 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4119 static final private boolean jj_3R_47() {
4120 if (jj_scan_token(LBRACKET)) return true;
4121 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4124 if (jj_3R_63()) jj_scanpos = xsp;
4125 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4126 if (jj_scan_token(RBRACKET)) return true;
4127 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4131 static final private boolean jj_3R_46() {
4132 if (jj_scan_token(CLASSACCESS)) return true;
4133 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4134 if (jj_3R_62()) return true;
4135 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4139 static final private boolean jj_3R_38() {
4144 if (jj_3R_47()) return true;
4145 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4146 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4150 static final private boolean jj_3R_97() {
4151 if (jj_scan_token(SC_OR)) return true;
4152 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4156 static final private boolean jj_3R_79() {
4161 if (jj_3R_98()) return true;
4162 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4163 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4164 if (jj_3R_78()) return true;
4165 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4169 static final private boolean jj_3R_74() {
4170 if (jj_3R_78()) return true;
4171 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4175 if (jj_3R_79()) { jj_scanpos = xsp; break; }
4176 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4181 static final private boolean jj_3R_188() {
4182 if (jj_3R_38()) return true;
4183 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4187 static final private boolean jj_3R_187() {
4188 if (jj_3R_191()) return true;
4189 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4193 static final private boolean jj_3R_183() {
4198 if (jj_3R_188()) return true;
4199 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4200 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4204 static final private boolean jj_3R_69() {
4205 if (jj_scan_token(ASSIGN)) return true;
4206 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4207 if (jj_3R_41()) return true;
4208 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4212 static final private boolean jj_3R_61() {
4213 if (jj_scan_token(COMMA)) return true;
4214 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4215 if (jj_3R_60()) return true;
4216 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4220 static final private boolean jj_3R_190() {
4221 if (jj_3R_68()) return true;
4222 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4226 static final private boolean jj_3R_189() {
4227 if (jj_scan_token(IDENTIFIER)) return true;
4228 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4232 static final private boolean jj_3R_185() {
4237 if (jj_3R_190()) return true;
4238 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4239 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4243 static final private boolean jj_3R_66() {
4244 if (jj_3R_74()) return true;
4245 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4248 if (jj_3R_75()) jj_scanpos = xsp;
4249 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4253 static final private boolean jj_3R_177() {
4254 if (jj_3R_68()) return true;
4255 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4259 static final private boolean jj_3R_92() {
4260 if (jj_scan_token(TILDEEQUAL)) return true;
4261 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4265 static final private boolean jj_3R_91() {
4266 if (jj_scan_token(DOTASSIGN)) return true;
4267 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4271 static final private boolean jj_3R_176() {
4272 if (jj_scan_token(NEW)) return true;
4273 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4274 if (jj_3R_185()) return true;
4275 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4279 static final private boolean jj_3R_90() {
4280 if (jj_scan_token(ORASSIGN)) return true;
4281 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4285 static final private boolean jj_3R_60() {
4286 if (jj_3R_68()) return true;
4287 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4290 if (jj_3R_69()) jj_scanpos = xsp;
4291 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4295 static final private boolean jj_3R_179() {
4296 if (jj_scan_token(DECR)) return true;
4297 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4301 static final private boolean jj_3R_89() {
4302 if (jj_scan_token(XORASSIGN)) return true;
4303 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4307 static final private boolean jj_3R_175() {
4308 if (jj_scan_token(IDENTIFIER)) return true;
4309 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4313 static final private boolean jj_3R_170() {
4320 if (jj_3R_177()) return true;
4321 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4322 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4323 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4327 static final private boolean jj_3R_88() {
4328 if (jj_scan_token(ANDASSIGN)) return true;
4329 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4333 static final private boolean jj_3R_87() {
4334 if (jj_scan_token(RSIGNEDSHIFTASSIGN)) return true;
4335 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4339 static final private boolean jj_3R_45() {
4340 if (jj_3R_60()) return true;
4341 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4345 if (jj_3R_61()) { jj_scanpos = xsp; break; }
4346 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4351 static final private boolean jj_3R_86() {
4352 if (jj_scan_token(LSHIFTASSIGN)) return true;
4353 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4357 static final private boolean jj_3R_85() {
4358 if (jj_scan_token(MINUSASSIGN)) return true;
4359 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4363 static final private boolean jj_3R_84() {
4364 if (jj_scan_token(PLUSASSIGN)) return true;
4365 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4369 static final private boolean jj_3R_171() {
4370 if (jj_scan_token(ARRAY)) return true;
4371 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4372 if (jj_3R_184()) return true;
4373 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4377 static final private boolean jj_3R_83() {
4378 if (jj_scan_token(REMASSIGN)) return true;
4379 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4383 static final private boolean jj_3R_82() {
4384 if (jj_scan_token(SLASHASSIGN)) return true;
4385 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4389 static final private boolean jj_3R_81() {
4390 if (jj_scan_token(STARASSIGN)) return true;
4391 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4395 static final private boolean jj_3R_80() {
4396 if (jj_scan_token(ASSIGN)) return true;
4397 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4401 static final private boolean jj_3R_76() {
4428 if (jj_3R_92()) return true;
4429 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4430 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4431 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4432 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4433 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4434 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4435 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4436 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4437 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4438 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4439 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4440 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4441 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4445 static final private boolean jj_3_7() {
4446 if (jj_3R_45()) return true;
4447 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4451 static final private boolean jj_3R_178() {
4452 if (jj_scan_token(INCR)) return true;
4453 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4457 static final private boolean jj_3R_164() {
4458 if (jj_3R_171()) return true;
4459 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4463 static final private boolean jj_3R_172() {
4468 if (jj_3R_179()) return true;
4469 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4470 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4474 static final private boolean jj_3R_182() {
4475 if (jj_3R_183()) return true;
4476 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4480 static final private boolean jj_3R_163() {
4481 if (jj_3R_170()) return true;
4482 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4486 if (jj_3R_182()) { jj_scanpos = xsp; break; }
4487 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4492 static final private boolean jj_3R_186() {
4493 if (jj_3R_183()) return true;
4494 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4498 static final private boolean jj_3R_67() {
4499 if (jj_3R_76()) return true;
4500 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4501 if (jj_3R_41()) return true;
4502 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4506 static final private boolean jj_3_4() {
4507 if (jj_scan_token(IDENTIFIER)) return true;
4508 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4509 if (jj_scan_token(STATICCLASSACCESS)) return true;
4510 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4511 if (jj_3R_185()) return true;
4512 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4516 if (jj_3R_186()) { jj_scanpos = xsp; break; }
4517 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4522 static final private boolean jj_3R_159() {
4529 if (jj_3R_164()) return true;
4530 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4531 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4532 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4536 static final private boolean jj_3R_44() {
4537 if (jj_scan_token(IDENTIFIER)) return true;
4538 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4539 if (jj_scan_token(COLON)) return true;
4540 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4544 static final private boolean jj_3R_59() {
4545 if (jj_3R_66()) return true;
4546 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4549 if (jj_3R_67()) jj_scanpos = xsp;
4550 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4554 static final private boolean jj_3R_58() {
4555 if (jj_3R_65()) return true;
4556 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4560 static final private boolean jj_3R_41() {
4567 if (jj_3R_59()) return true;
4568 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4569 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4570 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4574 static final private boolean jj_3R_57() {
4575 if (jj_3R_64()) return true;
4576 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4580 static final private boolean jj_3R_161() {
4581 if (jj_3R_159()) return true;
4582 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4585 if (jj_3R_172()) jj_scanpos = xsp;
4586 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4590 static final private boolean jj_3R_56() {
4591 if (jj_scan_token(OBJECT)) return true;
4592 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4596 static final private boolean jj_3R_55() {
4597 if (jj_scan_token(INTEGER)) return true;
4598 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4602 static final private boolean jj_3R_54() {
4603 if (jj_scan_token(INT)) return true;
4604 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4608 static final private boolean jj_3R_160() {
4609 if (jj_scan_token(LPAREN)) return true;
4610 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4611 if (jj_3R_40()) return true;
4612 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4613 if (jj_scan_token(RPAREN)) return true;
4614 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4615 if (jj_3R_134()) return true;
4616 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4620 static final private boolean jj_3R_53() {
4621 if (jj_scan_token(FLOAT)) return true;
4622 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4626 static final private boolean jj_3R_52() {
4627 if (jj_scan_token(DOUBLE)) return true;
4628 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4632 static final private boolean jj_3_3() {
4633 if (jj_scan_token(LPAREN)) return true;
4634 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4635 if (jj_3R_40()) return true;
4636 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4637 if (jj_scan_token(RPAREN)) return true;
4638 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4642 static final private boolean jj_3R_51() {
4643 if (jj_scan_token(REAL)) return true;
4644 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4648 static final private boolean jj_3R_158() {
4649 if (jj_scan_token(LPAREN)) return true;
4650 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4651 if (jj_3R_41()) return true;
4652 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4653 if (jj_scan_token(RPAREN)) return true;
4654 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4658 static final private boolean jj_3R_50() {
4659 if (jj_scan_token(BOOLEAN)) return true;
4660 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4664 static final private boolean jj_3R_157() {
4665 if (jj_3R_162()) return true;
4666 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4670 static final private boolean jj_3R_49() {
4671 if (jj_scan_token(BOOL)) return true;
4672 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4676 static final private boolean jj_3R_156() {
4677 if (jj_3R_161()) return true;
4678 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4682 static final private boolean jj_3R_40() {
4701 if (jj_3R_56()) return true;
4702 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4703 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4704 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4705 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4706 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4707 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4708 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4709 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4710 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4714 static final private boolean jj_3R_48() {
4715 if (jj_scan_token(STRING)) return true;
4716 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4720 static final private boolean jj_3R_155() {
4721 if (jj_3R_160()) return true;
4722 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4726 static final private boolean jj_3R_153() {
4737 if (jj_3R_158()) return true;
4738 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4739 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4740 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4741 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4742 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4746 static final private boolean jj_3R_154() {
4747 if (jj_scan_token(BANG)) return true;
4748 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4749 if (jj_3R_134()) return true;
4750 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4754 static final private boolean jj_3R_105() {
4755 if (jj_3R_68()) return true;
4756 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4760 static final private boolean jj_3R_152() {
4761 if (jj_scan_token(DECR)) return true;
4762 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4763 if (jj_3R_159()) return true;
4764 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4768 static final private boolean jj_3R_104() {
4769 if (jj_3R_68()) return true;
4770 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4774 static final private boolean jj_3R_65() {
4775 if (jj_scan_token(LIST)) return true;
4776 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4777 if (jj_scan_token(LPAREN)) return true;
4778 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4781 if (jj_3R_104()) jj_scanpos = xsp;
4782 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4783 if (jj_scan_token(COMMA)) return true;
4784 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4786 if (jj_3R_105()) jj_scanpos = xsp;
4787 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4788 if (jj_scan_token(RPAREN)) return true;
4789 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4793 static final private boolean jj_3R_151() {
4794 if (jj_scan_token(INCR)) return true;
4795 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4796 if (jj_3R_159()) return true;
4797 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4801 static final private boolean jj_3R_150() {
4802 if (jj_scan_token(MINUS)) return true;
4803 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4807 static final private boolean jj_3R_64() {
4808 if (jj_scan_token(PRINT)) return true;
4809 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4810 if (jj_3R_41()) return true;
4811 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4815 static final private boolean jj_3R_148() {
4816 if (jj_3R_153()) return true;
4817 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4821 static final private boolean jj_3R_147() {
4822 if (jj_3R_152()) return true;
4823 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4827 static final private boolean jj_3R_142() {
4828 if (jj_scan_token(REM)) return true;
4829 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4833 static final private boolean jj_3R_146() {
4834 if (jj_3R_151()) return true;
4835 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4839 static final private boolean jj_3R_149() {
4840 if (jj_scan_token(PLUS)) return true;
4841 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4845 static final private boolean jj_3R_143() {
4854 if (jj_3R_148()) return true;
4855 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4856 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4857 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4858 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4862 static final private boolean jj_3R_145() {
4867 if (jj_3R_150()) return true;
4868 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4869 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4870 if (jj_3R_134()) return true;
4871 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4875 static final private boolean jj_3R_144() {
4876 if (jj_scan_token(AT)) return true;
4877 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4881 static final private boolean jj_3R_139() {
4885 if (jj_3R_144()) { jj_scanpos = xsp; break; }
4886 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4888 if (jj_3R_143()) return true;
4889 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4893 static final private boolean jj_3R_141() {
4894 if (jj_scan_token(SLASH)) return true;
4895 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4899 static final private boolean jj_3R_134() {
4904 if (jj_3R_139()) return true;
4905 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4906 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4910 static final private boolean jj_3R_138() {
4911 if (jj_scan_token(BIT_AND)) return true;
4912 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4913 if (jj_3R_143()) return true;
4914 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4918 static final private boolean jj_3R_133() {
4919 if (jj_scan_token(RUNSIGNEDSHIFT)) return true;
4920 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4924 static final private boolean jj_3R_137() {
4925 if (jj_scan_token(MINUS)) return true;
4926 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4930 static final private boolean jj_3R_128() {
4931 if (jj_scan_token(GE)) return true;
4932 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4936 static final private boolean jj_3R_140() {
4937 if (jj_scan_token(STAR)) return true;
4938 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4942 static final private boolean jj_3R_135() {
4949 if (jj_3R_142()) return true;
4950 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4951 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4952 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4953 if (jj_3R_134()) return true;
4954 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4958 static final private boolean jj_3R_129() {
4959 if (jj_3R_134()) return true;
4960 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4964 if (jj_3R_135()) { jj_scanpos = xsp; break; }
4965 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4970 static final private boolean jj_3_2() {
4971 if (jj_scan_token(COMMA)) return true;
4972 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4973 if (jj_3R_39()) return true;
4974 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4978 static final private boolean jj_3R_192() {
4979 if (jj_3R_39()) return true;
4980 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4984 if (jj_3_2()) { jj_scanpos = xsp; break; }
4985 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4990 static final private boolean jj_3R_132() {
4991 if (jj_scan_token(RSIGNEDSHIFT)) return true;
4992 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4996 static final private boolean jj_3R_127() {
4997 if (jj_scan_token(LE)) return true;
4998 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5002 static final private boolean jj_3R_136() {
5003 if (jj_scan_token(PLUS)) return true;
5004 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5008 static final private boolean jj_3R_130() {
5013 if (jj_3R_137()) return true;
5014 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5015 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5016 if (jj_3R_129()) return true;
5017 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5021 static final private boolean jj_3R_184() {
5022 if (jj_scan_token(LPAREN)) return true;
5023 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5026 if (jj_3R_192()) jj_scanpos = xsp;
5027 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5028 if (jj_scan_token(RPAREN)) return true;
5029 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5033 static final private boolean jj_3R_123() {
5034 if (jj_3R_129()) return true;
5035 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5039 if (jj_3R_130()) { jj_scanpos = xsp; break; }
5040 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5045 static final private boolean jj_3R_194() {
5046 if (jj_scan_token(ARRAYASSIGN)) return true;
5047 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5048 if (jj_3R_41()) return true;
5049 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5053 static final private boolean jj_3R_39() {
5054 if (jj_3R_41()) return true;
5055 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5058 if (jj_3R_194()) jj_scanpos = xsp;
5059 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5063 static final private boolean jj_3R_126() {
5064 if (jj_scan_token(GT)) return true;
5065 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5069 static final private boolean jj_3R_131() {
5070 if (jj_scan_token(LSHIFT)) return true;
5071 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5075 static final private boolean jj_3R_124() {
5082 if (jj_3R_133()) return true;
5083 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5084 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5085 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5086 if (jj_3R_123()) return true;
5087 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5091 static final private boolean jj_3R_116() {
5092 if (jj_3R_123()) return true;
5093 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5097 if (jj_3R_124()) { jj_scanpos = xsp; break; }
5098 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5103 static final private boolean jj_3R_109() {
5104 if (jj_3R_62()) return true;
5105 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5109 static final private boolean jj_3R_125() {
5110 if (jj_scan_token(LT)) return true;
5111 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5115 static final private boolean jj_3R_117() {
5124 if (jj_3R_128()) return true;
5125 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5126 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5127 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5128 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5129 if (jj_3R_116()) return true;
5130 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5134 static final private boolean jj_3R_114() {
5135 if (jj_3R_116()) return true;
5136 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5140 if (jj_3R_117()) { jj_scanpos = xsp; break; }
5141 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5146 static final private boolean jj_3R_43() {
5147 if (jj_scan_token(PHPEND)) return true;
5148 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5152 static final private boolean jj_3R_108() {
5153 if (jj_scan_token(LBRACE)) return true;
5154 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5155 if (jj_3R_41()) return true;
5156 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5157 if (jj_scan_token(RBRACE)) return true;
5158 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5162 static final private boolean jj_3_6() {
5163 if (jj_3R_44()) return true;
5164 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5168 static final private boolean jj_3R_73() {
5169 if (jj_scan_token(DOLLAR_ID)) return true;
5170 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5173 if (jj_3R_109()) jj_scanpos = xsp;
5174 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5178 static final private boolean jj_3R_122() {
5179 if (jj_scan_token(TRIPLEEQUAL)) return true;
5180 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5184 static final private boolean jj_3R_42() {
5185 if (jj_scan_token(SEMICOLON)) return true;
5186 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5190 static final private boolean jj_3R_121() {
5191 if (jj_scan_token(BANGDOUBLEEQUAL)) return true;
5192 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5196 static final private boolean jj_3R_72() {
5197 if (jj_scan_token(DOLLAR)) return true;
5198 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5199 if (jj_3R_62()) return true;
5200 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5204 static final private boolean jj_3R_120() {
5205 if (jj_scan_token(NE)) return true;
5206 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5210 static final private boolean jj_3R_119() {
5211 if (jj_scan_token(DIF)) return true;
5212 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5216 static private boolean jj_initialized_once = false;
5217 static public PHPParserTokenManager token_source;
5218 static SimpleCharStream jj_input_stream;
5219 static public Token token, jj_nt;
5220 static private int jj_ntk;
5221 static private Token jj_scanpos, jj_lastpos;
5222 static private int jj_la;
5223 static public boolean lookingAhead = false;
5224 static private boolean jj_semLA;
5225 static private int jj_gen;
5226 static final private int[] jj_la1 = new int[119];
5227 static private int[] jj_la1_0;
5228 static private int[] jj_la1_1;
5229 static private int[] jj_la1_2;
5230 static private int[] jj_la1_3;
5231 static private int[] jj_la1_4;
5239 private static void jj_la1_0() {
5240 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,0x4000000,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,};
5242 private static void jj_la1_1() {
5243 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,0x0,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,};
5245 private static void jj_la1_2() {
5246 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,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,};
5248 private static void jj_la1_3() {
5249 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,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,};
5251 private static void jj_la1_4() {
5252 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,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,};
5254 static final private JJCalls[] jj_2_rtns = new JJCalls[7];
5255 static private boolean jj_rescan = false;
5256 static private int jj_gc = 0;
5258 public PHPParser(java.io.InputStream stream) {
5259 if (jj_initialized_once) {
5260 System.out.println("ERROR: Second call to constructor of static parser. You must");
5261 System.out.println(" either use ReInit() or set the JavaCC option STATIC to false");
5262 System.out.println(" during parser generation.");
5265 jj_initialized_once = true;
5266 jj_input_stream = new SimpleCharStream(stream, 1, 1);
5267 token_source = new PHPParserTokenManager(jj_input_stream);
5268 token = new Token();
5271 for (int i = 0; i < 119; i++) jj_la1[i] = -1;
5272 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
5275 static public void ReInit(java.io.InputStream stream) {
5276 jj_input_stream.ReInit(stream, 1, 1);
5277 token_source.ReInit(jj_input_stream);
5278 token = new Token();
5281 for (int i = 0; i < 119; i++) jj_la1[i] = -1;
5282 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
5285 public PHPParser(java.io.Reader stream) {
5286 if (jj_initialized_once) {
5287 System.out.println("ERROR: Second call to constructor of static parser. You must");
5288 System.out.println(" either use ReInit() or set the JavaCC option STATIC to false");
5289 System.out.println(" during parser generation.");
5292 jj_initialized_once = true;
5293 jj_input_stream = new SimpleCharStream(stream, 1, 1);
5294 token_source = new PHPParserTokenManager(jj_input_stream);
5295 token = new Token();
5298 for (int i = 0; i < 119; i++) jj_la1[i] = -1;
5299 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
5302 static public void ReInit(java.io.Reader stream) {
5303 jj_input_stream.ReInit(stream, 1, 1);
5304 token_source.ReInit(jj_input_stream);
5305 token = new Token();
5308 for (int i = 0; i < 119; i++) jj_la1[i] = -1;
5309 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
5312 public PHPParser(PHPParserTokenManager tm) {
5313 if (jj_initialized_once) {
5314 System.out.println("ERROR: Second call to constructor of static parser. You must");
5315 System.out.println(" either use ReInit() or set the JavaCC option STATIC to false");
5316 System.out.println(" during parser generation.");
5319 jj_initialized_once = true;
5321 token = new Token();
5324 for (int i = 0; i < 119; i++) jj_la1[i] = -1;
5325 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
5328 public void ReInit(PHPParserTokenManager tm) {
5330 token = new Token();
5333 for (int i = 0; i < 119; i++) jj_la1[i] = -1;
5334 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
5337 static final private Token jj_consume_token(int kind) throws ParseException {
5339 if ((oldToken = token).next != null) token = token.next;
5340 else token = token.next = token_source.getNextToken();
5342 if (token.kind == kind) {
5344 if (++jj_gc > 100) {
5346 for (int i = 0; i < jj_2_rtns.length; i++) {
5347 JJCalls c = jj_2_rtns[i];
5349 if (c.gen < jj_gen) c.first = null;
5358 throw generateParseException();
5361 static final private boolean jj_scan_token(int kind) {
5362 if (jj_scanpos == jj_lastpos) {
5364 if (jj_scanpos.next == null) {
5365 jj_lastpos = jj_scanpos = jj_scanpos.next = token_source.getNextToken();
5367 jj_lastpos = jj_scanpos = jj_scanpos.next;
5370 jj_scanpos = jj_scanpos.next;
5373 int i = 0; Token tok = token;
5374 while (tok != null && tok != jj_scanpos) { i++; tok = tok.next; }
5375 if (tok != null) jj_add_error_token(kind, i);
5377 return (jj_scanpos.kind != kind);
5380 static final public Token getNextToken() {
5381 if (token.next != null) token = token.next;
5382 else token = token.next = token_source.getNextToken();
5388 static final public Token getToken(int index) {
5389 Token t = lookingAhead ? jj_scanpos : token;
5390 for (int i = 0; i < index; i++) {
5391 if (t.next != null) t = t.next;
5392 else t = t.next = token_source.getNextToken();
5397 static final private int jj_ntk() {
5398 if ((jj_nt=token.next) == null)
5399 return (jj_ntk = (token.next=token_source.getNextToken()).kind);
5401 return (jj_ntk = jj_nt.kind);
5404 static private java.util.Vector jj_expentries = new java.util.Vector();
5405 static private int[] jj_expentry;
5406 static private int jj_kind = -1;
5407 static private int[] jj_lasttokens = new int[100];
5408 static private int jj_endpos;
5410 static private void jj_add_error_token(int kind, int pos) {
5411 if (pos >= 100) return;
5412 if (pos == jj_endpos + 1) {
5413 jj_lasttokens[jj_endpos++] = kind;
5414 } else if (jj_endpos != 0) {
5415 jj_expentry = new int[jj_endpos];
5416 for (int i = 0; i < jj_endpos; i++) {
5417 jj_expentry[i] = jj_lasttokens[i];
5419 boolean exists = false;
5420 for (java.util.Enumeration enum = jj_expentries.elements(); enum.hasMoreElements();) {
5421 int[] oldentry = (int[])(enum.nextElement());
5422 if (oldentry.length == jj_expentry.length) {
5424 for (int i = 0; i < jj_expentry.length; i++) {
5425 if (oldentry[i] != jj_expentry[i]) {
5433 if (!exists) jj_expentries.addElement(jj_expentry);
5434 if (pos != 0) jj_lasttokens[(jj_endpos = pos) - 1] = kind;
5438 static public ParseException generateParseException() {
5439 jj_expentries.removeAllElements();
5440 boolean[] la1tokens = new boolean[139];
5441 for (int i = 0; i < 139; i++) {
5442 la1tokens[i] = false;
5445 la1tokens[jj_kind] = true;
5448 for (int i = 0; i < 119; i++) {
5449 if (jj_la1[i] == jj_gen) {
5450 for (int j = 0; j < 32; j++) {
5451 if ((jj_la1_0[i] & (1<<j)) != 0) {
5452 la1tokens[j] = true;
5454 if ((jj_la1_1[i] & (1<<j)) != 0) {
5455 la1tokens[32+j] = true;
5457 if ((jj_la1_2[i] & (1<<j)) != 0) {
5458 la1tokens[64+j] = true;
5460 if ((jj_la1_3[i] & (1<<j)) != 0) {
5461 la1tokens[96+j] = true;
5463 if ((jj_la1_4[i] & (1<<j)) != 0) {
5464 la1tokens[128+j] = true;
5469 for (int i = 0; i < 139; i++) {
5471 jj_expentry = new int[1];
5473 jj_expentries.addElement(jj_expentry);
5478 jj_add_error_token(0, 0);
5479 int[][] exptokseq = new int[jj_expentries.size()][];
5480 for (int i = 0; i < jj_expentries.size(); i++) {
5481 exptokseq[i] = (int[])jj_expentries.elementAt(i);
5483 return new ParseException(token, exptokseq, tokenImage);
5486 static final public void enable_tracing() {
5489 static final public void disable_tracing() {
5492 static final private void jj_rescan_token() {
5494 for (int i = 0; i < 7; i++) {
5495 JJCalls p = jj_2_rtns[i];
5497 if (p.gen > jj_gen) {
5498 jj_la = p.arg; jj_lastpos = jj_scanpos = p.first;
5500 case 0: jj_3_1(); break;
5501 case 1: jj_3_2(); break;
5502 case 2: jj_3_3(); break;
5503 case 3: jj_3_4(); break;
5504 case 4: jj_3_5(); break;
5505 case 5: jj_3_6(); break;
5506 case 6: jj_3_7(); break;
5510 } while (p != null);
5515 static final private void jj_save(int index, int xla) {
5516 JJCalls p = jj_2_rtns[index];
5517 while (p.gen > jj_gen) {
5518 if (p.next == null) { p = p.next = new JJCalls(); break; }
5521 p.gen = jj_gen + xla - jj_la; p.first = token; p.arg = xla;
5524 static final class JJCalls {