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;
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();
1679 jj_consume_token(RPAREN);
1680 } catch (ParseException e) {
1681 errorMessage = "')' expected";
1683 {if (true) throw e;}
1685 {if (true) return "("+expr+")";}
1688 jj_la1[53] = jj_gen;
1689 jj_consume_token(-1);
1690 throw new ParseException();
1694 throw new Error("Missing return statement in function");
1697 static final public String CastExpression() throws ParseException {
1698 final String type, expr;
1699 jj_consume_token(LPAREN);
1701 jj_consume_token(RPAREN);
1702 expr = UnaryExpression();
1703 {if (true) return "(" + type + ")" + expr;}
1704 throw new Error("Missing return statement in function");
1707 static final public String PostfixExpression() throws ParseException {
1709 Token operator = null;
1710 expr = PrimaryExpression();
1711 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1714 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1716 operator = jj_consume_token(INCR);
1719 operator = jj_consume_token(DECR);
1722 jj_la1[54] = jj_gen;
1723 jj_consume_token(-1);
1724 throw new ParseException();
1728 jj_la1[55] = jj_gen;
1731 if (operator == null) {
1732 {if (true) return expr;}
1734 {if (true) return expr + operator.image;}
1735 throw new Error("Missing return statement in function");
1738 static final public String PrimaryExpression() throws ParseException {
1739 final Token identifier;
1741 final StringBuffer buff = new StringBuffer();
1743 identifier = jj_consume_token(IDENTIFIER);
1744 jj_consume_token(STATICCLASSACCESS);
1745 expr = ClassIdentifier();
1746 buff.append(identifier.image).append("::").append(expr);
1749 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1756 jj_la1[56] = jj_gen;
1759 expr = PrimarySuffix();
1762 {if (true) return buff.toString();}
1764 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1769 expr = PrimaryPrefix();
1773 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1780 jj_la1[57] = jj_gen;
1783 expr = PrimarySuffix();
1786 {if (true) return buff.toString();}
1789 expr = ArrayDeclarator();
1790 {if (true) return "array" + expr;}
1793 jj_la1[58] = jj_gen;
1794 jj_consume_token(-1);
1795 throw new ParseException();
1798 throw new Error("Missing return statement in function");
1801 static final public String ArrayDeclarator() throws ParseException {
1803 jj_consume_token(ARRAY);
1804 expr = ArrayInitializer();
1805 {if (true) return "array" + expr;}
1806 throw new Error("Missing return statement in function");
1809 static final public String PrimaryPrefix() throws ParseException {
1812 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1814 token = jj_consume_token(IDENTIFIER);
1815 {if (true) return token.image;}
1818 jj_consume_token(NEW);
1819 expr = ClassIdentifier();
1820 {if (true) return "new " + expr;}
1824 expr = VariableDeclaratorId();
1825 {if (true) return expr;}
1828 jj_la1[59] = jj_gen;
1829 jj_consume_token(-1);
1830 throw new ParseException();
1832 throw new Error("Missing return statement in function");
1835 static final public String ClassIdentifier() throws ParseException {
1838 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1840 token = jj_consume_token(IDENTIFIER);
1841 {if (true) return token.image;}
1845 expr = VariableDeclaratorId();
1846 {if (true) return expr;}
1849 jj_la1[60] = jj_gen;
1850 jj_consume_token(-1);
1851 throw new ParseException();
1853 throw new Error("Missing return statement in function");
1856 static final public String PrimarySuffix() throws ParseException {
1858 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1861 {if (true) return expr;}
1865 expr = VariableSuffix();
1866 {if (true) return expr;}
1869 jj_la1[61] = jj_gen;
1870 jj_consume_token(-1);
1871 throw new ParseException();
1873 throw new Error("Missing return statement in function");
1876 static final public String VariableSuffix() throws ParseException {
1878 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1880 jj_consume_token(CLASSACCESS);
1881 expr = VariableName();
1882 {if (true) return "->" + expr;}
1885 jj_consume_token(LBRACKET);
1886 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1894 case INTEGER_LITERAL:
1895 case FLOATING_POINT_LITERAL:
1896 case STRING_LITERAL:
1908 expr = Expression();
1911 jj_la1[62] = jj_gen;
1915 jj_consume_token(RBRACKET);
1916 } catch (ParseException e) {
1917 errorMessage = "']' expected";
1919 {if (true) throw e;}
1922 {if (true) return "[]";}
1924 {if (true) return "[" + expr + "]";}
1927 jj_la1[63] = jj_gen;
1928 jj_consume_token(-1);
1929 throw new ParseException();
1931 throw new Error("Missing return statement in function");
1934 static final public String Literal() throws ParseException {
1937 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1938 case INTEGER_LITERAL:
1939 token = jj_consume_token(INTEGER_LITERAL);
1940 {if (true) return token.image;}
1942 case FLOATING_POINT_LITERAL:
1943 token = jj_consume_token(FLOATING_POINT_LITERAL);
1944 {if (true) return token.image;}
1946 case STRING_LITERAL:
1947 token = jj_consume_token(STRING_LITERAL);
1948 {if (true) return token.image;}
1952 expr = BooleanLiteral();
1953 {if (true) return expr;}
1956 expr = NullLiteral();
1957 {if (true) return expr;}
1960 jj_la1[64] = jj_gen;
1961 jj_consume_token(-1);
1962 throw new ParseException();
1964 throw new Error("Missing return statement in function");
1967 static final public String BooleanLiteral() throws ParseException {
1968 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1970 jj_consume_token(TRUE);
1971 {if (true) return "true";}
1974 jj_consume_token(FALSE);
1975 {if (true) return "false";}
1978 jj_la1[65] = jj_gen;
1979 jj_consume_token(-1);
1980 throw new ParseException();
1982 throw new Error("Missing return statement in function");
1985 static final public String NullLiteral() throws ParseException {
1986 jj_consume_token(NULL);
1987 {if (true) return "null";}
1988 throw new Error("Missing return statement in function");
1991 static final public String Arguments() throws ParseException {
1993 jj_consume_token(LPAREN);
1994 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2002 case INTEGER_LITERAL:
2003 case FLOATING_POINT_LITERAL:
2004 case STRING_LITERAL:
2016 expr = ArgumentList();
2019 jj_la1[66] = jj_gen;
2023 jj_consume_token(RPAREN);
2024 } catch (ParseException e) {
2025 errorMessage = "')' expected to close the argument list";
2027 {if (true) throw e;}
2030 {if (true) return "()";}
2032 {if (true) return "(" + expr + ")";}
2033 throw new Error("Missing return statement in function");
2036 static final public String ArgumentList() throws ParseException {
2038 final StringBuffer buff = new StringBuffer();
2039 expr = Expression();
2043 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2048 jj_la1[67] = jj_gen;
2051 jj_consume_token(COMMA);
2053 expr = Expression();
2054 } catch (ParseException e) {
2055 errorMessage = "expression expected after a comma in argument list";
2057 {if (true) throw e;}
2059 buff.append(",").append(expr);
2061 {if (true) return buff.toString();}
2062 throw new Error("Missing return statement in function");
2066 * Statement syntax follows.
2068 static final public void StatementNoBreak() throws ParseException {
2072 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2074 jj_consume_token(SEMICOLON);
2077 jj_consume_token(PHPEND);
2080 jj_la1[68] = jj_gen;
2081 jj_consume_token(-1);
2082 throw new ParseException();
2084 } catch (ParseException e) {
2085 errorMessage = "';' expected";
2087 {if (true) throw e;}
2089 } else if (jj_2_6(2)) {
2092 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2106 StatementExpression();
2108 jj_consume_token(SEMICOLON);
2109 } catch (ParseException e) {
2110 errorMessage = "';' expected after expression";
2112 {if (true) throw e;}
2134 ContinueStatement();
2147 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2149 jj_consume_token(AT);
2152 jj_la1[69] = jj_gen;
2164 jj_la1[70] = jj_gen;
2165 jj_consume_token(-1);
2166 throw new ParseException();
2171 static final public void Statement() throws ParseException {
2172 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2195 case INTEGER_LITERAL:
2196 case FLOATING_POINT_LITERAL:
2197 case STRING_LITERAL:
2217 jj_la1[71] = jj_gen;
2218 jj_consume_token(-1);
2219 throw new ParseException();
2223 static final public void IncludeStatement() throws ParseException {
2225 final int pos = jj_input_stream.bufpos;
2226 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2228 jj_consume_token(REQUIRE);
2229 expr = Expression();
2230 if (currentSegment != null) {
2231 currentSegment.add(new PHPReqIncDeclaration(currentSegment, "require",pos,expr));
2234 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2236 jj_consume_token(SEMICOLON);
2239 jj_consume_token(138);
2242 jj_la1[72] = jj_gen;
2243 jj_consume_token(-1);
2244 throw new ParseException();
2246 } catch (ParseException e) {
2247 errorMessage = "';' expected";
2249 {if (true) throw e;}
2253 jj_consume_token(REQUIRE_ONCE);
2254 expr = Expression();
2255 if (currentSegment != null) {
2256 currentSegment.add(new PHPReqIncDeclaration(currentSegment, "require_once",pos,expr));
2259 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2261 jj_consume_token(SEMICOLON);
2264 jj_consume_token(138);
2267 jj_la1[73] = jj_gen;
2268 jj_consume_token(-1);
2269 throw new ParseException();
2271 } catch (ParseException e) {
2272 errorMessage = "';' expected";
2274 {if (true) throw e;}
2278 jj_consume_token(INCLUDE);
2279 expr = Expression();
2280 if (currentSegment != null) {
2281 currentSegment.add(new PHPReqIncDeclaration(currentSegment, "include",pos,expr));
2284 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2286 jj_consume_token(SEMICOLON);
2289 jj_consume_token(138);
2292 jj_la1[74] = jj_gen;
2293 jj_consume_token(-1);
2294 throw new ParseException();
2296 } catch (ParseException e) {
2297 errorMessage = "';' expected";
2299 {if (true) throw e;}
2303 jj_consume_token(INCLUDE_ONCE);
2304 expr = Expression();
2305 if (currentSegment != null) {
2306 currentSegment.add(new PHPReqIncDeclaration(currentSegment, "include_once",pos,expr));
2309 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2311 jj_consume_token(SEMICOLON);
2314 jj_consume_token(138);
2317 jj_la1[75] = jj_gen;
2318 jj_consume_token(-1);
2319 throw new ParseException();
2321 } catch (ParseException e) {
2322 errorMessage = "';' expected";
2324 {if (true) throw e;}
2328 jj_la1[76] = jj_gen;
2329 jj_consume_token(-1);
2330 throw new ParseException();
2334 static final public String PrintExpression() throws ParseException {
2335 final StringBuffer buff = new StringBuffer("print ");
2337 jj_consume_token(PRINT);
2338 expr = Expression();
2340 {if (true) return buff.toString();}
2341 throw new Error("Missing return statement in function");
2344 static final public String ListExpression() throws ParseException {
2345 final StringBuffer buff = new StringBuffer("list(");
2347 jj_consume_token(LIST);
2348 jj_consume_token(LPAREN);
2349 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2352 expr = VariableDeclaratorId();
2356 jj_la1[77] = jj_gen;
2359 jj_consume_token(COMMA);
2361 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2364 expr = VariableDeclaratorId();
2368 jj_la1[78] = jj_gen;
2372 jj_consume_token(RPAREN);
2373 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2375 jj_consume_token(ASSIGN);
2376 expr = Expression();
2377 buff.append("(").append(expr);
2380 jj_la1[79] = jj_gen;
2383 {if (true) return buff.toString();}
2384 throw new Error("Missing return statement in function");
2387 static final public void EchoStatement() throws ParseException {
2388 jj_consume_token(ECHO);
2392 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2397 jj_la1[80] = jj_gen;
2400 jj_consume_token(COMMA);
2404 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2406 jj_consume_token(SEMICOLON);
2409 jj_consume_token(138);
2412 jj_la1[81] = jj_gen;
2413 jj_consume_token(-1);
2414 throw new ParseException();
2416 } catch (ParseException e) {
2417 errorMessage = "';' expected after 'echo' statement";
2419 {if (true) throw e;}
2423 static final public void GlobalStatement() throws ParseException {
2424 jj_consume_token(GLOBAL);
2425 VariableDeclaratorId();
2428 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2433 jj_la1[82] = jj_gen;
2436 jj_consume_token(COMMA);
2437 VariableDeclaratorId();
2440 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2442 jj_consume_token(SEMICOLON);
2445 jj_consume_token(138);
2448 jj_la1[83] = jj_gen;
2449 jj_consume_token(-1);
2450 throw new ParseException();
2452 } catch (ParseException e) {
2453 errorMessage = "';' expected";
2455 {if (true) throw e;}
2459 static final public void StaticStatement() throws ParseException {
2460 jj_consume_token(STATIC);
2461 VariableDeclarator();
2464 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2469 jj_la1[84] = jj_gen;
2472 jj_consume_token(COMMA);
2473 VariableDeclarator();
2476 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2478 jj_consume_token(SEMICOLON);
2481 jj_consume_token(138);
2484 jj_la1[85] = jj_gen;
2485 jj_consume_token(-1);
2486 throw new ParseException();
2488 } catch (ParseException e) {
2489 errorMessage = "';' expected";
2491 {if (true) throw e;}
2495 static final public void LabeledStatement() throws ParseException {
2496 jj_consume_token(IDENTIFIER);
2497 jj_consume_token(COLON);
2501 static final public void Block() throws ParseException {
2503 jj_consume_token(LBRACE);
2504 } catch (ParseException e) {
2505 errorMessage = "'{' expected";
2507 {if (true) throw e;}
2511 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2537 case INTEGER_LITERAL:
2538 case FLOATING_POINT_LITERAL:
2539 case STRING_LITERAL:
2556 jj_la1[86] = jj_gen;
2562 jj_consume_token(RBRACE);
2563 } catch (ParseException e) {
2564 errorMessage = "unexpected token : "+ e.currentToken.image +", '}' expected";
2566 {if (true) throw e;}
2570 static final public void BlockStatement() throws ParseException {
2571 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2595 case INTEGER_LITERAL:
2596 case FLOATING_POINT_LITERAL:
2597 case STRING_LITERAL:
2617 MethodDeclaration();
2620 jj_la1[87] = jj_gen;
2621 jj_consume_token(-1);
2622 throw new ParseException();
2626 static final public void BlockStatementNoBreak() throws ParseException {
2627 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2650 case INTEGER_LITERAL:
2651 case FLOATING_POINT_LITERAL:
2652 case STRING_LITERAL:
2672 MethodDeclaration();
2675 jj_la1[88] = jj_gen;
2676 jj_consume_token(-1);
2677 throw new ParseException();
2681 static final public void LocalVariableDeclaration() throws ParseException {
2682 LocalVariableDeclarator();
2685 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2690 jj_la1[89] = jj_gen;
2693 jj_consume_token(COMMA);
2694 LocalVariableDeclarator();
2698 static final public void LocalVariableDeclarator() throws ParseException {
2699 VariableDeclaratorId();
2700 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2702 jj_consume_token(ASSIGN);
2706 jj_la1[90] = jj_gen;
2711 static final public void EmptyStatement() throws ParseException {
2712 jj_consume_token(SEMICOLON);
2715 static final public void StatementExpression() throws ParseException {
2716 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2718 PreIncrementExpression();
2721 PreDecrementExpression();
2728 PrimaryExpression();
2729 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2744 case RSIGNEDSHIFTASSIGN:
2745 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2747 jj_consume_token(INCR);
2750 jj_consume_token(DECR);
2764 case RSIGNEDSHIFTASSIGN:
2765 AssignmentOperator();
2769 jj_la1[91] = jj_gen;
2770 jj_consume_token(-1);
2771 throw new ParseException();
2775 jj_la1[92] = jj_gen;
2780 jj_la1[93] = jj_gen;
2781 jj_consume_token(-1);
2782 throw new ParseException();
2786 static final public void SwitchStatement() throws ParseException {
2787 Token breakToken = null;
2789 jj_consume_token(SWITCH);
2791 jj_consume_token(LPAREN);
2792 } catch (ParseException e) {
2793 errorMessage = "'(' expected after 'switch'";
2795 {if (true) throw e;}
2799 jj_consume_token(RPAREN);
2800 } catch (ParseException e) {
2801 errorMessage = "')' expected";
2803 {if (true) throw e;}
2806 jj_consume_token(LBRACE);
2807 } catch (ParseException e) {
2808 errorMessage = "'{' expected";
2810 {if (true) throw e;}
2814 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2820 jj_la1[94] = jj_gen;
2823 line = SwitchLabel();
2826 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2851 case INTEGER_LITERAL:
2852 case FLOATING_POINT_LITERAL:
2853 case STRING_LITERAL:
2870 jj_la1[95] = jj_gen;
2873 BlockStatementNoBreak();
2875 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2877 breakToken = jj_consume_token(BREAK);
2879 jj_consume_token(SEMICOLON);
2880 } catch (ParseException e) {
2881 errorMessage = "';' expected after 'break' keyword";
2883 {if (true) throw e;}
2887 jj_la1[96] = jj_gen;
2891 if (breakToken == null) {
2892 setMarker(fileToParse,
2893 "You should use put a 'break' at the end of your statement",
2898 } catch (CoreException e) {
2899 PHPeclipsePlugin.log(e);
2903 jj_consume_token(RBRACE);
2904 } catch (ParseException e) {
2905 errorMessage = "'}' expected";
2907 {if (true) throw e;}
2911 static final public int SwitchLabel() throws ParseException {
2913 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2915 token = jj_consume_token(CASE);
2918 } catch (ParseException e) {
2919 if (errorMessage != null) {if (true) throw e;}
2920 errorMessage = "expression expected after 'case' keyword";
2922 {if (true) throw e;}
2925 jj_consume_token(COLON);
2926 } catch (ParseException e) {
2927 errorMessage = "':' expected after case expression";
2929 {if (true) throw e;}
2931 {if (true) return token.beginLine;}
2934 token = jj_consume_token(_DEFAULT);
2936 jj_consume_token(COLON);
2937 } catch (ParseException e) {
2938 errorMessage = "':' expected after 'default' keyword";
2940 {if (true) throw e;}
2942 {if (true) return token.beginLine;}
2945 jj_la1[97] = jj_gen;
2946 jj_consume_token(-1);
2947 throw new ParseException();
2949 throw new Error("Missing return statement in function");
2952 static final public void IfStatement() throws ParseException {
2954 final int pos = jj_input_stream.bufpos;
2955 token = jj_consume_token(IF);
2957 IfStatement0(pos,pos+token.image.length());
2960 static final public void Condition(final String keyword) throws ParseException {
2962 jj_consume_token(LPAREN);
2963 } catch (ParseException e) {
2964 errorMessage = "'(' expected after " + keyword + " keyword";
2966 {if (true) throw e;}
2970 jj_consume_token(RPAREN);
2971 } catch (ParseException e) {
2972 errorMessage = "')' expected after " + keyword + " keyword";
2974 {if (true) throw e;}
2978 static final public void IfStatement0(final int start,final int end) throws ParseException {
2979 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2981 jj_consume_token(COLON);
2984 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3008 case INTEGER_LITERAL:
3009 case FLOATING_POINT_LITERAL:
3010 case STRING_LITERAL:
3027 jj_la1[98] = jj_gen;
3034 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3039 jj_la1[99] = jj_gen;
3042 ElseIfStatementColon();
3044 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3046 ElseStatementColon();
3049 jj_la1[100] = jj_gen;
3053 setMarker(fileToParse,
3054 "Ugly syntax detected, you should if () {...} instead of if (): ... endif;",
3058 "Line " + token.beginLine);
3059 } catch (CoreException e) {
3060 PHPeclipsePlugin.log(e);
3063 jj_consume_token(ENDIF);
3064 } catch (ParseException e) {
3065 errorMessage = "'endif' expected";
3067 {if (true) throw e;}
3070 jj_consume_token(SEMICOLON);
3071 } catch (ParseException e) {
3072 errorMessage = "';' expected after 'endif' keyword";
3074 {if (true) throw e;}
3100 case INTEGER_LITERAL:
3101 case FLOATING_POINT_LITERAL:
3102 case STRING_LITERAL:
3119 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3124 jj_la1[101] = jj_gen;
3129 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3131 jj_consume_token(ELSE);
3135 jj_la1[102] = jj_gen;
3140 jj_la1[103] = jj_gen;
3141 jj_consume_token(-1);
3142 throw new ParseException();
3146 static final public void ElseIfStatementColon() throws ParseException {
3147 jj_consume_token(ELSEIF);
3148 Condition("elseif");
3149 jj_consume_token(COLON);
3152 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3176 case INTEGER_LITERAL:
3177 case FLOATING_POINT_LITERAL:
3178 case STRING_LITERAL:
3195 jj_la1[104] = jj_gen;
3202 static final public void ElseStatementColon() throws ParseException {
3203 jj_consume_token(ELSE);
3204 jj_consume_token(COLON);
3207 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3231 case INTEGER_LITERAL:
3232 case FLOATING_POINT_LITERAL:
3233 case STRING_LITERAL:
3250 jj_la1[105] = jj_gen;
3257 static final public void ElseIfStatement() throws ParseException {
3258 jj_consume_token(ELSEIF);
3259 Condition("elseif");
3263 static final public void WhileStatement() throws ParseException {
3265 final int pos = jj_input_stream.bufpos;
3266 token = jj_consume_token(WHILE);
3268 WhileStatement0(pos,pos + token.image.length());
3271 static final public void WhileStatement0(final int start, final int end) throws ParseException {
3272 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3274 jj_consume_token(COLON);
3277 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3301 case INTEGER_LITERAL:
3302 case FLOATING_POINT_LITERAL:
3303 case STRING_LITERAL:
3320 jj_la1[106] = jj_gen;
3326 setMarker(fileToParse,
3327 "Ugly syntax detected, you should while () {...} instead of while (): ... endwhile;",
3331 "Line " + token.beginLine);
3332 } catch (CoreException e) {
3333 PHPeclipsePlugin.log(e);
3336 jj_consume_token(ENDWHILE);
3337 } catch (ParseException e) {
3338 errorMessage = "'endwhile' expected";
3340 {if (true) throw e;}
3343 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3345 jj_consume_token(SEMICOLON);
3348 jj_consume_token(138);
3351 jj_la1[107] = jj_gen;
3352 jj_consume_token(-1);
3353 throw new ParseException();
3355 } catch (ParseException e) {
3356 errorMessage = "';' expected after 'endwhile' keyword";
3358 {if (true) throw e;}
3384 case INTEGER_LITERAL:
3385 case FLOATING_POINT_LITERAL:
3386 case STRING_LITERAL:
3403 jj_la1[108] = jj_gen;
3404 jj_consume_token(-1);
3405 throw new ParseException();
3409 static final public void DoStatement() throws ParseException {
3410 jj_consume_token(DO);
3412 jj_consume_token(WHILE);
3415 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3417 jj_consume_token(SEMICOLON);
3420 jj_consume_token(138);
3423 jj_la1[109] = jj_gen;
3424 jj_consume_token(-1);
3425 throw new ParseException();
3427 } catch (ParseException e) {
3428 errorMessage = "';' expected";
3430 {if (true) throw e;}
3434 static final public void ForeachStatement() throws ParseException {
3435 jj_consume_token(FOREACH);
3437 jj_consume_token(LPAREN);
3438 } catch (ParseException e) {
3439 errorMessage = "'(' expected after 'foreach' keyword";
3441 {if (true) throw e;}
3445 } catch (ParseException e) {
3446 errorMessage = "variable expected";
3448 {if (true) throw e;}
3450 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3456 jj_la1[110] = jj_gen;
3460 jj_consume_token(AS);
3461 } catch (ParseException e) {
3462 errorMessage = "'as' expected";
3464 {if (true) throw e;}
3468 } catch (ParseException e) {
3469 errorMessage = "variable expected";
3471 {if (true) throw e;}
3473 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3475 jj_consume_token(ARRAYASSIGN);
3479 jj_la1[111] = jj_gen;
3483 jj_consume_token(RPAREN);
3484 } catch (ParseException e) {
3485 errorMessage = "')' expected after 'foreach' keyword";
3487 {if (true) throw e;}
3491 } catch (ParseException e) {
3492 if (errorMessage != null) {if (true) throw e;}
3493 errorMessage = "statement expected";
3495 {if (true) throw e;}
3499 static final public void ForStatement() throws ParseException {
3501 final int pos = jj_input_stream.bufpos;
3502 token = jj_consume_token(FOR);
3504 jj_consume_token(LPAREN);
3505 } catch (ParseException e) {
3506 errorMessage = "'(' expected after 'for' keyword";
3508 {if (true) throw e;}
3510 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3521 jj_la1[112] = jj_gen;
3524 jj_consume_token(SEMICOLON);
3525 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3533 case INTEGER_LITERAL:
3534 case FLOATING_POINT_LITERAL:
3535 case STRING_LITERAL:
3550 jj_la1[113] = jj_gen;
3553 jj_consume_token(SEMICOLON);
3554 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3562 StatementExpressionList();
3565 jj_la1[114] = jj_gen;
3568 jj_consume_token(RPAREN);
3569 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3593 case INTEGER_LITERAL:
3594 case FLOATING_POINT_LITERAL:
3595 case STRING_LITERAL:
3612 jj_consume_token(COLON);
3615 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3639 case INTEGER_LITERAL:
3640 case FLOATING_POINT_LITERAL:
3641 case STRING_LITERAL:
3658 jj_la1[115] = jj_gen;
3664 setMarker(fileToParse,
3665 "Ugly syntax detected, you should for () {...} instead of for (): ... endfor;",
3667 pos+token.image.length(),
3669 "Line " + token.beginLine);
3670 } catch (CoreException e) {
3671 PHPeclipsePlugin.log(e);
3674 jj_consume_token(ENDFOR);
3675 } catch (ParseException e) {
3676 errorMessage = "'endfor' expected";
3678 {if (true) throw e;}
3681 jj_consume_token(SEMICOLON);
3682 } catch (ParseException e) {
3683 errorMessage = "';' expected after 'endfor' keyword";
3685 {if (true) throw e;}
3689 jj_la1[116] = jj_gen;
3690 jj_consume_token(-1);
3691 throw new ParseException();
3695 static final public void ForInit() throws ParseException {
3696 if (jj_2_7(2147483647)) {
3697 LocalVariableDeclaration();
3699 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3707 StatementExpressionList();
3710 jj_la1[117] = jj_gen;
3711 jj_consume_token(-1);
3712 throw new ParseException();
3717 static final public void StatementExpressionList() throws ParseException {
3718 StatementExpression();
3721 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3726 jj_la1[118] = jj_gen;
3729 jj_consume_token(COMMA);
3730 StatementExpression();
3734 static final public void BreakStatement() throws ParseException {
3735 jj_consume_token(BREAK);
3736 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3738 jj_consume_token(IDENTIFIER);
3741 jj_la1[119] = jj_gen;
3745 jj_consume_token(SEMICOLON);
3746 } catch (ParseException e) {
3747 errorMessage = "';' expected after 'break' statement";
3749 {if (true) throw e;}
3753 static final public void ContinueStatement() throws ParseException {
3754 jj_consume_token(CONTINUE);
3755 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3757 jj_consume_token(IDENTIFIER);
3760 jj_la1[120] = jj_gen;
3764 jj_consume_token(SEMICOLON);
3765 } catch (ParseException e) {
3766 errorMessage = "';' expected after 'continue' statement";
3768 {if (true) throw e;}
3772 static final public void ReturnStatement() throws ParseException {
3773 jj_consume_token(RETURN);
3774 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3782 case INTEGER_LITERAL:
3783 case FLOATING_POINT_LITERAL:
3784 case STRING_LITERAL:
3799 jj_la1[121] = jj_gen;
3803 jj_consume_token(SEMICOLON);
3804 } catch (ParseException e) {
3805 errorMessage = "';' expected after 'return' statement";
3807 {if (true) throw e;}
3811 static final private boolean jj_2_1(int xla) {
3812 jj_la = xla; jj_lastpos = jj_scanpos = token;
3813 boolean retval = !jj_3_1();
3818 static final private boolean jj_2_2(int xla) {
3819 jj_la = xla; jj_lastpos = jj_scanpos = token;
3820 boolean retval = !jj_3_2();
3825 static final private boolean jj_2_3(int xla) {
3826 jj_la = xla; jj_lastpos = jj_scanpos = token;
3827 boolean retval = !jj_3_3();
3832 static final private boolean jj_2_4(int xla) {
3833 jj_la = xla; jj_lastpos = jj_scanpos = token;
3834 boolean retval = !jj_3_4();
3839 static final private boolean jj_2_5(int xla) {
3840 jj_la = xla; jj_lastpos = jj_scanpos = token;
3841 boolean retval = !jj_3_5();
3846 static final private boolean jj_2_6(int xla) {
3847 jj_la = xla; jj_lastpos = jj_scanpos = token;
3848 boolean retval = !jj_3_6();
3853 static final private boolean jj_2_7(int xla) {
3854 jj_la = xla; jj_lastpos = jj_scanpos = token;
3855 boolean retval = !jj_3_7();
3860 static final private boolean jj_3R_116() {
3871 if (jj_3R_123()) return true;
3872 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3873 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3874 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3875 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3876 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3877 if (jj_3R_115()) return true;
3878 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3882 static final private boolean jj_3R_99() {
3883 if (jj_scan_token(LBRACE)) return true;
3884 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3885 if (jj_3R_41()) return true;
3886 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3887 if (jj_scan_token(RBRACE)) return true;
3888 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3892 static final private boolean jj_3R_71() {
3893 if (jj_scan_token(IDENTIFIER)) return true;
3894 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3897 if (jj_3R_109()) jj_scanpos = xsp;
3898 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3902 static final private boolean jj_3R_113() {
3903 if (jj_3R_115()) return true;
3904 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3908 if (jj_3R_116()) { jj_scanpos = xsp; break; }
3909 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3914 static final private boolean jj_3R_70() {
3915 if (jj_scan_token(LBRACE)) return true;
3916 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3917 if (jj_3R_41()) return true;
3918 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3919 if (jj_scan_token(RBRACE)) return true;
3920 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3924 static final private boolean jj_3R_62() {
3933 if (jj_3R_73()) return true;
3934 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3935 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3936 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3937 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3941 static final private boolean jj_3R_197() {
3942 if (jj_scan_token(COMMA)) return true;
3943 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3944 if (jj_3R_41()) return true;
3945 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3949 static final private boolean jj_3R_196() {
3950 if (jj_3R_41()) return true;
3951 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3955 if (jj_3R_197()) { jj_scanpos = xsp; break; }
3956 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3961 static final private boolean jj_3R_94() {
3962 if (jj_scan_token(DOLLAR)) return true;
3963 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3964 if (jj_3R_62()) return true;
3965 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3969 static final private boolean jj_3R_114() {
3970 if (jj_scan_token(BIT_AND)) return true;
3971 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3972 if (jj_3R_113()) return true;
3973 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3977 static final private boolean jj_3R_93() {
3978 if (jj_scan_token(DOLLAR_ID)) return true;
3979 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3982 if (jj_3R_99()) jj_scanpos = xsp;
3983 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3987 static final private boolean jj_3R_77() {
3992 if (jj_3R_94()) return true;
3993 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3994 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3998 static final private boolean jj_3R_111() {
3999 if (jj_3R_113()) return true;
4000 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4004 if (jj_3R_114()) { jj_scanpos = xsp; break; }
4005 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4010 static final private boolean jj_3R_194() {
4011 if (jj_3R_196()) return true;
4012 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4016 static final private boolean jj_3_1() {
4017 if (jj_3R_38()) return true;
4018 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4022 static final private boolean jj_3R_192() {
4023 if (jj_scan_token(LPAREN)) return true;
4024 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4027 if (jj_3R_194()) jj_scanpos = xsp;
4028 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4029 if (jj_scan_token(RPAREN)) return true;
4030 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4034 static final private boolean jj_3R_112() {
4035 if (jj_scan_token(XOR)) return true;
4036 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4037 if (jj_3R_111()) return true;
4038 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4042 static final private boolean jj_3R_68() {
4043 if (jj_3R_77()) return true;
4044 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4048 if (jj_3_1()) { jj_scanpos = xsp; break; }
4049 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4054 static final private boolean jj_3R_107() {
4055 if (jj_3R_111()) return true;
4056 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4060 if (jj_3R_112()) { jj_scanpos = xsp; break; }
4061 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4066 static final private boolean jj_3R_175() {
4067 if (jj_scan_token(NULL)) return true;
4068 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4072 static final private boolean jj_3R_182() {
4073 if (jj_scan_token(FALSE)) return true;
4074 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4078 static final private boolean jj_3R_181() {
4079 if (jj_scan_token(TRUE)) return true;
4080 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4084 static final private boolean jj_3R_174() {
4089 if (jj_3R_182()) return true;
4090 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4091 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4095 static final private boolean jj_3R_108() {
4096 if (jj_scan_token(BIT_OR)) return true;
4097 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4098 if (jj_3R_107()) return true;
4099 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4103 static final private boolean jj_3R_100() {
4104 if (jj_3R_107()) return true;
4105 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4109 if (jj_3R_108()) { jj_scanpos = xsp; break; }
4110 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4115 static final private boolean jj_3R_170() {
4116 if (jj_3R_175()) return true;
4117 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4121 static final private boolean jj_3R_169() {
4122 if (jj_3R_174()) return true;
4123 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4127 static final private boolean jj_3R_103() {
4128 if (jj_scan_token(_ANDL)) return true;
4129 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4133 static final private boolean jj_3R_168() {
4134 if (jj_scan_token(STRING_LITERAL)) return true;
4135 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4139 static final private boolean jj_3R_101() {
4140 if (jj_scan_token(DOT)) return true;
4141 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4142 if (jj_3R_100()) return true;
4143 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4147 static final private boolean jj_3R_167() {
4148 if (jj_scan_token(FLOATING_POINT_LITERAL)) return true;
4149 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4153 static final private boolean jj_3R_95() {
4154 if (jj_3R_100()) return true;
4155 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4159 if (jj_3R_101()) { jj_scanpos = xsp; break; }
4160 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4165 static final private boolean jj_3R_163() {
4176 if (jj_3R_170()) return true;
4177 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4178 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4179 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4180 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4181 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4185 static final private boolean jj_3R_166() {
4186 if (jj_scan_token(INTEGER_LITERAL)) return true;
4187 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4191 static final private boolean jj_3R_63() {
4192 if (jj_3R_41()) return true;
4193 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4197 static final private boolean jj_3R_98() {
4198 if (jj_scan_token(_ORL)) return true;
4199 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4203 static final private boolean jj_3R_102() {
4204 if (jj_scan_token(SC_AND)) return true;
4205 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4209 static final private boolean jj_3R_96() {
4214 if (jj_3R_103()) return true;
4215 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4216 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4217 if (jj_3R_95()) return true;
4218 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4222 static final private boolean jj_3R_78() {
4223 if (jj_3R_95()) return true;
4224 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4228 if (jj_3R_96()) { jj_scanpos = xsp; break; }
4229 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4234 static final private boolean jj_3R_69() {
4235 if (jj_scan_token(ASSIGN)) return true;
4236 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4237 if (jj_3R_41()) return true;
4238 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4242 static final private boolean jj_3R_75() {
4243 if (jj_scan_token(HOOK)) return true;
4244 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4245 if (jj_3R_41()) return true;
4246 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4247 if (jj_scan_token(COLON)) return true;
4248 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4249 if (jj_3R_66()) return true;
4250 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4254 static final private boolean jj_3R_61() {
4255 if (jj_scan_token(COMMA)) return true;
4256 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4257 if (jj_3R_60()) return true;
4258 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4262 static final private boolean jj_3R_47() {
4263 if (jj_scan_token(LBRACKET)) return true;
4264 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4267 if (jj_3R_63()) jj_scanpos = xsp;
4268 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4269 if (jj_scan_token(RBRACKET)) return true;
4270 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4274 static final private boolean jj_3R_46() {
4275 if (jj_scan_token(CLASSACCESS)) return true;
4276 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4277 if (jj_3R_62()) return true;
4278 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4282 static final private boolean jj_3R_38() {
4287 if (jj_3R_47()) return true;
4288 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4289 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4293 static final private boolean jj_3R_97() {
4294 if (jj_scan_token(SC_OR)) return true;
4295 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4299 static final private boolean jj_3R_189() {
4300 if (jj_3R_38()) return true;
4301 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4305 static final private boolean jj_3R_79() {
4310 if (jj_3R_98()) return true;
4311 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4312 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4313 if (jj_3R_78()) return true;
4314 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4318 static final private boolean jj_3R_188() {
4319 if (jj_3R_192()) return true;
4320 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4324 static final private boolean jj_3R_184() {
4329 if (jj_3R_189()) return true;
4330 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4331 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4335 static final private boolean jj_3R_74() {
4336 if (jj_3R_78()) return true;
4337 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4341 if (jj_3R_79()) { jj_scanpos = xsp; break; }
4342 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4347 static final private boolean jj_3R_60() {
4348 if (jj_3R_68()) return true;
4349 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4352 if (jj_3R_69()) jj_scanpos = xsp;
4353 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4357 static final private boolean jj_3R_191() {
4358 if (jj_3R_68()) return true;
4359 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4363 static final private boolean jj_3R_190() {
4364 if (jj_scan_token(IDENTIFIER)) return true;
4365 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4369 static final private boolean jj_3R_186() {
4374 if (jj_3R_191()) return true;
4375 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4376 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4380 static final private boolean jj_3R_45() {
4381 if (jj_3R_60()) return true;
4382 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4386 if (jj_3R_61()) { jj_scanpos = xsp; break; }
4387 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4392 static final private boolean jj_3R_66() {
4393 if (jj_3R_74()) return true;
4394 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4397 if (jj_3R_75()) jj_scanpos = xsp;
4398 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4402 static final private boolean jj_3_7() {
4403 if (jj_3R_45()) return true;
4404 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4408 static final private boolean jj_3R_178() {
4409 if (jj_3R_68()) return true;
4410 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4414 static final private boolean jj_3R_177() {
4415 if (jj_scan_token(NEW)) return true;
4416 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4417 if (jj_3R_186()) return true;
4418 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4422 static final private boolean jj_3R_180() {
4423 if (jj_scan_token(DECR)) return true;
4424 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4428 static final private boolean jj_3R_176() {
4429 if (jj_scan_token(IDENTIFIER)) return true;
4430 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4434 static final private boolean jj_3R_92() {
4435 if (jj_scan_token(TILDEEQUAL)) return true;
4436 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4440 static final private boolean jj_3R_171() {
4447 if (jj_3R_178()) return true;
4448 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4449 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4450 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4454 static final private boolean jj_3R_91() {
4455 if (jj_scan_token(DOTASSIGN)) return true;
4456 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4460 static final private boolean jj_3R_90() {
4461 if (jj_scan_token(ORASSIGN)) return true;
4462 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4466 static final private boolean jj_3R_89() {
4467 if (jj_scan_token(XORASSIGN)) return true;
4468 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4472 static final private boolean jj_3R_88() {
4473 if (jj_scan_token(ANDASSIGN)) return true;
4474 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4478 static final private boolean jj_3R_87() {
4479 if (jj_scan_token(RSIGNEDSHIFTASSIGN)) return true;
4480 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4484 static final private boolean jj_3R_172() {
4485 if (jj_scan_token(ARRAY)) return true;
4486 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4487 if (jj_3R_185()) return true;
4488 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4492 static final private boolean jj_3R_86() {
4493 if (jj_scan_token(LSHIFTASSIGN)) return true;
4494 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4498 static final private boolean jj_3R_85() {
4499 if (jj_scan_token(MINUSASSIGN)) return true;
4500 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4504 static final private boolean jj_3R_84() {
4505 if (jj_scan_token(PLUSASSIGN)) return true;
4506 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4510 static final private boolean jj_3R_83() {
4511 if (jj_scan_token(REMASSIGN)) return true;
4512 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4516 static final private boolean jj_3R_179() {
4517 if (jj_scan_token(INCR)) return true;
4518 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4522 static final private boolean jj_3R_165() {
4523 if (jj_3R_172()) return true;
4524 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4528 static final private boolean jj_3R_173() {
4533 if (jj_3R_180()) return true;
4534 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4535 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4539 static final private boolean jj_3R_183() {
4540 if (jj_3R_184()) return true;
4541 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4545 static final private boolean jj_3R_82() {
4546 if (jj_scan_token(SLASHASSIGN)) return true;
4547 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4551 static final private boolean jj_3R_81() {
4552 if (jj_scan_token(STARASSIGN)) return true;
4553 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4557 static final private boolean jj_3R_164() {
4558 if (jj_3R_171()) return true;
4559 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4563 if (jj_3R_183()) { jj_scanpos = xsp; break; }
4564 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4569 static final private boolean jj_3R_80() {
4570 if (jj_scan_token(ASSIGN)) return true;
4571 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4575 static final private boolean jj_3R_76() {
4602 if (jj_3R_92()) return true;
4603 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4604 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4605 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4606 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4607 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4608 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4609 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4610 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4611 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4612 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4613 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4614 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4615 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4619 static final private boolean jj_3R_187() {
4620 if (jj_3R_184()) return true;
4621 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4625 static final private boolean jj_3R_44() {
4626 if (jj_scan_token(IDENTIFIER)) return true;
4627 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4628 if (jj_scan_token(COLON)) return true;
4629 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4633 static final private boolean jj_3_4() {
4634 if (jj_scan_token(IDENTIFIER)) return true;
4635 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4636 if (jj_scan_token(STATICCLASSACCESS)) return true;
4637 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4638 if (jj_3R_186()) return true;
4639 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4643 if (jj_3R_187()) { jj_scanpos = xsp; break; }
4644 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4649 static final private boolean jj_3R_160() {
4656 if (jj_3R_165()) return true;
4657 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4658 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4659 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4663 static final private boolean jj_3R_67() {
4664 if (jj_3R_76()) return true;
4665 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4666 if (jj_3R_41()) return true;
4667 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4671 static final private boolean jj_3R_59() {
4672 if (jj_3R_66()) return true;
4673 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4676 if (jj_3R_67()) jj_scanpos = xsp;
4677 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4681 static final private boolean jj_3R_58() {
4682 if (jj_3R_65()) return true;
4683 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4687 static final private boolean jj_3R_41() {
4694 if (jj_3R_59()) return true;
4695 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4696 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4697 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4701 static final private boolean jj_3R_57() {
4702 if (jj_3R_64()) return true;
4703 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4707 static final private boolean jj_3R_162() {
4708 if (jj_3R_160()) return true;
4709 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4712 if (jj_3R_173()) jj_scanpos = xsp;
4713 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4717 static final private boolean jj_3R_161() {
4718 if (jj_scan_token(LPAREN)) return true;
4719 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4720 if (jj_3R_40()) return true;
4721 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4722 if (jj_scan_token(RPAREN)) return true;
4723 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4724 if (jj_3R_135()) return true;
4725 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4729 static final private boolean jj_3R_56() {
4730 if (jj_scan_token(OBJECT)) return true;
4731 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4735 static final private boolean jj_3R_55() {
4736 if (jj_scan_token(INTEGER)) return true;
4737 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4741 static final private boolean jj_3R_54() {
4742 if (jj_scan_token(INT)) return true;
4743 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4747 static final private boolean jj_3R_53() {
4748 if (jj_scan_token(FLOAT)) return true;
4749 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4753 static final private boolean jj_3R_52() {
4754 if (jj_scan_token(DOUBLE)) return true;
4755 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4759 static final private boolean jj_3R_106() {
4760 if (jj_scan_token(ASSIGN)) return true;
4761 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4762 if (jj_3R_41()) return true;
4763 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4767 static final private boolean jj_3_3() {
4768 if (jj_scan_token(LPAREN)) return true;
4769 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4770 if (jj_3R_40()) return true;
4771 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4772 if (jj_scan_token(RPAREN)) return true;
4773 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4777 static final private boolean jj_3R_51() {
4778 if (jj_scan_token(REAL)) return true;
4779 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4783 static final private boolean jj_3R_159() {
4784 if (jj_scan_token(LPAREN)) return true;
4785 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4786 if (jj_3R_41()) return true;
4787 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_50() {
4794 if (jj_scan_token(BOOLEAN)) return true;
4795 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4799 static final private boolean jj_3R_158() {
4800 if (jj_3R_163()) return true;
4801 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4805 static final private boolean jj_3R_105() {
4806 if (jj_3R_68()) return true;
4807 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4811 static final private boolean jj_3R_49() {
4812 if (jj_scan_token(BOOL)) return true;
4813 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4817 static final private boolean jj_3R_157() {
4818 if (jj_3R_162()) return true;
4819 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4823 static final private boolean jj_3R_40() {
4842 if (jj_3R_56()) return true;
4843 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4844 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4845 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4846 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4847 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4848 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4849 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4850 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4851 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4855 static final private boolean jj_3R_48() {
4856 if (jj_scan_token(STRING)) return true;
4857 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4861 static final private boolean jj_3R_104() {
4862 if (jj_3R_68()) return true;
4863 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4867 static final private boolean jj_3R_156() {
4868 if (jj_3R_161()) return true;
4869 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4873 static final private boolean jj_3R_154() {
4884 if (jj_3R_159()) return true;
4885 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4886 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4887 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4888 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4889 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4893 static final private boolean jj_3R_155() {
4894 if (jj_scan_token(BANG)) return true;
4895 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4896 if (jj_3R_135()) return true;
4897 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4901 static final private boolean jj_3R_65() {
4902 if (jj_scan_token(LIST)) return true;
4903 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4904 if (jj_scan_token(LPAREN)) return true;
4905 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4908 if (jj_3R_104()) jj_scanpos = xsp;
4909 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4910 if (jj_scan_token(COMMA)) return true;
4911 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4913 if (jj_3R_105()) jj_scanpos = xsp;
4914 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4915 if (jj_scan_token(RPAREN)) return true;
4916 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4918 if (jj_3R_106()) jj_scanpos = xsp;
4919 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4923 static final private boolean jj_3R_153() {
4924 if (jj_scan_token(DECR)) return true;
4925 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4926 if (jj_3R_160()) return true;
4927 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4931 static final private boolean jj_3R_64() {
4932 if (jj_scan_token(PRINT)) return true;
4933 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4934 if (jj_3R_41()) return true;
4935 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4939 static final private boolean jj_3R_152() {
4940 if (jj_scan_token(INCR)) return true;
4941 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4942 if (jj_3R_160()) return true;
4943 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4947 static final private boolean jj_3R_151() {
4948 if (jj_scan_token(MINUS)) return true;
4949 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4953 static final private boolean jj_3R_149() {
4954 if (jj_3R_154()) return true;
4955 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4959 static final private boolean jj_3R_148() {
4960 if (jj_3R_153()) return true;
4961 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4965 static final private boolean jj_3R_143() {
4966 if (jj_scan_token(REM)) return true;
4967 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4971 static final private boolean jj_3R_147() {
4972 if (jj_3R_152()) return true;
4973 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4977 static final private boolean jj_3R_150() {
4978 if (jj_scan_token(PLUS)) return true;
4979 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4983 static final private boolean jj_3R_144() {
4992 if (jj_3R_149()) return true;
4993 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4994 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4995 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4996 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5000 static final private boolean jj_3R_146() {
5005 if (jj_3R_151()) return true;
5006 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5007 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5008 if (jj_3R_135()) return true;
5009 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5013 static final private boolean jj_3R_145() {
5014 if (jj_scan_token(AT)) return true;
5015 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5019 static final private boolean jj_3R_140() {
5023 if (jj_3R_145()) { jj_scanpos = xsp; break; }
5024 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5026 if (jj_3R_144()) return true;
5027 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5031 static final private boolean jj_3R_142() {
5032 if (jj_scan_token(SLASH)) return true;
5033 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5037 static final private boolean jj_3R_135() {
5042 if (jj_3R_140()) return true;
5043 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5044 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5048 static final private boolean jj_3R_139() {
5049 if (jj_scan_token(BIT_AND)) return true;
5050 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5051 if (jj_3R_144()) return true;
5052 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5056 static final private boolean jj_3R_134() {
5057 if (jj_scan_token(RUNSIGNEDSHIFT)) return true;
5058 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5062 static final private boolean jj_3R_138() {
5063 if (jj_scan_token(MINUS)) return true;
5064 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5068 static final private boolean jj_3R_129() {
5069 if (jj_scan_token(GE)) return true;
5070 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5074 static final private boolean jj_3R_141() {
5075 if (jj_scan_token(STAR)) return true;
5076 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5080 static final private boolean jj_3R_136() {
5087 if (jj_3R_143()) return true;
5088 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5089 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5090 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5091 if (jj_3R_135()) return true;
5092 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5096 static final private boolean jj_3R_130() {
5097 if (jj_3R_135()) return true;
5098 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5102 if (jj_3R_136()) { jj_scanpos = xsp; break; }
5103 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5108 static final private boolean jj_3_2() {
5109 if (jj_scan_token(COMMA)) return true;
5110 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5111 if (jj_3R_39()) return true;
5112 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5116 static final private boolean jj_3R_193() {
5117 if (jj_3R_39()) return true;
5118 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5122 if (jj_3_2()) { jj_scanpos = xsp; break; }
5123 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5128 static final private boolean jj_3R_133() {
5129 if (jj_scan_token(RSIGNEDSHIFT)) return true;
5130 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5134 static final private boolean jj_3R_128() {
5135 if (jj_scan_token(LE)) return true;
5136 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5140 static final private boolean jj_3R_137() {
5141 if (jj_scan_token(PLUS)) return true;
5142 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5146 static final private boolean jj_3R_131() {
5151 if (jj_3R_138()) return true;
5152 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5153 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5154 if (jj_3R_130()) return true;
5155 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5159 static final private boolean jj_3R_185() {
5160 if (jj_scan_token(LPAREN)) return true;
5161 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5164 if (jj_3R_193()) jj_scanpos = xsp;
5165 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5166 if (jj_scan_token(RPAREN)) return true;
5167 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5171 static final private boolean jj_3R_124() {
5172 if (jj_3R_130()) return true;
5173 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5177 if (jj_3R_131()) { jj_scanpos = xsp; break; }
5178 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5183 static final private boolean jj_3R_195() {
5184 if (jj_scan_token(ARRAYASSIGN)) return true;
5185 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5186 if (jj_3R_41()) return true;
5187 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5191 static final private boolean jj_3R_39() {
5192 if (jj_3R_41()) return true;
5193 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5196 if (jj_3R_195()) jj_scanpos = xsp;
5197 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5201 static final private boolean jj_3R_127() {
5202 if (jj_scan_token(GT)) return true;
5203 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5207 static final private boolean jj_3R_132() {
5208 if (jj_scan_token(LSHIFT)) return true;
5209 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5213 static final private boolean jj_3R_125() {
5220 if (jj_3R_134()) return true;
5221 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5222 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5223 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5224 if (jj_3R_124()) return true;
5225 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5229 static final private boolean jj_3R_117() {
5230 if (jj_3R_124()) return true;
5231 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5235 if (jj_3R_125()) { jj_scanpos = xsp; break; }
5236 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5241 static final private boolean jj_3R_110() {
5242 if (jj_3R_62()) return true;
5243 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5247 static final private boolean jj_3R_43() {
5248 if (jj_scan_token(PHPEND)) return true;
5249 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5253 static final private boolean jj_3R_126() {
5254 if (jj_scan_token(LT)) return true;
5255 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5259 static final private boolean jj_3R_118() {
5268 if (jj_3R_129()) return true;
5269 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5270 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5271 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5272 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5273 if (jj_3R_117()) return true;
5274 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5278 static final private boolean jj_3R_115() {
5279 if (jj_3R_117()) return true;
5280 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5284 if (jj_3R_118()) { jj_scanpos = xsp; break; }
5285 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5290 static final private boolean jj_3R_109() {
5291 if (jj_scan_token(LBRACE)) return true;
5292 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5293 if (jj_3R_41()) return true;
5294 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5295 if (jj_scan_token(RBRACE)) return true;
5296 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5300 static final private boolean jj_3_6() {
5301 if (jj_3R_44()) return true;
5302 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5306 static final private boolean jj_3R_42() {
5307 if (jj_scan_token(SEMICOLON)) return true;
5308 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5312 static final private boolean jj_3R_73() {
5313 if (jj_scan_token(DOLLAR_ID)) return true;
5314 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5317 if (jj_3R_110()) jj_scanpos = xsp;
5318 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5322 static final private boolean jj_3_5() {
5323 if (jj_3R_41()) return true;
5324 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5329 if (jj_3R_43()) return true;
5330 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5331 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5335 static final private boolean jj_3R_123() {
5336 if (jj_scan_token(TRIPLEEQUAL)) return true;
5337 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5341 static final private boolean jj_3R_122() {
5342 if (jj_scan_token(BANGDOUBLEEQUAL)) return true;
5343 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5347 static final private boolean jj_3R_72() {
5348 if (jj_scan_token(DOLLAR)) return true;
5349 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5350 if (jj_3R_62()) return true;
5351 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5355 static final private boolean jj_3R_121() {
5356 if (jj_scan_token(NE)) return true;
5357 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5361 static final private boolean jj_3R_120() {
5362 if (jj_scan_token(DIF)) return true;
5363 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5367 static final private boolean jj_3R_119() {
5368 if (jj_scan_token(EQ)) return true;
5369 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5373 static private boolean jj_initialized_once = false;
5374 static public PHPParserTokenManager token_source;
5375 static SimpleCharStream jj_input_stream;
5376 static public Token token, jj_nt;
5377 static private int jj_ntk;
5378 static private Token jj_scanpos, jj_lastpos;
5379 static private int jj_la;
5380 static public boolean lookingAhead = false;
5381 static private boolean jj_semLA;
5382 static private int jj_gen;
5383 static final private int[] jj_la1 = new int[122];
5384 static private int[] jj_la1_0;
5385 static private int[] jj_la1_1;
5386 static private int[] jj_la1_2;
5387 static private int[] jj_la1_3;
5388 static private int[] jj_la1_4;
5396 private static void jj_la1_0() {
5397 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,0xf2400000,0xfe400000,0x0,0x0,0x0,0x0,0xe0000000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xfe580000,0xfe580000,0xfa580000,0x0,0x0,0x0,0x0,0x2000000,0x0,0xfa580000,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,};
5399 private static void jj_la1_1() {
5400 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,0x8ebaa47,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x8ebaa47,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,};
5402 private static void jj_la1_2() {
5403 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,0x11445100,0x10000000,0x10000000,0x10000000,0x10000000,0x0,0x0,0x0,0x0,0x20000000,0x10000000,0x20000000,0x10000000,0x20000000,0x10000000,0x11445100,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,};
5405 private static void jj_la1_3() {
5406 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,0x3c380000,0x0,0x0,0x0,0x0,0x0,0x100000,0x100000,0x100,0x0,0x0,0x0,0x0,0x0,0x0,0x3c380000,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,};
5408 private static void jj_la1_4() {
5409 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,0x201,0x400,0x400,0x400,0x400,0x0,0x200,0x200,0x0,0x0,0x400,0x0,0x400,0x0,0x400,0x201,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,};
5411 static final private JJCalls[] jj_2_rtns = new JJCalls[7];
5412 static private boolean jj_rescan = false;
5413 static private int jj_gc = 0;
5415 public PHPParser(java.io.InputStream stream) {
5416 if (jj_initialized_once) {
5417 System.out.println("ERROR: Second call to constructor of static parser. You must");
5418 System.out.println(" either use ReInit() or set the JavaCC option STATIC to false");
5419 System.out.println(" during parser generation.");
5422 jj_initialized_once = true;
5423 jj_input_stream = new SimpleCharStream(stream, 1, 1);
5424 token_source = new PHPParserTokenManager(jj_input_stream);
5425 token = new Token();
5428 for (int i = 0; i < 122; i++) jj_la1[i] = -1;
5429 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
5432 static public void ReInit(java.io.InputStream stream) {
5433 jj_input_stream.ReInit(stream, 1, 1);
5434 token_source.ReInit(jj_input_stream);
5435 token = new Token();
5438 for (int i = 0; i < 122; i++) jj_la1[i] = -1;
5439 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
5442 public PHPParser(java.io.Reader stream) {
5443 if (jj_initialized_once) {
5444 System.out.println("ERROR: Second call to constructor of static parser. You must");
5445 System.out.println(" either use ReInit() or set the JavaCC option STATIC to false");
5446 System.out.println(" during parser generation.");
5449 jj_initialized_once = true;
5450 jj_input_stream = new SimpleCharStream(stream, 1, 1);
5451 token_source = new PHPParserTokenManager(jj_input_stream);
5452 token = new Token();
5455 for (int i = 0; i < 122; i++) jj_la1[i] = -1;
5456 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
5459 static public void ReInit(java.io.Reader stream) {
5460 jj_input_stream.ReInit(stream, 1, 1);
5461 token_source.ReInit(jj_input_stream);
5462 token = new Token();
5465 for (int i = 0; i < 122; i++) jj_la1[i] = -1;
5466 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
5469 public PHPParser(PHPParserTokenManager tm) {
5470 if (jj_initialized_once) {
5471 System.out.println("ERROR: Second call to constructor of static parser. You must");
5472 System.out.println(" either use ReInit() or set the JavaCC option STATIC to false");
5473 System.out.println(" during parser generation.");
5476 jj_initialized_once = true;
5478 token = new Token();
5481 for (int i = 0; i < 122; i++) jj_la1[i] = -1;
5482 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
5485 public void ReInit(PHPParserTokenManager tm) {
5487 token = new Token();
5490 for (int i = 0; i < 122; i++) jj_la1[i] = -1;
5491 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
5494 static final private Token jj_consume_token(int kind) throws ParseException {
5496 if ((oldToken = token).next != null) token = token.next;
5497 else token = token.next = token_source.getNextToken();
5499 if (token.kind == kind) {
5501 if (++jj_gc > 100) {
5503 for (int i = 0; i < jj_2_rtns.length; i++) {
5504 JJCalls c = jj_2_rtns[i];
5506 if (c.gen < jj_gen) c.first = null;
5515 throw generateParseException();
5518 static final private boolean jj_scan_token(int kind) {
5519 if (jj_scanpos == jj_lastpos) {
5521 if (jj_scanpos.next == null) {
5522 jj_lastpos = jj_scanpos = jj_scanpos.next = token_source.getNextToken();
5524 jj_lastpos = jj_scanpos = jj_scanpos.next;
5527 jj_scanpos = jj_scanpos.next;
5530 int i = 0; Token tok = token;
5531 while (tok != null && tok != jj_scanpos) { i++; tok = tok.next; }
5532 if (tok != null) jj_add_error_token(kind, i);
5534 return (jj_scanpos.kind != kind);
5537 static final public Token getNextToken() {
5538 if (token.next != null) token = token.next;
5539 else token = token.next = token_source.getNextToken();
5545 static final public Token getToken(int index) {
5546 Token t = lookingAhead ? jj_scanpos : token;
5547 for (int i = 0; i < index; i++) {
5548 if (t.next != null) t = t.next;
5549 else t = t.next = token_source.getNextToken();
5554 static final private int jj_ntk() {
5555 if ((jj_nt=token.next) == null)
5556 return (jj_ntk = (token.next=token_source.getNextToken()).kind);
5558 return (jj_ntk = jj_nt.kind);
5561 static private java.util.Vector jj_expentries = new java.util.Vector();
5562 static private int[] jj_expentry;
5563 static private int jj_kind = -1;
5564 static private int[] jj_lasttokens = new int[100];
5565 static private int jj_endpos;
5567 static private void jj_add_error_token(int kind, int pos) {
5568 if (pos >= 100) return;
5569 if (pos == jj_endpos + 1) {
5570 jj_lasttokens[jj_endpos++] = kind;
5571 } else if (jj_endpos != 0) {
5572 jj_expentry = new int[jj_endpos];
5573 for (int i = 0; i < jj_endpos; i++) {
5574 jj_expentry[i] = jj_lasttokens[i];
5576 boolean exists = false;
5577 for (java.util.Enumeration enum = jj_expentries.elements(); enum.hasMoreElements();) {
5578 int[] oldentry = (int[])(enum.nextElement());
5579 if (oldentry.length == jj_expentry.length) {
5581 for (int i = 0; i < jj_expentry.length; i++) {
5582 if (oldentry[i] != jj_expentry[i]) {
5590 if (!exists) jj_expentries.addElement(jj_expentry);
5591 if (pos != 0) jj_lasttokens[(jj_endpos = pos) - 1] = kind;
5595 static public ParseException generateParseException() {
5596 jj_expentries.removeAllElements();
5597 boolean[] la1tokens = new boolean[139];
5598 for (int i = 0; i < 139; i++) {
5599 la1tokens[i] = false;
5602 la1tokens[jj_kind] = true;
5605 for (int i = 0; i < 122; i++) {
5606 if (jj_la1[i] == jj_gen) {
5607 for (int j = 0; j < 32; j++) {
5608 if ((jj_la1_0[i] & (1<<j)) != 0) {
5609 la1tokens[j] = true;
5611 if ((jj_la1_1[i] & (1<<j)) != 0) {
5612 la1tokens[32+j] = true;
5614 if ((jj_la1_2[i] & (1<<j)) != 0) {
5615 la1tokens[64+j] = true;
5617 if ((jj_la1_3[i] & (1<<j)) != 0) {
5618 la1tokens[96+j] = true;
5620 if ((jj_la1_4[i] & (1<<j)) != 0) {
5621 la1tokens[128+j] = true;
5626 for (int i = 0; i < 139; i++) {
5628 jj_expentry = new int[1];
5630 jj_expentries.addElement(jj_expentry);
5635 jj_add_error_token(0, 0);
5636 int[][] exptokseq = new int[jj_expentries.size()][];
5637 for (int i = 0; i < jj_expentries.size(); i++) {
5638 exptokseq[i] = (int[])jj_expentries.elementAt(i);
5640 return new ParseException(token, exptokseq, tokenImage);
5643 static final public void enable_tracing() {
5646 static final public void disable_tracing() {
5649 static final private void jj_rescan_token() {
5651 for (int i = 0; i < 7; i++) {
5652 JJCalls p = jj_2_rtns[i];
5654 if (p.gen > jj_gen) {
5655 jj_la = p.arg; jj_lastpos = jj_scanpos = p.first;
5657 case 0: jj_3_1(); break;
5658 case 1: jj_3_2(); break;
5659 case 2: jj_3_3(); break;
5660 case 3: jj_3_4(); break;
5661 case 4: jj_3_5(); break;
5662 case 5: jj_3_6(); break;
5663 case 6: jj_3_7(); break;
5667 } while (p != null);
5672 static final private void jj_save(int index, int xla) {
5673 JJCalls p = jj_2_rtns[index];
5674 while (p.gen > jj_gen) {
5675 if (p.next == null) { p = p.next = new JJCalls(); break; }
5678 p.gen = jj_gen + xla - jj_la; p.first = token; p.arg = xla;
5681 static final class JJCalls {