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.*;
19 import net.sourceforge.phpdt.internal.compiler.ast.*;
23 * This php parser is inspired by the Java 1.2 grammar example
24 * given with JavaCC. You can get JavaCC at http://www.webgain.com
25 * You can test the parser with the PHPParserTestCase2.java
26 * @author Matthieu Casanova
28 public final class PHPParser extends PHPParserSuperclass implements PHPParserConstants {
30 /** The file that is parsed. */
31 private static IFile fileToParse;
33 /** The current segment. */
34 private static PHPSegmentWithChildren currentSegment;
36 private static final String PARSE_ERROR_STRING = "Parse error"; //$NON-NLS-1$
37 private static final String PARSE_WARNING_STRING = "Warning"; //$NON-NLS-1$
38 PHPOutlineInfo outlineInfo;
40 private static PHPFunctionDeclaration currentFunction;
41 private static boolean assigning;
43 /** The error level of the current ParseException. */
44 private static int errorLevel = ERROR;
45 /** The message of the current ParseException. If it's null it's because the parse exception wasn't handled */
46 private static String errorMessage;
48 private static int errorStart = -1;
49 private static int errorEnd = -1;
52 private final static int AstStackIncrement = 100;
53 /** The stack of node. */
54 private static AstNode[] astStack;
55 /** The cursor in expression stack. */
56 private static int expressionPtr;
58 public final void setFileToParse(final IFile fileToParse) {
59 this.fileToParse = fileToParse;
65 public PHPParser(final IFile fileToParse) {
66 this(new StringReader(""));
67 this.fileToParse = fileToParse;
70 public static final void phpParserTester(final String strEval) throws CoreException, ParseException {
71 PHPParserTokenManager.SwitchTo(PHPParserTokenManager.PHPPARSING);
72 final StringReader stream = new StringReader(strEval);
73 if (jj_input_stream == null) {
74 jj_input_stream = new SimpleCharStream(stream, 1, 1);
76 ReInit(new StringReader(strEval));
77 astStack = new AstNode[AstStackIncrement];
81 public static final void htmlParserTester(final File fileName) throws CoreException, ParseException {
83 final Reader stream = new FileReader(fileName);
84 if (jj_input_stream == null) {
85 jj_input_stream = new SimpleCharStream(stream, 1, 1);
88 astStack = new AstNode[AstStackIncrement];
90 } catch (FileNotFoundException e) {
91 e.printStackTrace(); //To change body of catch statement use Options | File Templates.
95 public static final void htmlParserTester(final String strEval) throws CoreException, ParseException {
96 final StringReader stream = new StringReader(strEval);
97 if (jj_input_stream == null) {
98 jj_input_stream = new SimpleCharStream(stream, 1, 1);
101 astStack = new AstNode[AstStackIncrement];
105 public final PHPOutlineInfo parseInfo(final Object parent, final String s) {
106 outlineInfo = new PHPOutlineInfo(parent);
107 currentSegment = outlineInfo.getDeclarations();
108 final StringReader stream = new StringReader(s);
109 if (jj_input_stream == null) {
110 jj_input_stream = new SimpleCharStream(stream, 1, 1);
113 astStack = new AstNode[AstStackIncrement];
116 } catch (ParseException e) {
117 processParseException(e);
123 * This method will process the parse exception.
124 * If the error message is null, the parse exception wasn't catched and a trace is written in the log
125 * @param e the ParseException
127 private static void processParseException(final ParseException e) {
128 if (errorMessage == null) {
129 PHPeclipsePlugin.log(e);
130 errorMessage = "this exception wasn't handled by the parser please tell us how to reproduce it";
131 errorStart = jj_input_stream.getPosition();
132 errorEnd = errorStart + 1;
139 * Create marker for the parse error
140 * @param e the ParseException
142 private static void setMarker(final ParseException e) {
144 if (errorStart == -1) {
145 setMarker(fileToParse,
147 jj_input_stream.tokenBegin,
148 jj_input_stream.tokenBegin + e.currentToken.image.length(),
150 "Line " + e.currentToken.beginLine);
152 setMarker(fileToParse,
157 "Line " + e.currentToken.beginLine);
161 } catch (CoreException e2) {
162 PHPeclipsePlugin.log(e2);
167 * Create markers according to the external parser output
169 private static void createMarkers(final String output, final IFile file) throws CoreException {
170 // delete all markers
171 file.deleteMarkers(IMarker.PROBLEM, false, 0);
176 while ((brIndx = output.indexOf("<br />", indx)) != -1) {
177 // newer php error output (tested with 4.2.3)
178 scanLine(output, file, indx, brIndx);
183 while ((brIndx = output.indexOf("<br>", indx)) != -1) {
184 // older php error output (tested with 4.2.3)
185 scanLine(output, file, indx, brIndx);
191 private static void scanLine(final String output,
194 final int brIndx) throws CoreException {
196 StringBuffer lineNumberBuffer = new StringBuffer(10);
198 current = output.substring(indx, brIndx);
200 if (current.indexOf(PARSE_WARNING_STRING) != -1 || current.indexOf(PARSE_ERROR_STRING) != -1) {
201 int onLine = current.indexOf("on line <b>");
203 lineNumberBuffer.delete(0, lineNumberBuffer.length());
204 for (int i = onLine; i < current.length(); i++) {
205 ch = current.charAt(i);
206 if ('0' <= ch && '9' >= ch) {
207 lineNumberBuffer.append(ch);
211 int lineNumber = Integer.parseInt(lineNumberBuffer.toString());
213 Hashtable attributes = new Hashtable();
215 current = current.replaceAll("\n", "");
216 current = current.replaceAll("<b>", "");
217 current = current.replaceAll("</b>", "");
218 MarkerUtilities.setMessage(attributes, current);
220 if (current.indexOf(PARSE_ERROR_STRING) != -1)
221 attributes.put(IMarker.SEVERITY, new Integer(IMarker.SEVERITY_ERROR));
222 else if (current.indexOf(PARSE_WARNING_STRING) != -1)
223 attributes.put(IMarker.SEVERITY, new Integer(IMarker.SEVERITY_WARNING));
225 attributes.put(IMarker.SEVERITY, new Integer(IMarker.SEVERITY_INFO));
226 MarkerUtilities.setLineNumber(attributes, lineNumber);
227 MarkerUtilities.createMarker(file, attributes, IMarker.PROBLEM);
232 public final void parse(final String s) throws CoreException {
233 final StringReader stream = new StringReader(s);
234 if (jj_input_stream == null) {
235 jj_input_stream = new SimpleCharStream(stream, 1, 1);
238 astStack = new AstNode[AstStackIncrement];
241 } catch (ParseException e) {
242 processParseException(e);
247 * Call the php parse command ( php -l -f <filename> )
248 * and create markers according to the external parser output
250 public static void phpExternalParse(final IFile file) {
251 final IPreferenceStore store = PHPeclipsePlugin.getDefault().getPreferenceStore();
252 final String filename = file.getLocation().toString();
254 final String[] arguments = { filename };
255 final MessageFormat form = new MessageFormat(store.getString(PHPeclipsePlugin.EXTERNAL_PARSER_PREF));
256 final String command = form.format(arguments);
258 final String parserResult = PHPStartApacheAction.getParserOutput(command, "External parser: ");
261 // parse the buffer to find the errors and warnings
262 createMarkers(parserResult, file);
263 } catch (CoreException e) {
264 PHPeclipsePlugin.log(e);
268 private static final void parse() throws ParseException {
272 static final public void phpTest() throws ParseException {
277 static final public void phpFile() throws ParseException {
281 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
311 case INTEGER_LITERAL:
312 case FLOATING_POINT_LITERAL:
336 } catch (TokenMgrError e) {
337 PHPeclipsePlugin.log(e);
338 errorStart = SimpleCharStream.getPosition();
339 errorEnd = errorStart + 1;
340 errorMessage = e.getMessage();
342 {if (true) throw generateParseException();}
347 * A php block is a <?= expression [;]?>
348 * or <?php somephpcode ?>
349 * or <? somephpcode ?>
351 static final public void PhpBlock() throws ParseException {
352 final int start = jj_input_stream.getPosition();
353 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
385 case INTEGER_LITERAL:
386 case FLOATING_POINT_LITERAL:
401 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
404 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
406 jj_consume_token(PHPSTARTLONG);
409 jj_consume_token(PHPSTARTSHORT);
411 setMarker(fileToParse,
412 "You should use '<?php' instead of '<?' it will avoid some problems with XML",
414 jj_input_stream.getPosition(),
416 "Line " + token.beginLine);
417 } catch (CoreException e) {
418 PHPeclipsePlugin.log(e);
423 jj_consume_token(-1);
424 throw new ParseException();
433 jj_consume_token(PHPEND);
434 } catch (ParseException e) {
435 errorMessage = "'?>' expected";
437 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
438 errorEnd = jj_input_stream.getPosition() + 1;
444 jj_consume_token(-1);
445 throw new ParseException();
449 static final public void phpEchoBlock() throws ParseException {
450 jj_consume_token(PHPECHOSTART);
452 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
454 jj_consume_token(SEMICOLON);
460 jj_consume_token(PHPEND);
463 static final public void Php() throws ParseException {
466 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
492 case INTEGER_LITERAL:
493 case FLOATING_POINT_LITERAL:
518 static final public void ClassDeclaration() throws ParseException {
519 final PHPClassDeclaration classDeclaration;
520 final Token className;
522 jj_consume_token(CLASS);
524 pos = jj_input_stream.getPosition();
525 className = jj_consume_token(IDENTIFIER);
526 } catch (ParseException e) {
527 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', identifier expected";
529 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
530 errorEnd = jj_input_stream.getPosition() + 1;
533 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
535 jj_consume_token(EXTENDS);
537 jj_consume_token(IDENTIFIER);
538 } catch (ParseException e) {
539 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', identifier expected";
541 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
542 errorEnd = jj_input_stream.getPosition() + 1;
550 if (currentSegment != null) {
551 classDeclaration = new PHPClassDeclaration(currentSegment,className.image,pos);
552 currentSegment.add(classDeclaration);
553 currentSegment = classDeclaration;
556 if (currentSegment != null) {
557 currentSegment = (PHPSegmentWithChildren) currentSegment.getParent();
561 static final public void ClassBody() throws ParseException {
563 jj_consume_token(LBRACE);
564 } catch (ParseException e) {
565 errorMessage = "unexpected token : '"+ e.currentToken.next.image + "', '{' expected";
567 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
568 errorEnd = jj_input_stream.getPosition() + 1;
573 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
582 ClassBodyDeclaration();
585 jj_consume_token(RBRACE);
586 } catch (ParseException e) {
587 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', 'var', 'function' or '}' expected";
589 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
590 errorEnd = jj_input_stream.getPosition() + 1;
596 * A class can contain only methods and fields.
598 static final public void ClassBodyDeclaration() throws ParseException {
599 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
608 jj_consume_token(-1);
609 throw new ParseException();
614 * A class field declaration : it's var VariableDeclarator() (, VariableDeclarator())*;.
616 static final public void FieldDeclaration() throws ParseException {
617 PHPVarDeclaration variableDeclaration;
618 jj_consume_token(VAR);
619 variableDeclaration = VariableDeclarator();
620 if (currentSegment != null) {
621 currentSegment.add(variableDeclaration);
625 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
633 jj_consume_token(COMMA);
634 variableDeclaration = VariableDeclarator();
635 if (currentSegment != null) {
636 currentSegment.add(variableDeclaration);
640 jj_consume_token(SEMICOLON);
641 } catch (ParseException e) {
642 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"'. A ';' was expected after variable declaration";
644 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
645 errorEnd = jj_input_stream.getPosition() + 1;
650 static final public PHPVarDeclaration VariableDeclarator() throws ParseException {
651 final String varName, varValue;
652 final int pos = jj_input_stream.getPosition();
653 varName = VariableDeclaratorId();
654 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
656 jj_consume_token(ASSIGN);
658 varValue = VariableInitializer();
659 {if (true) return new PHPVarDeclaration(currentSegment,varName,pos,varValue);}
660 } catch (ParseException e) {
661 errorMessage = "Literal expression expected in variable initializer";
663 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
664 errorEnd = jj_input_stream.getPosition() + 1;
672 {if (true) return new PHPVarDeclaration(currentSegment,varName,pos);}
673 throw new Error("Missing return statement in function");
676 static final public String VariableDeclaratorId() throws ParseException {
678 final StringBuffer buff = new StringBuffer();
689 expr = VariableSuffix();
692 {if (true) return buff.toString();}
693 } catch (ParseException e) {
694 errorMessage = "'$' expected for variable identifier";
696 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
697 errorEnd = jj_input_stream.getPosition() + 1;
700 throw new Error("Missing return statement in function");
703 static final public String Variable() throws ParseException {
706 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
708 token = jj_consume_token(DOLLAR_ID);
709 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
711 jj_consume_token(LBRACE);
713 jj_consume_token(RBRACE);
719 if (expr == null && !assigning) {
720 if (currentFunction != null) {
721 PHPVarDeclaration var = currentFunction.getParameter(token.image.substring(1));
723 var.getVariable().setUsed(true);
726 {if (true) return token.image.substring(1);}
728 {if (true) return token + "{" + expr + "}";}
731 jj_consume_token(DOLLAR);
732 expr = VariableName();
733 {if (true) return expr;}
737 jj_consume_token(-1);
738 throw new ParseException();
740 throw new Error("Missing return statement in function");
743 static final public String VariableName() throws ParseException {
746 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
748 jj_consume_token(LBRACE);
750 jj_consume_token(RBRACE);
751 {if (true) return "{"+expr+"}";}
754 token = jj_consume_token(IDENTIFIER);
755 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
757 jj_consume_token(LBRACE);
759 jj_consume_token(RBRACE);
766 if (currentFunction != null) {
767 PHPVarDeclaration var = currentFunction.getParameter(token.image);
769 var.getVariable().setUsed(true);
772 {if (true) return token.image;}
774 {if (true) return token + "{" + expr + "}";}
777 jj_consume_token(DOLLAR);
778 expr = VariableName();
779 if (currentFunction != null) {
780 PHPVarDeclaration var = currentFunction.getParameter(expr);
782 var.getVariable().setUsed(true);
785 {if (true) return "$" + expr;}
788 token = jj_consume_token(DOLLAR_ID);
789 if (currentFunction != null) {
790 PHPVarDeclaration var = currentFunction.getParameter(token.image.substring(1));
792 var.getVariable().setUsed(true);
795 {if (true) return token.image + expr;}
799 jj_consume_token(-1);
800 throw new ParseException();
802 throw new Error("Missing return statement in function");
805 static final public String VariableInitializer() throws ParseException {
808 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
812 case INTEGER_LITERAL:
813 case FLOATING_POINT_LITERAL:
816 {if (true) return expr;}
819 jj_consume_token(MINUS);
820 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
821 case INTEGER_LITERAL:
822 token = jj_consume_token(INTEGER_LITERAL);
824 case FLOATING_POINT_LITERAL:
825 token = jj_consume_token(FLOATING_POINT_LITERAL);
829 jj_consume_token(-1);
830 throw new ParseException();
832 {if (true) return "-" + token.image;}
835 jj_consume_token(PLUS);
836 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
837 case INTEGER_LITERAL:
838 token = jj_consume_token(INTEGER_LITERAL);
840 case FLOATING_POINT_LITERAL:
841 token = jj_consume_token(FLOATING_POINT_LITERAL);
845 jj_consume_token(-1);
846 throw new ParseException();
848 {if (true) return "+" + token.image;}
851 expr = ArrayDeclarator();
852 {if (true) return expr;}
855 token = jj_consume_token(IDENTIFIER);
856 {if (true) return token.image;}
860 jj_consume_token(-1);
861 throw new ParseException();
863 throw new Error("Missing return statement in function");
866 static final public String ArrayVariable() throws ParseException {
868 final StringBuffer buff = new StringBuffer();
871 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
873 jj_consume_token(ARRAYASSIGN);
875 buff.append("=>").append(expr);
881 {if (true) return buff.toString();}
882 throw new Error("Missing return statement in function");
885 static final public String ArrayInitializer() throws ParseException {
887 final StringBuffer buff = new StringBuffer("(");
888 jj_consume_token(LPAREN);
889 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
897 case INTEGER_LITERAL:
898 case FLOATING_POINT_LITERAL:
911 expr = ArrayVariable();
920 jj_consume_token(COMMA);
921 expr = ArrayVariable();
922 buff.append(",").append(expr);
929 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
931 jj_consume_token(COMMA);
938 jj_consume_token(RPAREN);
940 {if (true) return buff.toString();}
941 throw new Error("Missing return statement in function");
945 * A Method Declaration.
946 * <b>function</b> MetodDeclarator() Block()
948 static final public void MethodDeclaration() throws ParseException {
949 final PHPFunctionDeclaration functionDeclaration;
951 functionToken = jj_consume_token(FUNCTION);
953 functionDeclaration = MethodDeclarator();
954 } catch (ParseException e) {
955 if (errorMessage != null) {
958 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', function identifier expected";
960 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
961 errorEnd = jj_input_stream.getPosition() + 1;
964 if (currentSegment != null) {
965 currentSegment.add(functionDeclaration);
966 currentSegment = functionDeclaration;
968 currentFunction = functionDeclaration;
970 Hashtable parameters = currentFunction.getParameters();
971 Enumeration vars = parameters.elements();
972 while (vars.hasMoreElements()) {
973 PHPVarDeclaration o = (PHPVarDeclaration) vars.nextElement();
974 if (!o.getVariable().isUsed()) {
976 setMarker(fileToParse,
977 "Parameter "+o.getVariable().getName()+" is never used in function",
978 functionToken.beginLine,
980 "Line " + token.beginLine);
981 } catch (CoreException e) {
982 PHPeclipsePlugin.log(e);
986 currentFunction = null;
987 if (currentSegment != null) {
988 currentSegment = (PHPSegmentWithChildren) currentSegment.getParent();
993 * A MethodDeclarator.
994 * [&] IDENTIFIER(parameters ...).
995 * @return a function description for the outline
997 static final public PHPFunctionDeclaration MethodDeclarator() throws ParseException {
998 final Token identifier;
999 final StringBuffer methodDeclaration = new StringBuffer();
1000 final Hashtable formalParameters;
1001 final int pos = jj_input_stream.getPosition();
1002 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1004 jj_consume_token(BIT_AND);
1005 methodDeclaration.append("&");
1008 jj_la1[21] = jj_gen;
1011 identifier = jj_consume_token(IDENTIFIER);
1012 formalParameters = FormalParameters();
1013 methodDeclaration.append(identifier);
1014 {if (true) return new PHPFunctionDeclaration(currentSegment,methodDeclaration.toString(),pos,formalParameters);}
1015 throw new Error("Missing return statement in function");
1019 * FormalParameters follows method identifier.
1020 * (FormalParameter())
1022 static final public Hashtable FormalParameters() throws ParseException {
1024 final StringBuffer buff = new StringBuffer("(");
1025 PHPVarDeclaration var;
1026 final Hashtable parameters = new Hashtable();
1028 jj_consume_token(LPAREN);
1029 } catch (ParseException e) {
1030 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', '(' expected after function identifier";
1032 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
1033 errorEnd = jj_input_stream.getPosition() + 1;
1034 {if (true) throw e;}
1036 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1040 var = FormalParameter();
1041 parameters.put(var.getVariable().getName(),var);
1044 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1049 jj_la1[22] = jj_gen;
1052 jj_consume_token(COMMA);
1053 var = FormalParameter();
1054 parameters.put(var.getVariable().getName(),var);
1058 jj_la1[23] = jj_gen;
1062 jj_consume_token(RPAREN);
1063 } catch (ParseException e) {
1064 errorMessage = "')' expected";
1066 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
1067 errorEnd = jj_input_stream.getPosition() + 1;
1068 {if (true) throw e;}
1070 {if (true) return parameters;}
1071 throw new Error("Missing return statement in function");
1075 * A formal parameter.
1076 * $varname[=value] (,$varname[=value])
1078 static final public PHPVarDeclaration FormalParameter() throws ParseException {
1079 final PHPVarDeclaration variableDeclaration;
1081 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1083 token = jj_consume_token(BIT_AND);
1086 jj_la1[24] = jj_gen;
1089 variableDeclaration = VariableDeclarator();
1090 if (token != null) {
1091 variableDeclaration.getVariable().setReference(true);
1093 {if (true) return variableDeclaration;}
1094 throw new Error("Missing return statement in function");
1097 static final public String Type() throws ParseException {
1098 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1100 jj_consume_token(STRING);
1101 {if (true) return "string";}
1104 jj_consume_token(BOOL);
1105 {if (true) return "bool";}
1108 jj_consume_token(BOOLEAN);
1109 {if (true) return "boolean";}
1112 jj_consume_token(REAL);
1113 {if (true) return "real";}
1116 jj_consume_token(DOUBLE);
1117 {if (true) return "double";}
1120 jj_consume_token(FLOAT);
1121 {if (true) return "float";}
1124 jj_consume_token(INT);
1125 {if (true) return "int";}
1128 jj_consume_token(INTEGER);
1129 {if (true) return "integer";}
1132 jj_consume_token(OBJECT);
1133 {if (true) return "object";}
1136 jj_la1[25] = jj_gen;
1137 jj_consume_token(-1);
1138 throw new ParseException();
1140 throw new Error("Missing return statement in function");
1143 static final public String Expression() throws ParseException {
1145 final String assignOperator;
1147 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1149 expr = PrintExpression();
1150 {if (true) return expr;}
1153 expr = ListExpression();
1154 {if (true) return expr;}
1157 jj_la1[26] = jj_gen;
1158 if (jj_2_3(2147483647)) {
1159 expr = varAssignation();
1160 {if (true) return expr;}
1162 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1168 case INTEGER_LITERAL:
1169 case FLOATING_POINT_LITERAL:
1170 case STRING_LITERAL:
1182 expr = ConditionalExpression();
1183 {if (true) return expr;}
1186 jj_la1[27] = jj_gen;
1187 jj_consume_token(-1);
1188 throw new ParseException();
1192 throw new Error("Missing return statement in function");
1196 * A Variable assignation.
1197 * varName (an assign operator) any expression
1199 static final public String varAssignation() throws ParseException {
1200 String varName,assignOperator,expr2;
1201 PHPVarDeclaration variable;
1202 final int pos = SimpleCharStream.getPosition();
1203 varName = VariableDeclaratorId();
1204 assignOperator = AssignmentOperator();
1206 expr2 = Expression();
1207 } catch (ParseException e) {
1208 if (errorMessage != null) {
1209 {if (true) throw e;}
1211 errorMessage = "expression expected";
1213 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
1214 errorEnd = jj_input_stream.getPosition() + 1;
1215 {if (true) throw e;}
1217 {if (true) return varName + assignOperator + expr2;}
1218 throw new Error("Missing return statement in function");
1221 static final public String AssignmentOperator() throws ParseException {
1222 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1224 jj_consume_token(ASSIGN);
1225 {if (true) return "=";}
1228 jj_consume_token(STARASSIGN);
1229 {if (true) return "*=";}
1232 jj_consume_token(SLASHASSIGN);
1233 {if (true) return "/=";}
1236 jj_consume_token(REMASSIGN);
1237 {if (true) return "%=";}
1240 jj_consume_token(PLUSASSIGN);
1241 {if (true) return "+=";}
1244 jj_consume_token(MINUSASSIGN);
1245 {if (true) return "-=";}
1248 jj_consume_token(LSHIFTASSIGN);
1249 {if (true) return "<<=";}
1251 case RSIGNEDSHIFTASSIGN:
1252 jj_consume_token(RSIGNEDSHIFTASSIGN);
1253 {if (true) return ">>=";}
1256 jj_consume_token(ANDASSIGN);
1257 {if (true) return "&=";}
1260 jj_consume_token(XORASSIGN);
1261 {if (true) return "|=";}
1264 jj_consume_token(ORASSIGN);
1265 {if (true) return "|=";}
1268 jj_consume_token(DOTASSIGN);
1269 {if (true) return ".=";}
1272 jj_consume_token(TILDEEQUAL);
1273 {if (true) return "~=";}
1276 jj_la1[28] = jj_gen;
1277 jj_consume_token(-1);
1278 throw new ParseException();
1280 throw new Error("Missing return statement in function");
1283 static final public String ConditionalExpression() throws ParseException {
1285 String expr2 = null;
1286 String expr3 = null;
1287 expr = ConditionalOrExpression();
1288 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1290 jj_consume_token(HOOK);
1291 expr2 = Expression();
1292 jj_consume_token(COLON);
1293 expr3 = ConditionalExpression();
1296 jj_la1[29] = jj_gen;
1299 if (expr3 == null) {
1300 {if (true) return expr;}
1302 {if (true) return expr + "?" + expr2 + ":" + expr3;}
1304 throw new Error("Missing return statement in function");
1307 static final public String ConditionalOrExpression() throws ParseException {
1310 final StringBuffer buff = new StringBuffer();
1311 expr = ConditionalAndExpression();
1315 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1321 jj_la1[30] = jj_gen;
1324 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1326 operator = jj_consume_token(SC_OR);
1329 operator = jj_consume_token(_ORL);
1332 jj_la1[31] = jj_gen;
1333 jj_consume_token(-1);
1334 throw new ParseException();
1336 expr = ConditionalAndExpression();
1337 buff.append(operator.image);
1340 {if (true) return buff.toString();}
1341 throw new Error("Missing return statement in function");
1344 static final public String ConditionalAndExpression() throws ParseException {
1347 final StringBuffer buff = new StringBuffer();
1348 expr = ConcatExpression();
1352 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1358 jj_la1[32] = jj_gen;
1361 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1363 operator = jj_consume_token(SC_AND);
1366 operator = jj_consume_token(_ANDL);
1369 jj_la1[33] = jj_gen;
1370 jj_consume_token(-1);
1371 throw new ParseException();
1373 expr = ConcatExpression();
1374 buff.append(operator.image);
1377 {if (true) return buff.toString();}
1378 throw new Error("Missing return statement in function");
1381 static final public String ConcatExpression() throws ParseException {
1383 final StringBuffer buff = new StringBuffer();
1384 expr = InclusiveOrExpression();
1388 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1393 jj_la1[34] = jj_gen;
1396 jj_consume_token(DOT);
1397 expr = InclusiveOrExpression();
1398 buff.append(".").append(expr);
1400 {if (true) return buff.toString();}
1401 throw new Error("Missing return statement in function");
1404 static final public String InclusiveOrExpression() throws ParseException {
1406 final StringBuffer buff = new StringBuffer();
1407 expr = ExclusiveOrExpression();
1411 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1416 jj_la1[35] = jj_gen;
1419 jj_consume_token(BIT_OR);
1420 expr = ExclusiveOrExpression();
1421 buff.append("|").append(expr);
1423 {if (true) return buff.toString();}
1424 throw new Error("Missing return statement in function");
1427 static final public String ExclusiveOrExpression() throws ParseException {
1429 final StringBuffer buff = new StringBuffer();
1430 expr = AndExpression();
1434 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1439 jj_la1[36] = jj_gen;
1442 jj_consume_token(XOR);
1443 expr = AndExpression();
1447 {if (true) return buff.toString();}
1448 throw new Error("Missing return statement in function");
1451 static final public String AndExpression() throws ParseException {
1453 final StringBuffer buff = new StringBuffer();
1454 expr = EqualityExpression();
1458 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1463 jj_la1[37] = jj_gen;
1466 jj_consume_token(BIT_AND);
1467 expr = EqualityExpression();
1468 buff.append("&").append(expr);
1470 {if (true) return buff.toString();}
1471 throw new Error("Missing return statement in function");
1474 static final public String EqualityExpression() throws ParseException {
1477 final StringBuffer buff = new StringBuffer();
1478 expr = RelationalExpression();
1482 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1486 case BANGDOUBLEEQUAL:
1491 jj_la1[38] = jj_gen;
1494 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1496 operator = jj_consume_token(EQ);
1499 operator = jj_consume_token(DIF);
1502 operator = jj_consume_token(NE);
1504 case BANGDOUBLEEQUAL:
1505 operator = jj_consume_token(BANGDOUBLEEQUAL);
1508 operator = jj_consume_token(TRIPLEEQUAL);
1511 jj_la1[39] = jj_gen;
1512 jj_consume_token(-1);
1513 throw new ParseException();
1516 expr = RelationalExpression();
1517 } catch (ParseException e) {
1518 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', expression expected after '"+operator.image+"'";
1520 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
1521 errorEnd = jj_input_stream.getPosition() + 1;
1522 {if (true) throw e;}
1524 buff.append(operator.image);
1527 {if (true) return buff.toString();}
1528 throw new Error("Missing return statement in function");
1531 static final public String RelationalExpression() throws ParseException {
1534 final StringBuffer buff = new StringBuffer();
1535 expr = ShiftExpression();
1539 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1547 jj_la1[40] = jj_gen;
1550 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1552 operator = jj_consume_token(LT);
1555 operator = jj_consume_token(GT);
1558 operator = jj_consume_token(LE);
1561 operator = jj_consume_token(GE);
1564 jj_la1[41] = jj_gen;
1565 jj_consume_token(-1);
1566 throw new ParseException();
1568 expr = ShiftExpression();
1569 buff.append(operator.image).append(expr);
1571 {if (true) return buff.toString();}
1572 throw new Error("Missing return statement in function");
1575 static final public String ShiftExpression() throws ParseException {
1578 final StringBuffer buff = new StringBuffer();
1579 expr = AdditiveExpression();
1583 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1586 case RUNSIGNEDSHIFT:
1590 jj_la1[42] = jj_gen;
1593 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1595 operator = jj_consume_token(LSHIFT);
1598 operator = jj_consume_token(RSIGNEDSHIFT);
1600 case RUNSIGNEDSHIFT:
1601 operator = jj_consume_token(RUNSIGNEDSHIFT);
1604 jj_la1[43] = jj_gen;
1605 jj_consume_token(-1);
1606 throw new ParseException();
1608 expr = AdditiveExpression();
1609 buff.append(operator.image);
1612 {if (true) return buff.toString();}
1613 throw new Error("Missing return statement in function");
1616 static final public String AdditiveExpression() throws ParseException {
1619 final StringBuffer buff = new StringBuffer();
1620 expr = MultiplicativeExpression();
1624 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1630 jj_la1[44] = jj_gen;
1633 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1635 operator = jj_consume_token(PLUS);
1638 operator = jj_consume_token(MINUS);
1641 jj_la1[45] = jj_gen;
1642 jj_consume_token(-1);
1643 throw new ParseException();
1645 expr = MultiplicativeExpression();
1646 buff.append(operator.image);
1649 {if (true) return buff.toString();}
1650 throw new Error("Missing return statement in function");
1653 static final public String MultiplicativeExpression() throws ParseException {
1656 final StringBuffer buff = new StringBuffer();
1658 expr = UnaryExpression();
1659 } catch (ParseException e) {
1660 errorMessage = "unexpected token '"+e.currentToken.next.image+"'";
1662 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
1663 errorEnd = jj_input_stream.getPosition() + 1;
1664 {if (true) throw e;}
1669 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1676 jj_la1[46] = jj_gen;
1679 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1681 operator = jj_consume_token(STAR);
1684 operator = jj_consume_token(SLASH);
1687 operator = jj_consume_token(REM);
1690 jj_la1[47] = jj_gen;
1691 jj_consume_token(-1);
1692 throw new ParseException();
1694 expr = UnaryExpression();
1695 buff.append(operator.image);
1698 {if (true) return buff.toString();}
1699 throw new Error("Missing return statement in function");
1703 * An unary expression starting with @, & or nothing
1705 static final public String UnaryExpression() throws ParseException {
1708 final StringBuffer buff = new StringBuffer();
1709 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1711 token = jj_consume_token(BIT_AND);
1712 expr = UnaryExpressionNoPrefix();
1713 if (token == null) {
1714 {if (true) return expr;}
1716 {if (true) return token.image + expr;}
1723 case INTEGER_LITERAL:
1724 case FLOATING_POINT_LITERAL:
1725 case STRING_LITERAL:
1738 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1743 jj_la1[48] = jj_gen;
1746 jj_consume_token(AT);
1749 expr = UnaryExpressionNoPrefix();
1750 {if (true) return buff.append(expr).toString();}
1753 jj_la1[49] = jj_gen;
1754 jj_consume_token(-1);
1755 throw new ParseException();
1757 throw new Error("Missing return statement in function");
1760 static final public String UnaryExpressionNoPrefix() throws ParseException {
1763 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1766 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1768 token = jj_consume_token(PLUS);
1771 token = jj_consume_token(MINUS);
1774 jj_la1[50] = jj_gen;
1775 jj_consume_token(-1);
1776 throw new ParseException();
1778 expr = UnaryExpression();
1779 {if (true) return token.image + expr;}
1783 expr = PreIncDecExpression();
1784 {if (true) return expr;}
1791 case INTEGER_LITERAL:
1792 case FLOATING_POINT_LITERAL:
1793 case STRING_LITERAL:
1799 expr = UnaryExpressionNotPlusMinus();
1800 {if (true) return expr;}
1803 jj_la1[51] = jj_gen;
1804 jj_consume_token(-1);
1805 throw new ParseException();
1807 throw new Error("Missing return statement in function");
1810 static final public String PreIncDecExpression() throws ParseException {
1813 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1815 token = jj_consume_token(INCR);
1818 token = jj_consume_token(DECR);
1821 jj_la1[52] = jj_gen;
1822 jj_consume_token(-1);
1823 throw new ParseException();
1825 expr = PrimaryExpression();
1826 {if (true) return token.image + expr;}
1827 throw new Error("Missing return statement in function");
1830 static final public String UnaryExpressionNotPlusMinus() throws ParseException {
1832 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1834 jj_consume_token(BANG);
1835 expr = UnaryExpression();
1836 {if (true) return "!" + expr;}
1839 jj_la1[53] = jj_gen;
1840 if (jj_2_4(2147483647)) {
1841 expr = CastExpression();
1842 {if (true) return expr;}
1844 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1850 expr = PostfixExpression();
1851 {if (true) return expr;}
1856 case INTEGER_LITERAL:
1857 case FLOATING_POINT_LITERAL:
1858 case STRING_LITERAL:
1860 {if (true) return expr;}
1863 jj_consume_token(LPAREN);
1864 expr = Expression();
1866 jj_consume_token(RPAREN);
1867 } catch (ParseException e) {
1868 errorMessage = "')' expected";
1870 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
1871 errorEnd = jj_input_stream.getPosition() + 1;
1872 {if (true) throw e;}
1874 {if (true) return "("+expr+")";}
1877 jj_la1[54] = jj_gen;
1878 jj_consume_token(-1);
1879 throw new ParseException();
1883 throw new Error("Missing return statement in function");
1886 static final public String CastExpression() throws ParseException {
1887 final String type, expr;
1888 jj_consume_token(LPAREN);
1889 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1902 jj_consume_token(ARRAY);
1906 jj_la1[55] = jj_gen;
1907 jj_consume_token(-1);
1908 throw new ParseException();
1910 jj_consume_token(RPAREN);
1911 expr = UnaryExpression();
1912 {if (true) return "(" + type + ")" + expr;}
1913 throw new Error("Missing return statement in function");
1916 static final public String PostfixExpression() throws ParseException {
1918 Token operator = null;
1919 expr = PrimaryExpression();
1920 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1923 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1925 operator = jj_consume_token(INCR);
1928 operator = jj_consume_token(DECR);
1931 jj_la1[56] = jj_gen;
1932 jj_consume_token(-1);
1933 throw new ParseException();
1937 jj_la1[57] = jj_gen;
1940 if (operator == null) {
1941 {if (true) return expr;}
1943 {if (true) return expr + operator.image;}
1944 throw new Error("Missing return statement in function");
1947 static final public String PrimaryExpression() throws ParseException {
1948 final Token identifier;
1950 final StringBuffer buff = new StringBuffer();
1952 identifier = jj_consume_token(IDENTIFIER);
1953 jj_consume_token(STATICCLASSACCESS);
1954 expr = ClassIdentifier();
1955 buff.append(identifier.image).append("::").append(expr);
1958 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1965 jj_la1[58] = jj_gen;
1968 expr = PrimarySuffix();
1971 {if (true) return buff.toString();}
1973 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1978 expr = PrimaryPrefix();
1982 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1989 jj_la1[59] = jj_gen;
1992 expr = PrimarySuffix();
1995 {if (true) return buff.toString();}
1998 expr = ArrayDeclarator();
1999 {if (true) return "array" + expr;}
2002 jj_la1[60] = jj_gen;
2003 jj_consume_token(-1);
2004 throw new ParseException();
2007 throw new Error("Missing return statement in function");
2010 static final public String ArrayDeclarator() throws ParseException {
2012 jj_consume_token(ARRAY);
2013 expr = ArrayInitializer();
2014 {if (true) return "array" + expr;}
2015 throw new Error("Missing return statement in function");
2018 static final public String PrimaryPrefix() throws ParseException {
2021 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2023 token = jj_consume_token(IDENTIFIER);
2024 {if (true) return token.image;}
2027 jj_consume_token(NEW);
2028 expr = ClassIdentifier();
2029 {if (true) return "new " + expr;}
2033 expr = VariableDeclaratorId();
2034 {if (true) return expr;}
2037 jj_la1[61] = jj_gen;
2038 jj_consume_token(-1);
2039 throw new ParseException();
2041 throw new Error("Missing return statement in function");
2044 static final public String classInstantiation() throws ParseException {
2046 final StringBuffer buff = new StringBuffer("new ");
2047 jj_consume_token(NEW);
2048 expr = ClassIdentifier();
2050 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2056 expr = PrimaryExpression();
2060 jj_la1[62] = jj_gen;
2063 {if (true) return buff.toString();}
2064 throw new Error("Missing return statement in function");
2067 static final public String ClassIdentifier() throws ParseException {
2070 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2072 token = jj_consume_token(IDENTIFIER);
2073 {if (true) return token.image;}
2077 expr = VariableDeclaratorId();
2078 {if (true) return expr;}
2081 jj_la1[63] = jj_gen;
2082 jj_consume_token(-1);
2083 throw new ParseException();
2085 throw new Error("Missing return statement in function");
2088 static final public String PrimarySuffix() throws ParseException {
2090 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2093 {if (true) return expr;}
2097 expr = VariableSuffix();
2098 {if (true) return expr;}
2101 jj_la1[64] = jj_gen;
2102 jj_consume_token(-1);
2103 throw new ParseException();
2105 throw new Error("Missing return statement in function");
2108 static final public String VariableSuffix() throws ParseException {
2110 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2112 jj_consume_token(CLASSACCESS);
2114 expr = VariableName();
2115 } catch (ParseException e) {
2116 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', function call or field access expected";
2118 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2119 errorEnd = jj_input_stream.getPosition() + 1;
2120 {if (true) throw e;}
2122 {if (true) return "->" + expr;}
2125 jj_consume_token(LBRACKET);
2126 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2143 case INTEGER_LITERAL:
2144 case FLOATING_POINT_LITERAL:
2145 case STRING_LITERAL:
2157 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2165 case INTEGER_LITERAL:
2166 case FLOATING_POINT_LITERAL:
2167 case STRING_LITERAL:
2179 expr = Expression();
2193 jj_la1[65] = jj_gen;
2194 jj_consume_token(-1);
2195 throw new ParseException();
2199 jj_la1[66] = jj_gen;
2203 jj_consume_token(RBRACKET);
2204 } catch (ParseException e) {
2205 errorMessage = "']' expected";
2207 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2208 errorEnd = jj_input_stream.getPosition() + 1;
2209 {if (true) throw e;}
2212 {if (true) return "[]";}
2214 {if (true) return "[" + expr + "]";}
2217 jj_la1[67] = jj_gen;
2218 jj_consume_token(-1);
2219 throw new ParseException();
2221 throw new Error("Missing return statement in function");
2224 static final public String Literal() throws ParseException {
2227 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2228 case INTEGER_LITERAL:
2229 token = jj_consume_token(INTEGER_LITERAL);
2230 {if (true) return token.image;}
2232 case FLOATING_POINT_LITERAL:
2233 token = jj_consume_token(FLOATING_POINT_LITERAL);
2234 {if (true) return token.image;}
2236 case STRING_LITERAL:
2237 token = jj_consume_token(STRING_LITERAL);
2238 {if (true) return token.image;}
2242 expr = BooleanLiteral();
2243 {if (true) return expr;}
2246 jj_consume_token(NULL);
2247 {if (true) return "null";}
2250 jj_la1[68] = jj_gen;
2251 jj_consume_token(-1);
2252 throw new ParseException();
2254 throw new Error("Missing return statement in function");
2257 static final public String BooleanLiteral() throws ParseException {
2258 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2260 jj_consume_token(TRUE);
2261 {if (true) return "true";}
2264 jj_consume_token(FALSE);
2265 {if (true) return "false";}
2268 jj_la1[69] = jj_gen;
2269 jj_consume_token(-1);
2270 throw new ParseException();
2272 throw new Error("Missing return statement in function");
2275 static final public String Arguments() throws ParseException {
2277 jj_consume_token(LPAREN);
2278 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2286 case INTEGER_LITERAL:
2287 case FLOATING_POINT_LITERAL:
2288 case STRING_LITERAL:
2300 expr = ArgumentList();
2303 jj_la1[70] = jj_gen;
2307 jj_consume_token(RPAREN);
2308 } catch (ParseException e) {
2309 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', ')' expected to close the argument list";
2311 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2312 errorEnd = jj_input_stream.getPosition() + 1;
2313 {if (true) throw e;}
2316 {if (true) return "()";}
2318 {if (true) return "(" + expr + ")";}
2319 throw new Error("Missing return statement in function");
2322 static final public String ArgumentList() throws ParseException {
2324 final StringBuffer buff = new StringBuffer();
2325 expr = Expression();
2329 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2334 jj_la1[71] = jj_gen;
2337 jj_consume_token(COMMA);
2339 expr = Expression();
2340 } catch (ParseException e) {
2341 errorMessage = "expression expected after a comma in argument list";
2343 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2344 errorEnd = jj_input_stream.getPosition() + 1;
2345 {if (true) throw e;}
2347 buff.append(",").append(expr);
2349 {if (true) return buff.toString();}
2350 throw new Error("Missing return statement in function");
2354 * A Statement without break
2356 static final public void StatementNoBreak() throws ParseException {
2360 jj_consume_token(SEMICOLON);
2361 } catch (ParseException e) {
2362 if (e.currentToken.next.kind != 4) {
2363 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"'. A ';' was expected";
2365 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2366 errorEnd = jj_input_stream.getPosition() + 1;
2367 {if (true) throw e;}
2370 } else if (jj_2_7(2)) {
2373 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2387 StatementExpression();
2389 jj_consume_token(SEMICOLON);
2390 } catch (ParseException e) {
2391 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"'. A ';' was expected";
2393 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2394 errorEnd = jj_input_stream.getPosition() + 1;
2395 {if (true) throw e;}
2417 ContinueStatement();
2430 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2432 jj_consume_token(AT);
2435 jj_la1[72] = jj_gen;
2447 jj_la1[73] = jj_gen;
2448 jj_consume_token(-1);
2449 throw new ParseException();
2455 * A Normal statement
2457 static final public void Statement() throws ParseException {
2458 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2481 case INTEGER_LITERAL:
2482 case FLOATING_POINT_LITERAL:
2483 case STRING_LITERAL:
2503 jj_la1[74] = jj_gen;
2504 jj_consume_token(-1);
2505 throw new ParseException();
2509 static final public void htmlBlock() throws ParseException {
2510 jj_consume_token(PHPEND);
2513 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2518 jj_la1[75] = jj_gen;
2523 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2525 jj_consume_token(PHPSTARTLONG);
2528 jj_consume_token(PHPSTARTSHORT);
2531 jj_la1[76] = jj_gen;
2532 jj_consume_token(-1);
2533 throw new ParseException();
2538 * An include statement. It's "include" an expression;
2540 static final public void IncludeStatement() throws ParseException {
2543 final int pos = jj_input_stream.getPosition();
2544 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2546 token = jj_consume_token(REQUIRE);
2549 token = jj_consume_token(REQUIRE_ONCE);
2552 token = jj_consume_token(INCLUDE);
2555 token = jj_consume_token(INCLUDE_ONCE);
2558 jj_la1[77] = jj_gen;
2559 jj_consume_token(-1);
2560 throw new ParseException();
2562 expr = Expression();
2563 if (currentSegment != null) {
2564 currentSegment.add(new PHPReqIncDeclaration(currentSegment, token.image,pos,expr));
2567 jj_consume_token(SEMICOLON);
2568 } catch (ParseException e) {
2569 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"'. A ';' was expected";
2571 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2572 errorEnd = jj_input_stream.getPosition() + 1;
2573 {if (true) throw e;}
2577 static final public String PrintExpression() throws ParseException {
2578 final StringBuffer buff = new StringBuffer("print ");
2580 jj_consume_token(PRINT);
2581 expr = Expression();
2583 {if (true) return buff.toString();}
2584 throw new Error("Missing return statement in function");
2587 static final public String ListExpression() throws ParseException {
2588 final StringBuffer buff = new StringBuffer("list(");
2590 jj_consume_token(LIST);
2592 jj_consume_token(LPAREN);
2593 } catch (ParseException e) {
2594 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', '(' expected";
2596 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2597 errorEnd = jj_input_stream.getPosition() + 1;
2598 {if (true) throw e;}
2600 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2603 expr = VariableDeclaratorId();
2607 jj_la1[78] = jj_gen;
2612 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2617 jj_la1[79] = jj_gen;
2621 jj_consume_token(COMMA);
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 expr = VariableDeclaratorId();
2630 buff.append(",").append(expr);
2634 jj_consume_token(RPAREN);
2635 } catch (ParseException e) {
2636 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', ')' expected";
2638 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2639 errorEnd = jj_input_stream.getPosition() + 1;
2640 {if (true) throw e;}
2642 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2644 jj_consume_token(ASSIGN);
2645 expr = Expression();
2646 buff.append("(").append(expr);
2649 jj_la1[80] = jj_gen;
2652 {if (true) return buff.toString();}
2653 throw new Error("Missing return statement in function");
2657 * An echo statement is like this : echo anyexpression (, otherexpression)*
2659 static final public void EchoStatement() throws ParseException {
2660 jj_consume_token(ECHO);
2664 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2669 jj_la1[81] = jj_gen;
2672 jj_consume_token(COMMA);
2676 jj_consume_token(SEMICOLON);
2677 } catch (ParseException e) {
2678 if (e.currentToken.next.kind != 4) {
2679 errorMessage = "';' expected after 'echo' statement";
2681 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2682 errorEnd = jj_input_stream.getPosition() + 1;
2683 {if (true) throw e;}
2688 static final public void GlobalStatement() throws ParseException {
2689 final int pos = jj_input_stream.getPosition();
2691 jj_consume_token(GLOBAL);
2692 expr = VariableDeclaratorId();
2693 if (currentSegment != null) {
2694 currentSegment.add(new PHPGlobalDeclaration(currentSegment, "global",pos,expr));
2698 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2703 jj_la1[82] = jj_gen;
2706 jj_consume_token(COMMA);
2707 expr = VariableDeclaratorId();
2708 if (currentSegment != null) {
2709 currentSegment.add(new PHPGlobalDeclaration(currentSegment, "global",pos,expr));
2713 jj_consume_token(SEMICOLON);
2714 } catch (ParseException e) {
2715 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"'. A ';' was expected";
2717 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2718 errorEnd = jj_input_stream.getPosition() + 1;
2719 {if (true) throw e;}
2723 static final public void StaticStatement() throws ParseException {
2724 jj_consume_token(STATIC);
2725 VariableDeclarator();
2728 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2733 jj_la1[83] = jj_gen;
2736 jj_consume_token(COMMA);
2737 VariableDeclarator();
2740 jj_consume_token(SEMICOLON);
2741 } catch (ParseException e) {
2742 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"'. A ';' was expected";
2744 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2745 errorEnd = jj_input_stream.getPosition() + 1;
2746 {if (true) throw e;}
2750 static final public void LabeledStatement() throws ParseException {
2751 jj_consume_token(IDENTIFIER);
2752 jj_consume_token(COLON);
2756 static final public void Block() throws ParseException {
2758 jj_consume_token(LBRACE);
2759 } catch (ParseException e) {
2760 errorMessage = "'{' expected";
2762 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2763 errorEnd = jj_input_stream.getPosition() + 1;
2764 {if (true) throw e;}
2768 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2795 case INTEGER_LITERAL:
2796 case FLOATING_POINT_LITERAL:
2797 case STRING_LITERAL:
2814 jj_la1[84] = jj_gen;
2817 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2843 case INTEGER_LITERAL:
2844 case FLOATING_POINT_LITERAL:
2845 case STRING_LITERAL:
2865 jj_la1[85] = jj_gen;
2866 jj_consume_token(-1);
2867 throw new ParseException();
2871 jj_consume_token(RBRACE);
2872 } catch (ParseException e) {
2873 errorMessage = "unexpected token : '"+ e.currentToken.image +"', '}' expected";
2875 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2876 errorEnd = jj_input_stream.getPosition() + 1;
2877 {if (true) throw e;}
2881 static final public void BlockStatement() throws ParseException {
2882 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2906 case INTEGER_LITERAL:
2907 case FLOATING_POINT_LITERAL:
2908 case STRING_LITERAL:
2928 MethodDeclaration();
2931 jj_la1[86] = jj_gen;
2932 jj_consume_token(-1);
2933 throw new ParseException();
2938 * A Block statement that will not contain any 'break'
2940 static final public void BlockStatementNoBreak() throws ParseException {
2941 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2964 case INTEGER_LITERAL:
2965 case FLOATING_POINT_LITERAL:
2966 case STRING_LITERAL:
2986 MethodDeclaration();
2989 jj_la1[87] = jj_gen;
2990 jj_consume_token(-1);
2991 throw new ParseException();
2995 static final public void LocalVariableDeclaration() throws ParseException {
2996 LocalVariableDeclarator();
2999 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3004 jj_la1[88] = jj_gen;
3007 jj_consume_token(COMMA);
3008 LocalVariableDeclarator();
3012 static final public void LocalVariableDeclarator() throws ParseException {
3013 VariableDeclaratorId();
3014 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3016 jj_consume_token(ASSIGN);
3020 jj_la1[89] = jj_gen;
3025 static final public void EmptyStatement() throws ParseException {
3026 jj_consume_token(SEMICOLON);
3029 static final public void StatementExpression() throws ParseException {
3030 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3033 PreIncDecExpression();
3040 PrimaryExpression();
3041 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3056 case RSIGNEDSHIFTASSIGN:
3057 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3059 jj_consume_token(INCR);
3062 jj_consume_token(DECR);
3076 case RSIGNEDSHIFTASSIGN:
3077 AssignmentOperator();
3081 jj_la1[90] = jj_gen;
3082 jj_consume_token(-1);
3083 throw new ParseException();
3087 jj_la1[91] = jj_gen;
3092 jj_la1[92] = jj_gen;
3093 jj_consume_token(-1);
3094 throw new ParseException();
3098 static final public void SwitchStatement() throws ParseException {
3099 final int pos = jj_input_stream.getPosition();
3100 jj_consume_token(SWITCH);
3102 jj_consume_token(LPAREN);
3103 } catch (ParseException e) {
3104 errorMessage = "'(' expected after 'switch'";
3106 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3107 errorEnd = jj_input_stream.getPosition() + 1;
3108 {if (true) throw e;}
3112 } catch (ParseException e) {
3113 if (errorMessage != null) {
3114 {if (true) throw e;}
3116 errorMessage = "expression expected";
3118 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3119 errorEnd = jj_input_stream.getPosition() + 1;
3120 {if (true) throw e;}
3123 jj_consume_token(RPAREN);
3124 } catch (ParseException e) {
3125 errorMessage = "')' expected";
3127 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3128 errorEnd = jj_input_stream.getPosition() + 1;
3129 {if (true) throw e;}
3131 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3133 switchStatementBrace();
3136 switchStatementColon(pos, pos + 6);
3139 jj_la1[93] = jj_gen;
3140 jj_consume_token(-1);
3141 throw new ParseException();
3145 static final public void switchStatementBrace() throws ParseException {
3146 jj_consume_token(LBRACE);
3149 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3155 jj_la1[94] = jj_gen;
3161 jj_consume_token(RBRACE);
3162 } catch (ParseException e) {
3163 errorMessage = "'}' expected";
3165 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3166 errorEnd = jj_input_stream.getPosition() + 1;
3167 {if (true) throw e;}
3172 * A Switch statement with : ... endswitch;
3173 * @param start the begin offset of the switch
3174 * @param end the end offset of the switch
3176 static final public void switchStatementColon(final int start, final int end) throws ParseException {
3177 jj_consume_token(COLON);
3179 setMarker(fileToParse,
3180 "Ugly syntax detected, you should switch () {...} instead of switch (): ... enswitch;",
3184 "Line " + token.beginLine);
3185 } catch (CoreException e) {
3186 PHPeclipsePlugin.log(e);
3190 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3196 jj_la1[95] = jj_gen;
3202 jj_consume_token(ENDSWITCH);
3203 } catch (ParseException e) {
3204 errorMessage = "'endswitch' expected";
3206 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3207 errorEnd = jj_input_stream.getPosition() + 1;
3208 {if (true) throw e;}
3211 jj_consume_token(SEMICOLON);
3212 } catch (ParseException e) {
3213 errorMessage = "';' expected after 'endswitch' keyword";
3215 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3216 errorEnd = jj_input_stream.getPosition() + 1;
3217 {if (true) throw e;}
3221 static final public void switchLabel0() throws ParseException {
3222 Token breakToken = null;
3224 line = SwitchLabel();
3227 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3253 case INTEGER_LITERAL:
3254 case FLOATING_POINT_LITERAL:
3255 case STRING_LITERAL:
3272 jj_la1[96] = jj_gen;
3275 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3300 case INTEGER_LITERAL:
3301 case FLOATING_POINT_LITERAL:
3302 case STRING_LITERAL:
3316 BlockStatementNoBreak();
3322 jj_la1[97] = jj_gen;
3323 jj_consume_token(-1);
3324 throw new ParseException();
3327 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3329 breakToken = BreakStatement();
3332 jj_la1[98] = jj_gen;
3336 if (breakToken == null) {
3337 setMarker(fileToParse,
3338 "You should use put a 'break' at the end of your statement",
3343 } catch (CoreException e) {
3344 PHPeclipsePlugin.log(e);
3348 static final public Token BreakStatement() throws ParseException {
3350 token = jj_consume_token(BREAK);
3351 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3359 case INTEGER_LITERAL:
3360 case FLOATING_POINT_LITERAL:
3361 case STRING_LITERAL:
3376 jj_la1[99] = jj_gen;
3380 jj_consume_token(SEMICOLON);
3381 } catch (ParseException e) {
3382 errorMessage = "';' expected after 'break' keyword";
3384 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3385 errorEnd = jj_input_stream.getPosition() + 1;
3386 {if (true) throw e;}
3388 {if (true) return token;}
3389 throw new Error("Missing return statement in function");
3392 static final public int SwitchLabel() throws ParseException {
3394 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3396 token = jj_consume_token(CASE);
3399 } catch (ParseException e) {
3400 if (errorMessage != null) {if (true) throw e;}
3401 errorMessage = "expression expected after 'case' keyword";
3403 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3404 errorEnd = jj_input_stream.getPosition() + 1;
3405 {if (true) throw e;}
3408 jj_consume_token(COLON);
3409 } catch (ParseException e) {
3410 errorMessage = "':' expected after case expression";
3412 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3413 errorEnd = jj_input_stream.getPosition() + 1;
3414 {if (true) throw e;}
3416 {if (true) return token.beginLine;}
3419 token = jj_consume_token(_DEFAULT);
3421 jj_consume_token(COLON);
3422 } catch (ParseException e) {
3423 errorMessage = "':' expected after 'default' keyword";
3425 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3426 errorEnd = jj_input_stream.getPosition() + 1;
3427 {if (true) throw e;}
3429 {if (true) return token.beginLine;}
3432 jj_la1[100] = jj_gen;
3433 jj_consume_token(-1);
3434 throw new ParseException();
3436 throw new Error("Missing return statement in function");
3439 static final public void IfStatement() throws ParseException {
3441 final int pos = jj_input_stream.getPosition();
3442 token = jj_consume_token(IF);
3444 IfStatement0(pos,pos+token.image.length());
3447 static final public void Condition(final String keyword) throws ParseException {
3449 jj_consume_token(LPAREN);
3450 } catch (ParseException e) {
3451 errorMessage = "'(' expected after " + keyword + " keyword";
3453 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length();
3454 errorEnd = errorStart +1;
3455 processParseException(e);
3459 jj_consume_token(RPAREN);
3460 } catch (ParseException e) {
3461 errorMessage = "')' expected after " + keyword + " keyword";
3463 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3464 errorEnd = jj_input_stream.getPosition() + 1;
3465 {if (true) throw e;}
3469 static final public void IfStatement0(final int start,final int end) throws ParseException {
3470 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3472 jj_consume_token(COLON);
3475 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3500 case INTEGER_LITERAL:
3501 case FLOATING_POINT_LITERAL:
3502 case STRING_LITERAL:
3519 jj_la1[101] = jj_gen;
3522 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3546 case INTEGER_LITERAL:
3547 case FLOATING_POINT_LITERAL:
3548 case STRING_LITERAL:
3568 jj_la1[102] = jj_gen;
3569 jj_consume_token(-1);
3570 throw new ParseException();
3575 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3580 jj_la1[103] = jj_gen;
3583 ElseIfStatementColon();
3585 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3587 ElseStatementColon();
3590 jj_la1[104] = jj_gen;
3594 setMarker(fileToParse,
3595 "Ugly syntax detected, you should if () {...} instead of if (): ... endif;",
3599 "Line " + token.beginLine);
3600 } catch (CoreException e) {
3601 PHPeclipsePlugin.log(e);
3604 jj_consume_token(ENDIF);
3605 } catch (ParseException e) {
3606 errorMessage = "'endif' expected";
3608 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3609 errorEnd = jj_input_stream.getPosition() + 1;
3610 {if (true) throw e;}
3613 jj_consume_token(SEMICOLON);
3614 } catch (ParseException e) {
3615 errorMessage = "';' expected after 'endif' keyword";
3617 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3618 errorEnd = jj_input_stream.getPosition() + 1;
3619 {if (true) throw e;}
3646 case INTEGER_LITERAL:
3647 case FLOATING_POINT_LITERAL:
3648 case STRING_LITERAL:
3662 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3686 case INTEGER_LITERAL:
3687 case FLOATING_POINT_LITERAL:
3688 case STRING_LITERAL:
3708 jj_la1[105] = jj_gen;
3709 jj_consume_token(-1);
3710 throw new ParseException();
3714 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3719 jj_la1[106] = jj_gen;
3724 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3726 jj_consume_token(ELSE);
3729 } catch (ParseException e) {
3730 if (errorMessage != null) {
3731 {if (true) throw e;}
3733 errorMessage = "unexpected token '"+e.currentToken.next.image+"', a statement was expected";
3735 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3736 errorEnd = jj_input_stream.getPosition() + 1;
3737 {if (true) throw e;}
3741 jj_la1[107] = jj_gen;
3746 jj_la1[108] = jj_gen;
3747 jj_consume_token(-1);
3748 throw new ParseException();
3752 static final public void ElseIfStatementColon() throws ParseException {
3753 jj_consume_token(ELSEIF);
3754 Condition("elseif");
3755 jj_consume_token(COLON);
3758 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3783 case INTEGER_LITERAL:
3784 case FLOATING_POINT_LITERAL:
3785 case STRING_LITERAL:
3802 jj_la1[109] = jj_gen;
3805 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3829 case INTEGER_LITERAL:
3830 case FLOATING_POINT_LITERAL:
3831 case STRING_LITERAL:
3851 jj_la1[110] = jj_gen;
3852 jj_consume_token(-1);
3853 throw new ParseException();
3858 static final public void ElseStatementColon() throws ParseException {
3859 jj_consume_token(ELSE);
3860 jj_consume_token(COLON);
3863 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3888 case INTEGER_LITERAL:
3889 case FLOATING_POINT_LITERAL:
3890 case STRING_LITERAL:
3907 jj_la1[111] = jj_gen;
3910 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3934 case INTEGER_LITERAL:
3935 case FLOATING_POINT_LITERAL:
3936 case STRING_LITERAL:
3956 jj_la1[112] = jj_gen;
3957 jj_consume_token(-1);
3958 throw new ParseException();
3963 static final public void ElseIfStatement() throws ParseException {
3964 jj_consume_token(ELSEIF);
3965 Condition("elseif");
3969 static final public void WhileStatement() throws ParseException {
3971 final int pos = jj_input_stream.getPosition();
3972 token = jj_consume_token(WHILE);
3974 WhileStatement0(pos,pos + token.image.length());
3977 static final public void WhileStatement0(final int start, final int end) throws ParseException {
3978 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3980 jj_consume_token(COLON);
3983 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4007 case INTEGER_LITERAL:
4008 case FLOATING_POINT_LITERAL:
4009 case STRING_LITERAL:
4026 jj_la1[113] = jj_gen;
4032 setMarker(fileToParse,
4033 "Ugly syntax detected, you should while () {...} instead of while (): ... endwhile;",
4037 "Line " + token.beginLine);
4038 } catch (CoreException e) {
4039 PHPeclipsePlugin.log(e);
4042 jj_consume_token(ENDWHILE);
4043 } catch (ParseException e) {
4044 errorMessage = "'endwhile' expected";
4046 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
4047 errorEnd = jj_input_stream.getPosition() + 1;
4048 {if (true) throw e;}
4051 jj_consume_token(SEMICOLON);
4052 } catch (ParseException e) {
4053 errorMessage = "';' expected after 'endwhile' keyword";
4055 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
4056 errorEnd = jj_input_stream.getPosition() + 1;
4057 {if (true) throw e;}
4083 case INTEGER_LITERAL:
4084 case FLOATING_POINT_LITERAL:
4085 case STRING_LITERAL:
4102 jj_la1[114] = jj_gen;
4103 jj_consume_token(-1);
4104 throw new ParseException();
4108 static final public void DoStatement() throws ParseException {
4109 jj_consume_token(DO);
4111 jj_consume_token(WHILE);
4114 jj_consume_token(SEMICOLON);
4115 } catch (ParseException e) {
4116 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"'. A ';' was expected";
4118 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
4119 errorEnd = jj_input_stream.getPosition() + 1;
4120 {if (true) throw e;}
4124 static final public void ForeachStatement() throws ParseException {
4125 jj_consume_token(FOREACH);
4127 jj_consume_token(LPAREN);
4128 } catch (ParseException e) {
4129 errorMessage = "'(' expected after 'foreach' keyword";
4131 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
4132 errorEnd = jj_input_stream.getPosition() + 1;
4133 {if (true) throw e;}
4137 } catch (ParseException e) {
4138 errorMessage = "variable expected";
4140 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
4141 errorEnd = jj_input_stream.getPosition() + 1;
4142 {if (true) throw e;}
4146 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4152 jj_la1[115] = jj_gen;
4158 jj_consume_token(AS);
4159 } catch (ParseException e) {
4160 errorMessage = "'as' expected";
4162 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
4163 errorEnd = jj_input_stream.getPosition() + 1;
4164 {if (true) throw e;}
4168 } catch (ParseException e) {
4169 errorMessage = "variable expected";
4171 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
4172 errorEnd = jj_input_stream.getPosition() + 1;
4173 {if (true) throw e;}
4175 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4177 jj_consume_token(ARRAYASSIGN);
4181 jj_la1[116] = jj_gen;
4185 jj_consume_token(RPAREN);
4186 } catch (ParseException e) {
4187 errorMessage = "')' expected after 'foreach' keyword";
4189 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
4190 errorEnd = jj_input_stream.getPosition() + 1;
4191 {if (true) throw e;}
4195 } catch (ParseException e) {
4196 if (errorMessage != null) {if (true) throw e;}
4197 errorMessage = "statement expected";
4199 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
4200 errorEnd = jj_input_stream.getPosition() + 1;
4201 {if (true) throw e;}
4205 static final public void ForStatement() throws ParseException {
4207 final int pos = jj_input_stream.getPosition();
4208 token = jj_consume_token(FOR);
4210 jj_consume_token(LPAREN);
4211 } catch (ParseException e) {
4212 errorMessage = "'(' expected after 'for' keyword";
4214 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
4215 errorEnd = jj_input_stream.getPosition() + 1;
4216 {if (true) throw e;}
4218 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4229 jj_la1[117] = jj_gen;
4232 jj_consume_token(SEMICOLON);
4233 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4241 case INTEGER_LITERAL:
4242 case FLOATING_POINT_LITERAL:
4243 case STRING_LITERAL:
4258 jj_la1[118] = jj_gen;
4261 jj_consume_token(SEMICOLON);
4262 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4270 StatementExpressionList();
4273 jj_la1[119] = jj_gen;
4276 jj_consume_token(RPAREN);
4277 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4301 case INTEGER_LITERAL:
4302 case FLOATING_POINT_LITERAL:
4303 case STRING_LITERAL:
4320 jj_consume_token(COLON);
4323 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4347 case INTEGER_LITERAL:
4348 case FLOATING_POINT_LITERAL:
4349 case STRING_LITERAL:
4366 jj_la1[120] = jj_gen;
4372 setMarker(fileToParse,
4373 "Ugly syntax detected, you should for () {...} instead of for (): ... endfor;",
4375 pos+token.image.length(),
4377 "Line " + token.beginLine);
4378 } catch (CoreException e) {
4379 PHPeclipsePlugin.log(e);
4382 jj_consume_token(ENDFOR);
4383 } catch (ParseException e) {
4384 errorMessage = "'endfor' expected";
4386 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
4387 errorEnd = jj_input_stream.getPosition() + 1;
4388 {if (true) throw e;}
4391 jj_consume_token(SEMICOLON);
4392 } catch (ParseException e) {
4393 errorMessage = "';' expected after 'endfor' keyword";
4395 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
4396 errorEnd = jj_input_stream.getPosition() + 1;
4397 {if (true) throw e;}
4401 jj_la1[121] = jj_gen;
4402 jj_consume_token(-1);
4403 throw new ParseException();
4407 static final public void ForInit() throws ParseException {
4408 if (jj_2_8(2147483647)) {
4409 LocalVariableDeclaration();
4411 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4419 StatementExpressionList();
4422 jj_la1[122] = jj_gen;
4423 jj_consume_token(-1);
4424 throw new ParseException();
4429 static final public void StatementExpressionList() throws ParseException {
4430 StatementExpression();
4433 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4438 jj_la1[123] = jj_gen;
4441 jj_consume_token(COMMA);
4442 StatementExpression();
4446 static final public void ContinueStatement() throws ParseException {
4447 jj_consume_token(CONTINUE);
4448 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4456 case INTEGER_LITERAL:
4457 case FLOATING_POINT_LITERAL:
4458 case STRING_LITERAL:
4473 jj_la1[124] = jj_gen;
4477 jj_consume_token(SEMICOLON);
4478 } catch (ParseException e) {
4479 errorMessage = "';' expected after 'continue' statement";
4481 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
4482 errorEnd = jj_input_stream.getPosition() + 1;
4483 {if (true) throw e;}
4487 static final public void ReturnStatement() throws ParseException {
4488 jj_consume_token(RETURN);
4489 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4497 case INTEGER_LITERAL:
4498 case FLOATING_POINT_LITERAL:
4499 case STRING_LITERAL:
4514 jj_la1[125] = jj_gen;
4518 jj_consume_token(SEMICOLON);
4519 } catch (ParseException e) {
4520 errorMessage = "';' expected after 'return' statement";
4522 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
4523 errorEnd = jj_input_stream.getPosition() + 1;
4524 {if (true) throw e;}
4528 static final private boolean jj_2_1(int xla) {
4529 jj_la = xla; jj_lastpos = jj_scanpos = token;
4530 boolean retval = !jj_3_1();
4535 static final private boolean jj_2_2(int xla) {
4536 jj_la = xla; jj_lastpos = jj_scanpos = token;
4537 boolean retval = !jj_3_2();
4542 static final private boolean jj_2_3(int xla) {
4543 jj_la = xla; jj_lastpos = jj_scanpos = token;
4544 boolean retval = !jj_3_3();
4549 static final private boolean jj_2_4(int xla) {
4550 jj_la = xla; jj_lastpos = jj_scanpos = token;
4551 boolean retval = !jj_3_4();
4556 static final private boolean jj_2_5(int xla) {
4557 jj_la = xla; jj_lastpos = jj_scanpos = token;
4558 boolean retval = !jj_3_5();
4563 static final private boolean jj_2_6(int xla) {
4564 jj_la = xla; jj_lastpos = jj_scanpos = token;
4565 boolean retval = !jj_3_6();
4570 static final private boolean jj_2_7(int xla) {
4571 jj_la = xla; jj_lastpos = jj_scanpos = token;
4572 boolean retval = !jj_3_7();
4577 static final private boolean jj_2_8(int xla) {
4578 jj_la = xla; jj_lastpos = jj_scanpos = token;
4579 boolean retval = !jj_3_8();
4584 static final private boolean jj_3R_58() {
4585 if (jj_3R_88()) return true;
4586 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4590 static final private boolean jj_3R_102() {
4591 if (jj_scan_token(COMMA)) return true;
4592 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4593 if (jj_3R_52()) return true;
4594 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4598 static final private boolean jj_3R_57() {
4599 if (jj_3R_44()) return true;
4600 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4604 static final private boolean jj_3R_56() {
4605 if (jj_3R_87()) return true;
4606 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4610 static final private boolean jj_3R_101() {
4611 if (jj_3R_52()) return true;
4612 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4616 static final private boolean jj_3_4() {
4617 if (jj_scan_token(LPAREN)) return true;
4618 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4623 if (jj_3R_46()) return true;
4624 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4625 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4626 if (jj_scan_token(RPAREN)) return true;
4627 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4631 static final private boolean jj_3R_47() {
4640 if (jj_3R_58()) return true;
4641 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4642 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4643 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4644 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4648 static final private boolean jj_3R_55() {
4649 if (jj_3R_86()) return true;
4650 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4654 static final private boolean jj_3R_165() {
4655 if (jj_scan_token(LPAREN)) return true;
4656 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4657 if (jj_3R_47()) return true;
4658 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4659 if (jj_scan_token(RPAREN)) return true;
4660 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4664 static final private boolean jj_3R_164() {
4665 if (jj_3R_169()) return true;
4666 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4670 static final private boolean jj_3R_160() {
4671 if (jj_scan_token(DECR)) return true;
4672 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4676 static final private boolean jj_3R_163() {
4677 if (jj_3R_168()) return true;
4678 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4682 static final private boolean jj_3R_162() {
4683 if (jj_3R_167()) return true;
4684 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4688 static final private boolean jj_3R_87() {
4689 if (jj_scan_token(LIST)) return true;
4690 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4691 if (jj_scan_token(LPAREN)) return true;
4692 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4695 if (jj_3R_101()) jj_scanpos = xsp;
4696 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4699 if (jj_3R_102()) { jj_scanpos = xsp; break; }
4700 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4702 if (jj_scan_token(RPAREN)) return true;
4703 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4705 if (jj_3R_103()) jj_scanpos = xsp;
4706 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4710 static final private boolean jj_3R_85() {
4711 if (jj_scan_token(OBJECT)) return true;
4712 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4716 static final private boolean jj_3R_158() {
4727 if (jj_3R_165()) return true;
4728 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4729 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4730 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4731 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4732 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4736 static final private boolean jj_3R_161() {
4737 if (jj_scan_token(BANG)) return true;
4738 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4739 if (jj_3R_141()) return true;
4740 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4744 static final private boolean jj_3R_84() {
4745 if (jj_scan_token(INTEGER)) return true;
4746 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4750 static final private boolean jj_3R_83() {
4751 if (jj_scan_token(INT)) return true;
4752 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4756 static final private boolean jj_3R_82() {
4757 if (jj_scan_token(FLOAT)) return true;
4758 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4762 static final private boolean jj_3R_159() {
4763 if (jj_scan_token(INCR)) return true;
4764 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4768 static final private boolean jj_3R_156() {
4769 if (jj_scan_token(MINUS)) return true;
4770 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4774 static final private boolean jj_3R_157() {
4779 if (jj_3R_160()) return true;
4780 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4781 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4782 if (jj_3R_166()) return true;
4783 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4787 static final private boolean jj_3R_81() {
4788 if (jj_scan_token(DOUBLE)) return true;
4789 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4793 static final private boolean jj_3R_86() {
4794 if (jj_scan_token(PRINT)) return true;
4795 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4796 if (jj_3R_47()) return true;
4797 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4801 static final private boolean jj_3R_80() {
4802 if (jj_scan_token(REAL)) return true;
4803 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4807 static final private boolean jj_3R_79() {
4808 if (jj_scan_token(BOOLEAN)) return true;
4809 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4813 static final private boolean jj_3R_78() {
4814 if (jj_scan_token(BOOL)) return true;
4815 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4819 static final private boolean jj_3R_149() {
4820 if (jj_scan_token(REM)) return true;
4821 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4825 static final private boolean jj_3R_154() {
4826 if (jj_3R_158()) return true;
4827 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4831 static final private boolean jj_3R_77() {
4832 if (jj_scan_token(STRING)) return true;
4833 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4837 static final private boolean jj_3R_54() {
4856 if (jj_3R_85()) return true;
4857 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4858 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4859 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4860 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4861 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4862 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4863 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4864 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4865 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4869 static final private boolean jj_3R_153() {
4870 if (jj_3R_157()) return true;
4871 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4875 static final private boolean jj_3R_155() {
4876 if (jj_scan_token(PLUS)) return true;
4877 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4881 static final private boolean jj_3R_150() {
4888 if (jj_3R_154()) return true;
4889 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4890 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4891 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4895 static final private boolean jj_3R_152() {
4900 if (jj_3R_156()) return true;
4901 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4902 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4903 if (jj_3R_141()) return true;
4904 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4908 static final private boolean jj_3R_151() {
4909 if (jj_scan_token(AT)) return true;
4910 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4914 static final private boolean jj_3R_146() {
4918 if (jj_3R_151()) { jj_scanpos = xsp; break; }
4919 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4921 if (jj_3R_150()) return true;
4922 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4926 static final private boolean jj_3R_148() {
4927 if (jj_scan_token(SLASH)) return true;
4928 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4932 static final private boolean jj_3R_141() {
4937 if (jj_3R_146()) return true;
4938 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4939 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4943 static final private boolean jj_3R_145() {
4944 if (jj_scan_token(BIT_AND)) return true;
4945 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4946 if (jj_3R_150()) return true;
4947 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4951 static final private boolean jj_3R_140() {
4952 if (jj_scan_token(RUNSIGNEDSHIFT)) return true;
4953 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4957 static final private boolean jj_3R_147() {
4958 if (jj_scan_token(STAR)) return true;
4959 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4963 static final private boolean jj_3R_142() {
4970 if (jj_3R_149()) return true;
4971 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4972 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4973 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4974 if (jj_3R_141()) return true;
4975 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4979 static final private boolean jj_3R_144() {
4980 if (jj_scan_token(MINUS)) return true;
4981 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4985 static final private boolean jj_3R_135() {
4986 if (jj_scan_token(GE)) return true;
4987 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4991 static final private boolean jj_3R_136() {
4992 if (jj_3R_141()) return true;
4993 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4997 if (jj_3R_142()) { jj_scanpos = xsp; break; }
4998 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5003 static final private boolean jj_3R_139() {
5004 if (jj_scan_token(RSIGNEDSHIFT)) return true;
5005 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5009 static final private boolean jj_3R_134() {
5010 if (jj_scan_token(LE)) return true;
5011 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5015 static final private boolean jj_3R_143() {
5016 if (jj_scan_token(PLUS)) return true;
5017 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5021 static final private boolean jj_3R_137() {
5026 if (jj_3R_144()) return true;
5027 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5028 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5029 if (jj_3R_136()) return true;
5030 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5034 static final private boolean jj_3R_130() {
5035 if (jj_3R_136()) return true;
5036 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5040 if (jj_3R_137()) { jj_scanpos = xsp; break; }
5041 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5046 static final private boolean jj_3_8() {
5047 if (jj_3R_49()) return true;
5048 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5052 static final private boolean jj_3R_133() {
5053 if (jj_scan_token(GT)) return true;
5054 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5058 static final private boolean jj_3_7() {
5059 if (jj_3R_48()) return true;
5060 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5064 static final private boolean jj_3R_138() {
5065 if (jj_scan_token(LSHIFT)) return true;
5066 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5070 static final private boolean jj_3R_131() {
5077 if (jj_3R_140()) return true;
5078 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5079 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5080 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5081 if (jj_3R_130()) return true;
5082 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5086 static final private boolean jj_3R_123() {
5087 if (jj_3R_130()) return true;
5088 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5092 if (jj_3R_131()) { jj_scanpos = xsp; break; }
5093 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5098 static final private boolean jj_3_6() {
5099 if (jj_3R_47()) return true;
5100 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5101 if (jj_scan_token(SEMICOLON)) return true;
5102 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5106 static final private boolean jj_3R_132() {
5107 if (jj_scan_token(LT)) return true;
5108 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5112 static final private boolean jj_3R_124() {
5121 if (jj_3R_135()) return true;
5122 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5123 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5124 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5125 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5126 if (jj_3R_123()) return true;
5127 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5131 static final private boolean jj_3R_121() {
5132 if (jj_3R_123()) return true;
5133 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5137 if (jj_3R_124()) { jj_scanpos = xsp; break; }
5138 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5143 static final private boolean jj_3R_205() {
5144 if (jj_scan_token(COMMA)) return true;
5145 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5146 if (jj_3R_47()) return true;
5147 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5151 static final private boolean jj_3R_204() {
5152 if (jj_3R_47()) return true;
5153 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5157 if (jj_3R_205()) { jj_scanpos = xsp; break; }
5158 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5163 static final private boolean jj_3R_129() {
5164 if (jj_scan_token(TRIPLEEQUAL)) return true;
5165 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5169 static final private boolean jj_3R_128() {
5170 if (jj_scan_token(BANGDOUBLEEQUAL)) return true;
5171 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5175 static final private boolean jj_3R_127() {
5176 if (jj_scan_token(NE)) return true;
5177 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5181 static final private boolean jj_3R_126() {
5182 if (jj_scan_token(DIF)) return true;
5183 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5187 static final private boolean jj_3R_125() {
5188 if (jj_scan_token(EQ)) return true;
5189 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5193 static final private boolean jj_3R_202() {
5194 if (jj_3R_204()) return true;
5195 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5199 static final private boolean jj_3R_200() {
5200 if (jj_scan_token(COMMA)) return true;
5201 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5205 static final private boolean jj_3R_122() {
5216 if (jj_3R_129()) return true;
5217 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5218 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5219 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5220 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5221 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5222 if (jj_3R_121()) return true;
5223 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5227 static final private boolean jj_3_2() {
5228 if (jj_scan_token(COMMA)) return true;
5229 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5230 if (jj_3R_43()) return true;
5231 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5235 static final private boolean jj_3R_119() {
5236 if (jj_3R_121()) return true;
5237 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5241 if (jj_3R_122()) { jj_scanpos = xsp; break; }
5242 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5247 static final private boolean jj_3R_199() {
5248 if (jj_3R_43()) return true;
5249 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5253 if (jj_3_2()) { jj_scanpos = xsp; break; }
5254 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5259 static final private boolean jj_3R_201() {
5260 if (jj_scan_token(LPAREN)) return true;
5261 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5264 if (jj_3R_202()) jj_scanpos = xsp;
5265 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5266 if (jj_scan_token(RPAREN)) return true;
5267 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5271 static final private boolean jj_3R_194() {
5272 if (jj_scan_token(LPAREN)) return true;
5273 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5276 if (jj_3R_199()) jj_scanpos = xsp;
5277 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5279 if (jj_3R_200()) jj_scanpos = xsp;
5280 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5281 if (jj_scan_token(RPAREN)) return true;
5282 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5286 static final private boolean jj_3R_120() {
5287 if (jj_scan_token(BIT_AND)) return true;
5288 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5289 if (jj_3R_119()) return true;
5290 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5294 static final private boolean jj_3R_196() {
5295 if (jj_scan_token(FALSE)) return true;
5296 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5300 static final private boolean jj_3R_195() {
5301 if (jj_scan_token(TRUE)) return true;
5302 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5306 static final private boolean jj_3R_185() {
5311 if (jj_3R_196()) return true;
5312 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5313 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5317 static final private boolean jj_3R_117() {
5318 if (jj_3R_119()) return true;
5319 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5323 if (jj_3R_120()) { jj_scanpos = xsp; break; }
5324 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5329 static final private boolean jj_3R_203() {
5330 if (jj_scan_token(ARRAYASSIGN)) return true;
5331 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5332 if (jj_3R_47()) return true;
5333 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5337 static final private boolean jj_3R_43() {
5338 if (jj_3R_47()) return true;
5339 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5342 if (jj_3R_203()) jj_scanpos = xsp;
5343 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5347 static final private boolean jj_3R_176() {
5348 if (jj_scan_token(NULL)) return true;
5349 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5353 static final private boolean jj_3R_89() {
5354 if (jj_scan_token(ASSIGN)) return true;
5355 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5356 if (jj_3R_47()) return true;
5357 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5361 static final private boolean jj_3R_95() {
5362 if (jj_3R_54()) return true;
5363 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5367 static final private boolean jj_3R_175() {
5368 if (jj_3R_185()) return true;
5369 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5373 static final private boolean jj_3R_60() {
5374 if (jj_scan_token(COMMA)) return true;
5375 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5376 if (jj_3R_59()) return true;
5377 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5381 static final private boolean jj_3R_174() {
5382 if (jj_scan_token(STRING_LITERAL)) return true;
5383 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5387 static final private boolean jj_3R_118() {
5388 if (jj_scan_token(XOR)) return true;
5389 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5390 if (jj_3R_117()) return true;
5391 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5395 static final private boolean jj_3R_173() {
5396 if (jj_scan_token(FLOATING_POINT_LITERAL)) return true;
5397 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5401 static final private boolean jj_3R_169() {
5412 if (jj_3R_176()) return true;
5413 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5414 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5415 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5416 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5417 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5421 static final private boolean jj_3R_172() {
5422 if (jj_scan_token(INTEGER_LITERAL)) return true;
5423 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5427 static final private boolean jj_3R_115() {
5428 if (jj_3R_117()) return true;
5429 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5433 if (jj_3R_118()) { jj_scanpos = xsp; break; }
5434 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5439 static final private boolean jj_3R_94() {
5440 if (jj_3R_47()) return true;
5441 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5445 static final private boolean jj_3R_62() {
5450 if (jj_3R_95()) return true;
5451 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5452 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5456 static final private boolean jj_3R_59() {
5457 if (jj_3R_52()) return true;
5458 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5461 if (jj_3R_89()) jj_scanpos = xsp;
5462 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5466 static final private boolean jj_3R_116() {
5467 if (jj_scan_token(BIT_OR)) return true;
5468 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5469 if (jj_3R_115()) return true;
5470 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5474 static final private boolean jj_3R_111() {
5475 if (jj_3R_115()) return true;
5476 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5480 if (jj_3R_116()) { jj_scanpos = xsp; break; }
5481 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5486 static final private boolean jj_3R_49() {
5487 if (jj_3R_59()) return true;
5488 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5492 if (jj_3R_60()) { jj_scanpos = xsp; break; }
5493 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5498 static final private boolean jj_3R_51() {
5499 if (jj_scan_token(LBRACKET)) return true;
5500 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5503 if (jj_3R_62()) jj_scanpos = xsp;
5504 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5505 if (jj_scan_token(RBRACKET)) return true;
5506 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5510 static final private boolean jj_3R_114() {
5511 if (jj_scan_token(_ANDL)) return true;
5512 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5516 static final private boolean jj_3R_112() {
5517 if (jj_scan_token(DOT)) return true;
5518 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5519 if (jj_3R_111()) return true;
5520 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5524 static final private boolean jj_3R_106() {
5525 if (jj_3R_111()) return true;
5526 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5530 if (jj_3R_112()) { jj_scanpos = xsp; break; }
5531 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5536 static final private boolean jj_3R_93() {
5537 if (jj_scan_token(DOLLAR_ID)) return true;
5538 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5542 static final private boolean jj_3R_50() {
5543 if (jj_scan_token(CLASSACCESS)) return true;
5544 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5545 if (jj_3R_61()) return true;
5546 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5550 static final private boolean jj_3R_42() {
5555 if (jj_3R_51()) return true;
5556 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5557 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5561 static final private boolean jj_3R_110() {
5562 if (jj_scan_token(LBRACE)) return true;
5563 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5564 if (jj_3R_47()) return true;
5565 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5566 if (jj_scan_token(RBRACE)) return true;
5567 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5571 static final private boolean jj_3R_198() {
5572 if (jj_3R_42()) return true;
5573 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5577 static final private boolean jj_3R_109() {
5578 if (jj_scan_token(_ORL)) return true;
5579 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5583 static final private boolean jj_3R_92() {
5584 if (jj_scan_token(DOLLAR)) return true;
5585 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5586 if (jj_3R_61()) return true;
5587 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5591 static final private boolean jj_3R_113() {
5592 if (jj_scan_token(SC_AND)) return true;
5593 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5597 static final private boolean jj_3R_197() {
5598 if (jj_3R_201()) return true;
5599 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5603 static final private boolean jj_3R_193() {
5608 if (jj_3R_198()) return true;
5609 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5610 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5614 static final private boolean jj_3R_107() {
5619 if (jj_3R_114()) 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;
5622 if (jj_3R_106()) return true;
5623 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5627 static final private boolean jj_3R_104() {
5628 if (jj_3R_106()) return true;
5629 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5633 if (jj_3R_107()) { jj_scanpos = xsp; break; }
5634 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5639 static final private boolean jj_3R_99() {
5640 if (jj_scan_token(HOOK)) return true;
5641 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5642 if (jj_3R_47()) return true;
5643 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5644 if (jj_scan_token(COLON)) return true;
5645 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5646 if (jj_3R_88()) return true;
5647 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5651 static final private boolean jj_3R_192() {
5652 if (jj_3R_52()) return true;
5653 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5657 static final private boolean jj_3R_191() {
5658 if (jj_scan_token(IDENTIFIER)) return true;
5659 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5663 static final private boolean jj_3R_182() {
5668 if (jj_3R_192()) return true;
5669 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5670 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5674 static final private boolean jj_3R_91() {
5675 if (jj_scan_token(IDENTIFIER)) return true;
5676 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5679 if (jj_3R_110()) jj_scanpos = xsp;
5680 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5684 static final private boolean jj_3R_90() {
5685 if (jj_scan_token(LBRACE)) return true;
5686 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5687 if (jj_3R_47()) return true;
5688 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5689 if (jj_scan_token(RBRACE)) return true;
5690 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5694 static final private boolean jj_3R_61() {
5703 if (jj_3R_93()) return true;
5704 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5705 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5706 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5707 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5711 static final private boolean jj_3R_100() {
5712 if (jj_scan_token(LBRACE)) return true;
5713 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5714 if (jj_3R_47()) return true;
5715 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5716 if (jj_scan_token(RBRACE)) return true;
5717 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5721 static final private boolean jj_3R_108() {
5722 if (jj_scan_token(SC_OR)) return true;
5723 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5727 static final private boolean jj_3R_105() {
5732 if (jj_3R_109()) return true;
5733 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5734 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5735 if (jj_3R_104()) return true;
5736 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5740 static final private boolean jj_3R_98() {
5741 if (jj_3R_104()) return true;
5742 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5746 if (jj_3R_105()) { jj_scanpos = xsp; break; }
5747 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5752 static final private boolean jj_3R_48() {
5753 if (jj_scan_token(IDENTIFIER)) return true;
5754 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5755 if (jj_scan_token(COLON)) return true;
5756 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5760 static final private boolean jj_3R_97() {
5761 if (jj_scan_token(DOLLAR)) return true;
5762 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5763 if (jj_3R_61()) return true;
5764 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5768 static final private boolean jj_3R_188() {
5769 if (jj_3R_52()) return true;
5770 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5774 static final private boolean jj_3R_96() {
5775 if (jj_scan_token(DOLLAR_ID)) return true;
5776 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5779 if (jj_3R_100()) jj_scanpos = xsp;
5780 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5784 static final private boolean jj_3R_63() {
5789 if (jj_3R_97()) return true;
5790 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5791 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5795 static final private boolean jj_3R_88() {
5796 if (jj_3R_98()) return true;
5797 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5800 if (jj_3R_99()) jj_scanpos = xsp;
5801 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5805 static final private boolean jj_3R_187() {
5806 if (jj_scan_token(NEW)) return true;
5807 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5808 if (jj_3R_182()) return true;
5809 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5813 static final private boolean jj_3R_190() {
5814 if (jj_scan_token(DECR)) return true;
5815 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5819 static final private boolean jj_3R_186() {
5820 if (jj_scan_token(IDENTIFIER)) return true;
5821 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5825 static final private boolean jj_3R_177() {
5832 if (jj_3R_188()) return true;
5833 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5834 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5835 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5839 static final private boolean jj_3R_76() {
5840 if (jj_scan_token(TILDEEQUAL)) return true;
5841 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5845 static final private boolean jj_3_1() {
5846 if (jj_3R_42()) return true;
5847 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5851 static final private boolean jj_3R_75() {
5852 if (jj_scan_token(DOTASSIGN)) return true;
5853 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5857 static final private boolean jj_3R_178() {
5858 if (jj_scan_token(ARRAY)) return true;
5859 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5860 if (jj_3R_194()) return true;
5861 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5865 static final private boolean jj_3R_74() {
5866 if (jj_scan_token(ORASSIGN)) return true;
5867 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5871 static final private boolean jj_3R_73() {
5872 if (jj_scan_token(XORASSIGN)) return true;
5873 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5877 static final private boolean jj_3R_72() {
5878 if (jj_scan_token(ANDASSIGN)) return true;
5879 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5883 static final private boolean jj_3R_52() {
5884 if (jj_3R_63()) return true;
5885 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5889 if (jj_3_1()) { jj_scanpos = xsp; break; }
5890 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5895 static final private boolean jj_3R_71() {
5896 if (jj_scan_token(RSIGNEDSHIFTASSIGN)) return true;
5897 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5901 static final private boolean jj_3R_189() {
5902 if (jj_scan_token(INCR)) return true;
5903 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5907 static final private boolean jj_3R_181() {
5912 if (jj_3R_190()) return true;
5913 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5914 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5918 static final private boolean jj_3R_70() {
5919 if (jj_scan_token(LSHIFTASSIGN)) return true;
5920 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5924 static final private boolean jj_3R_171() {
5925 if (jj_3R_178()) return true;
5926 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5930 static final private boolean jj_3R_184() {
5931 if (jj_3R_193()) return true;
5932 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5936 static final private boolean jj_3R_69() {
5937 if (jj_scan_token(MINUSASSIGN)) return true;
5938 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5942 static final private boolean jj_3R_68() {
5943 if (jj_scan_token(PLUSASSIGN)) return true;
5944 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5948 static final private boolean jj_3R_170() {
5949 if (jj_3R_177()) return true;
5950 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5954 if (jj_3R_184()) { jj_scanpos = xsp; break; }
5955 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5960 static final private boolean jj_3R_67() {
5961 if (jj_scan_token(REMASSIGN)) return true;
5962 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5966 static final private boolean jj_3R_66() {
5967 if (jj_scan_token(SLASHASSIGN)) return true;
5968 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5972 static final private boolean jj_3R_183() {
5973 if (jj_3R_193()) return true;
5974 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5978 static final private boolean jj_3R_65() {
5979 if (jj_scan_token(STARASSIGN)) return true;
5980 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5984 static final private boolean jj_3R_53() {
6011 if (jj_3R_76()) return true;
6012 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6013 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6014 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6015 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6016 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6017 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6018 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6019 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6020 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6021 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6022 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6023 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6024 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6028 static final private boolean jj_3R_64() {
6029 if (jj_scan_token(ASSIGN)) return true;
6030 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6034 static final private boolean jj_3R_180() {
6035 if (jj_scan_token(ARRAY)) return true;
6036 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6040 static final private boolean jj_3_5() {
6041 if (jj_scan_token(IDENTIFIER)) return true;
6042 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6043 if (jj_scan_token(STATICCLASSACCESS)) return true;
6044 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6045 if (jj_3R_182()) return true;
6046 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6050 if (jj_3R_183()) { jj_scanpos = xsp; break; }
6051 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6056 static final private boolean jj_3R_166() {
6063 if (jj_3R_171()) return true;
6064 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6065 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6066 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6070 static final private boolean jj_3R_103() {
6071 if (jj_scan_token(ASSIGN)) return true;
6072 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6073 if (jj_3R_47()) return true;
6074 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6078 static final private boolean jj_3R_179() {
6079 if (jj_3R_54()) return true;
6080 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6084 static final private boolean jj_3R_168() {
6085 if (jj_3R_166()) return true;
6086 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6089 if (jj_3R_181()) jj_scanpos = xsp;
6090 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6094 static final private boolean jj_3R_44() {
6095 if (jj_3R_52()) return true;
6096 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6097 if (jj_3R_53()) return true;
6098 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6099 if (jj_3R_47()) return true;
6100 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6104 static final private boolean jj_3R_46() {
6105 if (jj_scan_token(ARRAY)) return true;
6106 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6110 static final private boolean jj_3R_167() {
6111 if (jj_scan_token(LPAREN)) return true;
6112 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6117 if (jj_3R_180()) return true;
6118 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6119 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6120 if (jj_scan_token(RPAREN)) return true;
6121 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6122 if (jj_3R_141()) return true;
6123 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6127 static final private boolean jj_3_3() {
6128 if (jj_3R_44()) return true;
6129 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6133 static final private boolean jj_3R_45() {
6134 if (jj_3R_54()) return true;
6135 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6139 static private boolean jj_initialized_once = false;
6140 static public PHPParserTokenManager token_source;
6141 static SimpleCharStream jj_input_stream;
6142 static public Token token, jj_nt;
6143 static private int jj_ntk;
6144 static private Token jj_scanpos, jj_lastpos;
6145 static private int jj_la;
6146 static public boolean lookingAhead = false;
6147 static private boolean jj_semLA;
6148 static private int jj_gen;
6149 static final private int[] jj_la1 = new int[126];
6150 static private int[] jj_la1_0;
6151 static private int[] jj_la1_1;
6152 static private int[] jj_la1_2;
6153 static private int[] jj_la1_3;
6154 static private int[] jj_la1_4;
6162 private static void jj_la1_0() {
6163 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,};
6165 private static void jj_la1_1() {
6166 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,};
6168 private static void jj_la1_2() {
6169 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,};
6171 private static void jj_la1_3() {
6172 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,};
6174 private static void jj_la1_4() {
6175 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,};
6177 static final private JJCalls[] jj_2_rtns = new JJCalls[8];
6178 static private boolean jj_rescan = false;
6179 static private int jj_gc = 0;
6181 public PHPParser(java.io.InputStream stream) {
6182 if (jj_initialized_once) {
6183 System.out.println("ERROR: Second call to constructor of static parser. You must");
6184 System.out.println(" either use ReInit() or set the JavaCC option STATIC to false");
6185 System.out.println(" during parser generation.");
6188 jj_initialized_once = true;
6189 jj_input_stream = new SimpleCharStream(stream, 1, 1);
6190 token_source = new PHPParserTokenManager(jj_input_stream);
6191 token = new Token();
6194 for (int i = 0; i < 126; i++) jj_la1[i] = -1;
6195 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
6198 static public void ReInit(java.io.InputStream stream) {
6199 jj_input_stream.ReInit(stream, 1, 1);
6200 token_source.ReInit(jj_input_stream);
6201 token = new Token();
6204 for (int i = 0; i < 126; i++) jj_la1[i] = -1;
6205 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
6208 public PHPParser(java.io.Reader stream) {
6209 if (jj_initialized_once) {
6210 System.out.println("ERROR: Second call to constructor of static parser. You must");
6211 System.out.println(" either use ReInit() or set the JavaCC option STATIC to false");
6212 System.out.println(" during parser generation.");
6215 jj_initialized_once = true;
6216 jj_input_stream = new SimpleCharStream(stream, 1, 1);
6217 token_source = new PHPParserTokenManager(jj_input_stream);
6218 token = new Token();
6221 for (int i = 0; i < 126; i++) jj_la1[i] = -1;
6222 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
6225 static public void ReInit(java.io.Reader stream) {
6226 jj_input_stream.ReInit(stream, 1, 1);
6227 token_source.ReInit(jj_input_stream);
6228 token = new Token();
6231 for (int i = 0; i < 126; i++) jj_la1[i] = -1;
6232 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
6235 public PHPParser(PHPParserTokenManager tm) {
6236 if (jj_initialized_once) {
6237 System.out.println("ERROR: Second call to constructor of static parser. You must");
6238 System.out.println(" either use ReInit() or set the JavaCC option STATIC to false");
6239 System.out.println(" during parser generation.");
6242 jj_initialized_once = true;
6244 token = new Token();
6247 for (int i = 0; i < 126; i++) jj_la1[i] = -1;
6248 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
6251 public void ReInit(PHPParserTokenManager tm) {
6253 token = new Token();
6256 for (int i = 0; i < 126; i++) jj_la1[i] = -1;
6257 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
6260 static final private Token jj_consume_token(int kind) throws ParseException {
6262 if ((oldToken = token).next != null) token = token.next;
6263 else token = token.next = token_source.getNextToken();
6265 if (token.kind == kind) {
6267 if (++jj_gc > 100) {
6269 for (int i = 0; i < jj_2_rtns.length; i++) {
6270 JJCalls c = jj_2_rtns[i];
6272 if (c.gen < jj_gen) c.first = null;
6281 throw generateParseException();
6284 static final private boolean jj_scan_token(int kind) {
6285 if (jj_scanpos == jj_lastpos) {
6287 if (jj_scanpos.next == null) {
6288 jj_lastpos = jj_scanpos = jj_scanpos.next = token_source.getNextToken();
6290 jj_lastpos = jj_scanpos = jj_scanpos.next;
6293 jj_scanpos = jj_scanpos.next;
6296 int i = 0; Token tok = token;
6297 while (tok != null && tok != jj_scanpos) { i++; tok = tok.next; }
6298 if (tok != null) jj_add_error_token(kind, i);
6300 return (jj_scanpos.kind != kind);
6303 static final public Token getNextToken() {
6304 if (token.next != null) token = token.next;
6305 else token = token.next = token_source.getNextToken();
6311 static final public Token getToken(int index) {
6312 Token t = lookingAhead ? jj_scanpos : token;
6313 for (int i = 0; i < index; i++) {
6314 if (t.next != null) t = t.next;
6315 else t = t.next = token_source.getNextToken();
6320 static final private int jj_ntk() {
6321 if ((jj_nt=token.next) == null)
6322 return (jj_ntk = (token.next=token_source.getNextToken()).kind);
6324 return (jj_ntk = jj_nt.kind);
6327 static private java.util.Vector jj_expentries = new java.util.Vector();
6328 static private int[] jj_expentry;
6329 static private int jj_kind = -1;
6330 static private int[] jj_lasttokens = new int[100];
6331 static private int jj_endpos;
6333 static private void jj_add_error_token(int kind, int pos) {
6334 if (pos >= 100) return;
6335 if (pos == jj_endpos + 1) {
6336 jj_lasttokens[jj_endpos++] = kind;
6337 } else if (jj_endpos != 0) {
6338 jj_expentry = new int[jj_endpos];
6339 for (int i = 0; i < jj_endpos; i++) {
6340 jj_expentry[i] = jj_lasttokens[i];
6342 boolean exists = false;
6343 for (java.util.Enumeration enum = jj_expentries.elements(); enum.hasMoreElements();) {
6344 int[] oldentry = (int[])(enum.nextElement());
6345 if (oldentry.length == jj_expentry.length) {
6347 for (int i = 0; i < jj_expentry.length; i++) {
6348 if (oldentry[i] != jj_expentry[i]) {
6356 if (!exists) jj_expentries.addElement(jj_expentry);
6357 if (pos != 0) jj_lasttokens[(jj_endpos = pos) - 1] = kind;
6361 static public ParseException generateParseException() {
6362 jj_expentries.removeAllElements();
6363 boolean[] la1tokens = new boolean[141];
6364 for (int i = 0; i < 141; i++) {
6365 la1tokens[i] = false;
6368 la1tokens[jj_kind] = true;
6371 for (int i = 0; i < 126; i++) {
6372 if (jj_la1[i] == jj_gen) {
6373 for (int j = 0; j < 32; j++) {
6374 if ((jj_la1_0[i] & (1<<j)) != 0) {
6375 la1tokens[j] = true;
6377 if ((jj_la1_1[i] & (1<<j)) != 0) {
6378 la1tokens[32+j] = true;
6380 if ((jj_la1_2[i] & (1<<j)) != 0) {
6381 la1tokens[64+j] = true;
6383 if ((jj_la1_3[i] & (1<<j)) != 0) {
6384 la1tokens[96+j] = true;
6386 if ((jj_la1_4[i] & (1<<j)) != 0) {
6387 la1tokens[128+j] = true;
6392 for (int i = 0; i < 141; i++) {
6394 jj_expentry = new int[1];
6396 jj_expentries.addElement(jj_expentry);
6401 jj_add_error_token(0, 0);
6402 int[][] exptokseq = new int[jj_expentries.size()][];
6403 for (int i = 0; i < jj_expentries.size(); i++) {
6404 exptokseq[i] = (int[])jj_expentries.elementAt(i);
6406 return new ParseException(token, exptokseq, tokenImage);
6409 static final public void enable_tracing() {
6412 static final public void disable_tracing() {
6415 static final private void jj_rescan_token() {
6417 for (int i = 0; i < 8; i++) {
6418 JJCalls p = jj_2_rtns[i];
6420 if (p.gen > jj_gen) {
6421 jj_la = p.arg; jj_lastpos = jj_scanpos = p.first;
6423 case 0: jj_3_1(); break;
6424 case 1: jj_3_2(); break;
6425 case 2: jj_3_3(); break;
6426 case 3: jj_3_4(); break;
6427 case 4: jj_3_5(); break;
6428 case 5: jj_3_6(); break;
6429 case 6: jj_3_7(); break;
6430 case 7: jj_3_8(); break;
6434 } while (p != null);
6439 static final private void jj_save(int index, int xla) {
6440 JJCalls p = jj_2_rtns[index];
6441 while (p.gen > jj_gen) {
6442 if (p.next == null) { p = p.next = new JJCalls(); break; }
6445 p.gen = jj_gen + xla - jj_la; p.first = token; p.arg = xla;
6448 static final class JJCalls {