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);
837 functionDeclaration = MethodDeclarator();
838 } catch (ParseException e) {
839 if (errorMessage != null) {
842 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', function identifier expected";
846 if (currentSegment != null) {
847 currentSegment.add(functionDeclaration);
848 currentSegment = functionDeclaration;
851 if (currentSegment != null) {
852 currentSegment = (PHPSegmentWithChildren) currentSegment.getParent();
856 static final public PHPFunctionDeclaration MethodDeclarator() throws ParseException {
857 final Token identifier;
858 final StringBuffer methodDeclaration = new StringBuffer();
859 final String formalParameters;
860 final int pos = jj_input_stream.bufpos;
861 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
863 jj_consume_token(BIT_AND);
864 methodDeclaration.append("&");
870 identifier = jj_consume_token(IDENTIFIER);
871 methodDeclaration.append(identifier);
872 formalParameters = FormalParameters();
873 methodDeclaration.append(formalParameters);
874 {if (true) return new PHPFunctionDeclaration(currentSegment,methodDeclaration.toString(),pos);}
875 throw new Error("Missing return statement in function");
878 static final public String FormalParameters() throws ParseException {
880 final StringBuffer buff = new StringBuffer("(");
882 jj_consume_token(LPAREN);
883 } catch (ParseException e) {
884 errorMessage = "Formal parameter expected after function identifier";
886 jj_consume_token(token.kind);
888 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
892 expr = FormalParameter();
896 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
904 jj_consume_token(COMMA);
905 expr = FormalParameter();
906 buff.append(",").append(expr);
914 jj_consume_token(RPAREN);
915 } catch (ParseException e) {
916 errorMessage = "')' expected";
921 {if (true) return buff.toString();}
922 throw new Error("Missing return statement in function");
925 static final public String FormalParameter() throws ParseException {
926 final PHPVarDeclaration variableDeclaration;
927 final StringBuffer buff = new StringBuffer();
928 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
930 jj_consume_token(BIT_AND);
937 variableDeclaration = VariableDeclarator();
938 buff.append(variableDeclaration.toString());
939 {if (true) return buff.toString();}
940 throw new Error("Missing return statement in function");
943 static final public String Type() throws ParseException {
944 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
946 jj_consume_token(STRING);
947 {if (true) return "string";}
950 jj_consume_token(BOOL);
951 {if (true) return "bool";}
954 jj_consume_token(BOOLEAN);
955 {if (true) return "boolean";}
958 jj_consume_token(REAL);
959 {if (true) return "real";}
962 jj_consume_token(DOUBLE);
963 {if (true) return "double";}
966 jj_consume_token(FLOAT);
967 {if (true) return "float";}
970 jj_consume_token(INT);
971 {if (true) return "int";}
974 jj_consume_token(INTEGER);
975 {if (true) return "integer";}
978 jj_consume_token(OBJECT);
979 {if (true) return "object";}
983 jj_consume_token(-1);
984 throw new ParseException();
986 throw new Error("Missing return statement in function");
989 static final public String Expression() throws ParseException {
991 final String assignOperator;
993 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
995 expr = PrintExpression();
996 {if (true) return expr;}
999 expr = ListExpression();
1000 {if (true) return expr;}
1007 case INTEGER_LITERAL:
1008 case FLOATING_POINT_LITERAL:
1009 case STRING_LITERAL:
1021 expr = ConditionalExpression();
1022 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1035 case RSIGNEDSHIFTASSIGN:
1036 assignOperator = AssignmentOperator();
1038 expr2 = Expression();
1039 {if (true) return expr + assignOperator + expr2;}
1040 } catch (ParseException e) {
1041 errorMessage = "expression expected";
1043 {if (true) throw e;}
1047 jj_la1[26] = jj_gen;
1050 {if (true) return expr;}
1053 jj_la1[27] = jj_gen;
1054 jj_consume_token(-1);
1055 throw new ParseException();
1057 throw new Error("Missing return statement in function");
1060 static final public String AssignmentOperator() throws ParseException {
1061 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1063 jj_consume_token(ASSIGN);
1064 {if (true) return "=";}
1067 jj_consume_token(STARASSIGN);
1068 {if (true) return "*=";}
1071 jj_consume_token(SLASHASSIGN);
1072 {if (true) return "/=";}
1075 jj_consume_token(REMASSIGN);
1076 {if (true) return "%=";}
1079 jj_consume_token(PLUSASSIGN);
1080 {if (true) return "+=";}
1083 jj_consume_token(MINUSASSIGN);
1084 {if (true) return "-=";}
1087 jj_consume_token(LSHIFTASSIGN);
1088 {if (true) return "<<=";}
1090 case RSIGNEDSHIFTASSIGN:
1091 jj_consume_token(RSIGNEDSHIFTASSIGN);
1092 {if (true) return ">>=";}
1095 jj_consume_token(ANDASSIGN);
1096 {if (true) return "&=";}
1099 jj_consume_token(XORASSIGN);
1100 {if (true) return "|=";}
1103 jj_consume_token(ORASSIGN);
1104 {if (true) return "|=";}
1107 jj_consume_token(DOTASSIGN);
1108 {if (true) return ".=";}
1111 jj_consume_token(TILDEEQUAL);
1112 {if (true) return "~=";}
1115 jj_la1[28] = jj_gen;
1116 jj_consume_token(-1);
1117 throw new ParseException();
1119 throw new Error("Missing return statement in function");
1122 static final public String ConditionalExpression() throws ParseException {
1124 String expr2 = null;
1125 String expr3 = null;
1126 expr = ConditionalOrExpression();
1127 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1129 jj_consume_token(HOOK);
1130 expr2 = Expression();
1131 jj_consume_token(COLON);
1132 expr3 = ConditionalExpression();
1135 jj_la1[29] = jj_gen;
1138 if (expr3 == null) {
1139 {if (true) return expr;}
1141 {if (true) return expr + "?" + expr2 + ":" + expr3;}
1143 throw new Error("Missing return statement in function");
1146 static final public String ConditionalOrExpression() throws ParseException {
1149 final StringBuffer buff = new StringBuffer();
1150 expr = ConditionalAndExpression();
1154 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1160 jj_la1[30] = jj_gen;
1163 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1165 operator = jj_consume_token(SC_OR);
1168 operator = jj_consume_token(_ORL);
1171 jj_la1[31] = jj_gen;
1172 jj_consume_token(-1);
1173 throw new ParseException();
1175 expr = ConditionalAndExpression();
1176 buff.append(operator.image);
1179 {if (true) return buff.toString();}
1180 throw new Error("Missing return statement in function");
1183 static final public String ConditionalAndExpression() throws ParseException {
1186 final StringBuffer buff = new StringBuffer();
1187 expr = ConcatExpression();
1191 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1197 jj_la1[32] = jj_gen;
1200 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1202 operator = jj_consume_token(SC_AND);
1205 operator = jj_consume_token(_ANDL);
1208 jj_la1[33] = jj_gen;
1209 jj_consume_token(-1);
1210 throw new ParseException();
1212 expr = ConcatExpression();
1213 buff.append(operator.image);
1216 {if (true) return buff.toString();}
1217 throw new Error("Missing return statement in function");
1220 static final public String ConcatExpression() throws ParseException {
1222 final StringBuffer buff = new StringBuffer();
1223 expr = InclusiveOrExpression();
1227 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1232 jj_la1[34] = jj_gen;
1235 jj_consume_token(DOT);
1236 expr = InclusiveOrExpression();
1237 buff.append(".").append(expr);
1239 {if (true) return buff.toString();}
1240 throw new Error("Missing return statement in function");
1243 static final public String InclusiveOrExpression() throws ParseException {
1245 final StringBuffer buff = new StringBuffer();
1246 expr = ExclusiveOrExpression();
1250 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1255 jj_la1[35] = jj_gen;
1258 jj_consume_token(BIT_OR);
1259 expr = ExclusiveOrExpression();
1260 buff.append("|").append(expr);
1262 {if (true) return buff.toString();}
1263 throw new Error("Missing return statement in function");
1266 static final public String ExclusiveOrExpression() throws ParseException {
1268 final StringBuffer buff = new StringBuffer();
1269 expr = AndExpression();
1273 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1278 jj_la1[36] = jj_gen;
1281 jj_consume_token(XOR);
1282 expr = AndExpression();
1286 {if (true) return buff.toString();}
1287 throw new Error("Missing return statement in function");
1290 static final public String AndExpression() throws ParseException {
1292 final StringBuffer buff = new StringBuffer();
1293 expr = EqualityExpression();
1297 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1302 jj_la1[37] = jj_gen;
1305 jj_consume_token(BIT_AND);
1306 expr = EqualityExpression();
1307 buff.append("&").append(expr);
1309 {if (true) return buff.toString();}
1310 throw new Error("Missing return statement in function");
1313 static final public String EqualityExpression() throws ParseException {
1316 final StringBuffer buff = new StringBuffer();
1317 expr = RelationalExpression();
1321 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1325 case BANGDOUBLEEQUAL:
1330 jj_la1[38] = jj_gen;
1333 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1335 operator = jj_consume_token(EQ);
1338 operator = jj_consume_token(DIF);
1341 operator = jj_consume_token(NE);
1343 case BANGDOUBLEEQUAL:
1344 operator = jj_consume_token(BANGDOUBLEEQUAL);
1347 operator = jj_consume_token(TRIPLEEQUAL);
1350 jj_la1[39] = jj_gen;
1351 jj_consume_token(-1);
1352 throw new ParseException();
1354 expr = RelationalExpression();
1355 buff.append(operator.image);
1358 {if (true) return buff.toString();}
1359 throw new Error("Missing return statement in function");
1362 static final public String RelationalExpression() throws ParseException {
1365 final StringBuffer buff = new StringBuffer();
1366 expr = ShiftExpression();
1370 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1378 jj_la1[40] = jj_gen;
1381 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1383 operator = jj_consume_token(LT);
1386 operator = jj_consume_token(GT);
1389 operator = jj_consume_token(LE);
1392 operator = jj_consume_token(GE);
1395 jj_la1[41] = jj_gen;
1396 jj_consume_token(-1);
1397 throw new ParseException();
1399 expr = ShiftExpression();
1400 buff.append(operator.image).append(expr);
1402 {if (true) return buff.toString();}
1403 throw new Error("Missing return statement in function");
1406 static final public String ShiftExpression() throws ParseException {
1409 final StringBuffer buff = new StringBuffer();
1410 expr = AdditiveExpression();
1414 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1417 case RUNSIGNEDSHIFT:
1421 jj_la1[42] = jj_gen;
1424 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1426 operator = jj_consume_token(LSHIFT);
1429 operator = jj_consume_token(RSIGNEDSHIFT);
1431 case RUNSIGNEDSHIFT:
1432 operator = jj_consume_token(RUNSIGNEDSHIFT);
1435 jj_la1[43] = jj_gen;
1436 jj_consume_token(-1);
1437 throw new ParseException();
1439 expr = AdditiveExpression();
1440 buff.append(operator.image);
1443 {if (true) return buff.toString();}
1444 throw new Error("Missing return statement in function");
1447 static final public String AdditiveExpression() throws ParseException {
1450 final StringBuffer buff = new StringBuffer();
1451 expr = MultiplicativeExpression();
1455 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1461 jj_la1[44] = jj_gen;
1464 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1466 operator = jj_consume_token(PLUS);
1469 operator = jj_consume_token(MINUS);
1472 jj_la1[45] = jj_gen;
1473 jj_consume_token(-1);
1474 throw new ParseException();
1476 expr = MultiplicativeExpression();
1477 buff.append(operator.image);
1480 {if (true) return buff.toString();}
1481 throw new Error("Missing return statement in function");
1484 static final public String MultiplicativeExpression() throws ParseException {
1487 final StringBuffer buff = new StringBuffer();
1488 expr = UnaryExpression();
1492 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1499 jj_la1[46] = jj_gen;
1502 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1504 operator = jj_consume_token(STAR);
1507 operator = jj_consume_token(SLASH);
1510 operator = jj_consume_token(REM);
1513 jj_la1[47] = jj_gen;
1514 jj_consume_token(-1);
1515 throw new ParseException();
1517 expr = UnaryExpression();
1518 buff.append(operator.image);
1521 {if (true) return buff.toString();}
1522 throw new Error("Missing return statement in function");
1526 * An unary expression starting with @, & or nothing
1528 static final public String UnaryExpression() throws ParseException {
1531 final StringBuffer buff = new StringBuffer();
1532 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1534 token = jj_consume_token(BIT_AND);
1535 expr = UnaryExpressionNoPrefix();
1536 if (token == null) {
1537 {if (true) return expr;}
1539 {if (true) return token.image + expr;}
1546 case INTEGER_LITERAL:
1547 case FLOATING_POINT_LITERAL:
1548 case STRING_LITERAL:
1561 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1566 jj_la1[48] = jj_gen;
1569 jj_consume_token(AT);
1572 expr = UnaryExpressionNoPrefix();
1573 {if (true) return buff.append(expr).toString();}
1576 jj_la1[49] = jj_gen;
1577 jj_consume_token(-1);
1578 throw new ParseException();
1580 throw new Error("Missing return statement in function");
1583 static final public String UnaryExpressionNoPrefix() throws ParseException {
1586 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1589 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1591 token = jj_consume_token(PLUS);
1594 token = jj_consume_token(MINUS);
1597 jj_la1[50] = jj_gen;
1598 jj_consume_token(-1);
1599 throw new ParseException();
1601 expr = UnaryExpression();
1602 {if (true) return token.image + expr;}
1605 expr = PreIncrementExpression();
1606 {if (true) return expr;}
1609 expr = PreDecrementExpression();
1610 {if (true) return expr;}
1617 case INTEGER_LITERAL:
1618 case FLOATING_POINT_LITERAL:
1619 case STRING_LITERAL:
1625 expr = UnaryExpressionNotPlusMinus();
1626 {if (true) return expr;}
1629 jj_la1[51] = jj_gen;
1630 jj_consume_token(-1);
1631 throw new ParseException();
1633 throw new Error("Missing return statement in function");
1636 static final public String PreIncrementExpression() throws ParseException {
1638 jj_consume_token(INCR);
1639 expr = PrimaryExpression();
1640 {if (true) return "++"+expr;}
1641 throw new Error("Missing return statement in function");
1644 static final public String PreDecrementExpression() throws ParseException {
1646 jj_consume_token(DECR);
1647 expr = PrimaryExpression();
1648 {if (true) return "--"+expr;}
1649 throw new Error("Missing return statement in function");
1652 static final public String UnaryExpressionNotPlusMinus() throws ParseException {
1654 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1656 jj_consume_token(BANG);
1657 expr = UnaryExpression();
1658 {if (true) return "!" + expr;}
1661 jj_la1[52] = jj_gen;
1662 if (jj_2_3(2147483647)) {
1663 expr = CastExpression();
1664 {if (true) return expr;}
1666 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1672 expr = PostfixExpression();
1673 {if (true) return expr;}
1678 case INTEGER_LITERAL:
1679 case FLOATING_POINT_LITERAL:
1680 case STRING_LITERAL:
1682 {if (true) return expr;}
1685 jj_consume_token(LPAREN);
1686 expr = Expression();
1688 jj_consume_token(RPAREN);
1689 } catch (ParseException e) {
1690 errorMessage = "')' expected";
1692 {if (true) throw e;}
1694 {if (true) return "("+expr+")";}
1697 jj_la1[53] = jj_gen;
1698 jj_consume_token(-1);
1699 throw new ParseException();
1703 throw new Error("Missing return statement in function");
1706 static final public String CastExpression() throws ParseException {
1707 final String type, expr;
1708 jj_consume_token(LPAREN);
1710 jj_consume_token(RPAREN);
1711 expr = UnaryExpression();
1712 {if (true) return "(" + type + ")" + expr;}
1713 throw new Error("Missing return statement in function");
1716 static final public String PostfixExpression() throws ParseException {
1718 Token operator = null;
1719 expr = PrimaryExpression();
1720 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1723 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1725 operator = jj_consume_token(INCR);
1728 operator = jj_consume_token(DECR);
1731 jj_la1[54] = jj_gen;
1732 jj_consume_token(-1);
1733 throw new ParseException();
1737 jj_la1[55] = jj_gen;
1740 if (operator == null) {
1741 {if (true) return expr;}
1743 {if (true) return expr + operator.image;}
1744 throw new Error("Missing return statement in function");
1747 static final public String PrimaryExpression() throws ParseException {
1748 final Token identifier;
1750 final StringBuffer buff = new StringBuffer();
1752 identifier = jj_consume_token(IDENTIFIER);
1753 jj_consume_token(STATICCLASSACCESS);
1754 expr = ClassIdentifier();
1755 buff.append(identifier.image).append("::").append(expr);
1758 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1765 jj_la1[56] = jj_gen;
1768 expr = PrimarySuffix();
1771 {if (true) return buff.toString();}
1773 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1778 expr = PrimaryPrefix();
1782 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1789 jj_la1[57] = jj_gen;
1792 expr = PrimarySuffix();
1795 {if (true) return buff.toString();}
1798 expr = ArrayDeclarator();
1799 {if (true) return "array" + expr;}
1802 jj_la1[58] = jj_gen;
1803 jj_consume_token(-1);
1804 throw new ParseException();
1807 throw new Error("Missing return statement in function");
1810 static final public String ArrayDeclarator() throws ParseException {
1812 jj_consume_token(ARRAY);
1813 expr = ArrayInitializer();
1814 {if (true) return "array" + expr;}
1815 throw new Error("Missing return statement in function");
1818 static final public String PrimaryPrefix() throws ParseException {
1821 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1823 token = jj_consume_token(IDENTIFIER);
1824 {if (true) return token.image;}
1827 jj_consume_token(NEW);
1828 expr = ClassIdentifier();
1829 {if (true) return "new " + expr;}
1833 expr = VariableDeclaratorId();
1834 {if (true) return expr;}
1837 jj_la1[59] = jj_gen;
1838 jj_consume_token(-1);
1839 throw new ParseException();
1841 throw new Error("Missing return statement in function");
1844 static final public String ClassIdentifier() throws ParseException {
1847 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1849 token = jj_consume_token(IDENTIFIER);
1850 {if (true) return token.image;}
1854 expr = VariableDeclaratorId();
1855 {if (true) return expr;}
1858 jj_la1[60] = jj_gen;
1859 jj_consume_token(-1);
1860 throw new ParseException();
1862 throw new Error("Missing return statement in function");
1865 static final public String PrimarySuffix() throws ParseException {
1867 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1870 {if (true) return expr;}
1874 expr = VariableSuffix();
1875 {if (true) return expr;}
1878 jj_la1[61] = jj_gen;
1879 jj_consume_token(-1);
1880 throw new ParseException();
1882 throw new Error("Missing return statement in function");
1885 static final public String VariableSuffix() throws ParseException {
1887 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1889 jj_consume_token(CLASSACCESS);
1891 expr = VariableName();
1892 } catch (ParseException e) {
1893 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', function call or field access expected";
1895 {if (true) throw e;}
1897 {if (true) return "->" + expr;}
1900 jj_consume_token(LBRACKET);
1901 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1909 case INTEGER_LITERAL:
1910 case FLOATING_POINT_LITERAL:
1911 case STRING_LITERAL:
1923 expr = Expression();
1926 jj_la1[62] = jj_gen;
1930 jj_consume_token(RBRACKET);
1931 } catch (ParseException e) {
1932 errorMessage = "']' expected";
1934 {if (true) throw e;}
1937 {if (true) return "[]";}
1939 {if (true) return "[" + expr + "]";}
1942 jj_la1[63] = jj_gen;
1943 jj_consume_token(-1);
1944 throw new ParseException();
1946 throw new Error("Missing return statement in function");
1949 static final public String Literal() throws ParseException {
1952 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1953 case INTEGER_LITERAL:
1954 token = jj_consume_token(INTEGER_LITERAL);
1955 {if (true) return token.image;}
1957 case FLOATING_POINT_LITERAL:
1958 token = jj_consume_token(FLOATING_POINT_LITERAL);
1959 {if (true) return token.image;}
1961 case STRING_LITERAL:
1962 token = jj_consume_token(STRING_LITERAL);
1963 {if (true) return token.image;}
1967 expr = BooleanLiteral();
1968 {if (true) return expr;}
1971 expr = NullLiteral();
1972 {if (true) return expr;}
1975 jj_la1[64] = jj_gen;
1976 jj_consume_token(-1);
1977 throw new ParseException();
1979 throw new Error("Missing return statement in function");
1982 static final public String BooleanLiteral() throws ParseException {
1983 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1985 jj_consume_token(TRUE);
1986 {if (true) return "true";}
1989 jj_consume_token(FALSE);
1990 {if (true) return "false";}
1993 jj_la1[65] = jj_gen;
1994 jj_consume_token(-1);
1995 throw new ParseException();
1997 throw new Error("Missing return statement in function");
2000 static final public String NullLiteral() throws ParseException {
2001 jj_consume_token(NULL);
2002 {if (true) return "null";}
2003 throw new Error("Missing return statement in function");
2006 static final public String Arguments() throws ParseException {
2008 jj_consume_token(LPAREN);
2009 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2017 case INTEGER_LITERAL:
2018 case FLOATING_POINT_LITERAL:
2019 case STRING_LITERAL:
2031 expr = ArgumentList();
2034 jj_la1[66] = jj_gen;
2038 jj_consume_token(RPAREN);
2039 } catch (ParseException e) {
2040 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', ')' expected to close the argument list";
2042 {if (true) throw e;}
2045 {if (true) return "()";}
2047 {if (true) return "(" + expr + ")";}
2048 throw new Error("Missing return statement in function");
2051 static final public String ArgumentList() throws ParseException {
2053 final StringBuffer buff = new StringBuffer();
2054 expr = Expression();
2058 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2063 jj_la1[67] = jj_gen;
2066 jj_consume_token(COMMA);
2068 expr = Expression();
2069 } catch (ParseException e) {
2070 errorMessage = "expression expected after a comma in argument list";
2072 {if (true) throw e;}
2074 buff.append(",").append(expr);
2076 {if (true) return buff.toString();}
2077 throw new Error("Missing return statement in function");
2081 * A Statement without break
2083 static final public void StatementNoBreak() throws ParseException {
2087 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2089 jj_consume_token(SEMICOLON);
2092 jj_consume_token(PHPEND);
2095 jj_la1[68] = jj_gen;
2096 jj_consume_token(-1);
2097 throw new ParseException();
2099 } catch (ParseException e) {
2100 errorMessage = "';' expected";
2102 {if (true) throw e;}
2104 } else if (jj_2_6(2)) {
2107 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2121 StatementExpression();
2123 jj_consume_token(SEMICOLON);
2124 } catch (ParseException e) {
2125 errorMessage = "';' expected after expression";
2127 {if (true) throw e;}
2149 ContinueStatement();
2162 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2164 jj_consume_token(AT);
2167 jj_la1[69] = jj_gen;
2179 jj_la1[70] = jj_gen;
2180 jj_consume_token(-1);
2181 throw new ParseException();
2187 * A Normal statement
2189 static final public void Statement() throws ParseException {
2190 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2213 case INTEGER_LITERAL:
2214 case FLOATING_POINT_LITERAL:
2215 case STRING_LITERAL:
2235 jj_la1[71] = jj_gen;
2236 jj_consume_token(-1);
2237 throw new ParseException();
2241 static final public void IncludeStatement() throws ParseException {
2243 final int pos = jj_input_stream.bufpos;
2244 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2246 jj_consume_token(REQUIRE);
2247 expr = Expression();
2248 if (currentSegment != null) {
2249 currentSegment.add(new PHPReqIncDeclaration(currentSegment, "require",pos,expr));
2252 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2254 jj_consume_token(SEMICOLON);
2257 jj_consume_token(139);
2260 jj_la1[72] = jj_gen;
2261 jj_consume_token(-1);
2262 throw new ParseException();
2264 } catch (ParseException e) {
2265 errorMessage = "';' expected";
2267 {if (true) throw e;}
2271 jj_consume_token(REQUIRE_ONCE);
2272 expr = Expression();
2273 if (currentSegment != null) {
2274 currentSegment.add(new PHPReqIncDeclaration(currentSegment, "require_once",pos,expr));
2277 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2279 jj_consume_token(SEMICOLON);
2282 jj_consume_token(139);
2285 jj_la1[73] = jj_gen;
2286 jj_consume_token(-1);
2287 throw new ParseException();
2289 } catch (ParseException e) {
2290 errorMessage = "';' expected";
2292 {if (true) throw e;}
2296 jj_consume_token(INCLUDE);
2297 expr = Expression();
2298 if (currentSegment != null) {
2299 currentSegment.add(new PHPReqIncDeclaration(currentSegment, "include",pos,expr));
2302 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2304 jj_consume_token(SEMICOLON);
2307 jj_consume_token(139);
2310 jj_la1[74] = jj_gen;
2311 jj_consume_token(-1);
2312 throw new ParseException();
2314 } catch (ParseException e) {
2315 errorMessage = "';' expected";
2317 {if (true) throw e;}
2321 jj_consume_token(INCLUDE_ONCE);
2322 expr = Expression();
2323 if (currentSegment != null) {
2324 currentSegment.add(new PHPReqIncDeclaration(currentSegment, "include_once",pos,expr));
2327 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2329 jj_consume_token(SEMICOLON);
2332 jj_consume_token(139);
2335 jj_la1[75] = jj_gen;
2336 jj_consume_token(-1);
2337 throw new ParseException();
2339 } catch (ParseException e) {
2340 errorMessage = "';' expected";
2342 {if (true) throw e;}
2346 jj_la1[76] = jj_gen;
2347 jj_consume_token(-1);
2348 throw new ParseException();
2352 static final public String PrintExpression() throws ParseException {
2353 final StringBuffer buff = new StringBuffer("print ");
2355 jj_consume_token(PRINT);
2356 expr = Expression();
2358 {if (true) return buff.toString();}
2359 throw new Error("Missing return statement in function");
2362 static final public String ListExpression() throws ParseException {
2363 final StringBuffer buff = new StringBuffer("list(");
2365 jj_consume_token(LIST);
2367 jj_consume_token(LPAREN);
2368 } catch (ParseException e) {
2369 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', '(' expected";
2371 {if (true) throw e;}
2373 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2376 expr = VariableDeclaratorId();
2380 jj_la1[77] = jj_gen;
2383 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2386 jj_consume_token(COMMA);
2387 } catch (ParseException e) {
2388 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', ',' expected";
2390 {if (true) throw e;}
2392 expr = VariableDeclaratorId();
2393 buff.append(",").append(expr);
2396 jj_la1[78] = jj_gen;
2401 jj_consume_token(RPAREN);
2402 } catch (ParseException e) {
2403 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', ')' expected";
2405 {if (true) throw e;}
2407 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2409 jj_consume_token(ASSIGN);
2410 expr = Expression();
2411 buff.append("(").append(expr);
2414 jj_la1[79] = jj_gen;
2417 {if (true) return buff.toString();}
2418 throw new Error("Missing return statement in function");
2421 static final public void EchoStatement() throws ParseException {
2422 jj_consume_token(ECHO);
2426 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2431 jj_la1[80] = jj_gen;
2434 jj_consume_token(COMMA);
2438 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2440 jj_consume_token(SEMICOLON);
2443 jj_consume_token(139);
2446 jj_la1[81] = jj_gen;
2447 jj_consume_token(-1);
2448 throw new ParseException();
2450 } catch (ParseException e) {
2451 errorMessage = "';' expected after 'echo' statement";
2453 {if (true) throw e;}
2457 static final public void GlobalStatement() throws ParseException {
2458 jj_consume_token(GLOBAL);
2459 VariableDeclaratorId();
2462 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2467 jj_la1[82] = jj_gen;
2470 jj_consume_token(COMMA);
2471 VariableDeclaratorId();
2474 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2476 jj_consume_token(SEMICOLON);
2479 jj_consume_token(139);
2482 jj_la1[83] = jj_gen;
2483 jj_consume_token(-1);
2484 throw new ParseException();
2486 } catch (ParseException e) {
2487 errorMessage = "';' expected";
2489 {if (true) throw e;}
2493 static final public void StaticStatement() throws ParseException {
2494 jj_consume_token(STATIC);
2495 VariableDeclarator();
2498 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2503 jj_la1[84] = jj_gen;
2506 jj_consume_token(COMMA);
2507 VariableDeclarator();
2510 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2512 jj_consume_token(SEMICOLON);
2515 jj_consume_token(139);
2518 jj_la1[85] = jj_gen;
2519 jj_consume_token(-1);
2520 throw new ParseException();
2522 } catch (ParseException e) {
2523 errorMessage = "';' expected";
2525 {if (true) throw e;}
2529 static final public void LabeledStatement() throws ParseException {
2530 jj_consume_token(IDENTIFIER);
2531 jj_consume_token(COLON);
2535 static final public void Block() throws ParseException {
2537 jj_consume_token(LBRACE);
2538 } catch (ParseException e) {
2539 errorMessage = "'{' expected";
2541 {if (true) throw e;}
2545 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2571 case INTEGER_LITERAL:
2572 case FLOATING_POINT_LITERAL:
2573 case STRING_LITERAL:
2590 jj_la1[86] = jj_gen;
2596 jj_consume_token(RBRACE);
2597 } catch (ParseException e) {
2598 errorMessage = "unexpected token : '"+ e.currentToken.image +"', '}' expected";
2600 {if (true) throw e;}
2604 static final public void BlockStatement() throws ParseException {
2605 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2629 case INTEGER_LITERAL:
2630 case FLOATING_POINT_LITERAL:
2631 case STRING_LITERAL:
2651 MethodDeclaration();
2654 jj_la1[87] = jj_gen;
2655 jj_consume_token(-1);
2656 throw new ParseException();
2661 * A Block statement that will not contain any 'break'
2663 static final public void BlockStatementNoBreak() throws ParseException {
2664 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2687 case INTEGER_LITERAL:
2688 case FLOATING_POINT_LITERAL:
2689 case STRING_LITERAL:
2709 MethodDeclaration();
2712 jj_la1[88] = jj_gen;
2713 jj_consume_token(-1);
2714 throw new ParseException();
2718 static final public void LocalVariableDeclaration() throws ParseException {
2719 LocalVariableDeclarator();
2722 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2727 jj_la1[89] = jj_gen;
2730 jj_consume_token(COMMA);
2731 LocalVariableDeclarator();
2735 static final public void LocalVariableDeclarator() throws ParseException {
2736 VariableDeclaratorId();
2737 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2739 jj_consume_token(ASSIGN);
2743 jj_la1[90] = jj_gen;
2748 static final public void EmptyStatement() throws ParseException {
2749 jj_consume_token(SEMICOLON);
2752 static final public void StatementExpression() throws ParseException {
2753 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2755 PreIncrementExpression();
2758 PreDecrementExpression();
2765 PrimaryExpression();
2766 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2781 case RSIGNEDSHIFTASSIGN:
2782 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2784 jj_consume_token(INCR);
2787 jj_consume_token(DECR);
2801 case RSIGNEDSHIFTASSIGN:
2802 AssignmentOperator();
2806 jj_la1[91] = jj_gen;
2807 jj_consume_token(-1);
2808 throw new ParseException();
2812 jj_la1[92] = jj_gen;
2817 jj_la1[93] = jj_gen;
2818 jj_consume_token(-1);
2819 throw new ParseException();
2823 static final public void SwitchStatement() throws ParseException {
2824 Token breakToken = null;
2826 jj_consume_token(SWITCH);
2828 jj_consume_token(LPAREN);
2829 } catch (ParseException e) {
2830 errorMessage = "'(' expected after 'switch'";
2832 {if (true) throw e;}
2836 jj_consume_token(RPAREN);
2837 } catch (ParseException e) {
2838 errorMessage = "')' expected";
2840 {if (true) throw e;}
2843 jj_consume_token(LBRACE);
2844 } catch (ParseException e) {
2845 errorMessage = "'{' expected";
2847 {if (true) throw e;}
2851 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2857 jj_la1[94] = jj_gen;
2860 line = SwitchLabel();
2863 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2888 case INTEGER_LITERAL:
2889 case FLOATING_POINT_LITERAL:
2890 case STRING_LITERAL:
2907 jj_la1[95] = jj_gen;
2910 BlockStatementNoBreak();
2912 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2914 breakToken = jj_consume_token(BREAK);
2916 jj_consume_token(SEMICOLON);
2917 } catch (ParseException e) {
2918 errorMessage = "';' expected after 'break' keyword";
2920 {if (true) throw e;}
2924 jj_la1[96] = jj_gen;
2928 if (breakToken == null) {
2929 setMarker(fileToParse,
2930 "You should use put a 'break' at the end of your statement",
2935 } catch (CoreException e) {
2936 PHPeclipsePlugin.log(e);
2940 jj_consume_token(RBRACE);
2941 } catch (ParseException e) {
2942 errorMessage = "'}' expected";
2944 {if (true) throw e;}
2948 static final public int SwitchLabel() throws ParseException {
2950 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2952 token = jj_consume_token(CASE);
2955 } catch (ParseException e) {
2956 if (errorMessage != null) {if (true) throw e;}
2957 errorMessage = "expression expected after 'case' keyword";
2959 {if (true) throw e;}
2962 jj_consume_token(COLON);
2963 } catch (ParseException e) {
2964 errorMessage = "':' expected after case expression";
2966 {if (true) throw e;}
2968 {if (true) return token.beginLine;}
2971 token = jj_consume_token(_DEFAULT);
2973 jj_consume_token(COLON);
2974 } catch (ParseException e) {
2975 errorMessage = "':' expected after 'default' keyword";
2977 {if (true) throw e;}
2979 {if (true) return token.beginLine;}
2982 jj_la1[97] = jj_gen;
2983 jj_consume_token(-1);
2984 throw new ParseException();
2986 throw new Error("Missing return statement in function");
2989 static final public void IfStatement() throws ParseException {
2991 final int pos = jj_input_stream.bufpos;
2992 token = jj_consume_token(IF);
2994 IfStatement0(pos,pos+token.image.length());
2997 static final public void Condition(final String keyword) throws ParseException {
2999 jj_consume_token(LPAREN);
3000 } catch (ParseException e) {
3001 errorMessage = "'(' expected after " + keyword + " keyword";
3003 {if (true) throw e;}
3007 jj_consume_token(RPAREN);
3008 } catch (ParseException e) {
3009 errorMessage = "')' expected after " + keyword + " keyword";
3011 {if (true) throw e;}
3015 static final public void IfStatement0(final int start,final int end) throws ParseException {
3016 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3018 jj_consume_token(COLON);
3021 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3045 case INTEGER_LITERAL:
3046 case FLOATING_POINT_LITERAL:
3047 case STRING_LITERAL:
3064 jj_la1[98] = jj_gen;
3071 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3076 jj_la1[99] = jj_gen;
3079 ElseIfStatementColon();
3081 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3083 ElseStatementColon();
3086 jj_la1[100] = jj_gen;
3090 setMarker(fileToParse,
3091 "Ugly syntax detected, you should if () {...} instead of if (): ... endif;",
3095 "Line " + token.beginLine);
3096 } catch (CoreException e) {
3097 PHPeclipsePlugin.log(e);
3100 jj_consume_token(ENDIF);
3101 } catch (ParseException e) {
3102 errorMessage = "'endif' expected";
3104 {if (true) throw e;}
3107 jj_consume_token(SEMICOLON);
3108 } catch (ParseException e) {
3109 errorMessage = "';' expected after 'endif' keyword";
3111 {if (true) throw e;}
3137 case INTEGER_LITERAL:
3138 case FLOATING_POINT_LITERAL:
3139 case STRING_LITERAL:
3156 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3161 jj_la1[101] = jj_gen;
3166 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3168 jj_consume_token(ELSE);
3172 jj_la1[102] = jj_gen;
3177 jj_la1[103] = jj_gen;
3178 jj_consume_token(-1);
3179 throw new ParseException();
3183 static final public void ElseIfStatementColon() throws ParseException {
3184 jj_consume_token(ELSEIF);
3185 Condition("elseif");
3186 jj_consume_token(COLON);
3189 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3213 case INTEGER_LITERAL:
3214 case FLOATING_POINT_LITERAL:
3215 case STRING_LITERAL:
3232 jj_la1[104] = jj_gen;
3239 static final public void ElseStatementColon() throws ParseException {
3240 jj_consume_token(ELSE);
3241 jj_consume_token(COLON);
3244 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3268 case INTEGER_LITERAL:
3269 case FLOATING_POINT_LITERAL:
3270 case STRING_LITERAL:
3287 jj_la1[105] = jj_gen;
3294 static final public void ElseIfStatement() throws ParseException {
3295 jj_consume_token(ELSEIF);
3296 Condition("elseif");
3300 static final public void WhileStatement() throws ParseException {
3302 final int pos = jj_input_stream.bufpos;
3303 token = jj_consume_token(WHILE);
3305 WhileStatement0(pos,pos + token.image.length());
3308 static final public void WhileStatement0(final int start, final int end) throws ParseException {
3309 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3311 jj_consume_token(COLON);
3314 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3338 case INTEGER_LITERAL:
3339 case FLOATING_POINT_LITERAL:
3340 case STRING_LITERAL:
3357 jj_la1[106] = jj_gen;
3363 setMarker(fileToParse,
3364 "Ugly syntax detected, you should while () {...} instead of while (): ... endwhile;",
3368 "Line " + token.beginLine);
3369 } catch (CoreException e) {
3370 PHPeclipsePlugin.log(e);
3373 jj_consume_token(ENDWHILE);
3374 } catch (ParseException e) {
3375 errorMessage = "'endwhile' expected";
3377 {if (true) throw e;}
3380 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3382 jj_consume_token(SEMICOLON);
3385 jj_consume_token(139);
3388 jj_la1[107] = jj_gen;
3389 jj_consume_token(-1);
3390 throw new ParseException();
3392 } catch (ParseException e) {
3393 errorMessage = "';' expected after 'endwhile' keyword";
3395 {if (true) throw e;}
3421 case INTEGER_LITERAL:
3422 case FLOATING_POINT_LITERAL:
3423 case STRING_LITERAL:
3440 jj_la1[108] = jj_gen;
3441 jj_consume_token(-1);
3442 throw new ParseException();
3446 static final public void DoStatement() throws ParseException {
3447 jj_consume_token(DO);
3449 jj_consume_token(WHILE);
3452 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3454 jj_consume_token(SEMICOLON);
3457 jj_consume_token(139);
3460 jj_la1[109] = jj_gen;
3461 jj_consume_token(-1);
3462 throw new ParseException();
3464 } catch (ParseException e) {
3465 errorMessage = "';' expected";
3467 {if (true) throw e;}
3471 static final public void ForeachStatement() throws ParseException {
3472 jj_consume_token(FOREACH);
3474 jj_consume_token(LPAREN);
3475 } catch (ParseException e) {
3476 errorMessage = "'(' expected after 'foreach' keyword";
3478 {if (true) throw e;}
3482 } catch (ParseException e) {
3483 errorMessage = "variable expected";
3485 {if (true) throw e;}
3487 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3493 jj_la1[110] = jj_gen;
3497 jj_consume_token(AS);
3498 } catch (ParseException e) {
3499 errorMessage = "'as' expected";
3501 {if (true) throw e;}
3505 } catch (ParseException e) {
3506 errorMessage = "variable expected";
3508 {if (true) throw e;}
3510 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3512 jj_consume_token(ARRAYASSIGN);
3516 jj_la1[111] = jj_gen;
3520 jj_consume_token(RPAREN);
3521 } catch (ParseException e) {
3522 errorMessage = "')' expected after 'foreach' keyword";
3524 {if (true) throw e;}
3528 } catch (ParseException e) {
3529 if (errorMessage != null) {if (true) throw e;}
3530 errorMessage = "statement expected";
3532 {if (true) throw e;}
3536 static final public void ForStatement() throws ParseException {
3538 final int pos = jj_input_stream.bufpos;
3539 token = jj_consume_token(FOR);
3541 jj_consume_token(LPAREN);
3542 } catch (ParseException e) {
3543 errorMessage = "'(' expected after 'for' keyword";
3545 {if (true) throw e;}
3547 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3558 jj_la1[112] = jj_gen;
3561 jj_consume_token(SEMICOLON);
3562 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3570 case INTEGER_LITERAL:
3571 case FLOATING_POINT_LITERAL:
3572 case STRING_LITERAL:
3587 jj_la1[113] = jj_gen;
3590 jj_consume_token(SEMICOLON);
3591 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3599 StatementExpressionList();
3602 jj_la1[114] = jj_gen;
3605 jj_consume_token(RPAREN);
3606 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3630 case INTEGER_LITERAL:
3631 case FLOATING_POINT_LITERAL:
3632 case STRING_LITERAL:
3649 jj_consume_token(COLON);
3652 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3676 case INTEGER_LITERAL:
3677 case FLOATING_POINT_LITERAL:
3678 case STRING_LITERAL:
3695 jj_la1[115] = jj_gen;
3701 setMarker(fileToParse,
3702 "Ugly syntax detected, you should for () {...} instead of for (): ... endfor;",
3704 pos+token.image.length(),
3706 "Line " + token.beginLine);
3707 } catch (CoreException e) {
3708 PHPeclipsePlugin.log(e);
3711 jj_consume_token(ENDFOR);
3712 } catch (ParseException e) {
3713 errorMessage = "'endfor' expected";
3715 {if (true) throw e;}
3718 jj_consume_token(SEMICOLON);
3719 } catch (ParseException e) {
3720 errorMessage = "';' expected after 'endfor' keyword";
3722 {if (true) throw e;}
3726 jj_la1[116] = jj_gen;
3727 jj_consume_token(-1);
3728 throw new ParseException();
3732 static final public void ForInit() throws ParseException {
3733 if (jj_2_7(2147483647)) {
3734 LocalVariableDeclaration();
3736 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3744 StatementExpressionList();
3747 jj_la1[117] = jj_gen;
3748 jj_consume_token(-1);
3749 throw new ParseException();
3754 static final public void StatementExpressionList() throws ParseException {
3755 StatementExpression();
3758 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3763 jj_la1[118] = jj_gen;
3766 jj_consume_token(COMMA);
3767 StatementExpression();
3771 static final public void BreakStatement() throws ParseException {
3772 jj_consume_token(BREAK);
3773 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3775 jj_consume_token(IDENTIFIER);
3778 jj_la1[119] = jj_gen;
3782 jj_consume_token(SEMICOLON);
3783 } catch (ParseException e) {
3784 errorMessage = "';' expected after 'break' statement";
3786 {if (true) throw e;}
3790 static final public void ContinueStatement() throws ParseException {
3791 jj_consume_token(CONTINUE);
3792 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3794 jj_consume_token(IDENTIFIER);
3797 jj_la1[120] = jj_gen;
3801 jj_consume_token(SEMICOLON);
3802 } catch (ParseException e) {
3803 errorMessage = "';' expected after 'continue' statement";
3805 {if (true) throw e;}
3809 static final public void ReturnStatement() throws ParseException {
3810 jj_consume_token(RETURN);
3811 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3819 case INTEGER_LITERAL:
3820 case FLOATING_POINT_LITERAL:
3821 case STRING_LITERAL:
3836 jj_la1[121] = jj_gen;
3840 jj_consume_token(SEMICOLON);
3841 } catch (ParseException e) {
3842 errorMessage = "';' expected after 'return' statement";
3844 {if (true) throw e;}
3848 static final private boolean jj_2_1(int xla) {
3849 jj_la = xla; jj_lastpos = jj_scanpos = token;
3850 boolean retval = !jj_3_1();
3855 static final private boolean jj_2_2(int xla) {
3856 jj_la = xla; jj_lastpos = jj_scanpos = token;
3857 boolean retval = !jj_3_2();
3862 static final private boolean jj_2_3(int xla) {
3863 jj_la = xla; jj_lastpos = jj_scanpos = token;
3864 boolean retval = !jj_3_3();
3869 static final private boolean jj_2_4(int xla) {
3870 jj_la = xla; jj_lastpos = jj_scanpos = token;
3871 boolean retval = !jj_3_4();
3876 static final private boolean jj_2_5(int xla) {
3877 jj_la = xla; jj_lastpos = jj_scanpos = token;
3878 boolean retval = !jj_3_5();
3883 static final private boolean jj_2_6(int xla) {
3884 jj_la = xla; jj_lastpos = jj_scanpos = token;
3885 boolean retval = !jj_3_6();
3890 static final private boolean jj_2_7(int xla) {
3891 jj_la = xla; jj_lastpos = jj_scanpos = token;
3892 boolean retval = !jj_3_7();
3897 static final private boolean jj_3R_196() {
3898 if (jj_3R_41()) return true;
3899 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3903 if (jj_3R_197()) { jj_scanpos = xsp; break; }
3904 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3909 static final private boolean jj_3R_99() {
3910 if (jj_scan_token(LBRACE)) return true;
3911 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3912 if (jj_3R_41()) return true;
3913 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3914 if (jj_scan_token(RBRACE)) return true;
3915 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3919 static final private boolean jj_3R_71() {
3920 if (jj_scan_token(IDENTIFIER)) return true;
3921 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3924 if (jj_3R_109()) jj_scanpos = xsp;
3925 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3929 static final private boolean jj_3R_70() {
3930 if (jj_scan_token(LBRACE)) return true;
3931 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3932 if (jj_3R_41()) return true;
3933 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3934 if (jj_scan_token(RBRACE)) return true;
3935 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3939 static final private boolean jj_3R_62() {
3948 if (jj_3R_73()) return true;
3949 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3950 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3951 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3952 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3956 static final private boolean jj_3R_114() {
3957 if (jj_scan_token(BIT_AND)) return true;
3958 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3959 if (jj_3R_113()) return true;
3960 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3964 static final private boolean jj_3R_194() {
3965 if (jj_3R_196()) return true;
3966 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3970 static final private boolean jj_3R_111() {
3971 if (jj_3R_113()) return true;
3972 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3976 if (jj_3R_114()) { jj_scanpos = xsp; break; }
3977 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3982 static final private boolean jj_3R_94() {
3983 if (jj_scan_token(DOLLAR)) return true;
3984 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3985 if (jj_3R_62()) return true;
3986 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3990 static final private boolean jj_3R_192() {
3991 if (jj_scan_token(LPAREN)) return true;
3992 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3995 if (jj_3R_194()) jj_scanpos = xsp;
3996 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
3997 if (jj_scan_token(RPAREN)) return true;
3998 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4002 static final private boolean jj_3R_93() {
4003 if (jj_scan_token(DOLLAR_ID)) return true;
4004 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4007 if (jj_3R_99()) jj_scanpos = xsp;
4008 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4012 static final private boolean jj_3R_77() {
4017 if (jj_3R_94()) return true;
4018 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4019 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4023 static final private boolean jj_3R_112() {
4024 if (jj_scan_token(XOR)) return true;
4025 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4026 if (jj_3R_111()) return true;
4027 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4031 static final private boolean jj_3R_175() {
4032 if (jj_scan_token(NULL)) return true;
4033 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4037 static final private boolean jj_3R_107() {
4038 if (jj_3R_111()) return true;
4039 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4043 if (jj_3R_112()) { jj_scanpos = xsp; break; }
4044 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4049 static final private boolean jj_3R_182() {
4050 if (jj_scan_token(FALSE)) return true;
4051 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4055 static final private boolean jj_3_1() {
4056 if (jj_3R_38()) return true;
4057 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4061 static final private boolean jj_3R_181() {
4062 if (jj_scan_token(TRUE)) return true;
4063 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4067 static final private boolean jj_3R_174() {
4072 if (jj_3R_182()) return true;
4073 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4074 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4078 static final private boolean jj_3R_68() {
4079 if (jj_3R_77()) return true;
4080 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4084 if (jj_3_1()) { jj_scanpos = xsp; break; }
4085 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4090 static final private boolean jj_3R_170() {
4091 if (jj_3R_175()) return true;
4092 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4096 static final private boolean jj_3R_108() {
4097 if (jj_scan_token(BIT_OR)) return true;
4098 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4099 if (jj_3R_107()) return true;
4100 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4104 static final private boolean jj_3R_169() {
4105 if (jj_3R_174()) return true;
4106 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4110 static final private boolean jj_3R_100() {
4111 if (jj_3R_107()) return true;
4112 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4116 if (jj_3R_108()) { jj_scanpos = xsp; break; }
4117 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4122 static final private boolean jj_3R_168() {
4123 if (jj_scan_token(STRING_LITERAL)) return true;
4124 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4128 static final private boolean jj_3R_69() {
4129 if (jj_scan_token(ASSIGN)) return true;
4130 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4131 if (jj_3R_41()) return true;
4132 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4136 static final private boolean jj_3R_167() {
4137 if (jj_scan_token(FLOATING_POINT_LITERAL)) return true;
4138 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4142 static final private boolean jj_3R_61() {
4143 if (jj_scan_token(COMMA)) return true;
4144 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4145 if (jj_3R_60()) return true;
4146 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4150 static final private boolean jj_3R_103() {
4151 if (jj_scan_token(_ANDL)) return true;
4152 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4156 static final private boolean jj_3R_163() {
4167 if (jj_3R_170()) return true;
4168 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4169 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4170 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4171 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4172 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4176 static final private boolean jj_3R_166() {
4177 if (jj_scan_token(INTEGER_LITERAL)) return true;
4178 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4182 static final private boolean jj_3R_101() {
4183 if (jj_scan_token(DOT)) return true;
4184 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4185 if (jj_3R_100()) return true;
4186 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4190 static final private boolean jj_3R_95() {
4191 if (jj_3R_100()) return true;
4192 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4196 if (jj_3R_101()) { jj_scanpos = xsp; break; }
4197 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4202 static final private boolean jj_3R_63() {
4203 if (jj_3R_41()) return true;
4204 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4208 static final private boolean jj_3R_98() {
4209 if (jj_scan_token(_ORL)) return true;
4210 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4214 static final private boolean jj_3R_60() {
4215 if (jj_3R_68()) return true;
4216 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4219 if (jj_3R_69()) jj_scanpos = xsp;
4220 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4224 static final private boolean jj_3R_102() {
4225 if (jj_scan_token(SC_AND)) return true;
4226 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4230 static final private boolean jj_3R_96() {
4235 if (jj_3R_103()) return true;
4236 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4237 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4238 if (jj_3R_95()) return true;
4239 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4243 static final private boolean jj_3R_47() {
4244 if (jj_scan_token(LBRACKET)) return true;
4245 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4248 if (jj_3R_63()) jj_scanpos = xsp;
4249 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4250 if (jj_scan_token(RBRACKET)) return true;
4251 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4255 static final private boolean jj_3R_78() {
4256 if (jj_3R_95()) return true;
4257 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4261 if (jj_3R_96()) { jj_scanpos = xsp; break; }
4262 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4267 static final private boolean jj_3R_45() {
4268 if (jj_3R_60()) return true;
4269 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4273 if (jj_3R_61()) { jj_scanpos = xsp; break; }
4274 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4279 static final private boolean jj_3R_75() {
4280 if (jj_scan_token(HOOK)) return true;
4281 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4282 if (jj_3R_41()) return true;
4283 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4284 if (jj_scan_token(COLON)) return true;
4285 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4286 if (jj_3R_66()) return true;
4287 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4291 static final private boolean jj_3R_46() {
4292 if (jj_scan_token(CLASSACCESS)) return true;
4293 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4294 if (jj_3R_62()) return true;
4295 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4299 static final private boolean jj_3R_38() {
4304 if (jj_3R_47()) return true;
4305 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4306 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4310 static final private boolean jj_3_7() {
4311 if (jj_3R_45()) return true;
4312 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4316 static final private boolean jj_3R_97() {
4317 if (jj_scan_token(SC_OR)) return true;
4318 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4322 static final private boolean jj_3R_189() {
4323 if (jj_3R_38()) return true;
4324 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4328 static final private boolean jj_3R_79() {
4333 if (jj_3R_98()) return true;
4334 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4335 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4336 if (jj_3R_78()) return true;
4337 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4341 static final private boolean jj_3R_188() {
4342 if (jj_3R_192()) return true;
4343 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4347 static final private boolean jj_3R_184() {
4352 if (jj_3R_189()) return true;
4353 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4354 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4358 static final private boolean jj_3R_74() {
4359 if (jj_3R_78()) return true;
4360 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4364 if (jj_3R_79()) { jj_scanpos = xsp; break; }
4365 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4370 static final private boolean jj_3R_191() {
4371 if (jj_3R_68()) return true;
4372 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4376 static final private boolean jj_3R_190() {
4377 if (jj_scan_token(IDENTIFIER)) return true;
4378 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4382 static final private boolean jj_3R_186() {
4387 if (jj_3R_191()) return true;
4388 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4389 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4393 static final private boolean jj_3R_66() {
4394 if (jj_3R_74()) return true;
4395 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4398 if (jj_3R_75()) jj_scanpos = xsp;
4399 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4403 static final private boolean jj_3R_178() {
4404 if (jj_3R_68()) return true;
4405 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4409 static final private boolean jj_3R_177() {
4410 if (jj_scan_token(NEW)) return true;
4411 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4412 if (jj_3R_186()) return true;
4413 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4417 static final private boolean jj_3R_180() {
4418 if (jj_scan_token(DECR)) return true;
4419 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4423 static final private boolean jj_3R_176() {
4424 if (jj_scan_token(IDENTIFIER)) return true;
4425 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4429 static final private boolean jj_3R_92() {
4430 if (jj_scan_token(TILDEEQUAL)) return true;
4431 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4435 static final private boolean jj_3R_171() {
4442 if (jj_3R_178()) return true;
4443 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4444 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4445 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4449 static final private boolean jj_3R_44() {
4450 if (jj_scan_token(IDENTIFIER)) return true;
4451 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4452 if (jj_scan_token(COLON)) return true;
4453 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4457 static final private boolean jj_3R_91() {
4458 if (jj_scan_token(DOTASSIGN)) return true;
4459 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4463 static final private boolean jj_3R_90() {
4464 if (jj_scan_token(ORASSIGN)) return true;
4465 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4469 static final private boolean jj_3R_89() {
4470 if (jj_scan_token(XORASSIGN)) return true;
4471 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4475 static final private boolean jj_3R_88() {
4476 if (jj_scan_token(ANDASSIGN)) return true;
4477 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4481 static final private boolean jj_3R_87() {
4482 if (jj_scan_token(RSIGNEDSHIFTASSIGN)) return true;
4483 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4487 static final private boolean jj_3R_172() {
4488 if (jj_scan_token(ARRAY)) return true;
4489 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4490 if (jj_3R_185()) return true;
4491 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4495 static final private boolean jj_3R_86() {
4496 if (jj_scan_token(LSHIFTASSIGN)) return true;
4497 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4501 static final private boolean jj_3R_85() {
4502 if (jj_scan_token(MINUSASSIGN)) return true;
4503 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4507 static final private boolean jj_3R_84() {
4508 if (jj_scan_token(PLUSASSIGN)) return true;
4509 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4513 static final private boolean jj_3R_83() {
4514 if (jj_scan_token(REMASSIGN)) return true;
4515 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4519 static final private boolean jj_3R_179() {
4520 if (jj_scan_token(INCR)) return true;
4521 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4525 static final private boolean jj_3R_165() {
4526 if (jj_3R_172()) return true;
4527 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4531 static final private boolean jj_3R_173() {
4536 if (jj_3R_180()) return true;
4537 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4538 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4542 static final private boolean jj_3R_183() {
4543 if (jj_3R_184()) return true;
4544 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4548 static final private boolean jj_3R_82() {
4549 if (jj_scan_token(SLASHASSIGN)) return true;
4550 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4554 static final private boolean jj_3R_81() {
4555 if (jj_scan_token(STARASSIGN)) return true;
4556 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4560 static final private boolean jj_3R_164() {
4561 if (jj_3R_171()) return true;
4562 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4566 if (jj_3R_183()) { jj_scanpos = xsp; break; }
4567 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4572 static final private boolean jj_3R_80() {
4573 if (jj_scan_token(ASSIGN)) return true;
4574 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4578 static final private boolean jj_3R_76() {
4605 if (jj_3R_92()) return true;
4606 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;
4616 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4617 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4618 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4622 static final private boolean jj_3R_187() {
4623 if (jj_3R_184()) return true;
4624 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4628 static final private boolean jj_3_4() {
4629 if (jj_scan_token(IDENTIFIER)) return true;
4630 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4631 if (jj_scan_token(STATICCLASSACCESS)) return true;
4632 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4633 if (jj_3R_186()) return true;
4634 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4638 if (jj_3R_187()) { jj_scanpos = xsp; break; }
4639 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4644 static final private boolean jj_3R_160() {
4651 if (jj_3R_165()) return true;
4652 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4653 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4654 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4658 static final private boolean jj_3R_67() {
4659 if (jj_3R_76()) return true;
4660 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4661 if (jj_3R_41()) return true;
4662 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4666 static final private boolean jj_3R_59() {
4667 if (jj_3R_66()) return true;
4668 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4671 if (jj_3R_67()) jj_scanpos = xsp;
4672 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4676 static final private boolean jj_3R_58() {
4677 if (jj_3R_65()) return true;
4678 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4682 static final private boolean jj_3R_106() {
4683 if (jj_scan_token(ASSIGN)) return true;
4684 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4685 if (jj_3R_41()) return true;
4686 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4690 static final private boolean jj_3R_41() {
4697 if (jj_3R_59()) return true;
4698 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4699 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4700 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4704 static final private boolean jj_3R_57() {
4705 if (jj_3R_64()) return true;
4706 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4710 static final private boolean jj_3R_162() {
4711 if (jj_3R_160()) return true;
4712 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4715 if (jj_3R_173()) jj_scanpos = xsp;
4716 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4720 static final private boolean jj_3R_161() {
4721 if (jj_scan_token(LPAREN)) return true;
4722 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4723 if (jj_3R_40()) return true;
4724 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4725 if (jj_scan_token(RPAREN)) return true;
4726 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4727 if (jj_3R_135()) return true;
4728 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4732 static final private boolean jj_3R_56() {
4733 if (jj_scan_token(OBJECT)) return true;
4734 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4738 static final private boolean jj_3R_55() {
4739 if (jj_scan_token(INTEGER)) return true;
4740 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4744 static final private boolean jj_3R_105() {
4745 if (jj_scan_token(COMMA)) return true;
4746 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4747 if (jj_3R_68()) return true;
4748 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4752 static final private boolean jj_3R_54() {
4753 if (jj_scan_token(INT)) return true;
4754 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4758 static final private boolean jj_3R_104() {
4759 if (jj_3R_68()) return true;
4760 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4764 static final private boolean jj_3R_53() {
4765 if (jj_scan_token(FLOAT)) return true;
4766 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4770 static final private boolean jj_3R_52() {
4771 if (jj_scan_token(DOUBLE)) return true;
4772 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4776 static final private boolean jj_3_3() {
4777 if (jj_scan_token(LPAREN)) return true;
4778 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4779 if (jj_3R_40()) return true;
4780 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4781 if (jj_scan_token(RPAREN)) return true;
4782 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4786 static final private boolean jj_3R_51() {
4787 if (jj_scan_token(REAL)) return true;
4788 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4792 static final private boolean jj_3R_159() {
4793 if (jj_scan_token(LPAREN)) return true;
4794 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4795 if (jj_3R_41()) return true;
4796 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4797 if (jj_scan_token(RPAREN)) return true;
4798 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4802 static final private boolean jj_3R_50() {
4803 if (jj_scan_token(BOOLEAN)) return true;
4804 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4808 static final private boolean jj_3R_158() {
4809 if (jj_3R_163()) return true;
4810 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4814 static final private boolean jj_3R_65() {
4815 if (jj_scan_token(LIST)) return true;
4816 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4817 if (jj_scan_token(LPAREN)) return true;
4818 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4821 if (jj_3R_104()) jj_scanpos = xsp;
4822 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4824 if (jj_3R_105()) jj_scanpos = xsp;
4825 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4826 if (jj_scan_token(RPAREN)) return true;
4827 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4829 if (jj_3R_106()) jj_scanpos = xsp;
4830 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4834 static final private boolean jj_3R_49() {
4835 if (jj_scan_token(BOOL)) return true;
4836 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4840 static final private boolean jj_3R_157() {
4841 if (jj_3R_162()) return true;
4842 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4846 static final private boolean jj_3R_40() {
4865 if (jj_3R_56()) return true;
4866 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4867 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4868 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4869 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4870 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4871 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4872 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4873 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4874 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4878 static final private boolean jj_3R_48() {
4879 if (jj_scan_token(STRING)) return true;
4880 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4884 static final private boolean jj_3R_156() {
4885 if (jj_3R_161()) return true;
4886 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4890 static final private boolean jj_3R_154() {
4901 if (jj_3R_159()) return true;
4902 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4903 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4904 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4905 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4906 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4910 static final private boolean jj_3R_155() {
4911 if (jj_scan_token(BANG)) return true;
4912 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4913 if (jj_3R_135()) return true;
4914 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4918 static final private boolean jj_3R_64() {
4919 if (jj_scan_token(PRINT)) return true;
4920 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4921 if (jj_3R_41()) return true;
4922 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4926 static final private boolean jj_3R_153() {
4927 if (jj_scan_token(DECR)) return true;
4928 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4929 if (jj_3R_160()) return true;
4930 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4934 static final private boolean jj_3R_152() {
4935 if (jj_scan_token(INCR)) return true;
4936 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4937 if (jj_3R_160()) return true;
4938 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4942 static final private boolean jj_3R_151() {
4943 if (jj_scan_token(MINUS)) return true;
4944 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4948 static final private boolean jj_3R_149() {
4949 if (jj_3R_154()) return true;
4950 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4954 static final private boolean jj_3R_148() {
4955 if (jj_3R_153()) return true;
4956 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4960 static final private boolean jj_3R_143() {
4961 if (jj_scan_token(REM)) return true;
4962 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4966 static final private boolean jj_3R_147() {
4967 if (jj_3R_152()) return true;
4968 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4972 static final private boolean jj_3R_150() {
4973 if (jj_scan_token(PLUS)) return true;
4974 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4978 static final private boolean jj_3R_144() {
4987 if (jj_3R_149()) return true;
4988 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4989 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4990 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4991 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4995 static final private boolean jj_3R_146() {
5000 if (jj_3R_151()) return true;
5001 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5002 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5003 if (jj_3R_135()) return true;
5004 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5008 static final private boolean jj_3R_145() {
5009 if (jj_scan_token(AT)) return true;
5010 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5014 static final private boolean jj_3R_140() {
5018 if (jj_3R_145()) { jj_scanpos = xsp; break; }
5019 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5021 if (jj_3R_144()) return true;
5022 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5026 static final private boolean jj_3R_142() {
5027 if (jj_scan_token(SLASH)) return true;
5028 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5032 static final private boolean jj_3R_135() {
5037 if (jj_3R_140()) return true;
5038 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5039 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5043 static final private boolean jj_3R_139() {
5044 if (jj_scan_token(BIT_AND)) return true;
5045 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5046 if (jj_3R_144()) return true;
5047 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5051 static final private boolean jj_3R_134() {
5052 if (jj_scan_token(RUNSIGNEDSHIFT)) return true;
5053 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5057 static final private boolean jj_3R_138() {
5058 if (jj_scan_token(MINUS)) return true;
5059 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5063 static final private boolean jj_3R_129() {
5064 if (jj_scan_token(GE)) return true;
5065 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5069 static final private boolean jj_3R_141() {
5070 if (jj_scan_token(STAR)) return true;
5071 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5075 static final private boolean jj_3R_136() {
5082 if (jj_3R_143()) return true;
5083 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5084 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5085 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5086 if (jj_3R_135()) return true;
5087 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5091 static final private boolean jj_3R_130() {
5092 if (jj_3R_135()) return true;
5093 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5097 if (jj_3R_136()) { jj_scanpos = xsp; break; }
5098 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5103 static final private boolean jj_3R_133() {
5104 if (jj_scan_token(RSIGNEDSHIFT)) return true;
5105 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5109 static final private boolean jj_3_2() {
5110 if (jj_scan_token(COMMA)) return true;
5111 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5112 if (jj_3R_39()) return true;
5113 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5117 static final private boolean jj_3R_128() {
5118 if (jj_scan_token(LE)) return true;
5119 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5123 static final private boolean jj_3R_137() {
5124 if (jj_scan_token(PLUS)) return true;
5125 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5129 static final private boolean jj_3R_131() {
5134 if (jj_3R_138()) return true;
5135 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5136 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5137 if (jj_3R_130()) return true;
5138 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5142 static final private boolean jj_3R_193() {
5143 if (jj_3R_39()) return true;
5144 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5148 if (jj_3_2()) { jj_scanpos = xsp; break; }
5149 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5154 static final private boolean jj_3R_124() {
5155 if (jj_3R_130()) return true;
5156 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5160 if (jj_3R_131()) { jj_scanpos = xsp; break; }
5161 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5166 static final private boolean jj_3R_185() {
5167 if (jj_scan_token(LPAREN)) return true;
5168 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5171 if (jj_3R_193()) jj_scanpos = xsp;
5172 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5173 if (jj_scan_token(RPAREN)) return true;
5174 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5178 static final private boolean jj_3R_127() {
5179 if (jj_scan_token(GT)) return true;
5180 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5184 static final private boolean jj_3R_132() {
5185 if (jj_scan_token(LSHIFT)) return true;
5186 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5190 static final private boolean jj_3R_125() {
5197 if (jj_3R_134()) return true;
5198 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5199 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5200 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5201 if (jj_3R_124()) return true;
5202 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5206 static final private boolean jj_3R_195() {
5207 if (jj_scan_token(ARRAYASSIGN)) return true;
5208 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5209 if (jj_3R_41()) return true;
5210 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5214 static final private boolean jj_3R_117() {
5215 if (jj_3R_124()) return true;
5216 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5220 if (jj_3R_125()) { jj_scanpos = xsp; break; }
5221 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5226 static final private boolean jj_3R_39() {
5227 if (jj_3R_41()) return true;
5228 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5231 if (jj_3R_195()) jj_scanpos = xsp;
5232 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5236 static final private boolean jj_3R_43() {
5237 if (jj_scan_token(PHPEND)) return true;
5238 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5242 static final private boolean jj_3R_126() {
5243 if (jj_scan_token(LT)) return true;
5244 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5248 static final private boolean jj_3R_118() {
5257 if (jj_3R_129()) return true;
5258 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5259 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5260 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5261 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5262 if (jj_3R_117()) return true;
5263 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5267 static final private boolean jj_3_6() {
5268 if (jj_3R_44()) return true;
5269 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5273 static final private boolean jj_3R_115() {
5274 if (jj_3R_117()) return true;
5275 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5279 if (jj_3R_118()) { jj_scanpos = xsp; break; }
5280 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5285 static final private boolean jj_3R_42() {
5286 if (jj_scan_token(SEMICOLON)) return true;
5287 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5291 static final private boolean jj_3R_110() {
5292 if (jj_3R_62()) return true;
5293 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5297 static final private boolean jj_3_5() {
5298 if (jj_3R_41()) return true;
5299 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5304 if (jj_3R_43()) return true;
5305 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5306 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5310 static final private boolean jj_3R_109() {
5311 if (jj_scan_token(LBRACE)) return true;
5312 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5313 if (jj_3R_41()) return true;
5314 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5315 if (jj_scan_token(RBRACE)) return true;
5316 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5320 static final private boolean jj_3R_123() {
5321 if (jj_scan_token(TRIPLEEQUAL)) return true;
5322 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5326 static final private boolean jj_3R_122() {
5327 if (jj_scan_token(BANGDOUBLEEQUAL)) return true;
5328 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5332 static final private boolean jj_3R_121() {
5333 if (jj_scan_token(NE)) return true;
5334 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5338 static final private boolean jj_3R_120() {
5339 if (jj_scan_token(DIF)) return true;
5340 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5344 static final private boolean jj_3R_119() {
5345 if (jj_scan_token(EQ)) return true;
5346 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5350 static final private boolean jj_3R_116() {
5361 if (jj_3R_123()) return true;
5362 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5363 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5364 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5365 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5366 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5367 if (jj_3R_115()) return true;
5368 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5372 static final private boolean jj_3R_73() {
5373 if (jj_scan_token(DOLLAR_ID)) return true;
5374 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5377 if (jj_3R_110()) jj_scanpos = xsp;
5378 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5382 static final private boolean jj_3R_113() {
5383 if (jj_3R_115()) return true;
5384 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5388 if (jj_3R_116()) { jj_scanpos = xsp; break; }
5389 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5394 static final private boolean jj_3R_197() {
5395 if (jj_scan_token(COMMA)) return true;
5396 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5397 if (jj_3R_41()) return true;
5398 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5402 static final private boolean jj_3R_72() {
5403 if (jj_scan_token(DOLLAR)) return true;
5404 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5405 if (jj_3R_62()) return true;
5406 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5410 static private boolean jj_initialized_once = false;
5411 static public PHPParserTokenManager token_source;
5412 static SimpleCharStream jj_input_stream;
5413 static public Token token, jj_nt;
5414 static private int jj_ntk;
5415 static private Token jj_scanpos, jj_lastpos;
5416 static private int jj_la;
5417 static public boolean lookingAhead = false;
5418 static private boolean jj_semLA;
5419 static private int jj_gen;
5420 static final private int[] jj_la1 = new int[122];
5421 static private int[] jj_la1_0;
5422 static private int[] jj_la1_1;
5423 static private int[] jj_la1_2;
5424 static private int[] jj_la1_3;
5425 static private int[] jj_la1_4;
5433 private static void jj_la1_0() {
5434 jj_la1_0 = new int[] {0xfcb0001e,0x0,0x6,0x6,0xfcb0001e,0xfcb00000,0x0,0x600000,0x600000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x4000000,0x0,0x14000000,0x0,0x0,0x0,0x0,0x0,0x0,0x14000000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x4000000,0x0,0x4000000,0x0,0x4000000,0x0,0x0,0x0,0x0,0x4000000,0x0,0x0,0x0,0x14000000,0x0,0x0,0x0,0x14000000,0x0,0x10,0x0,0xe4800000,0xfc800000,0x0,0x0,0x0,0x0,0xc0000000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xfcb00000,0xfcb00000,0xf4b00000,0x0,0x0,0x0,0x0,0x4000000,0x0,0xf4b00000,0x8000000,0x0,0xfc800000,0x1000000,0x2000000,0x1000000,0x2000000,0xfc800000,0xfc800000,0xfc800000,0xfc800000,0x0,0xfc800000,0x0,0x0,0x0,0x4000000,0x14000000,0x4000000,0xfc800000,0xfc800000,0x4000000,0x0,0x0,0x0,0x14000000,};
5436 private static void jj_la1_1() {
5437 jj_la1_1 = new int[] {0x11d7548f,0x0,0x0,0x0,0x11d7548f,0x11d7548f,0x2000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xc20000,0x40,0xc30080,0x0,0x0,0x0,0x0,0xc0000000,0x0,0xc30080,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xc30000,0x0,0xc30000,0x0,0xc30000,0x0,0x0,0x10,0x10,0x10000,0x10000,0x0,0x10,0xc30080,0x10,0xc20000,0xc00000,0xc30080,0x0,0x0,0x0,0x1115540f,0x11d7548f,0x0,0x0,0x0,0x0,0x3,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x11d7548f,0x11d7548f,0x11d7548f,0x0,0x0,0x0,0x0,0x10000,0x900,0x11d7548f,0x0,0x900,0x11d7548f,0x0,0x0,0x0,0x0,0x11d7548f,0x11d7548f,0x11d7548f,0x11d7548f,0x0,0x11d7548f,0x0,0x10,0x40,0x10000,0xc30080,0x10000,0x11d7548f,0x11d7548f,0x10000,0x0,0x0,0x0,0xc30080,};
5439 private static void jj_la1_2() {
5440 jj_la1_2 = new int[] {0x2288a200,0x20000000,0x0,0x0,0x2288a200,0x2288a200,0x0,0x0,0x0,0x40000000,0x0,0x2000000,0x0,0x2000000,0x2080000,0x2080000,0x2200,0x2200,0x8a200,0x0,0x88a200,0x0,0x40000000,0x0,0x0,0x7f,0x0,0x88a200,0x0,0x0,0x80,0x80,0x100,0x100,0x80000000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x88a200,0x0,0x88a200,0x0,0x88a200,0x0,0x0,0x8800000,0x8800000,0x80000,0x80000,0x80000,0x8800000,0x88a200,0x8000000,0xa200,0x0,0x88a200,0x40000000,0x20000000,0x0,0x22080000,0x2288a200,0x20000000,0x20000000,0x20000000,0x20000000,0x0,0x0,0x40000000,0x0,0x40000000,0x20000000,0x40000000,0x20000000,0x40000000,0x20000000,0x2288a200,0x2288a200,0x2288a200,0x40000000,0x0,0x0,0x0,0x80000,0x0,0x2288a200,0x0,0x0,0x2288a200,0x0,0x0,0x0,0x0,0x2288a200,0x2288a200,0x2288a200,0x2288a200,0x20000000,0x2288a200,0x20000000,0x8000000,0x0,0x80000,0x88a200,0x80000,0x2288a200,0x2288a200,0x80000,0x40000000,0x80000,0x80000,0x88a200,};
5442 private static void jj_la1_3() {
5443 jj_la1_3 = new int[] {0x78700000,0x0,0x0,0x0,0x78700000,0x78700000,0x0,0x0,0x0,0x0,0x200,0x0,0x200000,0x0,0x200000,0x200000,0x0,0x0,0x60000000,0x0,0x78700000,0x0,0x0,0x200000,0x0,0x0,0xffe00,0x78700000,0xffe00,0x800000,0x2000000,0x2000000,0x4000000,0x4000000,0x0,0x0,0x0,0x0,0x1e4,0x1e4,0x1b,0x1b,0x0,0x0,0x60000000,0x60000000,0x80000000,0x80000000,0x100000,0x78700000,0x60000000,0x78600000,0x400000,0x200000,0x18000000,0x18000000,0x0,0x0,0x200000,0x200000,0x200000,0x0,0x78700000,0x0,0x0,0x0,0x78700000,0x0,0x0,0x100000,0x18300000,0x78700000,0x0,0x0,0x0,0x0,0x0,0x200000,0x0,0x200,0x0,0x0,0x0,0x0,0x0,0x0,0x78700000,0x78700000,0x78700000,0x0,0x200,0x180ffe00,0x180ffe00,0x18200000,0x0,0x78700000,0x0,0x0,0x78700000,0x0,0x0,0x0,0x0,0x79700000,0x78700000,0x78700000,0x78700000,0x0,0x79700000,0x0,0x0,0x0,0x18200000,0x78700000,0x18200000,0x78700000,0x79700000,0x18200000,0x0,0x0,0x0,0x78700000,};
5445 private static void jj_la1_4() {
5446 jj_la1_4 = new int[] {0x402,0x0,0x0,0x0,0x402,0x402,0x0,0x0,0x0,0x0,0x0,0x0,0x400,0x0,0x400,0x400,0x0,0x0,0x0,0x0,0x402,0x2,0x0,0x402,0x2,0x0,0x300,0x402,0x300,0x0,0x0,0x0,0x0,0x0,0x0,0x4,0x8,0x2,0x0,0x0,0x0,0x0,0xe0,0xe0,0x0,0x0,0x11,0x11,0x0,0x402,0x0,0x400,0x0,0x400,0x0,0x0,0x0,0x0,0x400,0x400,0x400,0x0,0x402,0x0,0x0,0x0,0x402,0x0,0x0,0x0,0x400,0x402,0x800,0x800,0x800,0x800,0x0,0x400,0x0,0x0,0x0,0x800,0x0,0x800,0x0,0x800,0x402,0x402,0x402,0x0,0x0,0x300,0x300,0x400,0x0,0x402,0x0,0x0,0x402,0x0,0x0,0x0,0x0,0x402,0x402,0x402,0x402,0x800,0x402,0x800,0x0,0x0,0x400,0x402,0x400,0x402,0x402,0x400,0x0,0x0,0x0,0x402,};
5448 static final private JJCalls[] jj_2_rtns = new JJCalls[7];
5449 static private boolean jj_rescan = false;
5450 static private int jj_gc = 0;
5452 public PHPParser(java.io.InputStream stream) {
5453 if (jj_initialized_once) {
5454 System.out.println("ERROR: Second call to constructor of static parser. You must");
5455 System.out.println(" either use ReInit() or set the JavaCC option STATIC to false");
5456 System.out.println(" during parser generation.");
5459 jj_initialized_once = true;
5460 jj_input_stream = new SimpleCharStream(stream, 1, 1);
5461 token_source = new PHPParserTokenManager(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 static public void ReInit(java.io.InputStream stream) {
5470 jj_input_stream.ReInit(stream, 1, 1);
5471 token_source.ReInit(jj_input_stream);
5472 token = new Token();
5475 for (int i = 0; i < 122; i++) jj_la1[i] = -1;
5476 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
5479 public PHPParser(java.io.Reader stream) {
5480 if (jj_initialized_once) {
5481 System.out.println("ERROR: Second call to constructor of static parser. You must");
5482 System.out.println(" either use ReInit() or set the JavaCC option STATIC to false");
5483 System.out.println(" during parser generation.");
5486 jj_initialized_once = true;
5487 jj_input_stream = new SimpleCharStream(stream, 1, 1);
5488 token_source = new PHPParserTokenManager(jj_input_stream);
5489 token = new Token();
5492 for (int i = 0; i < 122; i++) jj_la1[i] = -1;
5493 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
5496 static public void ReInit(java.io.Reader stream) {
5497 jj_input_stream.ReInit(stream, 1, 1);
5498 token_source.ReInit(jj_input_stream);
5499 token = new Token();
5502 for (int i = 0; i < 122; i++) jj_la1[i] = -1;
5503 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
5506 public PHPParser(PHPParserTokenManager tm) {
5507 if (jj_initialized_once) {
5508 System.out.println("ERROR: Second call to constructor of static parser. You must");
5509 System.out.println(" either use ReInit() or set the JavaCC option STATIC to false");
5510 System.out.println(" during parser generation.");
5513 jj_initialized_once = true;
5515 token = new Token();
5518 for (int i = 0; i < 122; i++) jj_la1[i] = -1;
5519 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
5522 public void ReInit(PHPParserTokenManager tm) {
5524 token = new Token();
5527 for (int i = 0; i < 122; i++) jj_la1[i] = -1;
5528 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
5531 static final private Token jj_consume_token(int kind) throws ParseException {
5533 if ((oldToken = token).next != null) token = token.next;
5534 else token = token.next = token_source.getNextToken();
5536 if (token.kind == kind) {
5538 if (++jj_gc > 100) {
5540 for (int i = 0; i < jj_2_rtns.length; i++) {
5541 JJCalls c = jj_2_rtns[i];
5543 if (c.gen < jj_gen) c.first = null;
5552 throw generateParseException();
5555 static final private boolean jj_scan_token(int kind) {
5556 if (jj_scanpos == jj_lastpos) {
5558 if (jj_scanpos.next == null) {
5559 jj_lastpos = jj_scanpos = jj_scanpos.next = token_source.getNextToken();
5561 jj_lastpos = jj_scanpos = jj_scanpos.next;
5564 jj_scanpos = jj_scanpos.next;
5567 int i = 0; Token tok = token;
5568 while (tok != null && tok != jj_scanpos) { i++; tok = tok.next; }
5569 if (tok != null) jj_add_error_token(kind, i);
5571 return (jj_scanpos.kind != kind);
5574 static final public Token getNextToken() {
5575 if (token.next != null) token = token.next;
5576 else token = token.next = token_source.getNextToken();
5582 static final public Token getToken(int index) {
5583 Token t = lookingAhead ? jj_scanpos : token;
5584 for (int i = 0; i < index; i++) {
5585 if (t.next != null) t = t.next;
5586 else t = t.next = token_source.getNextToken();
5591 static final private int jj_ntk() {
5592 if ((jj_nt=token.next) == null)
5593 return (jj_ntk = (token.next=token_source.getNextToken()).kind);
5595 return (jj_ntk = jj_nt.kind);
5598 static private java.util.Vector jj_expentries = new java.util.Vector();
5599 static private int[] jj_expentry;
5600 static private int jj_kind = -1;
5601 static private int[] jj_lasttokens = new int[100];
5602 static private int jj_endpos;
5604 static private void jj_add_error_token(int kind, int pos) {
5605 if (pos >= 100) return;
5606 if (pos == jj_endpos + 1) {
5607 jj_lasttokens[jj_endpos++] = kind;
5608 } else if (jj_endpos != 0) {
5609 jj_expentry = new int[jj_endpos];
5610 for (int i = 0; i < jj_endpos; i++) {
5611 jj_expentry[i] = jj_lasttokens[i];
5613 boolean exists = false;
5614 for (java.util.Enumeration enum = jj_expentries.elements(); enum.hasMoreElements();) {
5615 int[] oldentry = (int[])(enum.nextElement());
5616 if (oldentry.length == jj_expentry.length) {
5618 for (int i = 0; i < jj_expentry.length; i++) {
5619 if (oldentry[i] != jj_expentry[i]) {
5627 if (!exists) jj_expentries.addElement(jj_expentry);
5628 if (pos != 0) jj_lasttokens[(jj_endpos = pos) - 1] = kind;
5632 static public ParseException generateParseException() {
5633 jj_expentries.removeAllElements();
5634 boolean[] la1tokens = new boolean[140];
5635 for (int i = 0; i < 140; i++) {
5636 la1tokens[i] = false;
5639 la1tokens[jj_kind] = true;
5642 for (int i = 0; i < 122; i++) {
5643 if (jj_la1[i] == jj_gen) {
5644 for (int j = 0; j < 32; j++) {
5645 if ((jj_la1_0[i] & (1<<j)) != 0) {
5646 la1tokens[j] = true;
5648 if ((jj_la1_1[i] & (1<<j)) != 0) {
5649 la1tokens[32+j] = true;
5651 if ((jj_la1_2[i] & (1<<j)) != 0) {
5652 la1tokens[64+j] = true;
5654 if ((jj_la1_3[i] & (1<<j)) != 0) {
5655 la1tokens[96+j] = true;
5657 if ((jj_la1_4[i] & (1<<j)) != 0) {
5658 la1tokens[128+j] = true;
5663 for (int i = 0; i < 140; i++) {
5665 jj_expentry = new int[1];
5667 jj_expentries.addElement(jj_expentry);
5672 jj_add_error_token(0, 0);
5673 int[][] exptokseq = new int[jj_expentries.size()][];
5674 for (int i = 0; i < jj_expentries.size(); i++) {
5675 exptokseq[i] = (int[])jj_expentries.elementAt(i);
5677 return new ParseException(token, exptokseq, tokenImage);
5680 static final public void enable_tracing() {
5683 static final public void disable_tracing() {
5686 static final private void jj_rescan_token() {
5688 for (int i = 0; i < 7; i++) {
5689 JJCalls p = jj_2_rtns[i];
5691 if (p.gen > jj_gen) {
5692 jj_la = p.arg; jj_lastpos = jj_scanpos = p.first;
5694 case 0: jj_3_1(); break;
5695 case 1: jj_3_2(); break;
5696 case 2: jj_3_3(); break;
5697 case 3: jj_3_4(); break;
5698 case 4: jj_3_5(); break;
5699 case 5: jj_3_6(); break;
5700 case 6: jj_3_7(); break;
5704 } while (p != null);
5709 static final private void jj_save(int index, int xla) {
5710 JJCalls p = jj_2_rtns[index];
5711 while (p.gen > jj_gen) {
5712 if (p.next == null) { p = p.next = new JJCalls(); break; }
5715 p.gen = jj_gen + xla - jj_la; p.first = token; p.arg = xla;
5718 static final class JJCalls {