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;
13 import java.text.MessageFormat;
15 import net.sourceforge.phpeclipse.actions.PHPStartApacheAction;
16 import net.sourceforge.phpeclipse.PHPeclipsePlugin;
17 import net.sourceforge.phpdt.internal.compiler.parser.PHPOutlineInfo;
18 import net.sourceforge.phpdt.internal.compiler.parser.PHPSegmentWithChildren;
19 import net.sourceforge.phpdt.internal.compiler.parser.PHPFunctionDeclaration;
20 import net.sourceforge.phpdt.internal.compiler.parser.PHPClassDeclaration;
21 import net.sourceforge.phpdt.internal.compiler.parser.PHPVarDeclaration;
22 import net.sourceforge.phpdt.internal.compiler.parser.PHPReqIncDeclaration;
26 * This php parser is inspired by the Java 1.2 grammar example
27 * given with JavaCC. You can get JavaCC at http://www.webgain.com
28 * You can test the parser with the PHPParserTestCase2.java
29 * @author Matthieu Casanova
31 public final class PHPParser extends PHPParserSuperclass implements PHPParserConstants {
33 /** The file that is parsed. */
34 private static IFile fileToParse;
36 /** The current segment */
37 private static PHPSegmentWithChildren currentSegment;
39 private static final String PARSE_ERROR_STRING = "Parse error"; //$NON-NLS-1$
40 private static final String PARSE_WARNING_STRING = "Warning"; //$NON-NLS-1$
41 PHPOutlineInfo outlineInfo;
43 /** The error level of the current ParseException. */
44 private static int errorLevel = ERROR;
45 /** The message of the current ParseException. If it's null it's because the parse exception wasn't handled */
46 private static String errorMessage;
48 private static int errorStart = -1;
49 private static int errorEnd = -1;
54 public final void setFileToParse(final IFile fileToParse) {
55 this.fileToParse = fileToParse;
58 public PHPParser(final IFile fileToParse) {
59 this(new StringReader(""));
60 this.fileToParse = fileToParse;
63 public static final void phpParserTester(final String strEval) throws CoreException, ParseException {
64 PHPParserTokenManager.SwitchTo(PHPParserTokenManager.PHPPARSING);
65 final StringReader stream = new StringReader(strEval);
66 if (jj_input_stream == null) {
67 jj_input_stream = new SimpleCharStream(stream, 1, 1);
69 ReInit(new StringReader(strEval));
73 public static final void htmlParserTester(final File fileName) throws CoreException, ParseException {
75 final Reader stream = new FileReader(fileName);
76 if (jj_input_stream == null) {
77 jj_input_stream = new SimpleCharStream(stream, 1, 1);
81 } catch (FileNotFoundException e) {
82 e.printStackTrace(); //To change body of catch statement use Options | File Templates.
83 } catch (ParseException e) {
84 e.printStackTrace(); //To change body of catch statement use Options | File Templates.
88 public static final void htmlParserTester(final String strEval) throws CoreException, ParseException {
89 final StringReader stream = new StringReader(strEval);
90 if (jj_input_stream == null) {
91 jj_input_stream = new SimpleCharStream(stream, 1, 1);
97 public final PHPOutlineInfo parseInfo(final Object parent, final String s) {
98 outlineInfo = new PHPOutlineInfo(parent);
99 currentSegment = outlineInfo.getDeclarations();
100 final StringReader stream = new StringReader(s);
101 if (jj_input_stream == null) {
102 jj_input_stream = new SimpleCharStream(stream, 1, 1);
107 } catch (ParseException e) {
108 processParseException(e);
114 * This method will process the parse exception.
115 * If the error message is null, the parse exception wasn't catched and a trace is written in the log
116 * @param e the ParseException
118 private static void processParseException(final ParseException e) {
119 if (errorMessage == null) {
120 PHPeclipsePlugin.log(e);
121 errorMessage = "this exception wasn't handled by the parser please tell us how to reproduce it";
122 errorStart = jj_input_stream.getPosition();
123 errorEnd = errorStart + 1;
130 * Create marker for the parse error
131 * @param e the ParseException
133 private static void setMarker(final ParseException e) {
135 if (errorStart == -1) {
136 setMarker(fileToParse,
138 jj_input_stream.tokenBegin,
139 jj_input_stream.tokenBegin + e.currentToken.image.length(),
141 "Line " + e.currentToken.beginLine);
143 setMarker(fileToParse,
148 "Line " + e.currentToken.beginLine);
152 } catch (CoreException e2) {
153 PHPeclipsePlugin.log(e2);
158 * Create markers according to the external parser output
160 private static void createMarkers(final String output, final IFile file) throws CoreException {
161 // delete all markers
162 file.deleteMarkers(IMarker.PROBLEM, false, 0);
167 while ((brIndx = output.indexOf("<br />", indx)) != -1) {
168 // newer php error output (tested with 4.2.3)
169 scanLine(output, file, indx, brIndx);
174 while ((brIndx = output.indexOf("<br>", indx)) != -1) {
175 // older php error output (tested with 4.2.3)
176 scanLine(output, file, indx, brIndx);
182 private static void scanLine(final String output,
185 final int brIndx) throws CoreException {
187 StringBuffer lineNumberBuffer = new StringBuffer(10);
189 current = output.substring(indx, brIndx);
191 if (current.indexOf(PARSE_WARNING_STRING) != -1 || current.indexOf(PARSE_ERROR_STRING) != -1) {
192 int onLine = current.indexOf("on line <b>");
194 lineNumberBuffer.delete(0, lineNumberBuffer.length());
195 for (int i = onLine; i < current.length(); i++) {
196 ch = current.charAt(i);
197 if ('0' <= ch && '9' >= ch) {
198 lineNumberBuffer.append(ch);
202 int lineNumber = Integer.parseInt(lineNumberBuffer.toString());
204 Hashtable attributes = new Hashtable();
206 current = current.replaceAll("\n", "");
207 current = current.replaceAll("<b>", "");
208 current = current.replaceAll("</b>", "");
209 MarkerUtilities.setMessage(attributes, current);
211 if (current.indexOf(PARSE_ERROR_STRING) != -1)
212 attributes.put(IMarker.SEVERITY, new Integer(IMarker.SEVERITY_ERROR));
213 else if (current.indexOf(PARSE_WARNING_STRING) != -1)
214 attributes.put(IMarker.SEVERITY, new Integer(IMarker.SEVERITY_WARNING));
216 attributes.put(IMarker.SEVERITY, new Integer(IMarker.SEVERITY_INFO));
217 MarkerUtilities.setLineNumber(attributes, lineNumber);
218 MarkerUtilities.createMarker(file, attributes, IMarker.PROBLEM);
223 public final void parse(final String s) throws CoreException {
224 final StringReader stream = new StringReader(s);
225 if (jj_input_stream == null) {
226 jj_input_stream = new SimpleCharStream(stream, 1, 1);
231 } catch (ParseException e) {
232 processParseException(e);
237 * Call the php parse command ( php -l -f <filename> )
238 * and create markers according to the external parser output
240 public static void phpExternalParse(final IFile file) {
241 final IPreferenceStore store = PHPeclipsePlugin.getDefault().getPreferenceStore();
242 final String filename = file.getLocation().toString();
244 final String[] arguments = { filename };
245 final MessageFormat form = new MessageFormat(store.getString(PHPeclipsePlugin.EXTERNAL_PARSER_PREF));
246 final String command = form.format(arguments);
248 final String parserResult = PHPStartApacheAction.getParserOutput(command, "External parser: ");
251 // parse the buffer to find the errors and warnings
252 createMarkers(parserResult, file);
253 } catch (CoreException e) {
254 PHPeclipsePlugin.log(e);
258 public static final void parse() throws ParseException {
262 static final public void phpTest() throws ParseException {
267 static final public void phpFile() throws ParseException {
271 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
301 case INTEGER_LITERAL:
302 case FLOATING_POINT_LITERAL:
326 } catch (TokenMgrError e) {
327 errorMessage = e.getMessage();
329 {if (true) throw generateParseException();}
333 static final public void PhpBlock() throws ParseException {
334 final int start = jj_input_stream.getPosition();
335 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
337 jj_consume_token(PHPECHOSTART);
339 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
341 jj_consume_token(SEMICOLON);
347 jj_consume_token(PHPEND);
377 case INTEGER_LITERAL:
378 case FLOATING_POINT_LITERAL:
393 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
396 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
398 jj_consume_token(PHPSTARTLONG);
401 jj_consume_token(PHPSTARTSHORT);
403 setMarker(fileToParse,
404 "You should use '<?php' instead of '<?' it will avoid some problems with XML",
406 jj_input_stream.getPosition(),
408 "Line " + token.beginLine);
409 } catch (CoreException e) {
410 PHPeclipsePlugin.log(e);
415 jj_consume_token(-1);
416 throw new ParseException();
425 jj_consume_token(PHPEND);
426 } catch (ParseException e) {
427 errorMessage = "'?>' expected";
429 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
430 errorEnd = jj_input_stream.getPosition() + 1;
436 jj_consume_token(-1);
437 throw new ParseException();
441 static final public void Php() throws ParseException {
444 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
470 case INTEGER_LITERAL:
471 case FLOATING_POINT_LITERAL:
496 static final public void ClassDeclaration() throws ParseException {
497 final PHPClassDeclaration classDeclaration;
498 final Token className;
500 jj_consume_token(CLASS);
502 pos = jj_input_stream.getPosition();
503 className = jj_consume_token(IDENTIFIER);
504 } catch (ParseException e) {
505 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', identifier expected";
507 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
508 errorEnd = jj_input_stream.getPosition() + 1;
511 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
513 jj_consume_token(EXTENDS);
515 jj_consume_token(IDENTIFIER);
516 } catch (ParseException e) {
517 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', identifier expected";
519 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
520 errorEnd = jj_input_stream.getPosition() + 1;
528 if (currentSegment != null) {
529 classDeclaration = new PHPClassDeclaration(currentSegment,className.image,pos);
530 currentSegment.add(classDeclaration);
531 currentSegment = classDeclaration;
534 if (currentSegment != null) {
535 currentSegment = (PHPSegmentWithChildren) currentSegment.getParent();
539 static final public void ClassBody() throws ParseException {
541 jj_consume_token(LBRACE);
542 } catch (ParseException e) {
543 errorMessage = "unexpected token : '"+ e.currentToken.next.image + "', '{' expected";
545 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
546 errorEnd = jj_input_stream.getPosition() + 1;
551 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
560 ClassBodyDeclaration();
563 jj_consume_token(RBRACE);
564 } catch (ParseException e) {
565 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', 'var', 'function' or '}' expected";
567 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
568 errorEnd = jj_input_stream.getPosition() + 1;
573 static final public void ClassBodyDeclaration() throws ParseException {
574 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
583 jj_consume_token(-1);
584 throw new ParseException();
588 static final public void FieldDeclaration() throws ParseException {
589 PHPVarDeclaration variableDeclaration;
590 jj_consume_token(VAR);
591 variableDeclaration = VariableDeclarator();
592 if (currentSegment != null) {
593 currentSegment.add(variableDeclaration);
597 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
605 jj_consume_token(COMMA);
606 variableDeclaration = VariableDeclarator();
607 if (currentSegment != null) {
608 currentSegment.add(variableDeclaration);
612 jj_consume_token(SEMICOLON);
613 } catch (ParseException e) {
614 errorMessage = "';' expected after variable declaration";
616 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
617 errorEnd = jj_input_stream.getPosition() + 1;
622 static final public PHPVarDeclaration VariableDeclarator() throws ParseException {
623 final String varName;
624 final String varValue;
625 final int pos = jj_input_stream.getPosition();
626 varName = VariableDeclaratorId();
627 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
629 jj_consume_token(ASSIGN);
631 varValue = VariableInitializer();
632 {if (true) return new PHPVarDeclaration(currentSegment,varName,pos,varValue);}
633 } catch (ParseException e) {
634 errorMessage = "Literal expression expected in variable initializer";
636 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
637 errorEnd = jj_input_stream.getPosition() + 1;
645 {if (true) return new PHPVarDeclaration(currentSegment,varName,pos);}
646 throw new Error("Missing return statement in function");
649 static final public String VariableDeclaratorId() throws ParseException {
651 final StringBuffer buff = new StringBuffer();
662 expr = VariableSuffix();
665 {if (true) return buff.toString();}
666 } catch (ParseException e) {
667 errorMessage = "'$' expected for variable identifier";
669 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
670 errorEnd = jj_input_stream.getPosition() + 1;
673 throw new Error("Missing return statement in function");
676 static final public String Variable() throws ParseException {
679 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
681 token = jj_consume_token(DOLLAR_ID);
682 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
684 jj_consume_token(LBRACE);
686 jj_consume_token(RBRACE);
693 {if (true) return token.image;}
695 {if (true) return token + "{" + expr + "}";}
698 jj_consume_token(DOLLAR);
699 expr = VariableName();
700 {if (true) return "$" + expr;}
704 jj_consume_token(-1);
705 throw new ParseException();
707 throw new Error("Missing return statement in function");
710 static final public String VariableName() throws ParseException {
713 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
715 jj_consume_token(LBRACE);
717 jj_consume_token(RBRACE);
718 {if (true) return "{"+expr+"}";}
721 token = jj_consume_token(IDENTIFIER);
722 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
724 jj_consume_token(LBRACE);
726 jj_consume_token(RBRACE);
733 {if (true) return token.image;}
735 {if (true) return token + "{" + expr + "}";}
738 jj_consume_token(DOLLAR);
739 expr = VariableName();
740 {if (true) return "$" + expr;}
743 token = jj_consume_token(DOLLAR_ID);
744 {if (true) return token.image + expr;}
748 jj_consume_token(-1);
749 throw new ParseException();
751 throw new Error("Missing return statement in function");
754 static final public String VariableInitializer() throws ParseException {
757 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
761 case INTEGER_LITERAL:
762 case FLOATING_POINT_LITERAL:
765 {if (true) return expr;}
768 jj_consume_token(MINUS);
769 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
770 case INTEGER_LITERAL:
771 token = jj_consume_token(INTEGER_LITERAL);
773 case FLOATING_POINT_LITERAL:
774 token = jj_consume_token(FLOATING_POINT_LITERAL);
778 jj_consume_token(-1);
779 throw new ParseException();
781 {if (true) return "-" + token.image;}
784 jj_consume_token(PLUS);
785 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
786 case INTEGER_LITERAL:
787 token = jj_consume_token(INTEGER_LITERAL);
789 case FLOATING_POINT_LITERAL:
790 token = jj_consume_token(FLOATING_POINT_LITERAL);
794 jj_consume_token(-1);
795 throw new ParseException();
797 {if (true) return "+" + token.image;}
800 expr = ArrayDeclarator();
801 {if (true) return expr;}
804 token = jj_consume_token(IDENTIFIER);
805 {if (true) return token.image;}
809 jj_consume_token(-1);
810 throw new ParseException();
812 throw new Error("Missing return statement in function");
815 static final public String ArrayVariable() throws ParseException {
817 final StringBuffer buff = new StringBuffer();
820 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
822 jj_consume_token(ARRAYASSIGN);
824 buff.append("=>").append(expr);
830 {if (true) return buff.toString();}
831 throw new Error("Missing return statement in function");
834 static final public String ArrayInitializer() throws ParseException {
836 final StringBuffer buff = new StringBuffer("(");
837 jj_consume_token(LPAREN);
838 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
846 case INTEGER_LITERAL:
847 case FLOATING_POINT_LITERAL:
860 expr = ArrayVariable();
869 jj_consume_token(COMMA);
870 expr = ArrayVariable();
871 buff.append(",").append(expr);
878 jj_consume_token(RPAREN);
880 {if (true) return buff.toString();}
881 throw new Error("Missing return statement in function");
884 static final public void MethodDeclaration() throws ParseException {
885 final PHPFunctionDeclaration functionDeclaration;
886 jj_consume_token(FUNCTION);
888 functionDeclaration = MethodDeclarator();
889 } catch (ParseException e) {
890 if (errorMessage != null) {
893 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', function identifier expected";
895 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
896 errorEnd = jj_input_stream.getPosition() + 1;
899 if (currentSegment != null) {
900 currentSegment.add(functionDeclaration);
901 currentSegment = functionDeclaration;
904 if (currentSegment != null) {
905 currentSegment = (PHPSegmentWithChildren) currentSegment.getParent();
910 * A MethodDeclarator contains [&] IDENTIFIER(parameters ...).
911 * @return a function description for the outline
913 static final public PHPFunctionDeclaration MethodDeclarator() throws ParseException {
914 final Token identifier;
915 final StringBuffer methodDeclaration = new StringBuffer();
916 final String formalParameters;
917 final int pos = jj_input_stream.getPosition();
918 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
920 jj_consume_token(BIT_AND);
921 methodDeclaration.append("&");
927 identifier = jj_consume_token(IDENTIFIER);
928 methodDeclaration.append(identifier);
929 formalParameters = FormalParameters();
930 methodDeclaration.append(formalParameters);
931 {if (true) return new PHPFunctionDeclaration(currentSegment,methodDeclaration.toString(),pos);}
932 throw new Error("Missing return statement in function");
935 static final public String FormalParameters() throws ParseException {
937 final StringBuffer buff = new StringBuffer("(");
939 jj_consume_token(LPAREN);
940 } catch (ParseException e) {
941 errorMessage = "Formal parameter expected after function identifier";
943 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
944 errorEnd = jj_input_stream.getPosition() + 1;
947 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
951 expr = FormalParameter();
955 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
963 jj_consume_token(COMMA);
964 expr = FormalParameter();
965 buff.append(",").append(expr);
973 jj_consume_token(RPAREN);
974 } catch (ParseException e) {
975 errorMessage = "')' expected";
977 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
978 errorEnd = jj_input_stream.getPosition() + 1;
982 {if (true) return buff.toString();}
983 throw new Error("Missing return statement in function");
986 static final public String FormalParameter() throws ParseException {
987 final PHPVarDeclaration variableDeclaration;
988 final StringBuffer buff = new StringBuffer();
989 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
991 jj_consume_token(BIT_AND);
998 variableDeclaration = VariableDeclarator();
999 buff.append(variableDeclaration.toString());
1000 {if (true) return buff.toString();}
1001 throw new Error("Missing return statement in function");
1004 static final public String Type() throws ParseException {
1005 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1007 jj_consume_token(STRING);
1008 {if (true) return "string";}
1011 jj_consume_token(BOOL);
1012 {if (true) return "bool";}
1015 jj_consume_token(BOOLEAN);
1016 {if (true) return "boolean";}
1019 jj_consume_token(REAL);
1020 {if (true) return "real";}
1023 jj_consume_token(DOUBLE);
1024 {if (true) return "double";}
1027 jj_consume_token(FLOAT);
1028 {if (true) return "float";}
1031 jj_consume_token(INT);
1032 {if (true) return "int";}
1035 jj_consume_token(INTEGER);
1036 {if (true) return "integer";}
1039 jj_consume_token(OBJECT);
1040 {if (true) return "object";}
1043 jj_la1[24] = jj_gen;
1044 jj_consume_token(-1);
1045 throw new ParseException();
1047 throw new Error("Missing return statement in function");
1050 static final public String Expression() throws ParseException {
1052 final String assignOperator;
1054 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1056 expr = PrintExpression();
1057 {if (true) return expr;}
1060 expr = ListExpression();
1061 {if (true) return expr;}
1068 case INTEGER_LITERAL:
1069 case FLOATING_POINT_LITERAL:
1070 case STRING_LITERAL:
1082 expr = ConditionalExpression();
1083 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1096 case RSIGNEDSHIFTASSIGN:
1097 assignOperator = AssignmentOperator();
1099 expr2 = Expression();
1100 {if (true) return expr + assignOperator + expr2;}
1101 } catch (ParseException e) {
1102 errorMessage = "expression expected";
1104 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
1105 errorEnd = jj_input_stream.getPosition() + 1;
1106 {if (true) throw e;}
1110 jj_la1[25] = jj_gen;
1113 {if (true) return expr;}
1116 jj_la1[26] = jj_gen;
1117 jj_consume_token(-1);
1118 throw new ParseException();
1120 throw new Error("Missing return statement in function");
1123 static final public String AssignmentOperator() throws ParseException {
1124 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1126 jj_consume_token(ASSIGN);
1127 {if (true) return "=";}
1130 jj_consume_token(STARASSIGN);
1131 {if (true) return "*=";}
1134 jj_consume_token(SLASHASSIGN);
1135 {if (true) return "/=";}
1138 jj_consume_token(REMASSIGN);
1139 {if (true) return "%=";}
1142 jj_consume_token(PLUSASSIGN);
1143 {if (true) return "+=";}
1146 jj_consume_token(MINUSASSIGN);
1147 {if (true) return "-=";}
1150 jj_consume_token(LSHIFTASSIGN);
1151 {if (true) return "<<=";}
1153 case RSIGNEDSHIFTASSIGN:
1154 jj_consume_token(RSIGNEDSHIFTASSIGN);
1155 {if (true) return ">>=";}
1158 jj_consume_token(ANDASSIGN);
1159 {if (true) return "&=";}
1162 jj_consume_token(XORASSIGN);
1163 {if (true) return "|=";}
1166 jj_consume_token(ORASSIGN);
1167 {if (true) return "|=";}
1170 jj_consume_token(DOTASSIGN);
1171 {if (true) return ".=";}
1174 jj_consume_token(TILDEEQUAL);
1175 {if (true) return "~=";}
1178 jj_la1[27] = jj_gen;
1179 jj_consume_token(-1);
1180 throw new ParseException();
1182 throw new Error("Missing return statement in function");
1185 static final public String ConditionalExpression() throws ParseException {
1187 String expr2 = null;
1188 String expr3 = null;
1189 expr = ConditionalOrExpression();
1190 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1192 jj_consume_token(HOOK);
1193 expr2 = Expression();
1194 jj_consume_token(COLON);
1195 expr3 = ConditionalExpression();
1198 jj_la1[28] = jj_gen;
1201 if (expr3 == null) {
1202 {if (true) return expr;}
1204 {if (true) return expr + "?" + expr2 + ":" + expr3;}
1206 throw new Error("Missing return statement in function");
1209 static final public String ConditionalOrExpression() throws ParseException {
1212 final StringBuffer buff = new StringBuffer();
1213 expr = ConditionalAndExpression();
1217 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1223 jj_la1[29] = jj_gen;
1226 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1228 operator = jj_consume_token(SC_OR);
1231 operator = jj_consume_token(_ORL);
1234 jj_la1[30] = jj_gen;
1235 jj_consume_token(-1);
1236 throw new ParseException();
1238 expr = ConditionalAndExpression();
1239 buff.append(operator.image);
1242 {if (true) return buff.toString();}
1243 throw new Error("Missing return statement in function");
1246 static final public String ConditionalAndExpression() throws ParseException {
1249 final StringBuffer buff = new StringBuffer();
1250 expr = ConcatExpression();
1254 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1260 jj_la1[31] = jj_gen;
1263 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1265 operator = jj_consume_token(SC_AND);
1268 operator = jj_consume_token(_ANDL);
1271 jj_la1[32] = jj_gen;
1272 jj_consume_token(-1);
1273 throw new ParseException();
1275 expr = ConcatExpression();
1276 buff.append(operator.image);
1279 {if (true) return buff.toString();}
1280 throw new Error("Missing return statement in function");
1283 static final public String ConcatExpression() throws ParseException {
1285 final StringBuffer buff = new StringBuffer();
1286 expr = InclusiveOrExpression();
1290 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1295 jj_la1[33] = jj_gen;
1298 jj_consume_token(DOT);
1299 expr = InclusiveOrExpression();
1300 buff.append(".").append(expr);
1302 {if (true) return buff.toString();}
1303 throw new Error("Missing return statement in function");
1306 static final public String InclusiveOrExpression() throws ParseException {
1308 final StringBuffer buff = new StringBuffer();
1309 expr = ExclusiveOrExpression();
1313 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1318 jj_la1[34] = jj_gen;
1321 jj_consume_token(BIT_OR);
1322 expr = ExclusiveOrExpression();
1323 buff.append("|").append(expr);
1325 {if (true) return buff.toString();}
1326 throw new Error("Missing return statement in function");
1329 static final public String ExclusiveOrExpression() throws ParseException {
1331 final StringBuffer buff = new StringBuffer();
1332 expr = AndExpression();
1336 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1341 jj_la1[35] = jj_gen;
1344 jj_consume_token(XOR);
1345 expr = AndExpression();
1349 {if (true) return buff.toString();}
1350 throw new Error("Missing return statement in function");
1353 static final public String AndExpression() throws ParseException {
1355 final StringBuffer buff = new StringBuffer();
1356 expr = EqualityExpression();
1360 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1365 jj_la1[36] = jj_gen;
1368 jj_consume_token(BIT_AND);
1369 expr = EqualityExpression();
1370 buff.append("&").append(expr);
1372 {if (true) return buff.toString();}
1373 throw new Error("Missing return statement in function");
1376 static final public String EqualityExpression() throws ParseException {
1379 final StringBuffer buff = new StringBuffer();
1380 expr = RelationalExpression();
1384 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1388 case BANGDOUBLEEQUAL:
1393 jj_la1[37] = jj_gen;
1396 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1398 operator = jj_consume_token(EQ);
1401 operator = jj_consume_token(DIF);
1404 operator = jj_consume_token(NE);
1406 case BANGDOUBLEEQUAL:
1407 operator = jj_consume_token(BANGDOUBLEEQUAL);
1410 operator = jj_consume_token(TRIPLEEQUAL);
1413 jj_la1[38] = jj_gen;
1414 jj_consume_token(-1);
1415 throw new ParseException();
1418 expr = RelationalExpression();
1419 } catch (ParseException e) {
1420 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', expression expected after '"+operator.image+"'";
1422 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
1423 errorEnd = jj_input_stream.getPosition() + 1;
1424 {if (true) throw e;}
1426 buff.append(operator.image);
1429 {if (true) return buff.toString();}
1430 throw new Error("Missing return statement in function");
1433 static final public String RelationalExpression() throws ParseException {
1436 final StringBuffer buff = new StringBuffer();
1437 expr = ShiftExpression();
1441 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1449 jj_la1[39] = jj_gen;
1452 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1454 operator = jj_consume_token(LT);
1457 operator = jj_consume_token(GT);
1460 operator = jj_consume_token(LE);
1463 operator = jj_consume_token(GE);
1466 jj_la1[40] = jj_gen;
1467 jj_consume_token(-1);
1468 throw new ParseException();
1470 expr = ShiftExpression();
1471 buff.append(operator.image).append(expr);
1473 {if (true) return buff.toString();}
1474 throw new Error("Missing return statement in function");
1477 static final public String ShiftExpression() throws ParseException {
1480 final StringBuffer buff = new StringBuffer();
1481 expr = AdditiveExpression();
1485 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1488 case RUNSIGNEDSHIFT:
1492 jj_la1[41] = jj_gen;
1495 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1497 operator = jj_consume_token(LSHIFT);
1500 operator = jj_consume_token(RSIGNEDSHIFT);
1502 case RUNSIGNEDSHIFT:
1503 operator = jj_consume_token(RUNSIGNEDSHIFT);
1506 jj_la1[42] = jj_gen;
1507 jj_consume_token(-1);
1508 throw new ParseException();
1510 expr = AdditiveExpression();
1511 buff.append(operator.image);
1514 {if (true) return buff.toString();}
1515 throw new Error("Missing return statement in function");
1518 static final public String AdditiveExpression() throws ParseException {
1521 final StringBuffer buff = new StringBuffer();
1522 expr = MultiplicativeExpression();
1526 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1532 jj_la1[43] = jj_gen;
1535 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1537 operator = jj_consume_token(PLUS);
1540 operator = jj_consume_token(MINUS);
1543 jj_la1[44] = jj_gen;
1544 jj_consume_token(-1);
1545 throw new ParseException();
1547 expr = MultiplicativeExpression();
1548 buff.append(operator.image);
1551 {if (true) return buff.toString();}
1552 throw new Error("Missing return statement in function");
1555 static final public String MultiplicativeExpression() throws ParseException {
1558 final StringBuffer buff = new StringBuffer();
1560 expr = UnaryExpression();
1561 } catch (ParseException e) {
1562 errorMessage = "unexpected token '"+e.currentToken.next.image+"'";
1564 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
1565 errorEnd = jj_input_stream.getPosition() + 1;
1566 {if (true) throw e;}
1571 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1578 jj_la1[45] = jj_gen;
1581 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1583 operator = jj_consume_token(STAR);
1586 operator = jj_consume_token(SLASH);
1589 operator = jj_consume_token(REM);
1592 jj_la1[46] = jj_gen;
1593 jj_consume_token(-1);
1594 throw new ParseException();
1596 expr = UnaryExpression();
1597 buff.append(operator.image);
1600 {if (true) return buff.toString();}
1601 throw new Error("Missing return statement in function");
1605 * An unary expression starting with @, & or nothing
1607 static final public String UnaryExpression() throws ParseException {
1610 final StringBuffer buff = new StringBuffer();
1611 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1613 token = jj_consume_token(BIT_AND);
1614 expr = UnaryExpressionNoPrefix();
1615 if (token == null) {
1616 {if (true) return expr;}
1618 {if (true) return token.image + expr;}
1625 case INTEGER_LITERAL:
1626 case FLOATING_POINT_LITERAL:
1627 case STRING_LITERAL:
1640 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1645 jj_la1[47] = jj_gen;
1648 jj_consume_token(AT);
1651 expr = UnaryExpressionNoPrefix();
1652 {if (true) return buff.append(expr).toString();}
1655 jj_la1[48] = jj_gen;
1656 jj_consume_token(-1);
1657 throw new ParseException();
1659 throw new Error("Missing return statement in function");
1662 static final public String UnaryExpressionNoPrefix() throws ParseException {
1665 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1668 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1670 token = jj_consume_token(PLUS);
1673 token = jj_consume_token(MINUS);
1676 jj_la1[49] = jj_gen;
1677 jj_consume_token(-1);
1678 throw new ParseException();
1680 expr = UnaryExpression();
1681 {if (true) return token.image + expr;}
1684 expr = PreIncrementExpression();
1685 {if (true) return expr;}
1688 expr = PreDecrementExpression();
1689 {if (true) return expr;}
1696 case INTEGER_LITERAL:
1697 case FLOATING_POINT_LITERAL:
1698 case STRING_LITERAL:
1704 expr = UnaryExpressionNotPlusMinus();
1705 {if (true) return expr;}
1708 jj_la1[50] = jj_gen;
1709 jj_consume_token(-1);
1710 throw new ParseException();
1712 throw new Error("Missing return statement in function");
1715 static final public String PreIncrementExpression() throws ParseException {
1717 jj_consume_token(INCR);
1718 expr = PrimaryExpression();
1719 {if (true) return "++"+expr;}
1720 throw new Error("Missing return statement in function");
1723 static final public String PreDecrementExpression() throws ParseException {
1725 jj_consume_token(DECR);
1726 expr = PrimaryExpression();
1727 {if (true) return "--"+expr;}
1728 throw new Error("Missing return statement in function");
1731 static final public String UnaryExpressionNotPlusMinus() throws ParseException {
1733 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1735 jj_consume_token(BANG);
1736 expr = UnaryExpression();
1737 {if (true) return "!" + expr;}
1740 jj_la1[51] = jj_gen;
1741 if (jj_2_3(2147483647)) {
1742 expr = CastExpression();
1743 {if (true) return expr;}
1745 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1751 expr = PostfixExpression();
1752 {if (true) return expr;}
1757 case INTEGER_LITERAL:
1758 case FLOATING_POINT_LITERAL:
1759 case STRING_LITERAL:
1761 {if (true) return expr;}
1764 jj_consume_token(LPAREN);
1765 expr = Expression();
1767 jj_consume_token(RPAREN);
1768 } catch (ParseException e) {
1769 errorMessage = "')' expected";
1771 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
1772 errorEnd = jj_input_stream.getPosition() + 1;
1773 {if (true) throw e;}
1775 {if (true) return "("+expr+")";}
1778 jj_la1[52] = jj_gen;
1779 jj_consume_token(-1);
1780 throw new ParseException();
1784 throw new Error("Missing return statement in function");
1787 static final public String CastExpression() throws ParseException {
1788 final String type, expr;
1789 jj_consume_token(LPAREN);
1791 jj_consume_token(RPAREN);
1792 expr = UnaryExpression();
1793 {if (true) return "(" + type + ")" + expr;}
1794 throw new Error("Missing return statement in function");
1797 static final public String PostfixExpression() throws ParseException {
1799 Token operator = null;
1800 expr = PrimaryExpression();
1801 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1804 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1806 operator = jj_consume_token(INCR);
1809 operator = jj_consume_token(DECR);
1812 jj_la1[53] = jj_gen;
1813 jj_consume_token(-1);
1814 throw new ParseException();
1818 jj_la1[54] = jj_gen;
1821 if (operator == null) {
1822 {if (true) return expr;}
1824 {if (true) return expr + operator.image;}
1825 throw new Error("Missing return statement in function");
1828 static final public String PrimaryExpression() throws ParseException {
1829 final Token identifier;
1831 final StringBuffer buff = new StringBuffer();
1833 identifier = jj_consume_token(IDENTIFIER);
1834 jj_consume_token(STATICCLASSACCESS);
1835 expr = ClassIdentifier();
1836 buff.append(identifier.image).append("::").append(expr);
1839 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1846 jj_la1[55] = jj_gen;
1849 expr = PrimarySuffix();
1852 {if (true) return buff.toString();}
1854 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1859 expr = PrimaryPrefix();
1863 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1870 jj_la1[56] = jj_gen;
1873 expr = PrimarySuffix();
1876 {if (true) return buff.toString();}
1879 expr = ArrayDeclarator();
1880 {if (true) return "array" + expr;}
1883 jj_la1[57] = jj_gen;
1884 jj_consume_token(-1);
1885 throw new ParseException();
1888 throw new Error("Missing return statement in function");
1891 static final public String ArrayDeclarator() throws ParseException {
1893 jj_consume_token(ARRAY);
1894 expr = ArrayInitializer();
1895 {if (true) return "array" + expr;}
1896 throw new Error("Missing return statement in function");
1899 static final public String PrimaryPrefix() throws ParseException {
1902 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1904 token = jj_consume_token(IDENTIFIER);
1905 {if (true) return token.image;}
1908 jj_consume_token(NEW);
1909 expr = ClassIdentifier();
1910 {if (true) return "new " + expr;}
1914 expr = VariableDeclaratorId();
1915 {if (true) return expr;}
1918 jj_la1[58] = jj_gen;
1919 jj_consume_token(-1);
1920 throw new ParseException();
1922 throw new Error("Missing return statement in function");
1925 static final public String classInstantiation() throws ParseException {
1927 final StringBuffer buff = new StringBuffer("new ");
1928 jj_consume_token(NEW);
1929 expr = ClassIdentifier();
1931 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1937 expr = PrimaryExpression();
1941 jj_la1[59] = jj_gen;
1944 {if (true) return buff.toString();}
1945 throw new Error("Missing return statement in function");
1948 static final public String ClassIdentifier() throws ParseException {
1951 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1953 token = jj_consume_token(IDENTIFIER);
1954 {if (true) return token.image;}
1958 expr = VariableDeclaratorId();
1959 {if (true) return expr;}
1962 jj_la1[60] = jj_gen;
1963 jj_consume_token(-1);
1964 throw new ParseException();
1966 throw new Error("Missing return statement in function");
1969 static final public String PrimarySuffix() throws ParseException {
1971 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1974 {if (true) return expr;}
1978 expr = VariableSuffix();
1979 {if (true) return expr;}
1982 jj_la1[61] = jj_gen;
1983 jj_consume_token(-1);
1984 throw new ParseException();
1986 throw new Error("Missing return statement in function");
1989 static final public String VariableSuffix() throws ParseException {
1991 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1993 jj_consume_token(CLASSACCESS);
1995 expr = VariableName();
1996 } catch (ParseException e) {
1997 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', function call or field access expected";
1999 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2000 errorEnd = jj_input_stream.getPosition() + 1;
2001 {if (true) throw e;}
2003 {if (true) return "->" + expr;}
2006 jj_consume_token(LBRACKET);
2007 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2015 case INTEGER_LITERAL:
2016 case FLOATING_POINT_LITERAL:
2017 case STRING_LITERAL:
2029 expr = Expression();
2032 jj_la1[62] = jj_gen;
2036 jj_consume_token(RBRACKET);
2037 } catch (ParseException e) {
2038 errorMessage = "']' expected";
2040 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2041 errorEnd = jj_input_stream.getPosition() + 1;
2042 {if (true) throw e;}
2045 {if (true) return "[]";}
2047 {if (true) return "[" + expr + "]";}
2050 jj_la1[63] = jj_gen;
2051 jj_consume_token(-1);
2052 throw new ParseException();
2054 throw new Error("Missing return statement in function");
2057 static final public String Literal() throws ParseException {
2060 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2061 case INTEGER_LITERAL:
2062 token = jj_consume_token(INTEGER_LITERAL);
2063 {if (true) return token.image;}
2065 case FLOATING_POINT_LITERAL:
2066 token = jj_consume_token(FLOATING_POINT_LITERAL);
2067 {if (true) return token.image;}
2069 case STRING_LITERAL:
2070 token = jj_consume_token(STRING_LITERAL);
2071 {if (true) return token.image;}
2075 expr = BooleanLiteral();
2076 {if (true) return expr;}
2079 expr = NullLiteral();
2080 {if (true) return expr;}
2083 jj_la1[64] = jj_gen;
2084 jj_consume_token(-1);
2085 throw new ParseException();
2087 throw new Error("Missing return statement in function");
2090 static final public String BooleanLiteral() throws ParseException {
2091 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2093 jj_consume_token(TRUE);
2094 {if (true) return "true";}
2097 jj_consume_token(FALSE);
2098 {if (true) return "false";}
2101 jj_la1[65] = jj_gen;
2102 jj_consume_token(-1);
2103 throw new ParseException();
2105 throw new Error("Missing return statement in function");
2108 static final public String NullLiteral() throws ParseException {
2109 jj_consume_token(NULL);
2110 {if (true) return "null";}
2111 throw new Error("Missing return statement in function");
2114 static final public String Arguments() throws ParseException {
2116 jj_consume_token(LPAREN);
2117 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2125 case INTEGER_LITERAL:
2126 case FLOATING_POINT_LITERAL:
2127 case STRING_LITERAL:
2139 expr = ArgumentList();
2142 jj_la1[66] = jj_gen;
2146 jj_consume_token(RPAREN);
2147 } catch (ParseException e) {
2148 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', ')' expected to close the argument list";
2150 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2151 errorEnd = jj_input_stream.getPosition() + 1;
2152 {if (true) throw e;}
2155 {if (true) return "()";}
2157 {if (true) return "(" + expr + ")";}
2158 throw new Error("Missing return statement in function");
2161 static final public String ArgumentList() throws ParseException {
2163 final StringBuffer buff = new StringBuffer();
2164 expr = Expression();
2168 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2173 jj_la1[67] = jj_gen;
2176 jj_consume_token(COMMA);
2178 expr = Expression();
2179 } catch (ParseException e) {
2180 errorMessage = "expression expected after a comma in argument list";
2182 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2183 errorEnd = jj_input_stream.getPosition() + 1;
2184 {if (true) throw e;}
2186 buff.append(",").append(expr);
2188 {if (true) return buff.toString();}
2189 throw new Error("Missing return statement in function");
2193 * A Statement without break
2195 static final public void StatementNoBreak() throws ParseException {
2199 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2201 jj_consume_token(SEMICOLON);
2204 jj_consume_token(PHPEND);
2205 PHPParserTokenManager.SwitchTo(PHPParserTokenManager.DEFAULT);
2208 jj_la1[68] = jj_gen;
2209 jj_consume_token(-1);
2210 throw new ParseException();
2212 } catch (ParseException e) {
2213 errorMessage = "';' expected";
2215 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2216 errorEnd = jj_input_stream.getPosition() + 1;
2217 {if (true) throw e;}
2219 } else if (jj_2_6(2)) {
2222 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2236 StatementExpression();
2238 jj_consume_token(SEMICOLON);
2239 } catch (ParseException e) {
2240 errorMessage = "';' expected after expression";
2242 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2243 errorEnd = jj_input_stream.getPosition() + 1;
2244 {if (true) throw e;}
2266 ContinueStatement();
2279 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2281 jj_consume_token(AT);
2284 jj_la1[69] = jj_gen;
2296 jj_la1[70] = jj_gen;
2297 jj_consume_token(-1);
2298 throw new ParseException();
2304 * A Normal statement
2306 static final public void Statement() throws ParseException {
2307 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2330 case INTEGER_LITERAL:
2331 case FLOATING_POINT_LITERAL:
2332 case STRING_LITERAL:
2352 jj_la1[71] = jj_gen;
2353 jj_consume_token(-1);
2354 throw new ParseException();
2358 static final public void IncludeStatement() throws ParseException {
2360 final int pos = jj_input_stream.getPosition();
2361 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2363 jj_consume_token(REQUIRE);
2364 expr = Expression();
2365 if (currentSegment != null) {
2366 currentSegment.add(new PHPReqIncDeclaration(currentSegment, "require",pos,expr));
2369 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2371 jj_consume_token(SEMICOLON);
2374 jj_consume_token(PHPEND);
2375 PHPParserTokenManager.SwitchTo(PHPParserTokenManager.DEFAULT);
2378 jj_la1[72] = jj_gen;
2379 jj_consume_token(-1);
2380 throw new ParseException();
2382 } catch (ParseException e) {
2383 errorMessage = "';' expected";
2385 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2386 errorEnd = jj_input_stream.getPosition() + 1;
2387 {if (true) throw e;}
2391 jj_consume_token(REQUIRE_ONCE);
2392 expr = Expression();
2393 if (currentSegment != null) {
2394 currentSegment.add(new PHPReqIncDeclaration(currentSegment, "require_once",pos,expr));
2397 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2399 jj_consume_token(SEMICOLON);
2402 jj_consume_token(PHPEND);
2403 PHPParserTokenManager.SwitchTo(PHPParserTokenManager.DEFAULT);
2406 jj_la1[73] = jj_gen;
2407 jj_consume_token(-1);
2408 throw new ParseException();
2410 } catch (ParseException e) {
2411 errorMessage = "';' expected";
2413 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2414 errorEnd = jj_input_stream.getPosition() + 1;
2415 {if (true) throw e;}
2419 jj_consume_token(INCLUDE);
2420 expr = Expression();
2421 if (currentSegment != null) {
2422 currentSegment.add(new PHPReqIncDeclaration(currentSegment, "include",pos,expr));
2425 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2427 jj_consume_token(SEMICOLON);
2430 jj_consume_token(PHPEND);
2431 PHPParserTokenManager.SwitchTo(PHPParserTokenManager.DEFAULT);
2434 jj_la1[74] = jj_gen;
2435 jj_consume_token(-1);
2436 throw new ParseException();
2438 } catch (ParseException e) {
2439 errorMessage = "';' expected";
2441 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2442 errorEnd = jj_input_stream.getPosition() + 1;
2443 {if (true) throw e;}
2447 jj_consume_token(INCLUDE_ONCE);
2448 expr = Expression();
2449 if (currentSegment != null) {
2450 currentSegment.add(new PHPReqIncDeclaration(currentSegment, "include_once",pos,expr));
2453 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2455 jj_consume_token(SEMICOLON);
2458 jj_consume_token(PHPEND);
2459 PHPParserTokenManager.SwitchTo(PHPParserTokenManager.DEFAULT);
2462 jj_la1[75] = jj_gen;
2463 jj_consume_token(-1);
2464 throw new ParseException();
2466 } catch (ParseException e) {
2467 errorMessage = "';' expected";
2469 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2470 errorEnd = jj_input_stream.getPosition() + 1;
2471 {if (true) throw e;}
2475 jj_la1[76] = jj_gen;
2476 jj_consume_token(-1);
2477 throw new ParseException();
2481 static final public String PrintExpression() throws ParseException {
2482 final StringBuffer buff = new StringBuffer("print ");
2484 jj_consume_token(PRINT);
2485 expr = Expression();
2487 {if (true) return buff.toString();}
2488 throw new Error("Missing return statement in function");
2491 static final public String ListExpression() throws ParseException {
2492 final StringBuffer buff = new StringBuffer("list(");
2494 jj_consume_token(LIST);
2496 jj_consume_token(LPAREN);
2497 } catch (ParseException e) {
2498 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', '(' expected";
2500 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2501 errorEnd = jj_input_stream.getPosition() + 1;
2502 {if (true) throw e;}
2504 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2507 expr = VariableDeclaratorId();
2511 jj_la1[77] = jj_gen;
2514 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2517 jj_consume_token(COMMA);
2518 } catch (ParseException e) {
2519 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', ',' expected";
2521 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2522 errorEnd = jj_input_stream.getPosition() + 1;
2523 {if (true) throw e;}
2525 expr = VariableDeclaratorId();
2526 buff.append(",").append(expr);
2529 jj_la1[78] = jj_gen;
2534 jj_consume_token(RPAREN);
2535 } catch (ParseException e) {
2536 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', ')' expected";
2538 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2539 errorEnd = jj_input_stream.getPosition() + 1;
2540 {if (true) throw e;}
2542 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2544 jj_consume_token(ASSIGN);
2545 expr = Expression();
2546 buff.append("(").append(expr);
2549 jj_la1[79] = jj_gen;
2552 {if (true) return buff.toString();}
2553 throw new Error("Missing return statement in function");
2556 static final public void EchoStatement() throws ParseException {
2557 jj_consume_token(ECHO);
2561 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2566 jj_la1[80] = jj_gen;
2569 jj_consume_token(COMMA);
2573 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2575 jj_consume_token(SEMICOLON);
2578 jj_consume_token(PHPEND);
2579 PHPParserTokenManager.SwitchTo(PHPParserTokenManager.DEFAULT);
2582 jj_la1[81] = jj_gen;
2583 jj_consume_token(-1);
2584 throw new ParseException();
2586 } catch (ParseException e) {
2587 errorMessage = "';' expected after 'echo' statement";
2589 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2590 errorEnd = jj_input_stream.getPosition() + 1;
2591 {if (true) throw e;}
2595 static final public void GlobalStatement() throws ParseException {
2596 jj_consume_token(GLOBAL);
2597 VariableDeclaratorId();
2600 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2605 jj_la1[82] = jj_gen;
2608 jj_consume_token(COMMA);
2609 VariableDeclaratorId();
2612 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2614 jj_consume_token(SEMICOLON);
2617 jj_consume_token(PHPEND);
2618 PHPParserTokenManager.SwitchTo(PHPParserTokenManager.DEFAULT);
2621 jj_la1[83] = jj_gen;
2622 jj_consume_token(-1);
2623 throw new ParseException();
2625 } catch (ParseException e) {
2626 errorMessage = "';' expected";
2628 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2629 errorEnd = jj_input_stream.getPosition() + 1;
2630 {if (true) throw e;}
2634 static final public void StaticStatement() throws ParseException {
2635 jj_consume_token(STATIC);
2636 VariableDeclarator();
2639 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2644 jj_la1[84] = jj_gen;
2647 jj_consume_token(COMMA);
2648 VariableDeclarator();
2651 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2653 jj_consume_token(SEMICOLON);
2656 jj_consume_token(PHPEND);
2657 PHPParserTokenManager.SwitchTo(PHPParserTokenManager.DEFAULT);
2660 jj_la1[85] = jj_gen;
2661 jj_consume_token(-1);
2662 throw new ParseException();
2664 } catch (ParseException e) {
2665 errorMessage = "';' expected";
2667 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2668 errorEnd = jj_input_stream.getPosition() + 1;
2669 {if (true) throw e;}
2673 static final public void LabeledStatement() throws ParseException {
2674 jj_consume_token(IDENTIFIER);
2675 jj_consume_token(COLON);
2679 static final public void Block() throws ParseException {
2681 jj_consume_token(LBRACE);
2682 } catch (ParseException e) {
2683 errorMessage = "'{' expected";
2685 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2686 errorEnd = jj_input_stream.getPosition() + 1;
2687 {if (true) throw e;}
2691 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2717 case INTEGER_LITERAL:
2718 case FLOATING_POINT_LITERAL:
2719 case STRING_LITERAL:
2736 jj_la1[86] = jj_gen;
2742 jj_consume_token(RBRACE);
2743 } catch (ParseException e) {
2744 errorMessage = "unexpected token : '"+ e.currentToken.image +"', '}' expected";
2746 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2747 errorEnd = jj_input_stream.getPosition() + 1;
2748 {if (true) throw e;}
2752 static final public void BlockStatement() throws ParseException {
2753 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2777 case INTEGER_LITERAL:
2778 case FLOATING_POINT_LITERAL:
2779 case STRING_LITERAL:
2799 MethodDeclaration();
2802 jj_la1[87] = jj_gen;
2803 jj_consume_token(-1);
2804 throw new ParseException();
2809 * A Block statement that will not contain any 'break'
2811 static final public void BlockStatementNoBreak() throws ParseException {
2812 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2835 case INTEGER_LITERAL:
2836 case FLOATING_POINT_LITERAL:
2837 case STRING_LITERAL:
2857 MethodDeclaration();
2860 jj_la1[88] = jj_gen;
2861 jj_consume_token(-1);
2862 throw new ParseException();
2866 static final public void LocalVariableDeclaration() throws ParseException {
2867 LocalVariableDeclarator();
2870 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2875 jj_la1[89] = jj_gen;
2878 jj_consume_token(COMMA);
2879 LocalVariableDeclarator();
2883 static final public void LocalVariableDeclarator() throws ParseException {
2884 VariableDeclaratorId();
2885 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2887 jj_consume_token(ASSIGN);
2891 jj_la1[90] = jj_gen;
2896 static final public void EmptyStatement() throws ParseException {
2897 jj_consume_token(SEMICOLON);
2900 static final public void StatementExpression() throws ParseException {
2901 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2903 PreIncrementExpression();
2906 PreDecrementExpression();
2913 PrimaryExpression();
2914 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2929 case RSIGNEDSHIFTASSIGN:
2930 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2932 jj_consume_token(INCR);
2935 jj_consume_token(DECR);
2949 case RSIGNEDSHIFTASSIGN:
2950 AssignmentOperator();
2954 jj_la1[91] = jj_gen;
2955 jj_consume_token(-1);
2956 throw new ParseException();
2960 jj_la1[92] = jj_gen;
2965 jj_la1[93] = jj_gen;
2966 jj_consume_token(-1);
2967 throw new ParseException();
2971 static final public void SwitchStatement() throws ParseException {
2972 Token breakToken = null;
2974 jj_consume_token(SWITCH);
2976 jj_consume_token(LPAREN);
2977 } catch (ParseException e) {
2978 errorMessage = "'(' expected after 'switch'";
2980 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2981 errorEnd = jj_input_stream.getPosition() + 1;
2982 {if (true) throw e;}
2986 jj_consume_token(RPAREN);
2987 } catch (ParseException e) {
2988 errorMessage = "')' expected";
2990 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2991 errorEnd = jj_input_stream.getPosition() + 1;
2992 {if (true) throw e;}
2995 jj_consume_token(LBRACE);
2996 } catch (ParseException e) {
2997 errorMessage = "'{' expected";
2999 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3000 errorEnd = jj_input_stream.getPosition() + 1;
3001 {if (true) throw e;}
3005 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3011 jj_la1[94] = jj_gen;
3014 line = SwitchLabel();
3017 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3042 case INTEGER_LITERAL:
3043 case FLOATING_POINT_LITERAL:
3044 case STRING_LITERAL:
3061 jj_la1[95] = jj_gen;
3064 BlockStatementNoBreak();
3066 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3068 breakToken = BreakStatement();
3071 jj_la1[96] = jj_gen;
3075 if (breakToken == null) {
3076 setMarker(fileToParse,
3077 "You should use put a 'break' at the end of your statement",
3082 } catch (CoreException e) {
3083 PHPeclipsePlugin.log(e);
3087 jj_consume_token(RBRACE);
3088 } catch (ParseException e) {
3089 errorMessage = "'}' expected";
3091 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3092 errorEnd = jj_input_stream.getPosition() + 1;
3093 {if (true) throw e;}
3097 static final public Token BreakStatement() throws ParseException {
3099 token = jj_consume_token(BREAK);
3100 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3108 case INTEGER_LITERAL:
3109 case FLOATING_POINT_LITERAL:
3110 case STRING_LITERAL:
3125 jj_la1[97] = jj_gen;
3129 jj_consume_token(SEMICOLON);
3130 } catch (ParseException e) {
3131 errorMessage = "';' expected after 'break' keyword";
3133 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3134 errorEnd = jj_input_stream.getPosition() + 1;
3135 {if (true) throw e;}
3137 {if (true) return token;}
3138 throw new Error("Missing return statement in function");
3141 static final public int SwitchLabel() throws ParseException {
3143 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3145 token = jj_consume_token(CASE);
3148 } catch (ParseException e) {
3149 if (errorMessage != null) {if (true) throw e;}
3150 errorMessage = "expression expected after 'case' keyword";
3152 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3153 errorEnd = jj_input_stream.getPosition() + 1;
3154 {if (true) throw e;}
3157 jj_consume_token(COLON);
3158 } catch (ParseException e) {
3159 errorMessage = "':' expected after case expression";
3161 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3162 errorEnd = jj_input_stream.getPosition() + 1;
3163 {if (true) throw e;}
3165 {if (true) return token.beginLine;}
3168 token = jj_consume_token(_DEFAULT);
3170 jj_consume_token(COLON);
3171 } catch (ParseException e) {
3172 errorMessage = "':' expected after 'default' keyword";
3174 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3175 errorEnd = jj_input_stream.getPosition() + 1;
3176 {if (true) throw e;}
3178 {if (true) return token.beginLine;}
3181 jj_la1[98] = jj_gen;
3182 jj_consume_token(-1);
3183 throw new ParseException();
3185 throw new Error("Missing return statement in function");
3188 static final public void IfStatement() throws ParseException {
3190 final int pos = jj_input_stream.getPosition();
3191 token = jj_consume_token(IF);
3193 IfStatement0(pos,pos+token.image.length());
3196 static final public void Condition(final String keyword) throws ParseException {
3198 jj_consume_token(LPAREN);
3199 } catch (ParseException e) {
3200 errorMessage = "'(' expected after " + keyword + " keyword";
3202 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length();
3203 errorEnd = errorStart +1;
3204 processParseException(e);
3208 jj_consume_token(RPAREN);
3209 } catch (ParseException e) {
3210 errorMessage = "')' expected after " + keyword + " keyword";
3212 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3213 errorEnd = jj_input_stream.getPosition() + 1;
3214 {if (true) throw e;}
3218 static final public void IfStatement0(final int start,final int end) throws ParseException {
3219 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3221 jj_consume_token(COLON);
3224 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3248 case INTEGER_LITERAL:
3249 case FLOATING_POINT_LITERAL:
3250 case STRING_LITERAL:
3267 jj_la1[99] = jj_gen;
3274 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3279 jj_la1[100] = jj_gen;
3282 ElseIfStatementColon();
3284 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3286 ElseStatementColon();
3289 jj_la1[101] = jj_gen;
3293 setMarker(fileToParse,
3294 "Ugly syntax detected, you should if () {...} instead of if (): ... endif;",
3298 "Line " + token.beginLine);
3299 } catch (CoreException e) {
3300 PHPeclipsePlugin.log(e);
3303 jj_consume_token(ENDIF);
3304 } catch (ParseException e) {
3305 errorMessage = "'endif' expected";
3307 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3308 errorEnd = jj_input_stream.getPosition() + 1;
3309 {if (true) throw e;}
3312 jj_consume_token(SEMICOLON);
3313 } catch (ParseException e) {
3314 errorMessage = "';' expected after 'endif' keyword";
3316 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3317 errorEnd = jj_input_stream.getPosition() + 1;
3318 {if (true) throw e;}
3344 case INTEGER_LITERAL:
3345 case FLOATING_POINT_LITERAL:
3346 case STRING_LITERAL:
3363 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3368 jj_la1[102] = jj_gen;
3373 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3375 jj_consume_token(ELSE);
3379 jj_la1[103] = jj_gen;
3384 jj_la1[104] = jj_gen;
3385 jj_consume_token(-1);
3386 throw new ParseException();
3390 static final public void ElseIfStatementColon() throws ParseException {
3391 jj_consume_token(ELSEIF);
3392 Condition("elseif");
3393 jj_consume_token(COLON);
3396 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3420 case INTEGER_LITERAL:
3421 case FLOATING_POINT_LITERAL:
3422 case STRING_LITERAL:
3439 jj_la1[105] = jj_gen;
3446 static final public void ElseStatementColon() throws ParseException {
3447 jj_consume_token(ELSE);
3448 jj_consume_token(COLON);
3451 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3475 case INTEGER_LITERAL:
3476 case FLOATING_POINT_LITERAL:
3477 case STRING_LITERAL:
3494 jj_la1[106] = jj_gen;
3501 static final public void ElseIfStatement() throws ParseException {
3502 jj_consume_token(ELSEIF);
3503 Condition("elseif");
3507 static final public void WhileStatement() throws ParseException {
3509 final int pos = jj_input_stream.getPosition();
3510 token = jj_consume_token(WHILE);
3512 WhileStatement0(pos,pos + token.image.length());
3515 static final public void WhileStatement0(final int start, final int end) throws ParseException {
3516 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3518 jj_consume_token(COLON);
3521 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3545 case INTEGER_LITERAL:
3546 case FLOATING_POINT_LITERAL:
3547 case STRING_LITERAL:
3564 jj_la1[107] = jj_gen;
3570 setMarker(fileToParse,
3571 "Ugly syntax detected, you should while () {...} instead of while (): ... endwhile;",
3575 "Line " + token.beginLine);
3576 } catch (CoreException e) {
3577 PHPeclipsePlugin.log(e);
3580 jj_consume_token(ENDWHILE);
3581 } catch (ParseException e) {
3582 errorMessage = "'endwhile' expected";
3584 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3585 errorEnd = jj_input_stream.getPosition() + 1;
3586 {if (true) throw e;}
3589 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3591 jj_consume_token(SEMICOLON);
3594 jj_consume_token(PHPEND);
3595 PHPParserTokenManager.SwitchTo(PHPParserTokenManager.DEFAULT);
3598 jj_la1[108] = jj_gen;
3599 jj_consume_token(-1);
3600 throw new ParseException();
3602 } catch (ParseException e) {
3603 errorMessage = "';' expected after 'endwhile' keyword";
3605 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3606 errorEnd = jj_input_stream.getPosition() + 1;
3607 {if (true) throw e;}
3633 case INTEGER_LITERAL:
3634 case FLOATING_POINT_LITERAL:
3635 case STRING_LITERAL:
3652 jj_la1[109] = jj_gen;
3653 jj_consume_token(-1);
3654 throw new ParseException();
3658 static final public void DoStatement() throws ParseException {
3659 jj_consume_token(DO);
3661 jj_consume_token(WHILE);
3664 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3666 jj_consume_token(SEMICOLON);
3669 jj_consume_token(PHPEND);
3670 PHPParserTokenManager.SwitchTo(PHPParserTokenManager.DEFAULT);
3673 jj_la1[110] = jj_gen;
3674 jj_consume_token(-1);
3675 throw new ParseException();
3677 } catch (ParseException e) {
3678 errorMessage = "';' expected";
3680 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3681 errorEnd = jj_input_stream.getPosition() + 1;
3682 {if (true) throw e;}
3686 static final public void ForeachStatement() throws ParseException {
3687 jj_consume_token(FOREACH);
3689 jj_consume_token(LPAREN);
3690 } catch (ParseException e) {
3691 errorMessage = "'(' expected after 'foreach' keyword";
3693 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3694 errorEnd = jj_input_stream.getPosition() + 1;
3695 {if (true) throw e;}
3699 } catch (ParseException e) {
3700 errorMessage = "variable expected";
3702 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3703 errorEnd = jj_input_stream.getPosition() + 1;
3704 {if (true) throw e;}
3706 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3712 jj_la1[111] = jj_gen;
3716 jj_consume_token(AS);
3717 } catch (ParseException e) {
3718 errorMessage = "'as' expected";
3720 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3721 errorEnd = jj_input_stream.getPosition() + 1;
3722 {if (true) throw e;}
3726 } catch (ParseException e) {
3727 errorMessage = "variable expected";
3729 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3730 errorEnd = jj_input_stream.getPosition() + 1;
3731 {if (true) throw e;}
3733 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3735 jj_consume_token(ARRAYASSIGN);
3739 jj_la1[112] = jj_gen;
3743 jj_consume_token(RPAREN);
3744 } catch (ParseException e) {
3745 errorMessage = "')' expected after 'foreach' keyword";
3747 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3748 errorEnd = jj_input_stream.getPosition() + 1;
3749 {if (true) throw e;}
3753 } catch (ParseException e) {
3754 if (errorMessage != null) {if (true) throw e;}
3755 errorMessage = "statement expected";
3757 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3758 errorEnd = jj_input_stream.getPosition() + 1;
3759 {if (true) throw e;}
3763 static final public void ForStatement() throws ParseException {
3765 final int pos = jj_input_stream.getPosition();
3766 token = jj_consume_token(FOR);
3768 jj_consume_token(LPAREN);
3769 } catch (ParseException e) {
3770 errorMessage = "'(' expected after 'for' keyword";
3772 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3773 errorEnd = jj_input_stream.getPosition() + 1;
3774 {if (true) throw e;}
3776 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3787 jj_la1[113] = jj_gen;
3790 jj_consume_token(SEMICOLON);
3791 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3799 case INTEGER_LITERAL:
3800 case FLOATING_POINT_LITERAL:
3801 case STRING_LITERAL:
3816 jj_la1[114] = jj_gen;
3819 jj_consume_token(SEMICOLON);
3820 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3828 StatementExpressionList();
3831 jj_la1[115] = jj_gen;
3834 jj_consume_token(RPAREN);
3835 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3859 case INTEGER_LITERAL:
3860 case FLOATING_POINT_LITERAL:
3861 case STRING_LITERAL:
3878 jj_consume_token(COLON);
3881 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3905 case INTEGER_LITERAL:
3906 case FLOATING_POINT_LITERAL:
3907 case STRING_LITERAL:
3924 jj_la1[116] = jj_gen;
3930 setMarker(fileToParse,
3931 "Ugly syntax detected, you should for () {...} instead of for (): ... endfor;",
3933 pos+token.image.length(),
3935 "Line " + token.beginLine);
3936 } catch (CoreException e) {
3937 PHPeclipsePlugin.log(e);
3940 jj_consume_token(ENDFOR);
3941 } catch (ParseException e) {
3942 errorMessage = "'endfor' expected";
3944 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3945 errorEnd = jj_input_stream.getPosition() + 1;
3946 {if (true) throw e;}
3949 jj_consume_token(SEMICOLON);
3950 } catch (ParseException e) {
3951 errorMessage = "';' expected after 'endfor' keyword";
3953 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3954 errorEnd = jj_input_stream.getPosition() + 1;
3955 {if (true) throw e;}
3959 jj_la1[117] = jj_gen;
3960 jj_consume_token(-1);
3961 throw new ParseException();
3965 static final public void ForInit() throws ParseException {
3966 if (jj_2_7(2147483647)) {
3967 LocalVariableDeclaration();
3969 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3977 StatementExpressionList();
3980 jj_la1[118] = jj_gen;
3981 jj_consume_token(-1);
3982 throw new ParseException();
3987 static final public void StatementExpressionList() throws ParseException {
3988 StatementExpression();
3991 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3996 jj_la1[119] = jj_gen;
3999 jj_consume_token(COMMA);
4000 StatementExpression();
4004 static final public void ContinueStatement() throws ParseException {
4005 jj_consume_token(CONTINUE);
4006 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4008 jj_consume_token(IDENTIFIER);
4011 jj_la1[120] = jj_gen;
4015 jj_consume_token(SEMICOLON);
4016 } catch (ParseException e) {
4017 errorMessage = "';' expected after 'continue' statement";
4019 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
4020 errorEnd = jj_input_stream.getPosition() + 1;
4021 {if (true) throw e;}
4025 static final public void ReturnStatement() throws ParseException {
4026 jj_consume_token(RETURN);
4027 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4035 case INTEGER_LITERAL:
4036 case FLOATING_POINT_LITERAL:
4037 case STRING_LITERAL:
4052 jj_la1[121] = jj_gen;
4056 jj_consume_token(SEMICOLON);
4057 } catch (ParseException e) {
4058 errorMessage = "';' expected after 'return' statement";
4060 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
4061 errorEnd = jj_input_stream.getPosition() + 1;
4062 {if (true) throw e;}
4066 static final private boolean jj_2_1(int xla) {
4067 jj_la = xla; jj_lastpos = jj_scanpos = token;
4068 boolean retval = !jj_3_1();
4073 static final private boolean jj_2_2(int xla) {
4074 jj_la = xla; jj_lastpos = jj_scanpos = token;
4075 boolean retval = !jj_3_2();
4080 static final private boolean jj_2_3(int xla) {
4081 jj_la = xla; jj_lastpos = jj_scanpos = token;
4082 boolean retval = !jj_3_3();
4087 static final private boolean jj_2_4(int xla) {
4088 jj_la = xla; jj_lastpos = jj_scanpos = token;
4089 boolean retval = !jj_3_4();
4094 static final private boolean jj_2_5(int xla) {
4095 jj_la = xla; jj_lastpos = jj_scanpos = token;
4096 boolean retval = !jj_3_5();
4101 static final private boolean jj_2_6(int xla) {
4102 jj_la = xla; jj_lastpos = jj_scanpos = token;
4103 boolean retval = !jj_3_6();
4108 static final private boolean jj_2_7(int xla) {
4109 jj_la = xla; jj_lastpos = jj_scanpos = token;
4110 boolean retval = !jj_3_7();
4115 static final private boolean jj_3R_75() {
4116 if (jj_scan_token(HOOK)) return true;
4117 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4118 if (jj_3R_41()) return true;
4119 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4120 if (jj_scan_token(COLON)) return true;
4121 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4122 if (jj_3R_66()) return true;
4123 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4127 static final private boolean jj_3R_97() {
4128 if (jj_scan_token(SC_OR)) return true;
4129 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4133 static final private boolean jj_3R_79() {
4138 if (jj_3R_98()) return true;
4139 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4140 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4141 if (jj_3R_78()) return true;
4142 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4146 static final private boolean jj_3R_74() {
4147 if (jj_3R_78()) return true;
4148 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4152 if (jj_3R_79()) { jj_scanpos = xsp; break; }
4153 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4158 static final private boolean jj_3R_177() {
4159 if (jj_3R_68()) return true;
4160 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4164 static final private boolean jj_3R_176() {
4165 if (jj_scan_token(NEW)) return true;
4166 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4167 if (jj_3R_185()) return true;
4168 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4172 static final private boolean jj_3R_179() {
4173 if (jj_scan_token(DECR)) return true;
4174 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4178 static final private boolean jj_3R_175() {
4179 if (jj_scan_token(IDENTIFIER)) return true;
4180 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4184 static final private boolean jj_3R_170() {
4191 if (jj_3R_177()) return true;
4192 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4193 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4194 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4198 static final private boolean jj_3R_106() {
4199 if (jj_scan_token(ASSIGN)) return true;
4200 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4201 if (jj_3R_41()) return true;
4202 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4206 static final private boolean jj_3R_66() {
4207 if (jj_3R_74()) return true;
4208 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4211 if (jj_3R_75()) jj_scanpos = xsp;
4212 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4216 static final private boolean jj_3R_171() {
4217 if (jj_scan_token(ARRAY)) return true;
4218 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4219 if (jj_3R_184()) return true;
4220 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4224 static final private boolean jj_3R_92() {
4225 if (jj_scan_token(TILDEEQUAL)) return true;
4226 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4230 static final private boolean jj_3R_178() {
4231 if (jj_scan_token(INCR)) return true;
4232 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4236 static final private boolean jj_3R_164() {
4237 if (jj_3R_171()) return true;
4238 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4242 static final private boolean jj_3R_172() {
4247 if (jj_3R_179()) return true;
4248 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4249 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4253 static final private boolean jj_3R_182() {
4254 if (jj_3R_183()) return true;
4255 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4259 static final private boolean jj_3R_91() {
4260 if (jj_scan_token(DOTASSIGN)) return true;
4261 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4265 static final private boolean jj_3R_90() {
4266 if (jj_scan_token(ORASSIGN)) return true;
4267 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4271 static final private boolean jj_3R_163() {
4272 if (jj_3R_170()) return true;
4273 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4277 if (jj_3R_182()) { jj_scanpos = xsp; break; }
4278 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4283 static final private boolean jj_3R_89() {
4284 if (jj_scan_token(XORASSIGN)) return true;
4285 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4289 static final private boolean jj_3R_88() {
4290 if (jj_scan_token(ANDASSIGN)) return true;
4291 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4295 static final private boolean jj_3R_105() {
4296 if (jj_scan_token(COMMA)) return true;
4297 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4298 if (jj_3R_68()) return true;
4299 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4303 static final private boolean jj_3R_186() {
4304 if (jj_3R_183()) return true;
4305 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4309 static final private boolean jj_3R_87() {
4310 if (jj_scan_token(RSIGNEDSHIFTASSIGN)) return true;
4311 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4315 static final private boolean jj_3R_86() {
4316 if (jj_scan_token(LSHIFTASSIGN)) return true;
4317 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4321 static final private boolean jj_3R_104() {
4322 if (jj_3R_68()) return true;
4323 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4327 static final private boolean jj_3R_85() {
4328 if (jj_scan_token(MINUSASSIGN)) return true;
4329 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4333 static final private boolean jj_3_4() {
4334 if (jj_scan_token(IDENTIFIER)) return true;
4335 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4336 if (jj_scan_token(STATICCLASSACCESS)) return true;
4337 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4338 if (jj_3R_185()) return true;
4339 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4343 if (jj_3R_186()) { jj_scanpos = xsp; break; }
4344 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4349 static final private boolean jj_3R_159() {
4356 if (jj_3R_164()) return true;
4357 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4358 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4359 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4363 static final private boolean jj_3R_84() {
4364 if (jj_scan_token(PLUSASSIGN)) return true;
4365 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4369 static final private boolean jj_3R_83() {
4370 if (jj_scan_token(REMASSIGN)) return true;
4371 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4375 static final private boolean jj_3R_82() {
4376 if (jj_scan_token(SLASHASSIGN)) return true;
4377 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4381 static final private boolean jj_3R_81() {
4382 if (jj_scan_token(STARASSIGN)) return true;
4383 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4387 static final private boolean jj_3R_80() {
4388 if (jj_scan_token(ASSIGN)) return true;
4389 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4393 static final private boolean jj_3R_76() {
4420 if (jj_3R_92()) return true;
4421 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4422 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4423 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4424 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4425 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4426 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4427 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4428 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4429 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4430 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4431 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4432 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4433 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4437 static final private boolean jj_3R_65() {
4438 if (jj_scan_token(LIST)) return true;
4439 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4440 if (jj_scan_token(LPAREN)) return true;
4441 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4444 if (jj_3R_104()) jj_scanpos = xsp;
4445 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4447 if (jj_3R_105()) jj_scanpos = xsp;
4448 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4449 if (jj_scan_token(RPAREN)) return true;
4450 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4452 if (jj_3R_106()) jj_scanpos = xsp;
4453 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4457 static final private boolean jj_3R_161() {
4458 if (jj_3R_159()) return true;
4459 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4462 if (jj_3R_172()) jj_scanpos = xsp;
4463 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4467 static final private boolean jj_3R_64() {
4468 if (jj_scan_token(PRINT)) return true;
4469 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4470 if (jj_3R_41()) return true;
4471 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4475 static final private boolean jj_3R_67() {
4476 if (jj_3R_76()) return true;
4477 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4478 if (jj_3R_41()) return true;
4479 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4483 static final private boolean jj_3R_160() {
4484 if (jj_scan_token(LPAREN)) return true;
4485 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4486 if (jj_3R_40()) return true;
4487 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4488 if (jj_scan_token(RPAREN)) return true;
4489 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4490 if (jj_3R_134()) return true;
4491 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4495 static final private boolean jj_3R_59() {
4496 if (jj_3R_66()) return true;
4497 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4500 if (jj_3R_67()) jj_scanpos = xsp;
4501 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4505 static final private boolean jj_3R_58() {
4506 if (jj_3R_65()) return true;
4507 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4511 static final private boolean jj_3R_41() {
4518 if (jj_3R_59()) return true;
4519 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4520 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4521 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4525 static final private boolean jj_3R_57() {
4526 if (jj_3R_64()) return true;
4527 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4531 static final private boolean jj_3_3() {
4532 if (jj_scan_token(LPAREN)) return true;
4533 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4534 if (jj_3R_40()) return true;
4535 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4536 if (jj_scan_token(RPAREN)) return true;
4537 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4541 static final private boolean jj_3R_158() {
4542 if (jj_scan_token(LPAREN)) return true;
4543 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4544 if (jj_3R_41()) return true;
4545 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4546 if (jj_scan_token(RPAREN)) return true;
4547 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4551 static final private boolean jj_3R_56() {
4552 if (jj_scan_token(OBJECT)) return true;
4553 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4557 static final private boolean jj_3R_157() {
4558 if (jj_3R_162()) return true;
4559 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4563 static final private boolean jj_3R_55() {
4564 if (jj_scan_token(INTEGER)) return true;
4565 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4569 static final private boolean jj_3R_156() {
4570 if (jj_3R_161()) return true;
4571 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4575 static final private boolean jj_3R_54() {
4576 if (jj_scan_token(INT)) return true;
4577 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4581 static final private boolean jj_3R_155() {
4582 if (jj_3R_160()) return true;
4583 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4587 static final private boolean jj_3R_53() {
4588 if (jj_scan_token(FLOAT)) return true;
4589 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4593 static final private boolean jj_3R_153() {
4604 if (jj_3R_158()) return true;
4605 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4606 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4607 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4608 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4609 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4613 static final private boolean jj_3R_154() {
4614 if (jj_scan_token(BANG)) return true;
4615 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4616 if (jj_3R_134()) return true;
4617 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4621 static final private boolean jj_3R_52() {
4622 if (jj_scan_token(DOUBLE)) return true;
4623 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4627 static final private boolean jj_3R_51() {
4628 if (jj_scan_token(REAL)) return true;
4629 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4633 static final private boolean jj_3R_50() {
4634 if (jj_scan_token(BOOLEAN)) return true;
4635 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4639 static final private boolean jj_3R_152() {
4640 if (jj_scan_token(DECR)) return true;
4641 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4642 if (jj_3R_159()) return true;
4643 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4647 static final private boolean jj_3R_49() {
4648 if (jj_scan_token(BOOL)) return true;
4649 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4653 static final private boolean jj_3R_40() {
4672 if (jj_3R_56()) return true;
4673 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4674 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4675 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4676 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4677 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4678 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4679 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4680 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4681 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4685 static final private boolean jj_3R_48() {
4686 if (jj_scan_token(STRING)) return true;
4687 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4691 static final private boolean jj_3R_151() {
4692 if (jj_scan_token(INCR)) return true;
4693 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4694 if (jj_3R_159()) return true;
4695 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4699 static final private boolean jj_3R_150() {
4700 if (jj_scan_token(MINUS)) return true;
4701 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4705 static final private boolean jj_3R_148() {
4706 if (jj_3R_153()) return true;
4707 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4711 static final private boolean jj_3R_147() {
4712 if (jj_3R_152()) return true;
4713 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4717 static final private boolean jj_3R_142() {
4718 if (jj_scan_token(REM)) return true;
4719 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4723 static final private boolean jj_3R_146() {
4724 if (jj_3R_151()) return true;
4725 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4729 static final private boolean jj_3R_149() {
4730 if (jj_scan_token(PLUS)) return true;
4731 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4735 static final private boolean jj_3R_143() {
4744 if (jj_3R_148()) return true;
4745 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4746 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4747 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4748 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4752 static final private boolean jj_3R_145() {
4757 if (jj_3R_150()) return true;
4758 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4759 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4760 if (jj_3R_134()) return true;
4761 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4765 static final private boolean jj_3R_144() {
4766 if (jj_scan_token(AT)) return true;
4767 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4771 static final private boolean jj_3R_139() {
4775 if (jj_3R_144()) { jj_scanpos = xsp; break; }
4776 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4778 if (jj_3R_143()) return true;
4779 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4783 static final private boolean jj_3R_141() {
4784 if (jj_scan_token(SLASH)) return true;
4785 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4789 static final private boolean jj_3R_134() {
4794 if (jj_3R_139()) return true;
4795 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4796 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4800 static final private boolean jj_3R_138() {
4801 if (jj_scan_token(BIT_AND)) return true;
4802 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4803 if (jj_3R_143()) return true;
4804 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4808 static final private boolean jj_3R_133() {
4809 if (jj_scan_token(RUNSIGNEDSHIFT)) return true;
4810 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4814 static final private boolean jj_3R_140() {
4815 if (jj_scan_token(STAR)) return true;
4816 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4820 static final private boolean jj_3R_135() {
4827 if (jj_3R_142()) return true;
4828 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4829 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4830 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4831 if (jj_3R_134()) return true;
4832 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4836 static final private boolean jj_3R_137() {
4837 if (jj_scan_token(MINUS)) return true;
4838 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4842 static final private boolean jj_3R_128() {
4843 if (jj_scan_token(GE)) return true;
4844 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4848 static final private boolean jj_3R_129() {
4849 if (jj_3R_134()) return true;
4850 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4854 if (jj_3R_135()) { jj_scanpos = xsp; break; }
4855 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4860 static final private boolean jj_3R_43() {
4861 if (jj_scan_token(PHPEND)) return true;
4862 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4866 static final private boolean jj_3R_132() {
4867 if (jj_scan_token(RSIGNEDSHIFT)) return true;
4868 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4872 static final private boolean jj_3R_127() {
4873 if (jj_scan_token(LE)) return true;
4874 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4878 static final private boolean jj_3R_136() {
4879 if (jj_scan_token(PLUS)) return true;
4880 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4884 static final private boolean jj_3R_130() {
4889 if (jj_3R_137()) return true;
4890 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4891 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4892 if (jj_3R_129()) return true;
4893 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4897 static final private boolean jj_3_6() {
4898 if (jj_3R_44()) return true;
4899 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4903 static final private boolean jj_3R_123() {
4904 if (jj_3R_129()) return true;
4905 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4909 if (jj_3R_130()) { jj_scanpos = xsp; break; }
4910 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4915 static final private boolean jj_3R_42() {
4916 if (jj_scan_token(SEMICOLON)) return true;
4917 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4921 static final private boolean jj_3_5() {
4922 if (jj_3R_41()) return true;
4923 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4928 if (jj_3R_43()) return true;
4929 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4930 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4934 static final private boolean jj_3R_126() {
4935 if (jj_scan_token(GT)) return true;
4936 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4940 static final private boolean jj_3_2() {
4941 if (jj_scan_token(COMMA)) return true;
4942 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4943 if (jj_3R_39()) return true;
4944 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4948 static final private boolean jj_3R_131() {
4949 if (jj_scan_token(LSHIFT)) return true;
4950 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4954 static final private boolean jj_3R_124() {
4961 if (jj_3R_133()) return true;
4962 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4963 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4964 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4965 if (jj_3R_123()) return true;
4966 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4970 static final private boolean jj_3R_192() {
4971 if (jj_3R_39()) return true;
4972 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4976 if (jj_3_2()) { jj_scanpos = xsp; break; }
4977 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4982 static final private boolean jj_3R_116() {
4983 if (jj_3R_123()) return true;
4984 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4988 if (jj_3R_124()) { jj_scanpos = xsp; break; }
4989 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4994 static final private boolean jj_3R_184() {
4995 if (jj_scan_token(LPAREN)) return true;
4996 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4999 if (jj_3R_192()) jj_scanpos = xsp;
5000 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5001 if (jj_scan_token(RPAREN)) return true;
5002 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5006 static final private boolean jj_3R_196() {
5007 if (jj_scan_token(COMMA)) return true;
5008 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5009 if (jj_3R_41()) return true;
5010 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5014 static final private boolean jj_3R_125() {
5015 if (jj_scan_token(LT)) return true;
5016 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5020 static final private boolean jj_3R_117() {
5029 if (jj_3R_128()) return true;
5030 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5031 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5032 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5033 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5034 if (jj_3R_116()) return true;
5035 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5039 static final private boolean jj_3R_195() {
5040 if (jj_3R_41()) return true;
5041 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5045 if (jj_3R_196()) { jj_scanpos = xsp; break; }
5046 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5051 static final private boolean jj_3R_114() {
5052 if (jj_3R_116()) return true;
5053 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5057 if (jj_3R_117()) { jj_scanpos = xsp; break; }
5058 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5063 static final private boolean jj_3R_194() {
5064 if (jj_scan_token(ARRAYASSIGN)) return true;
5065 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5066 if (jj_3R_41()) return true;
5067 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5071 static final private boolean jj_3R_39() {
5072 if (jj_3R_41()) return true;
5073 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5076 if (jj_3R_194()) jj_scanpos = xsp;
5077 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5081 static final private boolean jj_3_7() {
5082 if (jj_3R_45()) return true;
5083 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5087 static final private boolean jj_3R_193() {
5088 if (jj_3R_195()) return true;
5089 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5093 static final private boolean jj_3R_122() {
5094 if (jj_scan_token(TRIPLEEQUAL)) return true;
5095 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5099 static final private boolean jj_3R_191() {
5100 if (jj_scan_token(LPAREN)) return true;
5101 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5104 if (jj_3R_193()) jj_scanpos = xsp;
5105 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5106 if (jj_scan_token(RPAREN)) return true;
5107 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5111 static final private boolean jj_3R_121() {
5112 if (jj_scan_token(BANGDOUBLEEQUAL)) return true;
5113 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5117 static final private boolean jj_3R_120() {
5118 if (jj_scan_token(NE)) return true;
5119 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5123 static final private boolean jj_3R_69() {
5124 if (jj_scan_token(ASSIGN)) return true;
5125 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5126 if (jj_3R_41()) return true;
5127 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5131 static final private boolean jj_3R_119() {
5132 if (jj_scan_token(DIF)) return true;
5133 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5137 static final private boolean jj_3R_118() {
5138 if (jj_scan_token(EQ)) return true;
5139 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5143 static final private boolean jj_3R_61() {
5144 if (jj_scan_token(COMMA)) return true;
5145 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5146 if (jj_3R_60()) return true;
5147 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5151 static final private boolean jj_3R_115() {
5162 if (jj_3R_122()) return true;
5163 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5164 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5165 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5166 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5167 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5168 if (jj_3R_114()) return true;
5169 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5173 static final private boolean jj_3R_174() {
5174 if (jj_scan_token(NULL)) return true;
5175 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5179 static final private boolean jj_3R_112() {
5180 if (jj_3R_114()) return true;
5181 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5185 if (jj_3R_115()) { jj_scanpos = xsp; break; }
5186 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5191 static final private boolean jj_3R_109() {
5192 if (jj_scan_token(LBRACE)) return true;
5193 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5194 if (jj_3R_41()) return true;
5195 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5196 if (jj_scan_token(RBRACE)) return true;
5197 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5201 static final private boolean jj_3R_181() {
5202 if (jj_scan_token(FALSE)) return true;
5203 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5207 static final private boolean jj_3R_180() {
5208 if (jj_scan_token(TRUE)) return true;
5209 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5213 static final private boolean jj_3R_173() {
5218 if (jj_3R_181()) return true;
5219 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5220 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5224 static final private boolean jj_3R_73() {
5225 if (jj_scan_token(DOLLAR_ID)) return true;
5226 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5230 static final private boolean jj_3R_113() {
5231 if (jj_scan_token(BIT_AND)) return true;
5232 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5233 if (jj_3R_112()) return true;
5234 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5238 static final private boolean jj_3R_72() {
5239 if (jj_scan_token(DOLLAR)) return true;
5240 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5241 if (jj_3R_62()) return true;
5242 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5246 static final private boolean jj_3R_169() {
5247 if (jj_3R_174()) return true;
5248 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5252 static final private boolean jj_3R_60() {
5253 if (jj_3R_68()) return true;
5254 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5257 if (jj_3R_69()) jj_scanpos = xsp;
5258 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5262 static final private boolean jj_3R_168() {
5263 if (jj_3R_173()) return true;
5264 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5268 static final private boolean jj_3R_110() {
5269 if (jj_3R_112()) return true;
5270 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5274 if (jj_3R_113()) { jj_scanpos = xsp; break; }
5275 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5280 static final private boolean jj_3R_167() {
5281 if (jj_scan_token(STRING_LITERAL)) return true;
5282 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5286 static final private boolean jj_3R_45() {
5287 if (jj_3R_60()) return true;
5288 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5292 if (jj_3R_61()) { jj_scanpos = xsp; break; }
5293 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5298 static final private boolean jj_3R_99() {
5299 if (jj_scan_token(LBRACE)) return true;
5300 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5301 if (jj_3R_41()) return true;
5302 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5303 if (jj_scan_token(RBRACE)) return true;
5304 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5308 static final private boolean jj_3R_71() {
5309 if (jj_scan_token(IDENTIFIER)) return true;
5310 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5313 if (jj_3R_109()) jj_scanpos = xsp;
5314 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5318 static final private boolean jj_3R_166() {
5319 if (jj_scan_token(FLOATING_POINT_LITERAL)) return true;
5320 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5324 static final private boolean jj_3R_70() {
5325 if (jj_scan_token(LBRACE)) return true;
5326 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5327 if (jj_3R_41()) return true;
5328 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5329 if (jj_scan_token(RBRACE)) return true;
5330 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5334 static final private boolean jj_3R_62() {
5343 if (jj_3R_73()) return true;
5344 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5345 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5346 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5347 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5351 static final private boolean jj_3R_162() {
5362 if (jj_3R_169()) return true;
5363 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 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5371 static final private boolean jj_3R_165() {
5372 if (jj_scan_token(INTEGER_LITERAL)) return true;
5373 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5377 static final private boolean jj_3R_111() {
5378 if (jj_scan_token(XOR)) return true;
5379 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5380 if (jj_3R_110()) return true;
5381 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5385 static final private boolean jj_3R_94() {
5386 if (jj_scan_token(DOLLAR)) return true;
5387 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5388 if (jj_3R_62()) return true;
5389 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5393 static final private boolean jj_3R_63() {
5394 if (jj_3R_41()) return true;
5395 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5399 static final private boolean jj_3R_107() {
5400 if (jj_3R_110()) return true;
5401 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5405 if (jj_3R_111()) { jj_scanpos = xsp; break; }
5406 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5411 static final private boolean jj_3R_93() {
5412 if (jj_scan_token(DOLLAR_ID)) return true;
5413 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5416 if (jj_3R_99()) jj_scanpos = xsp;
5417 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5421 static final private boolean jj_3R_77() {
5426 if (jj_3R_94()) return true;
5427 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5428 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5432 static final private boolean jj_3R_47() {
5433 if (jj_scan_token(LBRACKET)) return true;
5434 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5437 if (jj_3R_63()) jj_scanpos = xsp;
5438 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5439 if (jj_scan_token(RBRACKET)) return true;
5440 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5444 static final private boolean jj_3R_108() {
5445 if (jj_scan_token(BIT_OR)) return true;
5446 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5447 if (jj_3R_107()) return true;
5448 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5452 static final private boolean jj_3R_100() {
5453 if (jj_3R_107()) return true;
5454 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5458 if (jj_3R_108()) { jj_scanpos = xsp; break; }
5459 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5464 static final private boolean jj_3_1() {
5465 if (jj_3R_38()) return true;
5466 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5470 static final private boolean jj_3R_103() {
5471 if (jj_scan_token(_ANDL)) return true;
5472 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5476 static final private boolean jj_3R_46() {
5477 if (jj_scan_token(CLASSACCESS)) return true;
5478 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5479 if (jj_3R_62()) return true;
5480 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5484 static final private boolean jj_3R_38() {
5489 if (jj_3R_47()) return true;
5490 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5491 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5495 static final private boolean jj_3R_68() {
5496 if (jj_3R_77()) return true;
5497 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5501 if (jj_3_1()) { jj_scanpos = xsp; break; }
5502 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5507 static final private boolean jj_3R_101() {
5508 if (jj_scan_token(DOT)) return true;
5509 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5510 if (jj_3R_100()) return true;
5511 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5515 static final private boolean jj_3R_95() {
5516 if (jj_3R_100()) return true;
5517 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5521 if (jj_3R_101()) { jj_scanpos = xsp; break; }
5522 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5527 static final private boolean jj_3R_188() {
5528 if (jj_3R_38()) return true;
5529 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5533 static final private boolean jj_3R_44() {
5534 if (jj_scan_token(IDENTIFIER)) return true;
5535 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5536 if (jj_scan_token(COLON)) return true;
5537 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5541 static final private boolean jj_3R_187() {
5542 if (jj_3R_191()) return true;
5543 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5547 static final private boolean jj_3R_183() {
5552 if (jj_3R_188()) return true;
5553 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5554 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5558 static final private boolean jj_3R_98() {
5559 if (jj_scan_token(_ORL)) return true;
5560 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5564 static final private boolean jj_3R_190() {
5565 if (jj_3R_68()) return true;
5566 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5570 static final private boolean jj_3R_102() {
5571 if (jj_scan_token(SC_AND)) return true;
5572 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5576 static final private boolean jj_3R_96() {
5581 if (jj_3R_103()) return true;
5582 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5583 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5584 if (jj_3R_95()) return true;
5585 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5589 static final private boolean jj_3R_189() {
5590 if (jj_scan_token(IDENTIFIER)) return true;
5591 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5595 static final private boolean jj_3R_185() {
5600 if (jj_3R_190()) return true;
5601 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5602 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5606 static final private boolean jj_3R_78() {
5607 if (jj_3R_95()) return true;
5608 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5612 if (jj_3R_96()) { jj_scanpos = xsp; break; }
5613 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5618 static private boolean jj_initialized_once = false;
5619 static public PHPParserTokenManager token_source;
5620 static SimpleCharStream jj_input_stream;
5621 static public Token token, jj_nt;
5622 static private int jj_ntk;
5623 static private Token jj_scanpos, jj_lastpos;
5624 static private int jj_la;
5625 static public boolean lookingAhead = false;
5626 static private boolean jj_semLA;
5627 static private int jj_gen;
5628 static final private int[] jj_la1 = new int[122];
5629 static private int[] jj_la1_0;
5630 static private int[] jj_la1_1;
5631 static private int[] jj_la1_2;
5632 static private int[] jj_la1_3;
5633 static private int[] jj_la1_4;
5641 private static void jj_la1_0() {
5642 jj_la1_0 = new int[] {0xfcb0001e,0x0,0x6,0x6,0xfcb0001e,0xfcb00000,0x0,0x600000,0x600000,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,0x4000000,0x0,0x0,0x14000000,0x0,0x0,0x0,0x14000000,0x0,0x10,0x0,0xe4800000,0xfc800000,0x10,0x10,0x10,0x10,0xc0000000,0x0,0x0,0x0,0x0,0x10,0x0,0x10,0x0,0x10,0xfcb00000,0xfcb00000,0xf4b00000,0x0,0x0,0x0,0x0,0x4000000,0x0,0xf4b00000,0x8000000,0x14000000,0x0,0xfc800000,0x1000000,0x2000000,0x1000000,0x2000000,0xfc800000,0xfc800000,0xfc800000,0xfc800000,0x10,0xfc800000,0x10,0x0,0x0,0x4000000,0x14000000,0x4000000,0xfc800000,0xfc800000,0x4000000,0x0,0x0,0x14000000,};
5644 private static void jj_la1_1() {
5645 jj_la1_1 = new int[] {0x11d7548f,0x0,0x0,0x0,0x11d7548f,0x11d7548f,0x2000,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,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,0xc30080,0x900,0x11d7548f,0x0,0x0,0x0,0x0,0x11d7548f,0x11d7548f,0x11d7548f,0x11d7548f,0x0,0x11d7548f,0x0,0x10,0x40,0x10000,0xc30080,0x10000,0x11d7548f,0x11d7548f,0x10000,0x0,0x0,0xc30080,};
5647 private static void jj_la1_2() {
5648 jj_la1_2 = new int[] {0x2288a200,0x20000000,0x0,0x0,0x2288a200,0x2288a200,0x0,0x0,0x0,0x40000000,0x0,0x2000000,0x0,0x2000000,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,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,0x88a200,0x0,0x2288a200,0x0,0x0,0x0,0x0,0x2288a200,0x2288a200,0x2288a200,0x2288a200,0x20000000,0x2288a200,0x20000000,0x8000000,0x0,0x80000,0x88a200,0x80000,0x2288a200,0x2288a200,0x80000,0x40000000,0x80000,0x88a200,};
5650 private static void jj_la1_3() {
5651 jj_la1_3 = new int[] {0x78700000,0x0,0x0,0x0,0x78700000,0x78700000,0x0,0x0,0x0,0x0,0x200,0x0,0x200000,0x0,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,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,0x78700000,0x0,0x78700000,0x0,0x0,0x0,0x0,0x79700000,0x78700000,0x78700000,0x78700000,0x0,0x79700000,0x0,0x0,0x0,0x18200000,0x78700000,0x18200000,0x78700000,0x79700000,0x18200000,0x0,0x0,0x78700000,};
5653 private static void jj_la1_4() {
5654 jj_la1_4 = new int[] {0x402,0x0,0x0,0x0,0x402,0x402,0x0,0x0,0x0,0x0,0x0,0x0,0x400,0x0,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,0x400,0x0,0x402,0x0,0x0,0x0,0x402,0x0,0x0,0x0,0x400,0x402,0x0,0x0,0x0,0x0,0x0,0x400,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x402,0x402,0x402,0x0,0x0,0x300,0x300,0x400,0x0,0x402,0x0,0x402,0x0,0x402,0x0,0x0,0x0,0x0,0x402,0x402,0x402,0x402,0x0,0x402,0x0,0x0,0x0,0x400,0x402,0x400,0x402,0x402,0x400,0x0,0x0,0x402,};
5656 static final private JJCalls[] jj_2_rtns = new JJCalls[7];
5657 static private boolean jj_rescan = false;
5658 static private int jj_gc = 0;
5660 public PHPParser(java.io.InputStream stream) {
5661 if (jj_initialized_once) {
5662 System.out.println("ERROR: Second call to constructor of static parser. You must");
5663 System.out.println(" either use ReInit() or set the JavaCC option STATIC to false");
5664 System.out.println(" during parser generation.");
5667 jj_initialized_once = true;
5668 jj_input_stream = new SimpleCharStream(stream, 1, 1);
5669 token_source = new PHPParserTokenManager(jj_input_stream);
5670 token = new Token();
5673 for (int i = 0; i < 122; i++) jj_la1[i] = -1;
5674 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
5677 static public void ReInit(java.io.InputStream stream) {
5678 jj_input_stream.ReInit(stream, 1, 1);
5679 token_source.ReInit(jj_input_stream);
5680 token = new Token();
5683 for (int i = 0; i < 122; i++) jj_la1[i] = -1;
5684 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
5687 public PHPParser(java.io.Reader stream) {
5688 if (jj_initialized_once) {
5689 System.out.println("ERROR: Second call to constructor of static parser. You must");
5690 System.out.println(" either use ReInit() or set the JavaCC option STATIC to false");
5691 System.out.println(" during parser generation.");
5694 jj_initialized_once = true;
5695 jj_input_stream = new SimpleCharStream(stream, 1, 1);
5696 token_source = new PHPParserTokenManager(jj_input_stream);
5697 token = new Token();
5700 for (int i = 0; i < 122; i++) jj_la1[i] = -1;
5701 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
5704 static public void ReInit(java.io.Reader stream) {
5705 jj_input_stream.ReInit(stream, 1, 1);
5706 token_source.ReInit(jj_input_stream);
5707 token = new Token();
5710 for (int i = 0; i < 122; i++) jj_la1[i] = -1;
5711 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
5714 public PHPParser(PHPParserTokenManager tm) {
5715 if (jj_initialized_once) {
5716 System.out.println("ERROR: Second call to constructor of static parser. You must");
5717 System.out.println(" either use ReInit() or set the JavaCC option STATIC to false");
5718 System.out.println(" during parser generation.");
5721 jj_initialized_once = true;
5723 token = new Token();
5726 for (int i = 0; i < 122; i++) jj_la1[i] = -1;
5727 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
5730 public void ReInit(PHPParserTokenManager tm) {
5732 token = new Token();
5735 for (int i = 0; i < 122; i++) jj_la1[i] = -1;
5736 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
5739 static final private Token jj_consume_token(int kind) throws ParseException {
5741 if ((oldToken = token).next != null) token = token.next;
5742 else token = token.next = token_source.getNextToken();
5744 if (token.kind == kind) {
5746 if (++jj_gc > 100) {
5748 for (int i = 0; i < jj_2_rtns.length; i++) {
5749 JJCalls c = jj_2_rtns[i];
5751 if (c.gen < jj_gen) c.first = null;
5760 throw generateParseException();
5763 static final private boolean jj_scan_token(int kind) {
5764 if (jj_scanpos == jj_lastpos) {
5766 if (jj_scanpos.next == null) {
5767 jj_lastpos = jj_scanpos = jj_scanpos.next = token_source.getNextToken();
5769 jj_lastpos = jj_scanpos = jj_scanpos.next;
5772 jj_scanpos = jj_scanpos.next;
5775 int i = 0; Token tok = token;
5776 while (tok != null && tok != jj_scanpos) { i++; tok = tok.next; }
5777 if (tok != null) jj_add_error_token(kind, i);
5779 return (jj_scanpos.kind != kind);
5782 static final public Token getNextToken() {
5783 if (token.next != null) token = token.next;
5784 else token = token.next = token_source.getNextToken();
5790 static final public Token getToken(int index) {
5791 Token t = lookingAhead ? jj_scanpos : token;
5792 for (int i = 0; i < index; i++) {
5793 if (t.next != null) t = t.next;
5794 else t = t.next = token_source.getNextToken();
5799 static final private int jj_ntk() {
5800 if ((jj_nt=token.next) == null)
5801 return (jj_ntk = (token.next=token_source.getNextToken()).kind);
5803 return (jj_ntk = jj_nt.kind);
5806 static private java.util.Vector jj_expentries = new java.util.Vector();
5807 static private int[] jj_expentry;
5808 static private int jj_kind = -1;
5809 static private int[] jj_lasttokens = new int[100];
5810 static private int jj_endpos;
5812 static private void jj_add_error_token(int kind, int pos) {
5813 if (pos >= 100) return;
5814 if (pos == jj_endpos + 1) {
5815 jj_lasttokens[jj_endpos++] = kind;
5816 } else if (jj_endpos != 0) {
5817 jj_expentry = new int[jj_endpos];
5818 for (int i = 0; i < jj_endpos; i++) {
5819 jj_expentry[i] = jj_lasttokens[i];
5821 boolean exists = false;
5822 for (java.util.Enumeration enum = jj_expentries.elements(); enum.hasMoreElements();) {
5823 int[] oldentry = (int[])(enum.nextElement());
5824 if (oldentry.length == jj_expentry.length) {
5826 for (int i = 0; i < jj_expentry.length; i++) {
5827 if (oldentry[i] != jj_expentry[i]) {
5835 if (!exists) jj_expentries.addElement(jj_expentry);
5836 if (pos != 0) jj_lasttokens[(jj_endpos = pos) - 1] = kind;
5840 static public ParseException generateParseException() {
5841 jj_expentries.removeAllElements();
5842 boolean[] la1tokens = new boolean[139];
5843 for (int i = 0; i < 139; i++) {
5844 la1tokens[i] = false;
5847 la1tokens[jj_kind] = true;
5850 for (int i = 0; i < 122; i++) {
5851 if (jj_la1[i] == jj_gen) {
5852 for (int j = 0; j < 32; j++) {
5853 if ((jj_la1_0[i] & (1<<j)) != 0) {
5854 la1tokens[j] = true;
5856 if ((jj_la1_1[i] & (1<<j)) != 0) {
5857 la1tokens[32+j] = true;
5859 if ((jj_la1_2[i] & (1<<j)) != 0) {
5860 la1tokens[64+j] = true;
5862 if ((jj_la1_3[i] & (1<<j)) != 0) {
5863 la1tokens[96+j] = true;
5865 if ((jj_la1_4[i] & (1<<j)) != 0) {
5866 la1tokens[128+j] = true;
5871 for (int i = 0; i < 139; i++) {
5873 jj_expentry = new int[1];
5875 jj_expentries.addElement(jj_expentry);
5880 jj_add_error_token(0, 0);
5881 int[][] exptokseq = new int[jj_expentries.size()][];
5882 for (int i = 0; i < jj_expentries.size(); i++) {
5883 exptokseq[i] = (int[])jj_expentries.elementAt(i);
5885 return new ParseException(token, exptokseq, tokenImage);
5888 static final public void enable_tracing() {
5891 static final public void disable_tracing() {
5894 static final private void jj_rescan_token() {
5896 for (int i = 0; i < 7; i++) {
5897 JJCalls p = jj_2_rtns[i];
5899 if (p.gen > jj_gen) {
5900 jj_la = p.arg; jj_lastpos = jj_scanpos = p.first;
5902 case 0: jj_3_1(); break;
5903 case 1: jj_3_2(); break;
5904 case 2: jj_3_3(); break;
5905 case 3: jj_3_4(); break;
5906 case 4: jj_3_5(); break;
5907 case 5: jj_3_6(); break;
5908 case 6: jj_3_7(); break;
5912 } while (p != null);
5917 static final private void jj_save(int index, int xla) {
5918 JJCalls p = jj_2_rtns[index];
5919 while (p.gen > jj_gen) {
5920 if (p.next == null) { p = p.next = new JJCalls(); break; }
5923 p.gen = jj_gen + xla - jj_la; p.first = token; p.arg = xla;
5926 static final class JJCalls {