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.util.Enumeration;
12 import java.io.StringReader;
14 import java.text.MessageFormat;
16 import net.sourceforge.phpeclipse.actions.PHPStartApacheAction;
17 import net.sourceforge.phpeclipse.PHPeclipsePlugin;
18 import net.sourceforge.phpdt.internal.compiler.parser.*;
22 * This php parser is inspired by the Java 1.2 grammar example
23 * given with JavaCC. You can get JavaCC at http://www.webgain.com
24 * You can test the parser with the PHPParserTestCase2.java
25 * @author Matthieu Casanova
27 public final class PHPParser extends PHPParserSuperclass implements PHPParserConstants {
29 /** The file that is parsed. */
30 private static IFile fileToParse;
32 /** The current segment. */
33 private static PHPSegmentWithChildren currentSegment;
35 private static final String PARSE_ERROR_STRING = "Parse error"; //$NON-NLS-1$
36 private static final String PARSE_WARNING_STRING = "Warning"; //$NON-NLS-1$
37 PHPOutlineInfo outlineInfo;
39 private static PHPFunctionDeclaration currentFunction;
40 private static boolean assigning;
42 /** The error level of the current ParseException. */
43 private static int errorLevel = ERROR;
44 /** The message of the current ParseException. If it's null it's because the parse exception wasn't handled */
45 private static String errorMessage;
47 private static int errorStart = -1;
48 private static int errorEnd = -1;
50 public final void setFileToParse(final IFile fileToParse) {
51 this.fileToParse = fileToParse;
57 public PHPParser(final IFile fileToParse) {
58 this(new StringReader(""));
59 this.fileToParse = fileToParse;
62 public static final void phpParserTester(final String strEval) throws CoreException, ParseException {
63 PHPParserTokenManager.SwitchTo(PHPParserTokenManager.PHPPARSING);
64 final StringReader stream = new StringReader(strEval);
65 if (jj_input_stream == null) {
66 jj_input_stream = new SimpleCharStream(stream, 1, 1);
68 ReInit(new StringReader(strEval));
72 public static final void htmlParserTester(final File fileName) throws CoreException, ParseException {
74 final Reader stream = new FileReader(fileName);
75 if (jj_input_stream == null) {
76 jj_input_stream = new SimpleCharStream(stream, 1, 1);
80 } catch (FileNotFoundException e) {
81 e.printStackTrace(); //To change body of catch statement use Options | File Templates.
85 public static final void htmlParserTester(final String strEval) throws CoreException, ParseException {
86 final StringReader stream = new StringReader(strEval);
87 if (jj_input_stream == null) {
88 jj_input_stream = new SimpleCharStream(stream, 1, 1);
94 public final PHPOutlineInfo parseInfo(final Object parent, final String s) {
95 outlineInfo = new PHPOutlineInfo(parent);
96 currentSegment = outlineInfo.getDeclarations();
97 final StringReader stream = new StringReader(s);
98 if (jj_input_stream == null) {
99 jj_input_stream = new SimpleCharStream(stream, 1, 1);
104 } catch (ParseException e) {
105 processParseException(e);
111 * This method will process the parse exception.
112 * If the error message is null, the parse exception wasn't catched and a trace is written in the log
113 * @param e the ParseException
115 private static void processParseException(final ParseException e) {
116 if (errorMessage == null) {
117 PHPeclipsePlugin.log(e);
118 errorMessage = "this exception wasn't handled by the parser please tell us how to reproduce it";
119 errorStart = jj_input_stream.getPosition();
120 errorEnd = errorStart + 1;
127 * Create marker for the parse error
128 * @param e the ParseException
130 private static void setMarker(final ParseException e) {
132 if (errorStart == -1) {
133 setMarker(fileToParse,
135 jj_input_stream.tokenBegin,
136 jj_input_stream.tokenBegin + e.currentToken.image.length(),
138 "Line " + e.currentToken.beginLine);
140 setMarker(fileToParse,
145 "Line " + e.currentToken.beginLine);
149 } catch (CoreException e2) {
150 PHPeclipsePlugin.log(e2);
155 * Create markers according to the external parser output
157 private static void createMarkers(final String output, final IFile file) throws CoreException {
158 // delete all markers
159 file.deleteMarkers(IMarker.PROBLEM, false, 0);
164 while ((brIndx = output.indexOf("<br />", indx)) != -1) {
165 // newer php error output (tested with 4.2.3)
166 scanLine(output, file, indx, brIndx);
171 while ((brIndx = output.indexOf("<br>", indx)) != -1) {
172 // older php error output (tested with 4.2.3)
173 scanLine(output, file, indx, brIndx);
179 private static void scanLine(final String output,
182 final int brIndx) throws CoreException {
184 StringBuffer lineNumberBuffer = new StringBuffer(10);
186 current = output.substring(indx, brIndx);
188 if (current.indexOf(PARSE_WARNING_STRING) != -1 || current.indexOf(PARSE_ERROR_STRING) != -1) {
189 int onLine = current.indexOf("on line <b>");
191 lineNumberBuffer.delete(0, lineNumberBuffer.length());
192 for (int i = onLine; i < current.length(); i++) {
193 ch = current.charAt(i);
194 if ('0' <= ch && '9' >= ch) {
195 lineNumberBuffer.append(ch);
199 int lineNumber = Integer.parseInt(lineNumberBuffer.toString());
201 Hashtable attributes = new Hashtable();
203 current = current.replaceAll("\n", "");
204 current = current.replaceAll("<b>", "");
205 current = current.replaceAll("</b>", "");
206 MarkerUtilities.setMessage(attributes, current);
208 if (current.indexOf(PARSE_ERROR_STRING) != -1)
209 attributes.put(IMarker.SEVERITY, new Integer(IMarker.SEVERITY_ERROR));
210 else if (current.indexOf(PARSE_WARNING_STRING) != -1)
211 attributes.put(IMarker.SEVERITY, new Integer(IMarker.SEVERITY_WARNING));
213 attributes.put(IMarker.SEVERITY, new Integer(IMarker.SEVERITY_INFO));
214 MarkerUtilities.setLineNumber(attributes, lineNumber);
215 MarkerUtilities.createMarker(file, attributes, IMarker.PROBLEM);
220 public final void parse(final String s) throws CoreException {
221 final StringReader stream = new StringReader(s);
222 if (jj_input_stream == null) {
223 jj_input_stream = new SimpleCharStream(stream, 1, 1);
228 } catch (ParseException e) {
229 processParseException(e);
234 * Call the php parse command ( php -l -f <filename> )
235 * and create markers according to the external parser output
237 public static void phpExternalParse(final IFile file) {
238 final IPreferenceStore store = PHPeclipsePlugin.getDefault().getPreferenceStore();
239 final String filename = file.getLocation().toString();
241 final String[] arguments = { filename };
242 final MessageFormat form = new MessageFormat(store.getString(PHPeclipsePlugin.EXTERNAL_PARSER_PREF));
243 final String command = form.format(arguments);
245 final String parserResult = PHPStartApacheAction.getParserOutput(command, "External parser: ");
248 // parse the buffer to find the errors and warnings
249 createMarkers(parserResult, file);
250 } catch (CoreException e) {
251 PHPeclipsePlugin.log(e);
255 public static final void parse() throws ParseException {
259 static final public void phpTest() throws ParseException {
264 static final public void phpFile() throws ParseException {
268 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
298 case INTEGER_LITERAL:
299 case FLOATING_POINT_LITERAL:
323 } catch (TokenMgrError e) {
324 PHPeclipsePlugin.log(e);
325 errorStart = SimpleCharStream.getPosition();
326 errorEnd = errorStart + 1;
327 errorMessage = e.getMessage();
329 {if (true) throw generateParseException();}
334 * A php block is a <?= expression [;]?>
335 * or <?php somephpcode ?>
336 * or <? somephpcode ?>
338 static final public void PhpBlock() throws ParseException {
339 final int start = jj_input_stream.getPosition();
340 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
372 case INTEGER_LITERAL:
373 case FLOATING_POINT_LITERAL:
388 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
391 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
393 jj_consume_token(PHPSTARTLONG);
396 jj_consume_token(PHPSTARTSHORT);
398 setMarker(fileToParse,
399 "You should use '<?php' instead of '<?' it will avoid some problems with XML",
401 jj_input_stream.getPosition(),
403 "Line " + token.beginLine);
404 } catch (CoreException e) {
405 PHPeclipsePlugin.log(e);
410 jj_consume_token(-1);
411 throw new ParseException();
420 jj_consume_token(PHPEND);
421 } catch (ParseException e) {
422 errorMessage = "'?>' expected";
424 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
425 errorEnd = jj_input_stream.getPosition() + 1;
431 jj_consume_token(-1);
432 throw new ParseException();
436 static final public void phpEchoBlock() throws ParseException {
437 jj_consume_token(PHPECHOSTART);
439 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
441 jj_consume_token(SEMICOLON);
447 jj_consume_token(PHPEND);
450 static final public void Php() throws ParseException {
453 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
479 case INTEGER_LITERAL:
480 case FLOATING_POINT_LITERAL:
505 static final public void ClassDeclaration() throws ParseException {
506 final PHPClassDeclaration classDeclaration;
507 final Token className;
509 jj_consume_token(CLASS);
511 pos = jj_input_stream.getPosition();
512 className = jj_consume_token(IDENTIFIER);
513 } catch (ParseException e) {
514 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', identifier expected";
516 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
517 errorEnd = jj_input_stream.getPosition() + 1;
520 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
522 jj_consume_token(EXTENDS);
524 jj_consume_token(IDENTIFIER);
525 } catch (ParseException e) {
526 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', identifier expected";
528 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
529 errorEnd = jj_input_stream.getPosition() + 1;
537 if (currentSegment != null) {
538 classDeclaration = new PHPClassDeclaration(currentSegment,className.image,pos);
539 currentSegment.add(classDeclaration);
540 currentSegment = classDeclaration;
543 if (currentSegment != null) {
544 currentSegment = (PHPSegmentWithChildren) currentSegment.getParent();
548 static final public void ClassBody() throws ParseException {
550 jj_consume_token(LBRACE);
551 } catch (ParseException e) {
552 errorMessage = "unexpected token : '"+ e.currentToken.next.image + "', '{' expected";
554 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
555 errorEnd = jj_input_stream.getPosition() + 1;
560 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
569 ClassBodyDeclaration();
572 jj_consume_token(RBRACE);
573 } catch (ParseException e) {
574 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', 'var', 'function' or '}' expected";
576 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
577 errorEnd = jj_input_stream.getPosition() + 1;
583 * A class can contain only methods and fields.
585 static final public void ClassBodyDeclaration() throws ParseException {
586 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
595 jj_consume_token(-1);
596 throw new ParseException();
601 * A class field declaration : it's var VariableDeclarator() (, VariableDeclarator())*;.
603 static final public void FieldDeclaration() throws ParseException {
604 PHPVarDeclaration variableDeclaration;
605 jj_consume_token(VAR);
606 variableDeclaration = VariableDeclarator();
607 if (currentSegment != null) {
608 currentSegment.add(variableDeclaration);
612 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
620 jj_consume_token(COMMA);
621 variableDeclaration = VariableDeclarator();
622 if (currentSegment != null) {
623 currentSegment.add(variableDeclaration);
627 jj_consume_token(SEMICOLON);
628 } catch (ParseException e) {
629 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"'. A ';' was expected after variable declaration";
631 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
632 errorEnd = jj_input_stream.getPosition() + 1;
637 static final public PHPVarDeclaration VariableDeclarator() throws ParseException {
638 final String varName, varValue;
639 final int pos = jj_input_stream.getPosition();
640 varName = VariableDeclaratorId();
641 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
643 jj_consume_token(ASSIGN);
645 varValue = VariableInitializer();
646 {if (true) return new PHPVarDeclaration(currentSegment,varName,pos,varValue);}
647 } catch (ParseException e) {
648 errorMessage = "Literal expression expected in variable initializer";
650 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
651 errorEnd = jj_input_stream.getPosition() + 1;
659 {if (true) return new PHPVarDeclaration(currentSegment,varName,pos);}
660 throw new Error("Missing return statement in function");
663 static final public String VariableDeclaratorId() throws ParseException {
665 final StringBuffer buff = new StringBuffer();
676 expr = VariableSuffix();
679 {if (true) return buff.toString();}
680 } catch (ParseException e) {
681 errorMessage = "'$' expected for variable identifier";
683 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
684 errorEnd = jj_input_stream.getPosition() + 1;
687 throw new Error("Missing return statement in function");
690 static final public String Variable() throws ParseException {
693 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
695 token = jj_consume_token(DOLLAR_ID);
696 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
698 jj_consume_token(LBRACE);
700 jj_consume_token(RBRACE);
706 if (expr == null && !assigning) {
707 if (currentFunction != null) {
708 PHPVarDeclaration var = currentFunction.getParameter(token.image.substring(1));
710 var.getVariable().setUsed(true);
713 {if (true) return token.image.substring(1);}
715 {if (true) return token + "{" + expr + "}";}
718 jj_consume_token(DOLLAR);
719 expr = VariableName();
720 {if (true) return expr;}
724 jj_consume_token(-1);
725 throw new ParseException();
727 throw new Error("Missing return statement in function");
730 static final public String VariableName() throws ParseException {
733 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
735 jj_consume_token(LBRACE);
737 jj_consume_token(RBRACE);
738 {if (true) return "{"+expr+"}";}
741 token = jj_consume_token(IDENTIFIER);
742 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
744 jj_consume_token(LBRACE);
746 jj_consume_token(RBRACE);
753 if (currentFunction != null) {
754 PHPVarDeclaration var = currentFunction.getParameter(token.image);
756 var.getVariable().setUsed(true);
759 {if (true) return token.image;}
761 {if (true) return token + "{" + expr + "}";}
764 jj_consume_token(DOLLAR);
765 expr = VariableName();
766 if (currentFunction != null) {
767 PHPVarDeclaration var = currentFunction.getParameter(expr);
769 var.getVariable().setUsed(true);
772 {if (true) return "$" + expr;}
775 token = jj_consume_token(DOLLAR_ID);
776 if (currentFunction != null) {
777 PHPVarDeclaration var = currentFunction.getParameter(token.image.substring(1));
779 var.getVariable().setUsed(true);
782 {if (true) return token.image + expr;}
786 jj_consume_token(-1);
787 throw new ParseException();
789 throw new Error("Missing return statement in function");
792 static final public String VariableInitializer() throws ParseException {
795 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
799 case INTEGER_LITERAL:
800 case FLOATING_POINT_LITERAL:
803 {if (true) return expr;}
806 jj_consume_token(MINUS);
807 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
808 case INTEGER_LITERAL:
809 token = jj_consume_token(INTEGER_LITERAL);
811 case FLOATING_POINT_LITERAL:
812 token = jj_consume_token(FLOATING_POINT_LITERAL);
816 jj_consume_token(-1);
817 throw new ParseException();
819 {if (true) return "-" + token.image;}
822 jj_consume_token(PLUS);
823 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
824 case INTEGER_LITERAL:
825 token = jj_consume_token(INTEGER_LITERAL);
827 case FLOATING_POINT_LITERAL:
828 token = jj_consume_token(FLOATING_POINT_LITERAL);
832 jj_consume_token(-1);
833 throw new ParseException();
835 {if (true) return "+" + token.image;}
838 expr = ArrayDeclarator();
839 {if (true) return expr;}
842 token = jj_consume_token(IDENTIFIER);
843 {if (true) return token.image;}
847 jj_consume_token(-1);
848 throw new ParseException();
850 throw new Error("Missing return statement in function");
853 static final public String ArrayVariable() throws ParseException {
855 final StringBuffer buff = new StringBuffer();
858 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
860 jj_consume_token(ARRAYASSIGN);
862 buff.append("=>").append(expr);
868 {if (true) return buff.toString();}
869 throw new Error("Missing return statement in function");
872 static final public String ArrayInitializer() throws ParseException {
874 final StringBuffer buff = new StringBuffer("(");
875 jj_consume_token(LPAREN);
876 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
884 case INTEGER_LITERAL:
885 case FLOATING_POINT_LITERAL:
898 expr = ArrayVariable();
907 jj_consume_token(COMMA);
908 expr = ArrayVariable();
909 buff.append(",").append(expr);
916 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
918 jj_consume_token(COMMA);
925 jj_consume_token(RPAREN);
927 {if (true) return buff.toString();}
928 throw new Error("Missing return statement in function");
932 * A Method Declaration.
933 * <b>function</b> MetodDeclarator() Block()
935 static final public void MethodDeclaration() throws ParseException {
936 final PHPFunctionDeclaration functionDeclaration;
938 functionToken = jj_consume_token(FUNCTION);
940 functionDeclaration = MethodDeclarator();
941 } catch (ParseException e) {
942 if (errorMessage != null) {
945 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', function identifier expected";
947 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
948 errorEnd = jj_input_stream.getPosition() + 1;
951 if (currentSegment != null) {
952 currentSegment.add(functionDeclaration);
953 currentSegment = functionDeclaration;
955 currentFunction = functionDeclaration;
957 Hashtable parameters = currentFunction.getParameters();
958 Enumeration vars = parameters.elements();
959 while (vars.hasMoreElements()) {
960 PHPVarDeclaration o = (PHPVarDeclaration) vars.nextElement();
961 if (!o.getVariable().isUsed()) {
963 setMarker(fileToParse,
964 "Parameter "+o.getVariable().getName()+" is never used in function",
965 functionToken.beginLine,
967 "Line " + token.beginLine);
968 } catch (CoreException e) {
969 PHPeclipsePlugin.log(e);
973 currentFunction = null;
974 if (currentSegment != null) {
975 currentSegment = (PHPSegmentWithChildren) currentSegment.getParent();
980 * A MethodDeclarator.
981 * [&] IDENTIFIER(parameters ...).
982 * @return a function description for the outline
984 static final public PHPFunctionDeclaration MethodDeclarator() throws ParseException {
985 final Token identifier;
986 final StringBuffer methodDeclaration = new StringBuffer();
987 final Hashtable formalParameters;
988 final int pos = jj_input_stream.getPosition();
989 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
991 jj_consume_token(BIT_AND);
992 methodDeclaration.append("&");
998 identifier = jj_consume_token(IDENTIFIER);
999 formalParameters = FormalParameters();
1000 methodDeclaration.append(identifier);
1001 {if (true) return new PHPFunctionDeclaration(currentSegment,methodDeclaration.toString(),pos,formalParameters);}
1002 throw new Error("Missing return statement in function");
1006 * FormalParameters follows method identifier.
1007 * (FormalParameter())
1009 static final public Hashtable FormalParameters() throws ParseException {
1011 final StringBuffer buff = new StringBuffer("(");
1012 PHPVarDeclaration var;
1013 final Hashtable parameters = new Hashtable();
1015 jj_consume_token(LPAREN);
1016 } catch (ParseException e) {
1017 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', '(' expected after function identifier";
1019 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
1020 errorEnd = jj_input_stream.getPosition() + 1;
1021 {if (true) throw e;}
1023 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1027 var = FormalParameter();
1028 parameters.put(var.getVariable().getName(),var);
1031 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1036 jj_la1[22] = jj_gen;
1039 jj_consume_token(COMMA);
1040 var = FormalParameter();
1041 parameters.put(var.getVariable().getName(),var);
1045 jj_la1[23] = jj_gen;
1049 jj_consume_token(RPAREN);
1050 } catch (ParseException e) {
1051 errorMessage = "')' expected";
1053 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
1054 errorEnd = jj_input_stream.getPosition() + 1;
1055 {if (true) throw e;}
1057 {if (true) return parameters;}
1058 throw new Error("Missing return statement in function");
1062 * A formal parameter.
1063 * $varname[=value] (,$varname[=value])
1065 static final public PHPVarDeclaration FormalParameter() throws ParseException {
1066 final PHPVarDeclaration variableDeclaration;
1068 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1070 token = jj_consume_token(BIT_AND);
1073 jj_la1[24] = jj_gen;
1076 variableDeclaration = VariableDeclarator();
1077 if (token != null) {
1078 variableDeclaration.getVariable().setReference(true);
1080 {if (true) return variableDeclaration;}
1081 throw new Error("Missing return statement in function");
1084 static final public String Type() throws ParseException {
1085 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1087 jj_consume_token(STRING);
1088 {if (true) return "string";}
1091 jj_consume_token(BOOL);
1092 {if (true) return "bool";}
1095 jj_consume_token(BOOLEAN);
1096 {if (true) return "boolean";}
1099 jj_consume_token(REAL);
1100 {if (true) return "real";}
1103 jj_consume_token(DOUBLE);
1104 {if (true) return "double";}
1107 jj_consume_token(FLOAT);
1108 {if (true) return "float";}
1111 jj_consume_token(INT);
1112 {if (true) return "int";}
1115 jj_consume_token(INTEGER);
1116 {if (true) return "integer";}
1119 jj_consume_token(OBJECT);
1120 {if (true) return "object";}
1123 jj_la1[25] = jj_gen;
1124 jj_consume_token(-1);
1125 throw new ParseException();
1127 throw new Error("Missing return statement in function");
1130 static final public String Expression() throws ParseException {
1132 final String assignOperator;
1134 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1136 expr = PrintExpression();
1137 {if (true) return expr;}
1140 expr = ListExpression();
1141 {if (true) return expr;}
1144 jj_la1[26] = jj_gen;
1145 if (jj_2_3(2147483647)) {
1146 expr = varAssignation();
1147 {if (true) return expr;}
1149 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1155 case INTEGER_LITERAL:
1156 case FLOATING_POINT_LITERAL:
1157 case STRING_LITERAL:
1169 expr = ConditionalExpression();
1170 {if (true) return expr;}
1173 jj_la1[27] = jj_gen;
1174 jj_consume_token(-1);
1175 throw new ParseException();
1179 throw new Error("Missing return statement in function");
1183 * A Variable assignation.
1184 * varName (an assign operator) any expression
1186 static final public String varAssignation() throws ParseException {
1187 String varName,assignOperator,expr2;
1188 PHPVarDeclaration variable;
1189 final int pos = SimpleCharStream.getPosition();
1190 varName = VariableDeclaratorId();
1191 assignOperator = AssignmentOperator();
1193 expr2 = Expression();
1194 } catch (ParseException e) {
1195 if (errorMessage != null) {
1196 {if (true) throw e;}
1198 errorMessage = "expression expected";
1200 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
1201 errorEnd = jj_input_stream.getPosition() + 1;
1202 {if (true) throw e;}
1204 {if (true) return varName + assignOperator + expr2;}
1205 throw new Error("Missing return statement in function");
1208 static final public String AssignmentOperator() throws ParseException {
1209 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1211 jj_consume_token(ASSIGN);
1212 {if (true) return "=";}
1215 jj_consume_token(STARASSIGN);
1216 {if (true) return "*=";}
1219 jj_consume_token(SLASHASSIGN);
1220 {if (true) return "/=";}
1223 jj_consume_token(REMASSIGN);
1224 {if (true) return "%=";}
1227 jj_consume_token(PLUSASSIGN);
1228 {if (true) return "+=";}
1231 jj_consume_token(MINUSASSIGN);
1232 {if (true) return "-=";}
1235 jj_consume_token(LSHIFTASSIGN);
1236 {if (true) return "<<=";}
1238 case RSIGNEDSHIFTASSIGN:
1239 jj_consume_token(RSIGNEDSHIFTASSIGN);
1240 {if (true) return ">>=";}
1243 jj_consume_token(ANDASSIGN);
1244 {if (true) return "&=";}
1247 jj_consume_token(XORASSIGN);
1248 {if (true) return "|=";}
1251 jj_consume_token(ORASSIGN);
1252 {if (true) return "|=";}
1255 jj_consume_token(DOTASSIGN);
1256 {if (true) return ".=";}
1259 jj_consume_token(TILDEEQUAL);
1260 {if (true) return "~=";}
1263 jj_la1[28] = jj_gen;
1264 jj_consume_token(-1);
1265 throw new ParseException();
1267 throw new Error("Missing return statement in function");
1270 static final public String ConditionalExpression() throws ParseException {
1272 String expr2 = null;
1273 String expr3 = null;
1274 expr = ConditionalOrExpression();
1275 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1277 jj_consume_token(HOOK);
1278 expr2 = Expression();
1279 jj_consume_token(COLON);
1280 expr3 = ConditionalExpression();
1283 jj_la1[29] = jj_gen;
1286 if (expr3 == null) {
1287 {if (true) return expr;}
1289 {if (true) return expr + "?" + expr2 + ":" + expr3;}
1291 throw new Error("Missing return statement in function");
1294 static final public String ConditionalOrExpression() throws ParseException {
1297 final StringBuffer buff = new StringBuffer();
1298 expr = ConditionalAndExpression();
1302 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1308 jj_la1[30] = jj_gen;
1311 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1313 operator = jj_consume_token(SC_OR);
1316 operator = jj_consume_token(_ORL);
1319 jj_la1[31] = jj_gen;
1320 jj_consume_token(-1);
1321 throw new ParseException();
1323 expr = ConditionalAndExpression();
1324 buff.append(operator.image);
1327 {if (true) return buff.toString();}
1328 throw new Error("Missing return statement in function");
1331 static final public String ConditionalAndExpression() throws ParseException {
1334 final StringBuffer buff = new StringBuffer();
1335 expr = ConcatExpression();
1339 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1345 jj_la1[32] = jj_gen;
1348 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1350 operator = jj_consume_token(SC_AND);
1353 operator = jj_consume_token(_ANDL);
1356 jj_la1[33] = jj_gen;
1357 jj_consume_token(-1);
1358 throw new ParseException();
1360 expr = ConcatExpression();
1361 buff.append(operator.image);
1364 {if (true) return buff.toString();}
1365 throw new Error("Missing return statement in function");
1368 static final public String ConcatExpression() throws ParseException {
1370 final StringBuffer buff = new StringBuffer();
1371 expr = InclusiveOrExpression();
1375 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1380 jj_la1[34] = jj_gen;
1383 jj_consume_token(DOT);
1384 expr = InclusiveOrExpression();
1385 buff.append(".").append(expr);
1387 {if (true) return buff.toString();}
1388 throw new Error("Missing return statement in function");
1391 static final public String InclusiveOrExpression() throws ParseException {
1393 final StringBuffer buff = new StringBuffer();
1394 expr = ExclusiveOrExpression();
1398 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1403 jj_la1[35] = jj_gen;
1406 jj_consume_token(BIT_OR);
1407 expr = ExclusiveOrExpression();
1408 buff.append("|").append(expr);
1410 {if (true) return buff.toString();}
1411 throw new Error("Missing return statement in function");
1414 static final public String ExclusiveOrExpression() throws ParseException {
1416 final StringBuffer buff = new StringBuffer();
1417 expr = AndExpression();
1421 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1426 jj_la1[36] = jj_gen;
1429 jj_consume_token(XOR);
1430 expr = AndExpression();
1434 {if (true) return buff.toString();}
1435 throw new Error("Missing return statement in function");
1438 static final public String AndExpression() throws ParseException {
1440 final StringBuffer buff = new StringBuffer();
1441 expr = EqualityExpression();
1445 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1450 jj_la1[37] = jj_gen;
1453 jj_consume_token(BIT_AND);
1454 expr = EqualityExpression();
1455 buff.append("&").append(expr);
1457 {if (true) return buff.toString();}
1458 throw new Error("Missing return statement in function");
1461 static final public String EqualityExpression() throws ParseException {
1464 final StringBuffer buff = new StringBuffer();
1465 expr = RelationalExpression();
1469 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1473 case BANGDOUBLEEQUAL:
1478 jj_la1[38] = jj_gen;
1481 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1483 operator = jj_consume_token(EQ);
1486 operator = jj_consume_token(DIF);
1489 operator = jj_consume_token(NE);
1491 case BANGDOUBLEEQUAL:
1492 operator = jj_consume_token(BANGDOUBLEEQUAL);
1495 operator = jj_consume_token(TRIPLEEQUAL);
1498 jj_la1[39] = jj_gen;
1499 jj_consume_token(-1);
1500 throw new ParseException();
1503 expr = RelationalExpression();
1504 } catch (ParseException e) {
1505 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', expression expected after '"+operator.image+"'";
1507 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
1508 errorEnd = jj_input_stream.getPosition() + 1;
1509 {if (true) throw e;}
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 RelationalExpression() throws ParseException {
1521 final StringBuffer buff = new StringBuffer();
1522 expr = ShiftExpression();
1526 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1534 jj_la1[40] = jj_gen;
1537 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1539 operator = jj_consume_token(LT);
1542 operator = jj_consume_token(GT);
1545 operator = jj_consume_token(LE);
1548 operator = jj_consume_token(GE);
1551 jj_la1[41] = jj_gen;
1552 jj_consume_token(-1);
1553 throw new ParseException();
1555 expr = ShiftExpression();
1556 buff.append(operator.image).append(expr);
1558 {if (true) return buff.toString();}
1559 throw new Error("Missing return statement in function");
1562 static final public String ShiftExpression() throws ParseException {
1565 final StringBuffer buff = new StringBuffer();
1566 expr = AdditiveExpression();
1570 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1573 case RUNSIGNEDSHIFT:
1577 jj_la1[42] = jj_gen;
1580 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1582 operator = jj_consume_token(LSHIFT);
1585 operator = jj_consume_token(RSIGNEDSHIFT);
1587 case RUNSIGNEDSHIFT:
1588 operator = jj_consume_token(RUNSIGNEDSHIFT);
1591 jj_la1[43] = jj_gen;
1592 jj_consume_token(-1);
1593 throw new ParseException();
1595 expr = AdditiveExpression();
1596 buff.append(operator.image);
1599 {if (true) return buff.toString();}
1600 throw new Error("Missing return statement in function");
1603 static final public String AdditiveExpression() throws ParseException {
1606 final StringBuffer buff = new StringBuffer();
1607 expr = MultiplicativeExpression();
1611 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1617 jj_la1[44] = jj_gen;
1620 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1622 operator = jj_consume_token(PLUS);
1625 operator = jj_consume_token(MINUS);
1628 jj_la1[45] = jj_gen;
1629 jj_consume_token(-1);
1630 throw new ParseException();
1632 expr = MultiplicativeExpression();
1633 buff.append(operator.image);
1636 {if (true) return buff.toString();}
1637 throw new Error("Missing return statement in function");
1640 static final public String MultiplicativeExpression() throws ParseException {
1643 final StringBuffer buff = new StringBuffer();
1645 expr = UnaryExpression();
1646 } catch (ParseException e) {
1647 errorMessage = "unexpected token '"+e.currentToken.next.image+"'";
1649 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
1650 errorEnd = jj_input_stream.getPosition() + 1;
1651 {if (true) throw e;}
1656 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1663 jj_la1[46] = jj_gen;
1666 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1668 operator = jj_consume_token(STAR);
1671 operator = jj_consume_token(SLASH);
1674 operator = jj_consume_token(REM);
1677 jj_la1[47] = jj_gen;
1678 jj_consume_token(-1);
1679 throw new ParseException();
1681 expr = UnaryExpression();
1682 buff.append(operator.image);
1685 {if (true) return buff.toString();}
1686 throw new Error("Missing return statement in function");
1690 * An unary expression starting with @, & or nothing
1692 static final public String UnaryExpression() throws ParseException {
1695 final StringBuffer buff = new StringBuffer();
1696 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1698 token = jj_consume_token(BIT_AND);
1699 expr = UnaryExpressionNoPrefix();
1700 if (token == null) {
1701 {if (true) return expr;}
1703 {if (true) return token.image + expr;}
1710 case INTEGER_LITERAL:
1711 case FLOATING_POINT_LITERAL:
1712 case STRING_LITERAL:
1725 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1730 jj_la1[48] = jj_gen;
1733 jj_consume_token(AT);
1736 expr = UnaryExpressionNoPrefix();
1737 {if (true) return buff.append(expr).toString();}
1740 jj_la1[49] = jj_gen;
1741 jj_consume_token(-1);
1742 throw new ParseException();
1744 throw new Error("Missing return statement in function");
1747 static final public String UnaryExpressionNoPrefix() throws ParseException {
1750 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1753 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1755 token = jj_consume_token(PLUS);
1758 token = jj_consume_token(MINUS);
1761 jj_la1[50] = jj_gen;
1762 jj_consume_token(-1);
1763 throw new ParseException();
1765 expr = UnaryExpression();
1766 {if (true) return token.image + expr;}
1770 expr = PreIncDecExpression();
1771 {if (true) return expr;}
1778 case INTEGER_LITERAL:
1779 case FLOATING_POINT_LITERAL:
1780 case STRING_LITERAL:
1786 expr = UnaryExpressionNotPlusMinus();
1787 {if (true) return expr;}
1790 jj_la1[51] = jj_gen;
1791 jj_consume_token(-1);
1792 throw new ParseException();
1794 throw new Error("Missing return statement in function");
1797 static final public String PreIncDecExpression() throws ParseException {
1800 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1802 token = jj_consume_token(INCR);
1805 token = jj_consume_token(DECR);
1808 jj_la1[52] = jj_gen;
1809 jj_consume_token(-1);
1810 throw new ParseException();
1812 expr = PrimaryExpression();
1813 {if (true) return token.image + expr;}
1814 throw new Error("Missing return statement in function");
1817 static final public String UnaryExpressionNotPlusMinus() throws ParseException {
1819 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1821 jj_consume_token(BANG);
1822 expr = UnaryExpression();
1823 {if (true) return "!" + expr;}
1826 jj_la1[53] = jj_gen;
1827 if (jj_2_4(2147483647)) {
1828 expr = CastExpression();
1829 {if (true) return expr;}
1831 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1837 expr = PostfixExpression();
1838 {if (true) return expr;}
1843 case INTEGER_LITERAL:
1844 case FLOATING_POINT_LITERAL:
1845 case STRING_LITERAL:
1847 {if (true) return expr;}
1850 jj_consume_token(LPAREN);
1851 expr = Expression();
1853 jj_consume_token(RPAREN);
1854 } catch (ParseException e) {
1855 errorMessage = "')' expected";
1857 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
1858 errorEnd = jj_input_stream.getPosition() + 1;
1859 {if (true) throw e;}
1861 {if (true) return "("+expr+")";}
1864 jj_la1[54] = jj_gen;
1865 jj_consume_token(-1);
1866 throw new ParseException();
1870 throw new Error("Missing return statement in function");
1873 static final public String CastExpression() throws ParseException {
1874 final String type, expr;
1875 jj_consume_token(LPAREN);
1876 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1889 jj_consume_token(ARRAY);
1893 jj_la1[55] = jj_gen;
1894 jj_consume_token(-1);
1895 throw new ParseException();
1897 jj_consume_token(RPAREN);
1898 expr = UnaryExpression();
1899 {if (true) return "(" + type + ")" + expr;}
1900 throw new Error("Missing return statement in function");
1903 static final public String PostfixExpression() throws ParseException {
1905 Token operator = null;
1906 expr = PrimaryExpression();
1907 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1910 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1912 operator = jj_consume_token(INCR);
1915 operator = jj_consume_token(DECR);
1918 jj_la1[56] = jj_gen;
1919 jj_consume_token(-1);
1920 throw new ParseException();
1924 jj_la1[57] = jj_gen;
1927 if (operator == null) {
1928 {if (true) return expr;}
1930 {if (true) return expr + operator.image;}
1931 throw new Error("Missing return statement in function");
1934 static final public String PrimaryExpression() throws ParseException {
1935 final Token identifier;
1937 final StringBuffer buff = new StringBuffer();
1939 identifier = jj_consume_token(IDENTIFIER);
1940 jj_consume_token(STATICCLASSACCESS);
1941 expr = ClassIdentifier();
1942 buff.append(identifier.image).append("::").append(expr);
1945 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1952 jj_la1[58] = jj_gen;
1955 expr = PrimarySuffix();
1958 {if (true) return buff.toString();}
1960 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1965 expr = PrimaryPrefix();
1969 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1976 jj_la1[59] = jj_gen;
1979 expr = PrimarySuffix();
1982 {if (true) return buff.toString();}
1985 expr = ArrayDeclarator();
1986 {if (true) return "array" + expr;}
1989 jj_la1[60] = jj_gen;
1990 jj_consume_token(-1);
1991 throw new ParseException();
1994 throw new Error("Missing return statement in function");
1997 static final public String ArrayDeclarator() throws ParseException {
1999 jj_consume_token(ARRAY);
2000 expr = ArrayInitializer();
2001 {if (true) return "array" + expr;}
2002 throw new Error("Missing return statement in function");
2005 static final public String PrimaryPrefix() throws ParseException {
2008 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2010 token = jj_consume_token(IDENTIFIER);
2011 {if (true) return token.image;}
2014 jj_consume_token(NEW);
2015 expr = ClassIdentifier();
2016 {if (true) return "new " + expr;}
2020 expr = VariableDeclaratorId();
2021 {if (true) return expr;}
2024 jj_la1[61] = jj_gen;
2025 jj_consume_token(-1);
2026 throw new ParseException();
2028 throw new Error("Missing return statement in function");
2031 static final public String classInstantiation() throws ParseException {
2033 final StringBuffer buff = new StringBuffer("new ");
2034 jj_consume_token(NEW);
2035 expr = ClassIdentifier();
2037 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2043 expr = PrimaryExpression();
2047 jj_la1[62] = jj_gen;
2050 {if (true) return buff.toString();}
2051 throw new Error("Missing return statement in function");
2054 static final public String ClassIdentifier() throws ParseException {
2057 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2059 token = jj_consume_token(IDENTIFIER);
2060 {if (true) return token.image;}
2064 expr = VariableDeclaratorId();
2065 {if (true) return expr;}
2068 jj_la1[63] = jj_gen;
2069 jj_consume_token(-1);
2070 throw new ParseException();
2072 throw new Error("Missing return statement in function");
2075 static final public String PrimarySuffix() throws ParseException {
2077 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2080 {if (true) return expr;}
2084 expr = VariableSuffix();
2085 {if (true) return expr;}
2088 jj_la1[64] = jj_gen;
2089 jj_consume_token(-1);
2090 throw new ParseException();
2092 throw new Error("Missing return statement in function");
2095 static final public String VariableSuffix() throws ParseException {
2097 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2099 jj_consume_token(CLASSACCESS);
2101 expr = VariableName();
2102 } catch (ParseException e) {
2103 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', function call or field access expected";
2105 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2106 errorEnd = jj_input_stream.getPosition() + 1;
2107 {if (true) throw e;}
2109 {if (true) return "->" + expr;}
2112 jj_consume_token(LBRACKET);
2113 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2130 case INTEGER_LITERAL:
2131 case FLOATING_POINT_LITERAL:
2132 case STRING_LITERAL:
2144 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2152 case INTEGER_LITERAL:
2153 case FLOATING_POINT_LITERAL:
2154 case STRING_LITERAL:
2166 expr = Expression();
2180 jj_la1[65] = jj_gen;
2181 jj_consume_token(-1);
2182 throw new ParseException();
2186 jj_la1[66] = jj_gen;
2190 jj_consume_token(RBRACKET);
2191 } catch (ParseException e) {
2192 errorMessage = "']' expected";
2194 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2195 errorEnd = jj_input_stream.getPosition() + 1;
2196 {if (true) throw e;}
2199 {if (true) return "[]";}
2201 {if (true) return "[" + expr + "]";}
2204 jj_la1[67] = jj_gen;
2205 jj_consume_token(-1);
2206 throw new ParseException();
2208 throw new Error("Missing return statement in function");
2211 static final public String Literal() throws ParseException {
2214 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2215 case INTEGER_LITERAL:
2216 token = jj_consume_token(INTEGER_LITERAL);
2217 {if (true) return token.image;}
2219 case FLOATING_POINT_LITERAL:
2220 token = jj_consume_token(FLOATING_POINT_LITERAL);
2221 {if (true) return token.image;}
2223 case STRING_LITERAL:
2224 token = jj_consume_token(STRING_LITERAL);
2225 {if (true) return token.image;}
2229 expr = BooleanLiteral();
2230 {if (true) return expr;}
2233 jj_consume_token(NULL);
2234 {if (true) return "null";}
2237 jj_la1[68] = jj_gen;
2238 jj_consume_token(-1);
2239 throw new ParseException();
2241 throw new Error("Missing return statement in function");
2244 static final public String BooleanLiteral() throws ParseException {
2245 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2247 jj_consume_token(TRUE);
2248 {if (true) return "true";}
2251 jj_consume_token(FALSE);
2252 {if (true) return "false";}
2255 jj_la1[69] = jj_gen;
2256 jj_consume_token(-1);
2257 throw new ParseException();
2259 throw new Error("Missing return statement in function");
2262 static final public String Arguments() throws ParseException {
2264 jj_consume_token(LPAREN);
2265 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2273 case INTEGER_LITERAL:
2274 case FLOATING_POINT_LITERAL:
2275 case STRING_LITERAL:
2287 expr = ArgumentList();
2290 jj_la1[70] = jj_gen;
2294 jj_consume_token(RPAREN);
2295 } catch (ParseException e) {
2296 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', ')' expected to close the argument list";
2298 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2299 errorEnd = jj_input_stream.getPosition() + 1;
2300 {if (true) throw e;}
2303 {if (true) return "()";}
2305 {if (true) return "(" + expr + ")";}
2306 throw new Error("Missing return statement in function");
2309 static final public String ArgumentList() throws ParseException {
2311 final StringBuffer buff = new StringBuffer();
2312 expr = Expression();
2316 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2321 jj_la1[71] = jj_gen;
2324 jj_consume_token(COMMA);
2326 expr = Expression();
2327 } catch (ParseException e) {
2328 errorMessage = "expression expected after a comma in argument list";
2330 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2331 errorEnd = jj_input_stream.getPosition() + 1;
2332 {if (true) throw e;}
2334 buff.append(",").append(expr);
2336 {if (true) return buff.toString();}
2337 throw new Error("Missing return statement in function");
2341 * A Statement without break
2343 static final public void StatementNoBreak() throws ParseException {
2347 jj_consume_token(SEMICOLON);
2348 } catch (ParseException e) {
2349 if (e.currentToken.next.kind != 4) {
2350 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"'. A ';' was expected";
2352 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2353 errorEnd = jj_input_stream.getPosition() + 1;
2354 {if (true) throw e;}
2357 } else if (jj_2_7(2)) {
2360 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2374 StatementExpression();
2376 jj_consume_token(SEMICOLON);
2377 } catch (ParseException e) {
2378 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"'. A ';' was expected";
2380 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2381 errorEnd = jj_input_stream.getPosition() + 1;
2382 {if (true) throw e;}
2404 ContinueStatement();
2417 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2419 jj_consume_token(AT);
2422 jj_la1[72] = jj_gen;
2434 jj_la1[73] = jj_gen;
2435 jj_consume_token(-1);
2436 throw new ParseException();
2442 * A Normal statement
2444 static final public void Statement() throws ParseException {
2445 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2468 case INTEGER_LITERAL:
2469 case FLOATING_POINT_LITERAL:
2470 case STRING_LITERAL:
2490 jj_la1[74] = jj_gen;
2491 jj_consume_token(-1);
2492 throw new ParseException();
2496 static final public void htmlBlock() throws ParseException {
2497 jj_consume_token(PHPEND);
2500 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2505 jj_la1[75] = jj_gen;
2510 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2512 jj_consume_token(PHPSTARTLONG);
2515 jj_consume_token(PHPSTARTSHORT);
2518 jj_la1[76] = jj_gen;
2519 jj_consume_token(-1);
2520 throw new ParseException();
2525 * An include statement. It's "include" an expression;
2527 static final public void IncludeStatement() throws ParseException {
2530 final int pos = jj_input_stream.getPosition();
2531 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2533 token = jj_consume_token(REQUIRE);
2536 token = jj_consume_token(REQUIRE_ONCE);
2539 token = jj_consume_token(INCLUDE);
2542 token = jj_consume_token(INCLUDE_ONCE);
2545 jj_la1[77] = jj_gen;
2546 jj_consume_token(-1);
2547 throw new ParseException();
2549 expr = Expression();
2550 if (currentSegment != null) {
2551 currentSegment.add(new PHPReqIncDeclaration(currentSegment, token.image,pos,expr));
2554 jj_consume_token(SEMICOLON);
2555 } catch (ParseException e) {
2556 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"'. A ';' was expected";
2558 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2559 errorEnd = jj_input_stream.getPosition() + 1;
2560 {if (true) throw e;}
2564 static final public String PrintExpression() throws ParseException {
2565 final StringBuffer buff = new StringBuffer("print ");
2567 jj_consume_token(PRINT);
2568 expr = Expression();
2570 {if (true) return buff.toString();}
2571 throw new Error("Missing return statement in function");
2574 static final public String ListExpression() throws ParseException {
2575 final StringBuffer buff = new StringBuffer("list(");
2577 jj_consume_token(LIST);
2579 jj_consume_token(LPAREN);
2580 } catch (ParseException e) {
2581 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', '(' expected";
2583 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2584 errorEnd = jj_input_stream.getPosition() + 1;
2585 {if (true) throw e;}
2587 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2590 expr = VariableDeclaratorId();
2594 jj_la1[78] = jj_gen;
2599 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2604 jj_la1[79] = jj_gen;
2608 jj_consume_token(COMMA);
2609 } catch (ParseException e) {
2610 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', ',' expected";
2612 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2613 errorEnd = jj_input_stream.getPosition() + 1;
2614 {if (true) throw e;}
2616 expr = VariableDeclaratorId();
2617 buff.append(",").append(expr);
2621 jj_consume_token(RPAREN);
2622 } catch (ParseException e) {
2623 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', ')' expected";
2625 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2626 errorEnd = jj_input_stream.getPosition() + 1;
2627 {if (true) throw e;}
2629 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2631 jj_consume_token(ASSIGN);
2632 expr = Expression();
2633 buff.append("(").append(expr);
2636 jj_la1[80] = jj_gen;
2639 {if (true) return buff.toString();}
2640 throw new Error("Missing return statement in function");
2644 * An echo statement is like this : echo anyexpression (, otherexpression)*
2646 static final public void EchoStatement() throws ParseException {
2647 jj_consume_token(ECHO);
2651 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2656 jj_la1[81] = jj_gen;
2659 jj_consume_token(COMMA);
2663 jj_consume_token(SEMICOLON);
2664 } catch (ParseException e) {
2665 if (e.currentToken.next.kind != 4) {
2666 errorMessage = "';' expected after 'echo' statement";
2668 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2669 errorEnd = jj_input_stream.getPosition() + 1;
2670 {if (true) throw e;}
2675 static final public void GlobalStatement() throws ParseException {
2676 final int pos = jj_input_stream.getPosition();
2678 jj_consume_token(GLOBAL);
2679 expr = VariableDeclaratorId();
2680 if (currentSegment != null) {
2681 currentSegment.add(new PHPGlobalDeclaration(currentSegment, "global",pos,expr));
2685 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2690 jj_la1[82] = jj_gen;
2693 jj_consume_token(COMMA);
2694 expr = VariableDeclaratorId();
2695 if (currentSegment != null) {
2696 currentSegment.add(new PHPGlobalDeclaration(currentSegment, "global",pos,expr));
2700 jj_consume_token(SEMICOLON);
2701 } catch (ParseException e) {
2702 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"'. A ';' was expected";
2704 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2705 errorEnd = jj_input_stream.getPosition() + 1;
2706 {if (true) throw e;}
2710 static final public void StaticStatement() throws ParseException {
2711 jj_consume_token(STATIC);
2712 VariableDeclarator();
2715 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2720 jj_la1[83] = jj_gen;
2723 jj_consume_token(COMMA);
2724 VariableDeclarator();
2727 jj_consume_token(SEMICOLON);
2728 } catch (ParseException e) {
2729 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"'. A ';' was expected";
2731 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2732 errorEnd = jj_input_stream.getPosition() + 1;
2733 {if (true) throw e;}
2737 static final public void LabeledStatement() throws ParseException {
2738 jj_consume_token(IDENTIFIER);
2739 jj_consume_token(COLON);
2743 static final public void Block() throws ParseException {
2745 jj_consume_token(LBRACE);
2746 } catch (ParseException e) {
2747 errorMessage = "'{' expected";
2749 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2750 errorEnd = jj_input_stream.getPosition() + 1;
2751 {if (true) throw e;}
2755 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2782 case INTEGER_LITERAL:
2783 case FLOATING_POINT_LITERAL:
2784 case STRING_LITERAL:
2801 jj_la1[84] = jj_gen;
2804 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2830 case INTEGER_LITERAL:
2831 case FLOATING_POINT_LITERAL:
2832 case STRING_LITERAL:
2852 jj_la1[85] = jj_gen;
2853 jj_consume_token(-1);
2854 throw new ParseException();
2858 jj_consume_token(RBRACE);
2859 } catch (ParseException e) {
2860 errorMessage = "unexpected token : '"+ e.currentToken.image +"', '}' expected";
2862 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2863 errorEnd = jj_input_stream.getPosition() + 1;
2864 {if (true) throw e;}
2868 static final public void BlockStatement() throws ParseException {
2869 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2893 case INTEGER_LITERAL:
2894 case FLOATING_POINT_LITERAL:
2895 case STRING_LITERAL:
2915 MethodDeclaration();
2918 jj_la1[86] = jj_gen;
2919 jj_consume_token(-1);
2920 throw new ParseException();
2925 * A Block statement that will not contain any 'break'
2927 static final public void BlockStatementNoBreak() throws ParseException {
2928 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2951 case INTEGER_LITERAL:
2952 case FLOATING_POINT_LITERAL:
2953 case STRING_LITERAL:
2973 MethodDeclaration();
2976 jj_la1[87] = jj_gen;
2977 jj_consume_token(-1);
2978 throw new ParseException();
2982 static final public void LocalVariableDeclaration() throws ParseException {
2983 LocalVariableDeclarator();
2986 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2991 jj_la1[88] = jj_gen;
2994 jj_consume_token(COMMA);
2995 LocalVariableDeclarator();
2999 static final public void LocalVariableDeclarator() throws ParseException {
3000 VariableDeclaratorId();
3001 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3003 jj_consume_token(ASSIGN);
3007 jj_la1[89] = jj_gen;
3012 static final public void EmptyStatement() throws ParseException {
3013 jj_consume_token(SEMICOLON);
3016 static final public void StatementExpression() throws ParseException {
3017 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3020 PreIncDecExpression();
3027 PrimaryExpression();
3028 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3043 case RSIGNEDSHIFTASSIGN:
3044 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3046 jj_consume_token(INCR);
3049 jj_consume_token(DECR);
3063 case RSIGNEDSHIFTASSIGN:
3064 AssignmentOperator();
3068 jj_la1[90] = jj_gen;
3069 jj_consume_token(-1);
3070 throw new ParseException();
3074 jj_la1[91] = jj_gen;
3079 jj_la1[92] = jj_gen;
3080 jj_consume_token(-1);
3081 throw new ParseException();
3085 static final public void SwitchStatement() throws ParseException {
3086 final int pos = jj_input_stream.getPosition();
3087 jj_consume_token(SWITCH);
3089 jj_consume_token(LPAREN);
3090 } catch (ParseException e) {
3091 errorMessage = "'(' expected after 'switch'";
3093 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3094 errorEnd = jj_input_stream.getPosition() + 1;
3095 {if (true) throw e;}
3099 jj_consume_token(RPAREN);
3100 } catch (ParseException e) {
3101 errorMessage = "')' expected";
3103 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3104 errorEnd = jj_input_stream.getPosition() + 1;
3105 {if (true) throw e;}
3107 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3109 switchStatementBrace();
3112 switchStatementColon(pos, pos + 6);
3115 jj_la1[93] = jj_gen;
3116 jj_consume_token(-1);
3117 throw new ParseException();
3121 static final public void switchStatementBrace() throws ParseException {
3122 jj_consume_token(LBRACE);
3125 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3131 jj_la1[94] = jj_gen;
3137 jj_consume_token(RBRACE);
3138 } catch (ParseException e) {
3139 errorMessage = "'}' expected";
3141 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3142 errorEnd = jj_input_stream.getPosition() + 1;
3143 {if (true) throw e;}
3148 * A Switch statement with : ... endswitch;
3149 * @param start the begin offset of the switch
3150 * @param end the end offset of the switch
3152 static final public void switchStatementColon(final int start, final int end) throws ParseException {
3153 jj_consume_token(COLON);
3155 setMarker(fileToParse,
3156 "Ugly syntax detected, you should switch () {...} instead of switch (): ... enswitch;",
3160 "Line " + token.beginLine);
3161 } catch (CoreException e) {
3162 PHPeclipsePlugin.log(e);
3166 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3172 jj_la1[95] = jj_gen;
3178 jj_consume_token(ENDSWITCH);
3179 } catch (ParseException e) {
3180 errorMessage = "'endswitch' expected";
3182 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3183 errorEnd = jj_input_stream.getPosition() + 1;
3184 {if (true) throw e;}
3187 jj_consume_token(SEMICOLON);
3188 } catch (ParseException e) {
3189 errorMessage = "';' expected after 'endswitch' keyword";
3191 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3192 errorEnd = jj_input_stream.getPosition() + 1;
3193 {if (true) throw e;}
3197 static final public void switchLabel0() throws ParseException {
3198 Token breakToken = null;
3200 line = SwitchLabel();
3203 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3229 case INTEGER_LITERAL:
3230 case FLOATING_POINT_LITERAL:
3231 case STRING_LITERAL:
3248 jj_la1[96] = jj_gen;
3251 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3276 case INTEGER_LITERAL:
3277 case FLOATING_POINT_LITERAL:
3278 case STRING_LITERAL:
3292 BlockStatementNoBreak();
3298 jj_la1[97] = jj_gen;
3299 jj_consume_token(-1);
3300 throw new ParseException();
3303 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3305 breakToken = BreakStatement();
3308 jj_la1[98] = jj_gen;
3312 if (breakToken == null) {
3313 setMarker(fileToParse,
3314 "You should use put a 'break' at the end of your statement",
3319 } catch (CoreException e) {
3320 PHPeclipsePlugin.log(e);
3324 static final public Token BreakStatement() throws ParseException {
3326 token = jj_consume_token(BREAK);
3327 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3335 case INTEGER_LITERAL:
3336 case FLOATING_POINT_LITERAL:
3337 case STRING_LITERAL:
3352 jj_la1[99] = jj_gen;
3356 jj_consume_token(SEMICOLON);
3357 } catch (ParseException e) {
3358 errorMessage = "';' expected after 'break' keyword";
3360 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3361 errorEnd = jj_input_stream.getPosition() + 1;
3362 {if (true) throw e;}
3364 {if (true) return token;}
3365 throw new Error("Missing return statement in function");
3368 static final public int SwitchLabel() throws ParseException {
3370 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3372 token = jj_consume_token(CASE);
3375 } catch (ParseException e) {
3376 if (errorMessage != null) {if (true) throw e;}
3377 errorMessage = "expression expected after 'case' keyword";
3379 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3380 errorEnd = jj_input_stream.getPosition() + 1;
3381 {if (true) throw e;}
3384 jj_consume_token(COLON);
3385 } catch (ParseException e) {
3386 errorMessage = "':' expected after case expression";
3388 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3389 errorEnd = jj_input_stream.getPosition() + 1;
3390 {if (true) throw e;}
3392 {if (true) return token.beginLine;}
3395 token = jj_consume_token(_DEFAULT);
3397 jj_consume_token(COLON);
3398 } catch (ParseException e) {
3399 errorMessage = "':' expected after 'default' keyword";
3401 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3402 errorEnd = jj_input_stream.getPosition() + 1;
3403 {if (true) throw e;}
3405 {if (true) return token.beginLine;}
3408 jj_la1[100] = jj_gen;
3409 jj_consume_token(-1);
3410 throw new ParseException();
3412 throw new Error("Missing return statement in function");
3415 static final public void IfStatement() throws ParseException {
3417 final int pos = jj_input_stream.getPosition();
3418 token = jj_consume_token(IF);
3420 IfStatement0(pos,pos+token.image.length());
3423 static final public void Condition(final String keyword) throws ParseException {
3425 jj_consume_token(LPAREN);
3426 } catch (ParseException e) {
3427 errorMessage = "'(' expected after " + keyword + " keyword";
3429 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length();
3430 errorEnd = errorStart +1;
3431 processParseException(e);
3435 jj_consume_token(RPAREN);
3436 } catch (ParseException e) {
3437 errorMessage = "')' expected after " + keyword + " keyword";
3439 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3440 errorEnd = jj_input_stream.getPosition() + 1;
3441 {if (true) throw e;}
3445 static final public void IfStatement0(final int start,final int end) throws ParseException {
3446 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3448 jj_consume_token(COLON);
3451 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3476 case INTEGER_LITERAL:
3477 case FLOATING_POINT_LITERAL:
3478 case STRING_LITERAL:
3495 jj_la1[101] = jj_gen;
3498 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3522 case INTEGER_LITERAL:
3523 case FLOATING_POINT_LITERAL:
3524 case STRING_LITERAL:
3544 jj_la1[102] = jj_gen;
3545 jj_consume_token(-1);
3546 throw new ParseException();
3551 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3556 jj_la1[103] = jj_gen;
3559 ElseIfStatementColon();
3561 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3563 ElseStatementColon();
3566 jj_la1[104] = jj_gen;
3570 setMarker(fileToParse,
3571 "Ugly syntax detected, you should if () {...} instead of if (): ... endif;",
3575 "Line " + token.beginLine);
3576 } catch (CoreException e) {
3577 PHPeclipsePlugin.log(e);
3580 jj_consume_token(ENDIF);
3581 } catch (ParseException e) {
3582 errorMessage = "'endif' 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 jj_consume_token(SEMICOLON);
3590 } catch (ParseException e) {
3591 errorMessage = "';' expected after 'endif' keyword";
3593 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3594 errorEnd = jj_input_stream.getPosition() + 1;
3595 {if (true) throw e;}
3622 case INTEGER_LITERAL:
3623 case FLOATING_POINT_LITERAL:
3624 case STRING_LITERAL:
3638 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3662 case INTEGER_LITERAL:
3663 case FLOATING_POINT_LITERAL:
3664 case STRING_LITERAL:
3684 jj_la1[105] = jj_gen;
3685 jj_consume_token(-1);
3686 throw new ParseException();
3690 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3695 jj_la1[106] = jj_gen;
3700 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3702 jj_consume_token(ELSE);
3705 } catch (ParseException e) {
3706 if (errorMessage != null) {
3707 {if (true) throw e;}
3709 errorMessage = "unexpected token '"+e.currentToken.next.image+"', a statement was expected";
3711 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3712 errorEnd = jj_input_stream.getPosition() + 1;
3713 {if (true) throw e;}
3717 jj_la1[107] = jj_gen;
3722 jj_la1[108] = jj_gen;
3723 jj_consume_token(-1);
3724 throw new ParseException();
3728 static final public void ElseIfStatementColon() throws ParseException {
3729 jj_consume_token(ELSEIF);
3730 Condition("elseif");
3731 jj_consume_token(COLON);
3734 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3759 case INTEGER_LITERAL:
3760 case FLOATING_POINT_LITERAL:
3761 case STRING_LITERAL:
3778 jj_la1[109] = jj_gen;
3781 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3805 case INTEGER_LITERAL:
3806 case FLOATING_POINT_LITERAL:
3807 case STRING_LITERAL:
3827 jj_la1[110] = jj_gen;
3828 jj_consume_token(-1);
3829 throw new ParseException();
3834 static final public void ElseStatementColon() throws ParseException {
3835 jj_consume_token(ELSE);
3836 jj_consume_token(COLON);
3839 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3864 case INTEGER_LITERAL:
3865 case FLOATING_POINT_LITERAL:
3866 case STRING_LITERAL:
3883 jj_la1[111] = jj_gen;
3886 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3910 case INTEGER_LITERAL:
3911 case FLOATING_POINT_LITERAL:
3912 case STRING_LITERAL:
3932 jj_la1[112] = jj_gen;
3933 jj_consume_token(-1);
3934 throw new ParseException();
3939 static final public void ElseIfStatement() throws ParseException {
3940 jj_consume_token(ELSEIF);
3941 Condition("elseif");
3945 static final public void WhileStatement() throws ParseException {
3947 final int pos = jj_input_stream.getPosition();
3948 token = jj_consume_token(WHILE);
3950 WhileStatement0(pos,pos + token.image.length());
3953 static final public void WhileStatement0(final int start, final int end) throws ParseException {
3954 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3956 jj_consume_token(COLON);
3959 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3983 case INTEGER_LITERAL:
3984 case FLOATING_POINT_LITERAL:
3985 case STRING_LITERAL:
4002 jj_la1[113] = jj_gen;
4008 setMarker(fileToParse,
4009 "Ugly syntax detected, you should while () {...} instead of while (): ... endwhile;",
4013 "Line " + token.beginLine);
4014 } catch (CoreException e) {
4015 PHPeclipsePlugin.log(e);
4018 jj_consume_token(ENDWHILE);
4019 } catch (ParseException e) {
4020 errorMessage = "'endwhile' expected";
4022 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
4023 errorEnd = jj_input_stream.getPosition() + 1;
4024 {if (true) throw e;}
4027 jj_consume_token(SEMICOLON);
4028 } catch (ParseException e) {
4029 errorMessage = "';' expected after 'endwhile' keyword";
4031 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
4032 errorEnd = jj_input_stream.getPosition() + 1;
4033 {if (true) throw e;}
4059 case INTEGER_LITERAL:
4060 case FLOATING_POINT_LITERAL:
4061 case STRING_LITERAL:
4078 jj_la1[114] = jj_gen;
4079 jj_consume_token(-1);
4080 throw new ParseException();
4084 static final public void DoStatement() throws ParseException {
4085 jj_consume_token(DO);
4087 jj_consume_token(WHILE);
4090 jj_consume_token(SEMICOLON);
4091 } catch (ParseException e) {
4092 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"'. A ';' was expected";
4094 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
4095 errorEnd = jj_input_stream.getPosition() + 1;
4096 {if (true) throw e;}
4100 static final public void ForeachStatement() throws ParseException {
4101 jj_consume_token(FOREACH);
4103 jj_consume_token(LPAREN);
4104 } catch (ParseException e) {
4105 errorMessage = "'(' expected after 'foreach' keyword";
4107 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
4108 errorEnd = jj_input_stream.getPosition() + 1;
4109 {if (true) throw e;}
4113 } catch (ParseException e) {
4114 errorMessage = "variable expected";
4116 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
4117 errorEnd = jj_input_stream.getPosition() + 1;
4118 {if (true) throw e;}
4122 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4128 jj_la1[115] = jj_gen;
4134 jj_consume_token(AS);
4135 } catch (ParseException e) {
4136 errorMessage = "'as' expected";
4138 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
4139 errorEnd = jj_input_stream.getPosition() + 1;
4140 {if (true) throw e;}
4144 } catch (ParseException e) {
4145 errorMessage = "variable expected";
4147 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
4148 errorEnd = jj_input_stream.getPosition() + 1;
4149 {if (true) throw e;}
4151 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4153 jj_consume_token(ARRAYASSIGN);
4157 jj_la1[116] = jj_gen;
4161 jj_consume_token(RPAREN);
4162 } catch (ParseException e) {
4163 errorMessage = "')' expected after 'foreach' keyword";
4165 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
4166 errorEnd = jj_input_stream.getPosition() + 1;
4167 {if (true) throw e;}
4171 } catch (ParseException e) {
4172 if (errorMessage != null) {if (true) throw e;}
4173 errorMessage = "statement expected";
4175 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
4176 errorEnd = jj_input_stream.getPosition() + 1;
4177 {if (true) throw e;}
4181 static final public void ForStatement() throws ParseException {
4183 final int pos = jj_input_stream.getPosition();
4184 token = jj_consume_token(FOR);
4186 jj_consume_token(LPAREN);
4187 } catch (ParseException e) {
4188 errorMessage = "'(' expected after 'for' keyword";
4190 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
4191 errorEnd = jj_input_stream.getPosition() + 1;
4192 {if (true) throw e;}
4194 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4205 jj_la1[117] = jj_gen;
4208 jj_consume_token(SEMICOLON);
4209 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4217 case INTEGER_LITERAL:
4218 case FLOATING_POINT_LITERAL:
4219 case STRING_LITERAL:
4234 jj_la1[118] = jj_gen;
4237 jj_consume_token(SEMICOLON);
4238 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4246 StatementExpressionList();
4249 jj_la1[119] = jj_gen;
4252 jj_consume_token(RPAREN);
4253 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4277 case INTEGER_LITERAL:
4278 case FLOATING_POINT_LITERAL:
4279 case STRING_LITERAL:
4296 jj_consume_token(COLON);
4299 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4323 case INTEGER_LITERAL:
4324 case FLOATING_POINT_LITERAL:
4325 case STRING_LITERAL:
4342 jj_la1[120] = jj_gen;
4348 setMarker(fileToParse,
4349 "Ugly syntax detected, you should for () {...} instead of for (): ... endfor;",
4351 pos+token.image.length(),
4353 "Line " + token.beginLine);
4354 } catch (CoreException e) {
4355 PHPeclipsePlugin.log(e);
4358 jj_consume_token(ENDFOR);
4359 } catch (ParseException e) {
4360 errorMessage = "'endfor' expected";
4362 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
4363 errorEnd = jj_input_stream.getPosition() + 1;
4364 {if (true) throw e;}
4367 jj_consume_token(SEMICOLON);
4368 } catch (ParseException e) {
4369 errorMessage = "';' expected after 'endfor' keyword";
4371 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
4372 errorEnd = jj_input_stream.getPosition() + 1;
4373 {if (true) throw e;}
4377 jj_la1[121] = jj_gen;
4378 jj_consume_token(-1);
4379 throw new ParseException();
4383 static final public void ForInit() throws ParseException {
4384 if (jj_2_8(2147483647)) {
4385 LocalVariableDeclaration();
4387 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4395 StatementExpressionList();
4398 jj_la1[122] = jj_gen;
4399 jj_consume_token(-1);
4400 throw new ParseException();
4405 static final public void StatementExpressionList() throws ParseException {
4406 StatementExpression();
4409 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4414 jj_la1[123] = jj_gen;
4417 jj_consume_token(COMMA);
4418 StatementExpression();
4422 static final public void ContinueStatement() throws ParseException {
4423 jj_consume_token(CONTINUE);
4424 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4432 case INTEGER_LITERAL:
4433 case FLOATING_POINT_LITERAL:
4434 case STRING_LITERAL:
4449 jj_la1[124] = jj_gen;
4453 jj_consume_token(SEMICOLON);
4454 } catch (ParseException e) {
4455 errorMessage = "';' expected after 'continue' statement";
4457 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
4458 errorEnd = jj_input_stream.getPosition() + 1;
4459 {if (true) throw e;}
4463 static final public void ReturnStatement() throws ParseException {
4464 jj_consume_token(RETURN);
4465 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4473 case INTEGER_LITERAL:
4474 case FLOATING_POINT_LITERAL:
4475 case STRING_LITERAL:
4490 jj_la1[125] = jj_gen;
4494 jj_consume_token(SEMICOLON);
4495 } catch (ParseException e) {
4496 errorMessage = "';' expected after 'return' statement";
4498 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
4499 errorEnd = jj_input_stream.getPosition() + 1;
4500 {if (true) throw e;}
4504 static final private boolean jj_2_1(int xla) {
4505 jj_la = xla; jj_lastpos = jj_scanpos = token;
4506 boolean retval = !jj_3_1();
4511 static final private boolean jj_2_2(int xla) {
4512 jj_la = xla; jj_lastpos = jj_scanpos = token;
4513 boolean retval = !jj_3_2();
4518 static final private boolean jj_2_3(int xla) {
4519 jj_la = xla; jj_lastpos = jj_scanpos = token;
4520 boolean retval = !jj_3_3();
4525 static final private boolean jj_2_4(int xla) {
4526 jj_la = xla; jj_lastpos = jj_scanpos = token;
4527 boolean retval = !jj_3_4();
4532 static final private boolean jj_2_5(int xla) {
4533 jj_la = xla; jj_lastpos = jj_scanpos = token;
4534 boolean retval = !jj_3_5();
4539 static final private boolean jj_2_6(int xla) {
4540 jj_la = xla; jj_lastpos = jj_scanpos = token;
4541 boolean retval = !jj_3_6();
4546 static final private boolean jj_2_7(int xla) {
4547 jj_la = xla; jj_lastpos = jj_scanpos = token;
4548 boolean retval = !jj_3_7();
4553 static final private boolean jj_2_8(int xla) {
4554 jj_la = xla; jj_lastpos = jj_scanpos = token;
4555 boolean retval = !jj_3_8();
4560 static final private boolean jj_3R_46() {
4561 if (jj_scan_token(ARRAY)) return true;
4562 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4566 static final private boolean jj_3R_167() {
4567 if (jj_scan_token(LPAREN)) return true;
4568 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4573 if (jj_3R_180()) return true;
4574 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4575 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4576 if (jj_scan_token(RPAREN)) return true;
4577 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4578 if (jj_3R_141()) return true;
4579 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4583 static final private boolean jj_3_3() {
4584 if (jj_3R_44()) return true;
4585 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4589 static final private boolean jj_3R_45() {
4590 if (jj_3R_54()) return true;
4591 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4595 static final private boolean jj_3R_58() {
4596 if (jj_3R_88()) return true;
4597 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4601 static final private boolean jj_3R_102() {
4602 if (jj_scan_token(COMMA)) return true;
4603 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4604 if (jj_3R_52()) return true;
4605 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4609 static final private boolean jj_3R_57() {
4610 if (jj_3R_44()) return true;
4611 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4615 static final private boolean jj_3R_56() {
4616 if (jj_3R_87()) return true;
4617 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4621 static final private boolean jj_3R_101() {
4622 if (jj_3R_52()) return true;
4623 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4627 static final private boolean jj_3_4() {
4628 if (jj_scan_token(LPAREN)) return true;
4629 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4634 if (jj_3R_46()) return true;
4635 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4636 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4637 if (jj_scan_token(RPAREN)) return true;
4638 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4642 static final private boolean jj_3R_47() {
4651 if (jj_3R_58()) return true;
4652 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4653 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4654 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4655 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4659 static final private boolean jj_3R_55() {
4660 if (jj_3R_86()) return true;
4661 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4665 static final private boolean jj_3R_165() {
4666 if (jj_scan_token(LPAREN)) return true;
4667 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4668 if (jj_3R_47()) return true;
4669 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4670 if (jj_scan_token(RPAREN)) return true;
4671 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4675 static final private boolean jj_3R_164() {
4676 if (jj_3R_169()) return true;
4677 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4681 static final private boolean jj_3R_160() {
4682 if (jj_scan_token(DECR)) return true;
4683 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4687 static final private boolean jj_3R_163() {
4688 if (jj_3R_168()) return true;
4689 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4693 static final private boolean jj_3R_162() {
4694 if (jj_3R_167()) return true;
4695 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4699 static final private boolean jj_3R_87() {
4700 if (jj_scan_token(LIST)) return true;
4701 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4702 if (jj_scan_token(LPAREN)) return true;
4703 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4706 if (jj_3R_101()) jj_scanpos = xsp;
4707 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4710 if (jj_3R_102()) { jj_scanpos = xsp; break; }
4711 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4713 if (jj_scan_token(RPAREN)) return true;
4714 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4716 if (jj_3R_103()) jj_scanpos = xsp;
4717 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4721 static final private boolean jj_3R_85() {
4722 if (jj_scan_token(OBJECT)) return true;
4723 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4727 static final private boolean jj_3R_158() {
4738 if (jj_3R_165()) return true;
4739 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4740 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4741 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4742 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4743 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4747 static final private boolean jj_3R_161() {
4748 if (jj_scan_token(BANG)) return true;
4749 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4750 if (jj_3R_141()) return true;
4751 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4755 static final private boolean jj_3R_84() {
4756 if (jj_scan_token(INTEGER)) return true;
4757 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4761 static final private boolean jj_3R_83() {
4762 if (jj_scan_token(INT)) return true;
4763 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4767 static final private boolean jj_3R_82() {
4768 if (jj_scan_token(FLOAT)) return true;
4769 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4773 static final private boolean jj_3R_159() {
4774 if (jj_scan_token(INCR)) return true;
4775 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4779 static final private boolean jj_3R_156() {
4780 if (jj_scan_token(MINUS)) return true;
4781 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4785 static final private boolean jj_3R_157() {
4790 if (jj_3R_160()) return true;
4791 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4792 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4793 if (jj_3R_166()) return true;
4794 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4798 static final private boolean jj_3R_81() {
4799 if (jj_scan_token(DOUBLE)) return true;
4800 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4804 static final private boolean jj_3R_86() {
4805 if (jj_scan_token(PRINT)) return true;
4806 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4807 if (jj_3R_47()) return true;
4808 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4812 static final private boolean jj_3R_80() {
4813 if (jj_scan_token(REAL)) return true;
4814 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4818 static final private boolean jj_3R_79() {
4819 if (jj_scan_token(BOOLEAN)) return true;
4820 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4824 static final private boolean jj_3R_78() {
4825 if (jj_scan_token(BOOL)) return true;
4826 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4830 static final private boolean jj_3R_149() {
4831 if (jj_scan_token(REM)) return true;
4832 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4836 static final private boolean jj_3R_154() {
4837 if (jj_3R_158()) return true;
4838 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4842 static final private boolean jj_3R_77() {
4843 if (jj_scan_token(STRING)) return true;
4844 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4848 static final private boolean jj_3R_54() {
4867 if (jj_3R_85()) return true;
4868 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4869 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4870 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4871 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4872 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4873 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4874 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4875 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4876 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4880 static final private boolean jj_3R_153() {
4881 if (jj_3R_157()) return true;
4882 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4886 static final private boolean jj_3R_155() {
4887 if (jj_scan_token(PLUS)) return true;
4888 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4892 static final private boolean jj_3R_150() {
4899 if (jj_3R_154()) return true;
4900 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4901 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4902 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4906 static final private boolean jj_3R_152() {
4911 if (jj_3R_156()) return true;
4912 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4913 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4914 if (jj_3R_141()) return true;
4915 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4919 static final private boolean jj_3R_151() {
4920 if (jj_scan_token(AT)) return true;
4921 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4925 static final private boolean jj_3R_146() {
4929 if (jj_3R_151()) { jj_scanpos = xsp; break; }
4930 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4932 if (jj_3R_150()) return true;
4933 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4937 static final private boolean jj_3R_148() {
4938 if (jj_scan_token(SLASH)) return true;
4939 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4943 static final private boolean jj_3R_141() {
4948 if (jj_3R_146()) return true;
4949 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4950 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4954 static final private boolean jj_3R_145() {
4955 if (jj_scan_token(BIT_AND)) return true;
4956 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4957 if (jj_3R_150()) return true;
4958 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4962 static final private boolean jj_3R_140() {
4963 if (jj_scan_token(RUNSIGNEDSHIFT)) return true;
4964 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4968 static final private boolean jj_3R_147() {
4969 if (jj_scan_token(STAR)) return true;
4970 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4974 static final private boolean jj_3R_142() {
4981 if (jj_3R_149()) return true;
4982 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4983 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4984 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4985 if (jj_3R_141()) return true;
4986 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4990 static final private boolean jj_3R_144() {
4991 if (jj_scan_token(MINUS)) return true;
4992 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4996 static final private boolean jj_3R_135() {
4997 if (jj_scan_token(GE)) return true;
4998 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5002 static final private boolean jj_3R_136() {
5003 if (jj_3R_141()) return true;
5004 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5008 if (jj_3R_142()) { jj_scanpos = xsp; break; }
5009 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5014 static final private boolean jj_3R_139() {
5015 if (jj_scan_token(RSIGNEDSHIFT)) return true;
5016 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5020 static final private boolean jj_3R_134() {
5021 if (jj_scan_token(LE)) return true;
5022 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5026 static final private boolean jj_3R_143() {
5027 if (jj_scan_token(PLUS)) return true;
5028 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5032 static final private boolean jj_3R_137() {
5037 if (jj_3R_144()) return true;
5038 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5039 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5040 if (jj_3R_136()) return true;
5041 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5045 static final private boolean jj_3R_130() {
5046 if (jj_3R_136()) return true;
5047 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5051 if (jj_3R_137()) { jj_scanpos = xsp; break; }
5052 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5057 static final private boolean jj_3R_133() {
5058 if (jj_scan_token(GT)) return true;
5059 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5063 static final private boolean jj_3_7() {
5064 if (jj_3R_48()) return true;
5065 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5069 static final private boolean jj_3R_138() {
5070 if (jj_scan_token(LSHIFT)) return true;
5071 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5075 static final private boolean jj_3R_131() {
5082 if (jj_3R_140()) return true;
5083 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5084 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5085 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5086 if (jj_3R_130()) return true;
5087 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5091 static final private boolean jj_3R_123() {
5092 if (jj_3R_130()) return true;
5093 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5097 if (jj_3R_131()) { jj_scanpos = xsp; break; }
5098 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5103 static final private boolean jj_3_8() {
5104 if (jj_3R_49()) return true;
5105 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5109 static final private boolean jj_3_6() {
5110 if (jj_3R_47()) return true;
5111 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5112 if (jj_scan_token(SEMICOLON)) return true;
5113 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5117 static final private boolean jj_3R_132() {
5118 if (jj_scan_token(LT)) return true;
5119 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5123 static final private boolean jj_3R_124() {
5132 if (jj_3R_135()) return true;
5133 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5134 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5135 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5136 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5137 if (jj_3R_123()) return true;
5138 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5142 static final private boolean jj_3R_121() {
5143 if (jj_3R_123()) return true;
5144 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5148 if (jj_3R_124()) { jj_scanpos = xsp; break; }
5149 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5154 static final private boolean jj_3R_205() {
5155 if (jj_scan_token(COMMA)) return true;
5156 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5157 if (jj_3R_47()) return true;
5158 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5162 static final private boolean jj_3R_204() {
5163 if (jj_3R_47()) return true;
5164 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5168 if (jj_3R_205()) { jj_scanpos = xsp; break; }
5169 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5174 static final private boolean jj_3R_129() {
5175 if (jj_scan_token(TRIPLEEQUAL)) return true;
5176 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5180 static final private boolean jj_3R_128() {
5181 if (jj_scan_token(BANGDOUBLEEQUAL)) return true;
5182 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5186 static final private boolean jj_3R_127() {
5187 if (jj_scan_token(NE)) return true;
5188 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5192 static final private boolean jj_3R_126() {
5193 if (jj_scan_token(DIF)) return true;
5194 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5198 static final private boolean jj_3R_125() {
5199 if (jj_scan_token(EQ)) return true;
5200 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5204 static final private boolean jj_3R_202() {
5205 if (jj_3R_204()) return true;
5206 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5210 static final private boolean jj_3R_200() {
5211 if (jj_scan_token(COMMA)) return true;
5212 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5216 static final private boolean jj_3R_122() {
5227 if (jj_3R_129()) return true;
5228 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5229 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5230 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5231 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5232 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5233 if (jj_3R_121()) return true;
5234 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5238 static final private boolean jj_3_2() {
5239 if (jj_scan_token(COMMA)) return true;
5240 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5241 if (jj_3R_43()) return true;
5242 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5246 static final private boolean jj_3R_119() {
5247 if (jj_3R_121()) return true;
5248 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5252 if (jj_3R_122()) { jj_scanpos = xsp; break; }
5253 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5258 static final private boolean jj_3R_199() {
5259 if (jj_3R_43()) return true;
5260 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5264 if (jj_3_2()) { jj_scanpos = xsp; break; }
5265 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5270 static final private boolean jj_3R_201() {
5271 if (jj_scan_token(LPAREN)) return true;
5272 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5275 if (jj_3R_202()) jj_scanpos = xsp;
5276 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5277 if (jj_scan_token(RPAREN)) return true;
5278 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5282 static final private boolean jj_3R_194() {
5283 if (jj_scan_token(LPAREN)) return true;
5284 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5287 if (jj_3R_199()) jj_scanpos = xsp;
5288 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5290 if (jj_3R_200()) jj_scanpos = xsp;
5291 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5292 if (jj_scan_token(RPAREN)) return true;
5293 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5297 static final private boolean jj_3R_120() {
5298 if (jj_scan_token(BIT_AND)) return true;
5299 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5300 if (jj_3R_119()) return true;
5301 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5305 static final private boolean jj_3R_196() {
5306 if (jj_scan_token(FALSE)) return true;
5307 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5311 static final private boolean jj_3R_195() {
5312 if (jj_scan_token(TRUE)) return true;
5313 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5317 static final private boolean jj_3R_185() {
5322 if (jj_3R_196()) return true;
5323 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5324 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5328 static final private boolean jj_3R_117() {
5329 if (jj_3R_119()) return true;
5330 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5334 if (jj_3R_120()) { jj_scanpos = xsp; break; }
5335 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5340 static final private boolean jj_3R_203() {
5341 if (jj_scan_token(ARRAYASSIGN)) return true;
5342 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5343 if (jj_3R_47()) return true;
5344 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5348 static final private boolean jj_3R_43() {
5349 if (jj_3R_47()) return true;
5350 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5353 if (jj_3R_203()) jj_scanpos = xsp;
5354 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5358 static final private boolean jj_3R_176() {
5359 if (jj_scan_token(NULL)) return true;
5360 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5364 static final private boolean jj_3R_89() {
5365 if (jj_scan_token(ASSIGN)) return true;
5366 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5367 if (jj_3R_47()) return true;
5368 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5372 static final private boolean jj_3R_95() {
5373 if (jj_3R_54()) return true;
5374 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5378 static final private boolean jj_3R_175() {
5379 if (jj_3R_185()) return true;
5380 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5384 static final private boolean jj_3R_60() {
5385 if (jj_scan_token(COMMA)) return true;
5386 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5387 if (jj_3R_59()) return true;
5388 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5392 static final private boolean jj_3R_174() {
5393 if (jj_scan_token(STRING_LITERAL)) return true;
5394 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5398 static final private boolean jj_3R_118() {
5399 if (jj_scan_token(XOR)) return true;
5400 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5401 if (jj_3R_117()) return true;
5402 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5406 static final private boolean jj_3R_173() {
5407 if (jj_scan_token(FLOATING_POINT_LITERAL)) return true;
5408 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5412 static final private boolean jj_3R_169() {
5423 if (jj_3R_176()) return true;
5424 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5425 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5426 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5427 } else 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_172() {
5433 if (jj_scan_token(INTEGER_LITERAL)) return true;
5434 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5438 static final private boolean jj_3R_115() {
5439 if (jj_3R_117()) return true;
5440 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5444 if (jj_3R_118()) { jj_scanpos = xsp; break; }
5445 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5450 static final private boolean jj_3R_94() {
5451 if (jj_3R_47()) return true;
5452 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5456 static final private boolean jj_3R_62() {
5461 if (jj_3R_95()) return true;
5462 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5463 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5467 static final private boolean jj_3R_59() {
5468 if (jj_3R_52()) return true;
5469 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5472 if (jj_3R_89()) jj_scanpos = xsp;
5473 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5477 static final private boolean jj_3R_116() {
5478 if (jj_scan_token(BIT_OR)) return true;
5479 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5480 if (jj_3R_115()) return true;
5481 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5485 static final private boolean jj_3R_111() {
5486 if (jj_3R_115()) return true;
5487 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5491 if (jj_3R_116()) { jj_scanpos = xsp; break; }
5492 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5497 static final private boolean jj_3R_49() {
5498 if (jj_3R_59()) return true;
5499 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5503 if (jj_3R_60()) { jj_scanpos = xsp; break; }
5504 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5509 static final private boolean jj_3R_51() {
5510 if (jj_scan_token(LBRACKET)) return true;
5511 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5514 if (jj_3R_62()) jj_scanpos = xsp;
5515 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5516 if (jj_scan_token(RBRACKET)) return true;
5517 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5521 static final private boolean jj_3R_114() {
5522 if (jj_scan_token(_ANDL)) return true;
5523 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5527 static final private boolean jj_3R_112() {
5528 if (jj_scan_token(DOT)) return true;
5529 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5530 if (jj_3R_111()) return true;
5531 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5535 static final private boolean jj_3R_106() {
5536 if (jj_3R_111()) return true;
5537 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5541 if (jj_3R_112()) { jj_scanpos = xsp; break; }
5542 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5547 static final private boolean jj_3R_93() {
5548 if (jj_scan_token(DOLLAR_ID)) return true;
5549 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5553 static final private boolean jj_3R_50() {
5554 if (jj_scan_token(CLASSACCESS)) return true;
5555 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5556 if (jj_3R_61()) return true;
5557 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5561 static final private boolean jj_3R_42() {
5566 if (jj_3R_51()) return true;
5567 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5568 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5572 static final private boolean jj_3R_110() {
5573 if (jj_scan_token(LBRACE)) return true;
5574 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5575 if (jj_3R_47()) return true;
5576 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5577 if (jj_scan_token(RBRACE)) return true;
5578 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5582 static final private boolean jj_3R_198() {
5583 if (jj_3R_42()) return true;
5584 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5588 static final private boolean jj_3R_109() {
5589 if (jj_scan_token(_ORL)) return true;
5590 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5594 static final private boolean jj_3R_92() {
5595 if (jj_scan_token(DOLLAR)) return true;
5596 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5597 if (jj_3R_61()) return true;
5598 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5602 static final private boolean jj_3R_113() {
5603 if (jj_scan_token(SC_AND)) return true;
5604 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5608 static final private boolean jj_3R_197() {
5609 if (jj_3R_201()) return true;
5610 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5614 static final private boolean jj_3R_193() {
5619 if (jj_3R_198()) return true;
5620 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5621 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5625 static final private boolean jj_3R_107() {
5630 if (jj_3R_114()) return true;
5631 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5632 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5633 if (jj_3R_106()) return true;
5634 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5638 static final private boolean jj_3R_104() {
5639 if (jj_3R_106()) return true;
5640 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5644 if (jj_3R_107()) { jj_scanpos = xsp; break; }
5645 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5650 static final private boolean jj_3R_99() {
5651 if (jj_scan_token(HOOK)) return true;
5652 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5653 if (jj_3R_47()) return true;
5654 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5655 if (jj_scan_token(COLON)) return true;
5656 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5657 if (jj_3R_88()) return true;
5658 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5662 static final private boolean jj_3R_192() {
5663 if (jj_3R_52()) return true;
5664 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5668 static final private boolean jj_3R_191() {
5669 if (jj_scan_token(IDENTIFIER)) return true;
5670 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5674 static final private boolean jj_3R_182() {
5679 if (jj_3R_192()) return true;
5680 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5681 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5685 static final private boolean jj_3R_91() {
5686 if (jj_scan_token(IDENTIFIER)) return true;
5687 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5690 if (jj_3R_110()) jj_scanpos = xsp;
5691 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5695 static final private boolean jj_3R_90() {
5696 if (jj_scan_token(LBRACE)) return true;
5697 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5698 if (jj_3R_47()) return true;
5699 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5700 if (jj_scan_token(RBRACE)) return true;
5701 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5705 static final private boolean jj_3R_61() {
5714 if (jj_3R_93()) return true;
5715 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5716 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5717 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5718 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5722 static final private boolean jj_3R_100() {
5723 if (jj_scan_token(LBRACE)) return true;
5724 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5725 if (jj_3R_47()) return true;
5726 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5727 if (jj_scan_token(RBRACE)) return true;
5728 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5732 static final private boolean jj_3R_108() {
5733 if (jj_scan_token(SC_OR)) return true;
5734 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5738 static final private boolean jj_3R_105() {
5743 if (jj_3R_109()) return true;
5744 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5745 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5746 if (jj_3R_104()) return true;
5747 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5751 static final private boolean jj_3R_98() {
5752 if (jj_3R_104()) return true;
5753 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5757 if (jj_3R_105()) { jj_scanpos = xsp; break; }
5758 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5763 static final private boolean jj_3R_48() {
5764 if (jj_scan_token(IDENTIFIER)) return true;
5765 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5766 if (jj_scan_token(COLON)) return true;
5767 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5771 static final private boolean jj_3R_97() {
5772 if (jj_scan_token(DOLLAR)) return true;
5773 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5774 if (jj_3R_61()) return true;
5775 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5779 static final private boolean jj_3R_188() {
5780 if (jj_3R_52()) return true;
5781 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5785 static final private boolean jj_3R_96() {
5786 if (jj_scan_token(DOLLAR_ID)) return true;
5787 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5790 if (jj_3R_100()) jj_scanpos = xsp;
5791 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5795 static final private boolean jj_3R_63() {
5800 if (jj_3R_97()) return true;
5801 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5802 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5806 static final private boolean jj_3R_88() {
5807 if (jj_3R_98()) return true;
5808 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5811 if (jj_3R_99()) jj_scanpos = xsp;
5812 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5816 static final private boolean jj_3R_187() {
5817 if (jj_scan_token(NEW)) return true;
5818 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5819 if (jj_3R_182()) return true;
5820 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5824 static final private boolean jj_3R_190() {
5825 if (jj_scan_token(DECR)) return true;
5826 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5830 static final private boolean jj_3R_186() {
5831 if (jj_scan_token(IDENTIFIER)) return true;
5832 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5836 static final private boolean jj_3R_177() {
5843 if (jj_3R_188()) return true;
5844 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5845 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5846 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5850 static final private boolean jj_3R_76() {
5851 if (jj_scan_token(TILDEEQUAL)) return true;
5852 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5856 static final private boolean jj_3_1() {
5857 if (jj_3R_42()) return true;
5858 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5862 static final private boolean jj_3R_75() {
5863 if (jj_scan_token(DOTASSIGN)) return true;
5864 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5868 static final private boolean jj_3R_178() {
5869 if (jj_scan_token(ARRAY)) return true;
5870 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5871 if (jj_3R_194()) return true;
5872 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5876 static final private boolean jj_3R_74() {
5877 if (jj_scan_token(ORASSIGN)) return true;
5878 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5882 static final private boolean jj_3R_73() {
5883 if (jj_scan_token(XORASSIGN)) return true;
5884 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5888 static final private boolean jj_3R_72() {
5889 if (jj_scan_token(ANDASSIGN)) return true;
5890 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5894 static final private boolean jj_3R_52() {
5895 if (jj_3R_63()) return true;
5896 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5900 if (jj_3_1()) { jj_scanpos = xsp; break; }
5901 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5906 static final private boolean jj_3R_71() {
5907 if (jj_scan_token(RSIGNEDSHIFTASSIGN)) return true;
5908 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5912 static final private boolean jj_3R_189() {
5913 if (jj_scan_token(INCR)) return true;
5914 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5918 static final private boolean jj_3R_181() {
5923 if (jj_3R_190()) return true;
5924 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5925 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5929 static final private boolean jj_3R_70() {
5930 if (jj_scan_token(LSHIFTASSIGN)) return true;
5931 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5935 static final private boolean jj_3R_171() {
5936 if (jj_3R_178()) return true;
5937 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5941 static final private boolean jj_3R_184() {
5942 if (jj_3R_193()) return true;
5943 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5947 static final private boolean jj_3R_69() {
5948 if (jj_scan_token(MINUSASSIGN)) return true;
5949 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5953 static final private boolean jj_3R_68() {
5954 if (jj_scan_token(PLUSASSIGN)) return true;
5955 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5959 static final private boolean jj_3R_170() {
5960 if (jj_3R_177()) return true;
5961 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5965 if (jj_3R_184()) { jj_scanpos = xsp; break; }
5966 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5971 static final private boolean jj_3R_67() {
5972 if (jj_scan_token(REMASSIGN)) return true;
5973 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5977 static final private boolean jj_3R_66() {
5978 if (jj_scan_token(SLASHASSIGN)) return true;
5979 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5983 static final private boolean jj_3R_183() {
5984 if (jj_3R_193()) return true;
5985 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5989 static final private boolean jj_3R_65() {
5990 if (jj_scan_token(STARASSIGN)) return true;
5991 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5995 static final private boolean jj_3R_53() {
6022 if (jj_3R_76()) return true;
6023 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6024 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6025 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6026 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6027 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6028 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6029 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6030 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6031 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6032 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6033 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6034 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6035 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6039 static final private boolean jj_3R_64() {
6040 if (jj_scan_token(ASSIGN)) return true;
6041 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6045 static final private boolean jj_3R_180() {
6046 if (jj_scan_token(ARRAY)) return true;
6047 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6051 static final private boolean jj_3_5() {
6052 if (jj_scan_token(IDENTIFIER)) return true;
6053 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6054 if (jj_scan_token(STATICCLASSACCESS)) return true;
6055 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6056 if (jj_3R_182()) return true;
6057 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6061 if (jj_3R_183()) { jj_scanpos = xsp; break; }
6062 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6067 static final private boolean jj_3R_166() {
6074 if (jj_3R_171()) return true;
6075 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6076 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6077 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6081 static final private boolean jj_3R_103() {
6082 if (jj_scan_token(ASSIGN)) return true;
6083 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6084 if (jj_3R_47()) return true;
6085 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6089 static final private boolean jj_3R_179() {
6090 if (jj_3R_54()) return true;
6091 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6095 static final private boolean jj_3R_168() {
6096 if (jj_3R_166()) return true;
6097 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6100 if (jj_3R_181()) jj_scanpos = xsp;
6101 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6105 static final private boolean jj_3R_44() {
6106 if (jj_3R_52()) return true;
6107 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6108 if (jj_3R_53()) return true;
6109 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6110 if (jj_3R_47()) return true;
6111 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6115 static private boolean jj_initialized_once = false;
6116 static public PHPParserTokenManager token_source;
6117 static SimpleCharStream jj_input_stream;
6118 static public Token token, jj_nt;
6119 static private int jj_ntk;
6120 static private Token jj_scanpos, jj_lastpos;
6121 static private int jj_la;
6122 static public boolean lookingAhead = false;
6123 static private boolean jj_semLA;
6124 static private int jj_gen;
6125 static final private int[] jj_la1 = new int[126];
6126 static private int[] jj_la1_0;
6127 static private int[] jj_la1_1;
6128 static private int[] jj_la1_2;
6129 static private int[] jj_la1_3;
6130 static private int[] jj_la1_4;
6138 private static void jj_la1_0() {
6139 jj_la1_0 = new int[] {0xfcb0001e,0x6,0x6,0xfcb0001e,0x0,0xfcb00000,0x0,0x600000,0x600000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x4000000,0x0,0x34000000,0x0,0x0,0x0,0x0,0x0,0x0,0x30000000,0x4000000,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,0x0,0x4000000,0x4000000,0x0,0x0,0x0,0x0,0x4000000,0x0,0x4000000,0x0,0x0,0x34000000,0x34000000,0x0,0x0,0x0,0x34000000,0x0,0x0,0xc4800000,0xfc800000,0x8,0x6,0x80000000,0x0,0x0,0x0,0x0,0x0,0x0,0xfcb00010,0xfcb00010,0xfcb00000,0xf4b00000,0x0,0x0,0x0,0x0,0x4000000,0x0,0x0,0x0,0xf4b00010,0xf4b00010,0x8000000,0x34000000,0x0,0xfc800010,0xfc800010,0x1000000,0x2000000,0xfc800010,0x1000000,0x2000000,0xfc800010,0xfc800010,0xfc800010,0xfc800010,0xfc800010,0xfc800000,0xfc800000,0x0,0x0,0x4000000,0x34000000,0x4000000,0xfc800000,0xfc800000,0x4000000,0x0,0x34000000,0x34000000,};
6141 private static void jj_la1_1() {
6142 jj_la1_1 = new int[] {0x21d7541f,0x0,0x0,0x21d7541f,0x0,0x21d7541f,0x2000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xc20000,0x80,0xc30000,0x0,0x0,0x0,0x0,0x0,0x80000000,0x0,0xc30000,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,0x0,0xc30000,0x80000000,0x0,0x0,0x20,0x20,0x10000,0x10000,0x10000,0x0,0x20,0x80c30000,0x80c30000,0x20,0xc20000,0xc00000,0xc30000,0x0,0x0,0x2115541f,0x21d7541f,0x0,0x0,0x7,0x0,0x0,0x0,0x0,0x0,0x0,0x21d7541f,0x21d7541f,0x21d7541f,0x21d7541f,0x0,0x0,0x0,0x0,0x10000,0x0,0x900,0x900,0x21d7541f,0x21d7541f,0x0,0xc30000,0x900,0x21d7541f,0x21d7541f,0x0,0x0,0x21d7541f,0x0,0x0,0x21d7541f,0x21d7541f,0x21d7541f,0x21d7541f,0x21d7541f,0x21d7541f,0x21d7541f,0x20,0x80,0x10000,0xc30000,0x10000,0x21d7541f,0x21d7541f,0x10000,0x0,0xc30000,0xc30000,};
6144 private static void jj_la1_2() {
6145 jj_la1_2 = new int[] {0x45114400,0x0,0x0,0x45114400,0x40000000,0x45114400,0x0,0x0,0x0,0x80000000,0x0,0x4000000,0x0,0x4000000,0x4100000,0x4400,0x4400,0x114400,0x0,0x1114400,0x80000000,0x0,0x80000000,0x0,0x0,0xff,0x0,0x1114400,0x0,0x0,0x100,0x100,0x200,0x200,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1114400,0x0,0x1114400,0x0,0x0,0x1114400,0xff,0x0,0x0,0x11000000,0x11000000,0x100000,0x100000,0x100000,0x100000,0x11000000,0x11144ff,0x11144ff,0x10000000,0x14400,0x0,0x1114400,0x80000000,0x0,0x44100000,0x45114400,0x0,0x0,0x0,0x0,0x80000000,0x0,0x80000000,0x80000000,0x80000000,0x45114400,0x45114400,0x45114400,0x45114400,0x80000000,0x0,0x0,0x0,0x100000,0x4000000,0x0,0x0,0x45114400,0x45114400,0x0,0x1114400,0x0,0x45114400,0x45114400,0x0,0x0,0x45114400,0x0,0x0,0x45114400,0x45114400,0x45114400,0x45114400,0x45114400,0x45114400,0x45114400,0x10000000,0x0,0x100000,0x1114400,0x100000,0x45114400,0x45114400,0x100000,0x80000000,0x1114400,0x1114400,};
6147 private static void jj_la1_3() {
6148 jj_la1_3 = new int[] {0xe0e00000,0x0,0x0,0xe0e00000,0x0,0xe0e00000,0x0,0x0,0x0,0x0,0x400,0x0,0x400000,0x0,0x400000,0x0,0x0,0x80000000,0x0,0xe0e00000,0x0,0x0,0x0,0x400000,0x0,0x0,0x0,0xe0e00000,0x1ffc00,0x2000000,0x8000000,0x8000000,0x10000000,0x10000000,0x1,0x0,0x0,0x0,0x3c8,0x3c8,0x36,0x36,0x0,0x0,0x80000000,0x80000000,0x0,0x0,0x200000,0xe0e00000,0x80000000,0xe0c00000,0x60000000,0x800000,0x400000,0x0,0x60000000,0x60000000,0x0,0x0,0x400000,0x400000,0x400000,0x400000,0x0,0xe0e00000,0xe0e00000,0x0,0x0,0x0,0xe0e00000,0x0,0x200000,0x60600000,0xe0e00000,0x0,0x0,0x0,0x400000,0x0,0x400,0x0,0x0,0x0,0xe0e00000,0xe0e00000,0xe0e00000,0xe0e00000,0x0,0x400,0x601ffc00,0x601ffc00,0x60400000,0x4000000,0x0,0x0,0xe0e00000,0xe0e00000,0x0,0xe0e00000,0x0,0xe0e00000,0xe0e00000,0x0,0x0,0xe0e00000,0x0,0x0,0xe4e00000,0xe0e00000,0xe0e00000,0xe0e00000,0xe0e00000,0xe0e00000,0xe4e00000,0x0,0x0,0x60400000,0xe0e00000,0x60400000,0xe0e00000,0xe4e00000,0x60400000,0x0,0xe0e00000,0xe0e00000,};
6150 private static void jj_la1_4() {
6151 jj_la1_4 = new int[] {0x1009,0x0,0x0,0x1009,0x0,0x1009,0x0,0x0,0x0,0x0,0x0,0x0,0x1000,0x0,0x1000,0x0,0x0,0x1,0x0,0x1009,0x0,0x8,0x0,0x1008,0x8,0x0,0x0,0x1009,0xc00,0x0,0x0,0x0,0x0,0x0,0x0,0x10,0x20,0x8,0x0,0x0,0x0,0x0,0x380,0x380,0x1,0x1,0x46,0x46,0x0,0x1009,0x1,0x1001,0x0,0x0,0x1000,0x0,0x0,0x0,0x0,0x0,0x1000,0x1000,0x1000,0x1000,0x0,0x1009,0x1009,0x0,0x0,0x0,0x1009,0x0,0x0,0x1000,0x1009,0x0,0x0,0x0,0x1000,0x0,0x0,0x0,0x0,0x0,0x1009,0x1009,0x1009,0x1009,0x0,0x0,0xc00,0xc00,0x1000,0x0,0x0,0x0,0x1009,0x1009,0x0,0x1009,0x0,0x1009,0x1009,0x0,0x0,0x1009,0x0,0x0,0x1009,0x1009,0x1009,0x1009,0x1009,0x1009,0x1009,0x0,0x0,0x1000,0x1009,0x1000,0x1009,0x1009,0x1000,0x0,0x1009,0x1009,};
6153 static final private JJCalls[] jj_2_rtns = new JJCalls[8];
6154 static private boolean jj_rescan = false;
6155 static private int jj_gc = 0;
6157 public PHPParser(java.io.InputStream stream) {
6158 if (jj_initialized_once) {
6159 System.out.println("ERROR: Second call to constructor of static parser. You must");
6160 System.out.println(" either use ReInit() or set the JavaCC option STATIC to false");
6161 System.out.println(" during parser generation.");
6164 jj_initialized_once = true;
6165 jj_input_stream = new SimpleCharStream(stream, 1, 1);
6166 token_source = new PHPParserTokenManager(jj_input_stream);
6167 token = new Token();
6170 for (int i = 0; i < 126; i++) jj_la1[i] = -1;
6171 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
6174 static public void ReInit(java.io.InputStream stream) {
6175 jj_input_stream.ReInit(stream, 1, 1);
6176 token_source.ReInit(jj_input_stream);
6177 token = new Token();
6180 for (int i = 0; i < 126; i++) jj_la1[i] = -1;
6181 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
6184 public PHPParser(java.io.Reader stream) {
6185 if (jj_initialized_once) {
6186 System.out.println("ERROR: Second call to constructor of static parser. You must");
6187 System.out.println(" either use ReInit() or set the JavaCC option STATIC to false");
6188 System.out.println(" during parser generation.");
6191 jj_initialized_once = true;
6192 jj_input_stream = new SimpleCharStream(stream, 1, 1);
6193 token_source = new PHPParserTokenManager(jj_input_stream);
6194 token = new Token();
6197 for (int i = 0; i < 126; i++) jj_la1[i] = -1;
6198 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
6201 static public void ReInit(java.io.Reader stream) {
6202 jj_input_stream.ReInit(stream, 1, 1);
6203 token_source.ReInit(jj_input_stream);
6204 token = new Token();
6207 for (int i = 0; i < 126; i++) jj_la1[i] = -1;
6208 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
6211 public PHPParser(PHPParserTokenManager tm) {
6212 if (jj_initialized_once) {
6213 System.out.println("ERROR: Second call to constructor of static parser. You must");
6214 System.out.println(" either use ReInit() or set the JavaCC option STATIC to false");
6215 System.out.println(" during parser generation.");
6218 jj_initialized_once = true;
6220 token = new Token();
6223 for (int i = 0; i < 126; i++) jj_la1[i] = -1;
6224 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
6227 public void ReInit(PHPParserTokenManager tm) {
6229 token = new Token();
6232 for (int i = 0; i < 126; i++) jj_la1[i] = -1;
6233 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
6236 static final private Token jj_consume_token(int kind) throws ParseException {
6238 if ((oldToken = token).next != null) token = token.next;
6239 else token = token.next = token_source.getNextToken();
6241 if (token.kind == kind) {
6243 if (++jj_gc > 100) {
6245 for (int i = 0; i < jj_2_rtns.length; i++) {
6246 JJCalls c = jj_2_rtns[i];
6248 if (c.gen < jj_gen) c.first = null;
6257 throw generateParseException();
6260 static final private boolean jj_scan_token(int kind) {
6261 if (jj_scanpos == jj_lastpos) {
6263 if (jj_scanpos.next == null) {
6264 jj_lastpos = jj_scanpos = jj_scanpos.next = token_source.getNextToken();
6266 jj_lastpos = jj_scanpos = jj_scanpos.next;
6269 jj_scanpos = jj_scanpos.next;
6272 int i = 0; Token tok = token;
6273 while (tok != null && tok != jj_scanpos) { i++; tok = tok.next; }
6274 if (tok != null) jj_add_error_token(kind, i);
6276 return (jj_scanpos.kind != kind);
6279 static final public Token getNextToken() {
6280 if (token.next != null) token = token.next;
6281 else token = token.next = token_source.getNextToken();
6287 static final public Token getToken(int index) {
6288 Token t = lookingAhead ? jj_scanpos : token;
6289 for (int i = 0; i < index; i++) {
6290 if (t.next != null) t = t.next;
6291 else t = t.next = token_source.getNextToken();
6296 static final private int jj_ntk() {
6297 if ((jj_nt=token.next) == null)
6298 return (jj_ntk = (token.next=token_source.getNextToken()).kind);
6300 return (jj_ntk = jj_nt.kind);
6303 static private java.util.Vector jj_expentries = new java.util.Vector();
6304 static private int[] jj_expentry;
6305 static private int jj_kind = -1;
6306 static private int[] jj_lasttokens = new int[100];
6307 static private int jj_endpos;
6309 static private void jj_add_error_token(int kind, int pos) {
6310 if (pos >= 100) return;
6311 if (pos == jj_endpos + 1) {
6312 jj_lasttokens[jj_endpos++] = kind;
6313 } else if (jj_endpos != 0) {
6314 jj_expentry = new int[jj_endpos];
6315 for (int i = 0; i < jj_endpos; i++) {
6316 jj_expentry[i] = jj_lasttokens[i];
6318 boolean exists = false;
6319 for (java.util.Enumeration enum = jj_expentries.elements(); enum.hasMoreElements();) {
6320 int[] oldentry = (int[])(enum.nextElement());
6321 if (oldentry.length == jj_expentry.length) {
6323 for (int i = 0; i < jj_expentry.length; i++) {
6324 if (oldentry[i] != jj_expentry[i]) {
6332 if (!exists) jj_expentries.addElement(jj_expentry);
6333 if (pos != 0) jj_lasttokens[(jj_endpos = pos) - 1] = kind;
6337 static public ParseException generateParseException() {
6338 jj_expentries.removeAllElements();
6339 boolean[] la1tokens = new boolean[141];
6340 for (int i = 0; i < 141; i++) {
6341 la1tokens[i] = false;
6344 la1tokens[jj_kind] = true;
6347 for (int i = 0; i < 126; i++) {
6348 if (jj_la1[i] == jj_gen) {
6349 for (int j = 0; j < 32; j++) {
6350 if ((jj_la1_0[i] & (1<<j)) != 0) {
6351 la1tokens[j] = true;
6353 if ((jj_la1_1[i] & (1<<j)) != 0) {
6354 la1tokens[32+j] = true;
6356 if ((jj_la1_2[i] & (1<<j)) != 0) {
6357 la1tokens[64+j] = true;
6359 if ((jj_la1_3[i] & (1<<j)) != 0) {
6360 la1tokens[96+j] = true;
6362 if ((jj_la1_4[i] & (1<<j)) != 0) {
6363 la1tokens[128+j] = true;
6368 for (int i = 0; i < 141; i++) {
6370 jj_expentry = new int[1];
6372 jj_expentries.addElement(jj_expentry);
6377 jj_add_error_token(0, 0);
6378 int[][] exptokseq = new int[jj_expentries.size()][];
6379 for (int i = 0; i < jj_expentries.size(); i++) {
6380 exptokseq[i] = (int[])jj_expentries.elementAt(i);
6382 return new ParseException(token, exptokseq, tokenImage);
6385 static final public void enable_tracing() {
6388 static final public void disable_tracing() {
6391 static final private void jj_rescan_token() {
6393 for (int i = 0; i < 8; i++) {
6394 JJCalls p = jj_2_rtns[i];
6396 if (p.gen > jj_gen) {
6397 jj_la = p.arg; jj_lastpos = jj_scanpos = p.first;
6399 case 0: jj_3_1(); break;
6400 case 1: jj_3_2(); break;
6401 case 2: jj_3_3(); break;
6402 case 3: jj_3_4(); break;
6403 case 4: jj_3_5(); break;
6404 case 5: jj_3_6(); break;
6405 case 6: jj_3_7(); break;
6406 case 7: jj_3_8(); break;
6410 } while (p != null);
6415 static final private void jj_save(int index, int xla) {
6416 JJCalls p = jj_2_rtns[index];
6417 while (p.gen > jj_gen) {
6418 if (p.next == null) { p = p.next = new JJCalls(); break; }
6421 p.gen = jj_gen + xla - jj_la; p.first = token; p.arg = xla;
6424 static final class JJCalls {