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 static 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 outlineInfo.addVariable(variableDeclaration.getVariable().getName());
621 if (currentSegment != null) {
622 currentSegment.add(variableDeclaration);
626 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
634 jj_consume_token(COMMA);
635 variableDeclaration = VariableDeclarator();
636 if (currentSegment != null) {
637 currentSegment.add(variableDeclaration);
641 jj_consume_token(SEMICOLON);
642 } catch (ParseException e) {
643 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"'. A ';' was expected after variable declaration";
645 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
646 errorEnd = jj_input_stream.getPosition() + 1;
651 static final public PHPVarDeclaration VariableDeclarator() throws ParseException {
652 final String varName, varValue;
653 final int pos = jj_input_stream.getPosition();
654 varName = VariableDeclaratorId();
655 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
657 jj_consume_token(ASSIGN);
659 varValue = VariableInitializer();
660 {if (true) return new PHPVarDeclaration(currentSegment,varName,pos,varValue);}
661 } catch (ParseException e) {
662 errorMessage = "Literal expression expected in variable initializer";
664 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
665 errorEnd = jj_input_stream.getPosition() + 1;
673 {if (true) return new PHPVarDeclaration(currentSegment,varName,pos);}
674 throw new Error("Missing return statement in function");
677 static final public String VariableDeclaratorId() throws ParseException {
679 final StringBuffer buff = new StringBuffer();
690 expr = VariableSuffix();
693 {if (true) return buff.toString();}
694 } catch (ParseException e) {
695 errorMessage = "'$' expected for variable identifier";
697 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
698 errorEnd = jj_input_stream.getPosition() + 1;
701 throw new Error("Missing return statement in function");
704 static final public String Variable() throws ParseException {
707 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
709 token = jj_consume_token(DOLLAR_ID);
710 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
712 jj_consume_token(LBRACE);
714 jj_consume_token(RBRACE);
720 if (expr == null && !assigning) {
721 if (currentFunction != null) {
722 PHPVarDeclaration var = currentFunction.getParameter(token.image.substring(1));
724 var.getVariable().setUsed(true);
727 {if (true) return token.image.substring(1);}
729 {if (true) return token + "{" + expr + "}";}
732 jj_consume_token(DOLLAR);
733 expr = VariableName();
734 {if (true) return expr;}
738 jj_consume_token(-1);
739 throw new ParseException();
741 throw new Error("Missing return statement in function");
744 static final public String VariableName() throws ParseException {
747 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
749 jj_consume_token(LBRACE);
751 jj_consume_token(RBRACE);
752 {if (true) return "{"+expr+"}";}
755 token = jj_consume_token(IDENTIFIER);
756 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
758 jj_consume_token(LBRACE);
760 jj_consume_token(RBRACE);
767 if (currentFunction != null) {
768 PHPVarDeclaration var = currentFunction.getParameter(token.image);
770 var.getVariable().setUsed(true);
773 {if (true) return token.image;}
775 {if (true) return token + "{" + expr + "}";}
778 jj_consume_token(DOLLAR);
779 expr = VariableName();
780 if (currentFunction != null) {
781 PHPVarDeclaration var = currentFunction.getParameter(expr);
783 var.getVariable().setUsed(true);
786 {if (true) return "$" + expr;}
789 token = jj_consume_token(DOLLAR_ID);
790 if (currentFunction != null) {
791 PHPVarDeclaration var = currentFunction.getParameter(token.image.substring(1));
793 var.getVariable().setUsed(true);
796 {if (true) return token.image + expr;}
800 jj_consume_token(-1);
801 throw new ParseException();
803 throw new Error("Missing return statement in function");
806 static final public String VariableInitializer() throws ParseException {
809 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
813 case INTEGER_LITERAL:
814 case FLOATING_POINT_LITERAL:
817 {if (true) return expr;}
820 jj_consume_token(MINUS);
821 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
822 case INTEGER_LITERAL:
823 token = jj_consume_token(INTEGER_LITERAL);
825 case FLOATING_POINT_LITERAL:
826 token = jj_consume_token(FLOATING_POINT_LITERAL);
830 jj_consume_token(-1);
831 throw new ParseException();
833 {if (true) return "-" + token.image;}
836 jj_consume_token(PLUS);
837 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
838 case INTEGER_LITERAL:
839 token = jj_consume_token(INTEGER_LITERAL);
841 case FLOATING_POINT_LITERAL:
842 token = jj_consume_token(FLOATING_POINT_LITERAL);
846 jj_consume_token(-1);
847 throw new ParseException();
849 {if (true) return "+" + token.image;}
852 expr = ArrayDeclarator();
853 {if (true) return expr;}
856 token = jj_consume_token(IDENTIFIER);
857 {if (true) return token.image;}
861 jj_consume_token(-1);
862 throw new ParseException();
864 throw new Error("Missing return statement in function");
867 static final public String ArrayVariable() throws ParseException {
869 final StringBuffer buff = new StringBuffer();
872 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
874 jj_consume_token(ARRAYASSIGN);
876 buff.append("=>").append(expr);
882 {if (true) return buff.toString();}
883 throw new Error("Missing return statement in function");
886 static final public String ArrayInitializer() throws ParseException {
888 final StringBuffer buff = new StringBuffer("(");
889 jj_consume_token(LPAREN);
890 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
898 case INTEGER_LITERAL:
899 case FLOATING_POINT_LITERAL:
912 expr = ArrayVariable();
921 jj_consume_token(COMMA);
922 expr = ArrayVariable();
923 buff.append(",").append(expr);
930 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
932 jj_consume_token(COMMA);
939 jj_consume_token(RPAREN);
941 {if (true) return buff.toString();}
942 throw new Error("Missing return statement in function");
946 * A Method Declaration.
947 * <b>function</b> MetodDeclarator() Block()
949 static final public void MethodDeclaration() throws ParseException {
950 final PHPFunctionDeclaration functionDeclaration;
952 functionToken = jj_consume_token(FUNCTION);
954 functionDeclaration = MethodDeclarator();
955 outlineInfo.addVariable(functionDeclaration.getName());
956 } catch (ParseException e) {
957 if (errorMessage != null) {
960 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', function identifier expected";
962 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
963 errorEnd = jj_input_stream.getPosition() + 1;
966 if (currentSegment != null) {
967 currentSegment.add(functionDeclaration);
968 currentSegment = functionDeclaration;
970 currentFunction = functionDeclaration;
972 Hashtable parameters = currentFunction.getParameters();
973 Enumeration vars = parameters.elements();
974 while (vars.hasMoreElements()) {
975 PHPVarDeclaration o = (PHPVarDeclaration) vars.nextElement();
976 if (!o.getVariable().isUsed()) {
978 setMarker(fileToParse,
979 "Parameter "+o.getVariable().getName()+" is never used in function",
980 functionToken.beginLine,
982 "Line " + token.beginLine);
983 } catch (CoreException e) {
984 PHPeclipsePlugin.log(e);
988 currentFunction = null;
989 if (currentSegment != null) {
990 currentSegment = (PHPSegmentWithChildren) currentSegment.getParent();
995 * A MethodDeclarator.
996 * [&] IDENTIFIER(parameters ...).
997 * @return a function description for the outline
999 static final public PHPFunctionDeclaration MethodDeclarator() throws ParseException {
1000 final Token identifier;
1001 final StringBuffer methodDeclaration = new StringBuffer();
1002 final Hashtable formalParameters;
1003 final int pos = jj_input_stream.getPosition();
1004 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1006 jj_consume_token(BIT_AND);
1007 methodDeclaration.append("&");
1010 jj_la1[21] = jj_gen;
1013 identifier = jj_consume_token(IDENTIFIER);
1014 formalParameters = FormalParameters();
1015 methodDeclaration.append(identifier);
1016 {if (true) return new PHPFunctionDeclaration(currentSegment,methodDeclaration.toString(),pos,formalParameters);}
1017 throw new Error("Missing return statement in function");
1021 * FormalParameters follows method identifier.
1022 * (FormalParameter())
1024 static final public Hashtable FormalParameters() throws ParseException {
1026 final StringBuffer buff = new StringBuffer("(");
1027 PHPVarDeclaration var;
1028 final Hashtable parameters = new Hashtable();
1030 jj_consume_token(LPAREN);
1031 } catch (ParseException e) {
1032 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', '(' expected after function identifier";
1034 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
1035 errorEnd = jj_input_stream.getPosition() + 1;
1036 {if (true) throw e;}
1038 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1042 var = FormalParameter();
1043 parameters.put(var.getVariable().getName(),var);
1046 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1051 jj_la1[22] = jj_gen;
1054 jj_consume_token(COMMA);
1055 var = FormalParameter();
1056 parameters.put(var.getVariable().getName(),var);
1060 jj_la1[23] = jj_gen;
1064 jj_consume_token(RPAREN);
1065 } catch (ParseException e) {
1066 errorMessage = "')' expected";
1068 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
1069 errorEnd = jj_input_stream.getPosition() + 1;
1070 {if (true) throw e;}
1072 {if (true) return parameters;}
1073 throw new Error("Missing return statement in function");
1077 * A formal parameter.
1078 * $varname[=value] (,$varname[=value])
1080 static final public PHPVarDeclaration FormalParameter() throws ParseException {
1081 final PHPVarDeclaration variableDeclaration;
1083 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1085 token = jj_consume_token(BIT_AND);
1088 jj_la1[24] = jj_gen;
1091 variableDeclaration = VariableDeclarator();
1092 if (token != null) {
1093 variableDeclaration.getVariable().setReference(true);
1095 {if (true) return variableDeclaration;}
1096 throw new Error("Missing return statement in function");
1099 static final public String Type() throws ParseException {
1100 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1102 jj_consume_token(STRING);
1103 {if (true) return "string";}
1106 jj_consume_token(BOOL);
1107 {if (true) return "bool";}
1110 jj_consume_token(BOOLEAN);
1111 {if (true) return "boolean";}
1114 jj_consume_token(REAL);
1115 {if (true) return "real";}
1118 jj_consume_token(DOUBLE);
1119 {if (true) return "double";}
1122 jj_consume_token(FLOAT);
1123 {if (true) return "float";}
1126 jj_consume_token(INT);
1127 {if (true) return "int";}
1130 jj_consume_token(INTEGER);
1131 {if (true) return "integer";}
1134 jj_consume_token(OBJECT);
1135 {if (true) return "object";}
1138 jj_la1[25] = jj_gen;
1139 jj_consume_token(-1);
1140 throw new ParseException();
1142 throw new Error("Missing return statement in function");
1145 static final public String Expression() throws ParseException {
1147 final String assignOperator;
1149 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1151 expr = PrintExpression();
1152 {if (true) return expr;}
1155 expr = ListExpression();
1156 {if (true) return expr;}
1159 jj_la1[26] = jj_gen;
1160 if (jj_2_3(2147483647)) {
1161 expr = varAssignation();
1162 {if (true) return expr;}
1164 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1170 case INTEGER_LITERAL:
1171 case FLOATING_POINT_LITERAL:
1172 case STRING_LITERAL:
1184 expr = ConditionalExpression();
1185 {if (true) return expr;}
1188 jj_la1[27] = jj_gen;
1189 jj_consume_token(-1);
1190 throw new ParseException();
1194 throw new Error("Missing return statement in function");
1198 * A Variable assignation.
1199 * varName (an assign operator) any expression
1201 static final public String varAssignation() throws ParseException {
1202 String varName,assignOperator,expr2;
1203 PHPVarDeclaration variable;
1204 final int pos = SimpleCharStream.getPosition();
1205 varName = VariableDeclaratorId();
1206 assignOperator = AssignmentOperator();
1208 expr2 = Expression();
1209 } catch (ParseException e) {
1210 if (errorMessage != null) {
1211 {if (true) throw e;}
1213 errorMessage = "expression expected";
1215 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
1216 errorEnd = jj_input_stream.getPosition() + 1;
1217 {if (true) throw e;}
1219 {if (true) return varName + assignOperator + expr2;}
1220 throw new Error("Missing return statement in function");
1223 static final public String AssignmentOperator() throws ParseException {
1224 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1226 jj_consume_token(ASSIGN);
1227 {if (true) return "=";}
1230 jj_consume_token(STARASSIGN);
1231 {if (true) return "*=";}
1234 jj_consume_token(SLASHASSIGN);
1235 {if (true) return "/=";}
1238 jj_consume_token(REMASSIGN);
1239 {if (true) return "%=";}
1242 jj_consume_token(PLUSASSIGN);
1243 {if (true) return "+=";}
1246 jj_consume_token(MINUSASSIGN);
1247 {if (true) return "-=";}
1250 jj_consume_token(LSHIFTASSIGN);
1251 {if (true) return "<<=";}
1253 case RSIGNEDSHIFTASSIGN:
1254 jj_consume_token(RSIGNEDSHIFTASSIGN);
1255 {if (true) return ">>=";}
1258 jj_consume_token(ANDASSIGN);
1259 {if (true) return "&=";}
1262 jj_consume_token(XORASSIGN);
1263 {if (true) return "|=";}
1266 jj_consume_token(ORASSIGN);
1267 {if (true) return "|=";}
1270 jj_consume_token(DOTASSIGN);
1271 {if (true) return ".=";}
1274 jj_consume_token(TILDEEQUAL);
1275 {if (true) return "~=";}
1278 jj_la1[28] = jj_gen;
1279 jj_consume_token(-1);
1280 throw new ParseException();
1282 throw new Error("Missing return statement in function");
1285 static final public String ConditionalExpression() throws ParseException {
1287 String expr2 = null;
1288 String expr3 = null;
1289 expr = ConditionalOrExpression();
1290 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1292 jj_consume_token(HOOK);
1293 expr2 = Expression();
1294 jj_consume_token(COLON);
1295 expr3 = ConditionalExpression();
1298 jj_la1[29] = jj_gen;
1301 if (expr3 == null) {
1302 {if (true) return expr;}
1304 {if (true) return expr + "?" + expr2 + ":" + expr3;}
1306 throw new Error("Missing return statement in function");
1309 static final public String ConditionalOrExpression() throws ParseException {
1312 final StringBuffer buff = new StringBuffer();
1313 expr = ConditionalAndExpression();
1317 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1323 jj_la1[30] = jj_gen;
1326 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1328 operator = jj_consume_token(SC_OR);
1331 operator = jj_consume_token(_ORL);
1334 jj_la1[31] = jj_gen;
1335 jj_consume_token(-1);
1336 throw new ParseException();
1338 expr = ConditionalAndExpression();
1339 buff.append(operator.image);
1342 {if (true) return buff.toString();}
1343 throw new Error("Missing return statement in function");
1346 static final public String ConditionalAndExpression() throws ParseException {
1349 final StringBuffer buff = new StringBuffer();
1350 expr = ConcatExpression();
1354 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1360 jj_la1[32] = jj_gen;
1363 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1365 operator = jj_consume_token(SC_AND);
1368 operator = jj_consume_token(_ANDL);
1371 jj_la1[33] = jj_gen;
1372 jj_consume_token(-1);
1373 throw new ParseException();
1375 expr = ConcatExpression();
1376 buff.append(operator.image);
1379 {if (true) return buff.toString();}
1380 throw new Error("Missing return statement in function");
1383 static final public String ConcatExpression() throws ParseException {
1385 final StringBuffer buff = new StringBuffer();
1386 expr = InclusiveOrExpression();
1390 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1395 jj_la1[34] = jj_gen;
1398 jj_consume_token(DOT);
1399 expr = InclusiveOrExpression();
1400 buff.append(".").append(expr);
1402 {if (true) return buff.toString();}
1403 throw new Error("Missing return statement in function");
1406 static final public String InclusiveOrExpression() throws ParseException {
1408 final StringBuffer buff = new StringBuffer();
1409 expr = ExclusiveOrExpression();
1413 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1418 jj_la1[35] = jj_gen;
1421 jj_consume_token(BIT_OR);
1422 expr = ExclusiveOrExpression();
1423 buff.append("|").append(expr);
1425 {if (true) return buff.toString();}
1426 throw new Error("Missing return statement in function");
1429 static final public String ExclusiveOrExpression() throws ParseException {
1431 final StringBuffer buff = new StringBuffer();
1432 expr = AndExpression();
1436 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1441 jj_la1[36] = jj_gen;
1444 jj_consume_token(XOR);
1445 expr = AndExpression();
1449 {if (true) return buff.toString();}
1450 throw new Error("Missing return statement in function");
1453 static final public String AndExpression() throws ParseException {
1455 final StringBuffer buff = new StringBuffer();
1456 expr = EqualityExpression();
1460 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1465 jj_la1[37] = jj_gen;
1468 jj_consume_token(BIT_AND);
1469 expr = EqualityExpression();
1470 buff.append("&").append(expr);
1472 {if (true) return buff.toString();}
1473 throw new Error("Missing return statement in function");
1476 static final public String EqualityExpression() throws ParseException {
1479 final StringBuffer buff = new StringBuffer();
1480 expr = RelationalExpression();
1484 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1488 case BANGDOUBLEEQUAL:
1493 jj_la1[38] = jj_gen;
1496 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1498 operator = jj_consume_token(EQ);
1501 operator = jj_consume_token(DIF);
1504 operator = jj_consume_token(NE);
1506 case BANGDOUBLEEQUAL:
1507 operator = jj_consume_token(BANGDOUBLEEQUAL);
1510 operator = jj_consume_token(TRIPLEEQUAL);
1513 jj_la1[39] = jj_gen;
1514 jj_consume_token(-1);
1515 throw new ParseException();
1518 expr = RelationalExpression();
1519 } catch (ParseException e) {
1520 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', expression expected after '"+operator.image+"'";
1522 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
1523 errorEnd = jj_input_stream.getPosition() + 1;
1524 {if (true) throw e;}
1526 buff.append(operator.image);
1529 {if (true) return buff.toString();}
1530 throw new Error("Missing return statement in function");
1533 static final public String RelationalExpression() throws ParseException {
1536 final StringBuffer buff = new StringBuffer();
1537 expr = ShiftExpression();
1541 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1549 jj_la1[40] = jj_gen;
1552 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1554 operator = jj_consume_token(LT);
1557 operator = jj_consume_token(GT);
1560 operator = jj_consume_token(LE);
1563 operator = jj_consume_token(GE);
1566 jj_la1[41] = jj_gen;
1567 jj_consume_token(-1);
1568 throw new ParseException();
1570 expr = ShiftExpression();
1571 buff.append(operator.image).append(expr);
1573 {if (true) return buff.toString();}
1574 throw new Error("Missing return statement in function");
1577 static final public String ShiftExpression() throws ParseException {
1580 final StringBuffer buff = new StringBuffer();
1581 expr = AdditiveExpression();
1585 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1588 case RUNSIGNEDSHIFT:
1592 jj_la1[42] = jj_gen;
1595 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1597 operator = jj_consume_token(LSHIFT);
1600 operator = jj_consume_token(RSIGNEDSHIFT);
1602 case RUNSIGNEDSHIFT:
1603 operator = jj_consume_token(RUNSIGNEDSHIFT);
1606 jj_la1[43] = jj_gen;
1607 jj_consume_token(-1);
1608 throw new ParseException();
1610 expr = AdditiveExpression();
1611 buff.append(operator.image);
1614 {if (true) return buff.toString();}
1615 throw new Error("Missing return statement in function");
1618 static final public String AdditiveExpression() throws ParseException {
1621 final StringBuffer buff = new StringBuffer();
1622 expr = MultiplicativeExpression();
1626 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1632 jj_la1[44] = jj_gen;
1635 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1637 operator = jj_consume_token(PLUS);
1640 operator = jj_consume_token(MINUS);
1643 jj_la1[45] = jj_gen;
1644 jj_consume_token(-1);
1645 throw new ParseException();
1647 expr = MultiplicativeExpression();
1648 buff.append(operator.image);
1651 {if (true) return buff.toString();}
1652 throw new Error("Missing return statement in function");
1655 static final public String MultiplicativeExpression() throws ParseException {
1658 final StringBuffer buff = new StringBuffer();
1660 expr = UnaryExpression();
1661 } catch (ParseException e) {
1662 errorMessage = "unexpected token '"+e.currentToken.next.image+"'";
1664 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
1665 errorEnd = jj_input_stream.getPosition() + 1;
1666 {if (true) throw e;}
1671 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1678 jj_la1[46] = jj_gen;
1681 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1683 operator = jj_consume_token(STAR);
1686 operator = jj_consume_token(SLASH);
1689 operator = jj_consume_token(REM);
1692 jj_la1[47] = jj_gen;
1693 jj_consume_token(-1);
1694 throw new ParseException();
1696 expr = UnaryExpression();
1697 buff.append(operator.image);
1700 {if (true) return buff.toString();}
1701 throw new Error("Missing return statement in function");
1705 * An unary expression starting with @, & or nothing
1707 static final public String UnaryExpression() throws ParseException {
1710 final StringBuffer buff = new StringBuffer();
1711 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1713 token = jj_consume_token(BIT_AND);
1714 expr = UnaryExpressionNoPrefix();
1715 if (token == null) {
1716 {if (true) return expr;}
1718 {if (true) return token.image + expr;}
1725 case INTEGER_LITERAL:
1726 case FLOATING_POINT_LITERAL:
1727 case STRING_LITERAL:
1740 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1745 jj_la1[48] = jj_gen;
1748 jj_consume_token(AT);
1751 expr = UnaryExpressionNoPrefix();
1752 {if (true) return buff.append(expr).toString();}
1755 jj_la1[49] = jj_gen;
1756 jj_consume_token(-1);
1757 throw new ParseException();
1759 throw new Error("Missing return statement in function");
1762 static final public String UnaryExpressionNoPrefix() throws ParseException {
1765 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1768 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1770 token = jj_consume_token(PLUS);
1773 token = jj_consume_token(MINUS);
1776 jj_la1[50] = jj_gen;
1777 jj_consume_token(-1);
1778 throw new ParseException();
1780 expr = UnaryExpression();
1781 {if (true) return token.image + expr;}
1785 expr = PreIncDecExpression();
1786 {if (true) return expr;}
1793 case INTEGER_LITERAL:
1794 case FLOATING_POINT_LITERAL:
1795 case STRING_LITERAL:
1801 expr = UnaryExpressionNotPlusMinus();
1802 {if (true) return expr;}
1805 jj_la1[51] = jj_gen;
1806 jj_consume_token(-1);
1807 throw new ParseException();
1809 throw new Error("Missing return statement in function");
1812 static final public String PreIncDecExpression() throws ParseException {
1815 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1817 token = jj_consume_token(INCR);
1820 token = jj_consume_token(DECR);
1823 jj_la1[52] = jj_gen;
1824 jj_consume_token(-1);
1825 throw new ParseException();
1827 expr = PrimaryExpression();
1828 {if (true) return token.image + expr;}
1829 throw new Error("Missing return statement in function");
1832 static final public String UnaryExpressionNotPlusMinus() throws ParseException {
1834 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1836 jj_consume_token(BANG);
1837 expr = UnaryExpression();
1838 {if (true) return "!" + expr;}
1841 jj_la1[53] = jj_gen;
1842 if (jj_2_4(2147483647)) {
1843 expr = CastExpression();
1844 {if (true) return expr;}
1846 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1852 expr = PostfixExpression();
1853 {if (true) return expr;}
1858 case INTEGER_LITERAL:
1859 case FLOATING_POINT_LITERAL:
1860 case STRING_LITERAL:
1862 {if (true) return expr;}
1865 jj_consume_token(LPAREN);
1866 expr = Expression();
1868 jj_consume_token(RPAREN);
1869 } catch (ParseException e) {
1870 errorMessage = "')' expected";
1872 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
1873 errorEnd = jj_input_stream.getPosition() + 1;
1874 {if (true) throw e;}
1876 {if (true) return "("+expr+")";}
1879 jj_la1[54] = jj_gen;
1880 jj_consume_token(-1);
1881 throw new ParseException();
1885 throw new Error("Missing return statement in function");
1888 static final public String CastExpression() throws ParseException {
1889 final String type, expr;
1890 jj_consume_token(LPAREN);
1891 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1904 jj_consume_token(ARRAY);
1908 jj_la1[55] = jj_gen;
1909 jj_consume_token(-1);
1910 throw new ParseException();
1912 jj_consume_token(RPAREN);
1913 expr = UnaryExpression();
1914 {if (true) return "(" + type + ")" + expr;}
1915 throw new Error("Missing return statement in function");
1918 static final public String PostfixExpression() throws ParseException {
1920 Token operator = null;
1921 expr = PrimaryExpression();
1922 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1925 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1927 operator = jj_consume_token(INCR);
1930 operator = jj_consume_token(DECR);
1933 jj_la1[56] = jj_gen;
1934 jj_consume_token(-1);
1935 throw new ParseException();
1939 jj_la1[57] = jj_gen;
1942 if (operator == null) {
1943 {if (true) return expr;}
1945 {if (true) return expr + operator.image;}
1946 throw new Error("Missing return statement in function");
1949 static final public String PrimaryExpression() throws ParseException {
1950 final Token identifier;
1952 final StringBuffer buff = new StringBuffer();
1954 identifier = jj_consume_token(IDENTIFIER);
1955 jj_consume_token(STATICCLASSACCESS);
1956 expr = ClassIdentifier();
1957 buff.append(identifier.image).append("::").append(expr);
1960 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1967 jj_la1[58] = jj_gen;
1970 expr = PrimarySuffix();
1973 {if (true) return buff.toString();}
1975 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1980 expr = PrimaryPrefix();
1984 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1991 jj_la1[59] = jj_gen;
1994 expr = PrimarySuffix();
1997 {if (true) return buff.toString();}
2000 expr = ArrayDeclarator();
2001 {if (true) return "array" + expr;}
2004 jj_la1[60] = jj_gen;
2005 jj_consume_token(-1);
2006 throw new ParseException();
2009 throw new Error("Missing return statement in function");
2012 static final public String ArrayDeclarator() throws ParseException {
2014 jj_consume_token(ARRAY);
2015 expr = ArrayInitializer();
2016 {if (true) return "array" + expr;}
2017 throw new Error("Missing return statement in function");
2020 static final public String PrimaryPrefix() throws ParseException {
2023 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2025 token = jj_consume_token(IDENTIFIER);
2026 {if (true) return token.image;}
2029 jj_consume_token(NEW);
2030 expr = ClassIdentifier();
2031 {if (true) return "new " + expr;}
2035 expr = VariableDeclaratorId();
2036 {if (true) return expr;}
2039 jj_la1[61] = jj_gen;
2040 jj_consume_token(-1);
2041 throw new ParseException();
2043 throw new Error("Missing return statement in function");
2046 static final public String classInstantiation() throws ParseException {
2048 final StringBuffer buff = new StringBuffer("new ");
2049 jj_consume_token(NEW);
2050 expr = ClassIdentifier();
2052 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2058 expr = PrimaryExpression();
2062 jj_la1[62] = jj_gen;
2065 {if (true) return buff.toString();}
2066 throw new Error("Missing return statement in function");
2069 static final public String ClassIdentifier() throws ParseException {
2072 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2074 token = jj_consume_token(IDENTIFIER);
2075 {if (true) return token.image;}
2079 expr = VariableDeclaratorId();
2080 {if (true) return expr;}
2083 jj_la1[63] = jj_gen;
2084 jj_consume_token(-1);
2085 throw new ParseException();
2087 throw new Error("Missing return statement in function");
2090 static final public String PrimarySuffix() throws ParseException {
2092 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2095 {if (true) return expr;}
2099 expr = VariableSuffix();
2100 {if (true) return expr;}
2103 jj_la1[64] = jj_gen;
2104 jj_consume_token(-1);
2105 throw new ParseException();
2107 throw new Error("Missing return statement in function");
2110 static final public String VariableSuffix() throws ParseException {
2112 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2114 jj_consume_token(CLASSACCESS);
2116 expr = VariableName();
2117 } catch (ParseException e) {
2118 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', function call or field access expected";
2120 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2121 errorEnd = jj_input_stream.getPosition() + 1;
2122 {if (true) throw e;}
2124 {if (true) return "->" + expr;}
2127 jj_consume_token(LBRACKET);
2128 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2145 case INTEGER_LITERAL:
2146 case FLOATING_POINT_LITERAL:
2147 case STRING_LITERAL:
2159 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2167 case INTEGER_LITERAL:
2168 case FLOATING_POINT_LITERAL:
2169 case STRING_LITERAL:
2181 expr = Expression();
2195 jj_la1[65] = jj_gen;
2196 jj_consume_token(-1);
2197 throw new ParseException();
2201 jj_la1[66] = jj_gen;
2205 jj_consume_token(RBRACKET);
2206 } catch (ParseException e) {
2207 errorMessage = "']' expected";
2209 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2210 errorEnd = jj_input_stream.getPosition() + 1;
2211 {if (true) throw e;}
2214 {if (true) return "[]";}
2216 {if (true) return "[" + expr + "]";}
2219 jj_la1[67] = jj_gen;
2220 jj_consume_token(-1);
2221 throw new ParseException();
2223 throw new Error("Missing return statement in function");
2226 static final public String Literal() throws ParseException {
2229 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2230 case INTEGER_LITERAL:
2231 token = jj_consume_token(INTEGER_LITERAL);
2232 {if (true) return token.image;}
2234 case FLOATING_POINT_LITERAL:
2235 token = jj_consume_token(FLOATING_POINT_LITERAL);
2236 {if (true) return token.image;}
2238 case STRING_LITERAL:
2239 token = jj_consume_token(STRING_LITERAL);
2240 {if (true) return token.image;}
2244 expr = BooleanLiteral();
2245 {if (true) return expr;}
2248 jj_consume_token(NULL);
2249 {if (true) return "null";}
2252 jj_la1[68] = jj_gen;
2253 jj_consume_token(-1);
2254 throw new ParseException();
2256 throw new Error("Missing return statement in function");
2259 static final public String BooleanLiteral() throws ParseException {
2260 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2262 jj_consume_token(TRUE);
2263 {if (true) return "true";}
2266 jj_consume_token(FALSE);
2267 {if (true) return "false";}
2270 jj_la1[69] = jj_gen;
2271 jj_consume_token(-1);
2272 throw new ParseException();
2274 throw new Error("Missing return statement in function");
2277 static final public String Arguments() throws ParseException {
2279 jj_consume_token(LPAREN);
2280 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2288 case INTEGER_LITERAL:
2289 case FLOATING_POINT_LITERAL:
2290 case STRING_LITERAL:
2302 expr = ArgumentList();
2305 jj_la1[70] = jj_gen;
2309 jj_consume_token(RPAREN);
2310 } catch (ParseException e) {
2311 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', ')' expected to close the argument list";
2313 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2314 errorEnd = jj_input_stream.getPosition() + 1;
2315 {if (true) throw e;}
2318 {if (true) return "()";}
2320 {if (true) return "(" + expr + ")";}
2321 throw new Error("Missing return statement in function");
2324 static final public String ArgumentList() throws ParseException {
2326 final StringBuffer buff = new StringBuffer();
2327 expr = Expression();
2331 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2336 jj_la1[71] = jj_gen;
2339 jj_consume_token(COMMA);
2341 expr = Expression();
2342 } catch (ParseException e) {
2343 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"'. An expression expected after a comma in argument list";
2345 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2346 errorEnd = jj_input_stream.getPosition() + 1;
2347 {if (true) throw e;}
2349 buff.append(",").append(expr);
2351 {if (true) return buff.toString();}
2352 throw new Error("Missing return statement in function");
2356 * A Statement without break.
2358 static final public void StatementNoBreak() throws ParseException {
2362 jj_consume_token(SEMICOLON);
2363 } catch (ParseException e) {
2364 if (e.currentToken.next.kind != 4) {
2365 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"'. A ';' was expected";
2367 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2368 errorEnd = jj_input_stream.getPosition() + 1;
2369 {if (true) throw e;}
2372 } else if (jj_2_7(2)) {
2375 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2389 StatementExpression();
2391 jj_consume_token(SEMICOLON);
2392 } catch (ParseException e) {
2393 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"'. A ';' was expected";
2395 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2396 errorEnd = jj_input_stream.getPosition() + 1;
2397 {if (true) throw e;}
2419 ContinueStatement();
2432 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2434 jj_consume_token(AT);
2437 jj_la1[72] = jj_gen;
2449 jj_la1[73] = jj_gen;
2450 jj_consume_token(-1);
2451 throw new ParseException();
2457 * A Normal statement.
2459 static final public void Statement() throws ParseException {
2460 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2483 case INTEGER_LITERAL:
2484 case FLOATING_POINT_LITERAL:
2485 case STRING_LITERAL:
2505 jj_la1[74] = jj_gen;
2506 jj_consume_token(-1);
2507 throw new ParseException();
2512 * An html block inside a php syntax.
2514 static final public void htmlBlock() throws ParseException {
2515 jj_consume_token(PHPEND);
2518 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2523 jj_la1[75] = jj_gen;
2529 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2531 jj_consume_token(PHPSTARTLONG);
2534 jj_consume_token(PHPSTARTSHORT);
2537 jj_la1[76] = jj_gen;
2538 jj_consume_token(-1);
2539 throw new ParseException();
2541 } catch (ParseException e) {
2542 errorMessage = "End of file unexpected, '<?php' expected";
2544 errorStart = jj_input_stream.getPosition();
2545 errorEnd = jj_input_stream.getPosition();
2546 {if (true) throw e;}
2551 * An include statement. It's "include" an expression;
2553 static final public void IncludeStatement() throws ParseException {
2556 final int pos = jj_input_stream.getPosition();
2557 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2559 token = jj_consume_token(REQUIRE);
2562 token = jj_consume_token(REQUIRE_ONCE);
2565 token = jj_consume_token(INCLUDE);
2568 token = jj_consume_token(INCLUDE_ONCE);
2571 jj_la1[77] = jj_gen;
2572 jj_consume_token(-1);
2573 throw new ParseException();
2576 expr = Expression();
2577 } catch (ParseException e) {
2578 if (errorMessage != null) {
2579 {if (true) throw e;}
2581 errorMessage = "unexpected token '"+ e.currentToken.next.image+"', expression expected";
2583 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2584 errorEnd = jj_input_stream.getPosition() + 1;
2585 {if (true) throw e;}
2587 if (currentSegment != null) {
2588 currentSegment.add(new PHPReqIncDeclaration(currentSegment, token.image,pos,expr));
2591 jj_consume_token(SEMICOLON);
2592 } catch (ParseException e) {
2593 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"'. A ';' was expected";
2595 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2596 errorEnd = jj_input_stream.getPosition() + 1;
2597 {if (true) throw e;}
2601 static final public String PrintExpression() throws ParseException {
2603 jj_consume_token(PRINT);
2604 expr = Expression();
2605 {if (true) return "print " + expr;}
2606 throw new Error("Missing return statement in function");
2609 static final public String ListExpression() throws ParseException {
2610 final StringBuffer buff = new StringBuffer("list(");
2612 jj_consume_token(LIST);
2614 jj_consume_token(LPAREN);
2615 } catch (ParseException e) {
2616 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', '(' expected";
2618 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2619 errorEnd = jj_input_stream.getPosition() + 1;
2620 {if (true) throw e;}
2622 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2625 expr = VariableDeclaratorId();
2629 jj_la1[78] = jj_gen;
2634 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2639 jj_la1[79] = jj_gen;
2643 jj_consume_token(COMMA);
2644 } catch (ParseException e) {
2645 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', ',' expected";
2647 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2648 errorEnd = jj_input_stream.getPosition() + 1;
2649 {if (true) throw e;}
2651 expr = VariableDeclaratorId();
2652 buff.append(",").append(expr);
2656 jj_consume_token(RPAREN);
2657 } catch (ParseException e) {
2658 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', ')' expected";
2660 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2661 errorEnd = jj_input_stream.getPosition() + 1;
2662 {if (true) throw e;}
2664 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2666 jj_consume_token(ASSIGN);
2667 expr = Expression();
2668 buff.append("(").append(expr);
2671 jj_la1[80] = jj_gen;
2674 {if (true) return buff.toString();}
2675 throw new Error("Missing return statement in function");
2679 * An echo statement.
2680 * echo anyexpression (, otherexpression)*
2682 static final public void EchoStatement() throws ParseException {
2683 jj_consume_token(ECHO);
2687 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2692 jj_la1[81] = jj_gen;
2695 jj_consume_token(COMMA);
2699 jj_consume_token(SEMICOLON);
2700 } catch (ParseException e) {
2701 if (e.currentToken.next.kind != 4) {
2702 errorMessage = "';' expected after 'echo' statement";
2704 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2705 errorEnd = jj_input_stream.getPosition() + 1;
2706 {if (true) throw e;}
2711 static final public void GlobalStatement() throws ParseException {
2712 final int pos = jj_input_stream.getPosition();
2714 jj_consume_token(GLOBAL);
2715 expr = VariableDeclaratorId();
2716 if (currentSegment != null) {
2717 currentSegment.add(new PHPGlobalDeclaration(currentSegment, "global",pos,expr));
2721 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2726 jj_la1[82] = jj_gen;
2729 jj_consume_token(COMMA);
2730 expr = VariableDeclaratorId();
2731 if (currentSegment != null) {
2732 currentSegment.add(new PHPGlobalDeclaration(currentSegment, "global",pos,expr));
2736 jj_consume_token(SEMICOLON);
2737 } catch (ParseException e) {
2738 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"'. a ';' was expected";
2740 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2741 errorEnd = jj_input_stream.getPosition() + 1;
2742 {if (true) throw e;}
2746 static final public void StaticStatement() throws ParseException {
2747 jj_consume_token(STATIC);
2748 VariableDeclarator();
2751 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2756 jj_la1[83] = jj_gen;
2759 jj_consume_token(COMMA);
2760 VariableDeclarator();
2763 jj_consume_token(SEMICOLON);
2764 } catch (ParseException e) {
2765 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"'. a ';' was expected";
2767 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2768 errorEnd = jj_input_stream.getPosition() + 1;
2769 {if (true) throw e;}
2773 static final public void LabeledStatement() throws ParseException {
2774 jj_consume_token(IDENTIFIER);
2775 jj_consume_token(COLON);
2779 static final public void Block() throws ParseException {
2781 jj_consume_token(LBRACE);
2782 } catch (ParseException e) {
2783 errorMessage = "'{' expected";
2785 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2786 errorEnd = jj_input_stream.getPosition() + 1;
2787 {if (true) throw e;}
2791 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2818 case INTEGER_LITERAL:
2819 case FLOATING_POINT_LITERAL:
2820 case STRING_LITERAL:
2837 jj_la1[84] = jj_gen;
2840 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2866 case INTEGER_LITERAL:
2867 case FLOATING_POINT_LITERAL:
2868 case STRING_LITERAL:
2888 jj_la1[85] = jj_gen;
2889 jj_consume_token(-1);
2890 throw new ParseException();
2894 jj_consume_token(RBRACE);
2895 } catch (ParseException e) {
2896 errorMessage = "unexpected token : '"+ e.currentToken.image +"', '}' expected";
2898 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
2899 errorEnd = jj_input_stream.getPosition() + 1;
2900 {if (true) throw e;}
2904 static final public void BlockStatement() throws ParseException {
2905 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2929 case INTEGER_LITERAL:
2930 case FLOATING_POINT_LITERAL:
2931 case STRING_LITERAL:
2951 MethodDeclaration();
2954 jj_la1[86] = jj_gen;
2955 jj_consume_token(-1);
2956 throw new ParseException();
2961 * A Block statement that will not contain any 'break'
2963 static final public void BlockStatementNoBreak() throws ParseException {
2964 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2987 case INTEGER_LITERAL:
2988 case FLOATING_POINT_LITERAL:
2989 case STRING_LITERAL:
3009 MethodDeclaration();
3012 jj_la1[87] = jj_gen;
3013 jj_consume_token(-1);
3014 throw new ParseException();
3018 static final public void LocalVariableDeclaration() throws ParseException {
3019 LocalVariableDeclarator();
3022 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3027 jj_la1[88] = jj_gen;
3030 jj_consume_token(COMMA);
3031 LocalVariableDeclarator();
3035 static final public void LocalVariableDeclarator() throws ParseException {
3036 VariableDeclaratorId();
3037 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3039 jj_consume_token(ASSIGN);
3043 jj_la1[89] = jj_gen;
3048 static final public void EmptyStatement() throws ParseException {
3049 jj_consume_token(SEMICOLON);
3052 static final public void StatementExpression() throws ParseException {
3053 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3056 PreIncDecExpression();
3063 PrimaryExpression();
3064 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3079 case RSIGNEDSHIFTASSIGN:
3080 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3082 jj_consume_token(INCR);
3085 jj_consume_token(DECR);
3099 case RSIGNEDSHIFTASSIGN:
3100 AssignmentOperator();
3104 jj_la1[90] = jj_gen;
3105 jj_consume_token(-1);
3106 throw new ParseException();
3110 jj_la1[91] = jj_gen;
3115 jj_la1[92] = jj_gen;
3116 jj_consume_token(-1);
3117 throw new ParseException();
3121 static final public void SwitchStatement() throws ParseException {
3122 final int pos = jj_input_stream.getPosition();
3123 jj_consume_token(SWITCH);
3125 jj_consume_token(LPAREN);
3126 } catch (ParseException e) {
3127 errorMessage = "'(' expected after 'switch'";
3129 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3130 errorEnd = jj_input_stream.getPosition() + 1;
3131 {if (true) throw e;}
3135 } catch (ParseException e) {
3136 if (errorMessage != null) {
3137 {if (true) throw e;}
3139 errorMessage = "expression expected";
3141 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3142 errorEnd = jj_input_stream.getPosition() + 1;
3143 {if (true) throw e;}
3146 jj_consume_token(RPAREN);
3147 } catch (ParseException e) {
3148 errorMessage = "')' expected";
3150 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3151 errorEnd = jj_input_stream.getPosition() + 1;
3152 {if (true) throw e;}
3154 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3156 switchStatementBrace();
3159 switchStatementColon(pos, pos + 6);
3162 jj_la1[93] = jj_gen;
3163 jj_consume_token(-1);
3164 throw new ParseException();
3168 static final public void switchStatementBrace() throws ParseException {
3169 jj_consume_token(LBRACE);
3172 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3178 jj_la1[94] = jj_gen;
3184 jj_consume_token(RBRACE);
3185 } catch (ParseException e) {
3186 errorMessage = "'}' expected";
3188 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3189 errorEnd = jj_input_stream.getPosition() + 1;
3190 {if (true) throw e;}
3195 * A Switch statement with : ... endswitch;
3196 * @param start the begin offset of the switch
3197 * @param end the end offset of the switch
3199 static final public void switchStatementColon(final int start, final int end) throws ParseException {
3200 jj_consume_token(COLON);
3202 setMarker(fileToParse,
3203 "Ugly syntax detected, you should switch () {...} instead of switch (): ... enswitch;",
3207 "Line " + token.beginLine);
3208 } catch (CoreException e) {
3209 PHPeclipsePlugin.log(e);
3213 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3219 jj_la1[95] = jj_gen;
3225 jj_consume_token(ENDSWITCH);
3226 } catch (ParseException e) {
3227 errorMessage = "'endswitch' expected";
3229 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3230 errorEnd = jj_input_stream.getPosition() + 1;
3231 {if (true) throw e;}
3234 jj_consume_token(SEMICOLON);
3235 } catch (ParseException e) {
3236 errorMessage = "';' expected after 'endswitch' keyword";
3238 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3239 errorEnd = jj_input_stream.getPosition() + 1;
3240 {if (true) throw e;}
3244 static final public void switchLabel0() throws ParseException {
3245 Token breakToken = null;
3247 line = SwitchLabel();
3250 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3276 case INTEGER_LITERAL:
3277 case FLOATING_POINT_LITERAL:
3278 case STRING_LITERAL:
3295 jj_la1[96] = jj_gen;
3298 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3323 case INTEGER_LITERAL:
3324 case FLOATING_POINT_LITERAL:
3325 case STRING_LITERAL:
3339 BlockStatementNoBreak();
3345 jj_la1[97] = jj_gen;
3346 jj_consume_token(-1);
3347 throw new ParseException();
3350 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3352 breakToken = BreakStatement();
3355 jj_la1[98] = jj_gen;
3359 if (breakToken == null) {
3360 setMarker(fileToParse,
3361 "You should use put a 'break' at the end of your statement",
3366 } catch (CoreException e) {
3367 PHPeclipsePlugin.log(e);
3371 static final public Token BreakStatement() throws ParseException {
3373 token = jj_consume_token(BREAK);
3374 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3382 case INTEGER_LITERAL:
3383 case FLOATING_POINT_LITERAL:
3384 case STRING_LITERAL:
3399 jj_la1[99] = jj_gen;
3403 jj_consume_token(SEMICOLON);
3404 } catch (ParseException e) {
3405 errorMessage = "';' expected after 'break' keyword";
3407 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3408 errorEnd = jj_input_stream.getPosition() + 1;
3409 {if (true) throw e;}
3411 {if (true) return token;}
3412 throw new Error("Missing return statement in function");
3415 static final public int SwitchLabel() throws ParseException {
3417 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3419 token = jj_consume_token(CASE);
3422 } catch (ParseException e) {
3423 if (errorMessage != null) {if (true) throw e;}
3424 errorMessage = "expression expected after 'case' keyword";
3426 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3427 errorEnd = jj_input_stream.getPosition() + 1;
3428 {if (true) throw e;}
3431 jj_consume_token(COLON);
3432 } catch (ParseException e) {
3433 errorMessage = "':' expected after case expression";
3435 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3436 errorEnd = jj_input_stream.getPosition() + 1;
3437 {if (true) throw e;}
3439 {if (true) return token.beginLine;}
3442 token = jj_consume_token(_DEFAULT);
3444 jj_consume_token(COLON);
3445 } catch (ParseException e) {
3446 errorMessage = "':' expected after 'default' keyword";
3448 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3449 errorEnd = jj_input_stream.getPosition() + 1;
3450 {if (true) throw e;}
3452 {if (true) return token.beginLine;}
3455 jj_la1[100] = jj_gen;
3456 jj_consume_token(-1);
3457 throw new ParseException();
3459 throw new Error("Missing return statement in function");
3462 static final public void IfStatement() throws ParseException {
3464 final int pos = jj_input_stream.getPosition();
3465 token = jj_consume_token(IF);
3467 IfStatement0(pos,pos+token.image.length());
3470 static final public void Condition(final String keyword) throws ParseException {
3472 jj_consume_token(LPAREN);
3473 } catch (ParseException e) {
3474 errorMessage = "'(' expected after " + keyword + " keyword";
3476 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length();
3477 errorEnd = errorStart +1;
3478 processParseException(e);
3482 jj_consume_token(RPAREN);
3483 } catch (ParseException e) {
3484 errorMessage = "')' expected after " + keyword + " keyword";
3486 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3487 errorEnd = jj_input_stream.getPosition() + 1;
3488 {if (true) throw e;}
3492 static final public void IfStatement0(final int start,final int end) throws ParseException {
3493 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3495 jj_consume_token(COLON);
3498 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3523 case INTEGER_LITERAL:
3524 case FLOATING_POINT_LITERAL:
3525 case STRING_LITERAL:
3542 jj_la1[101] = jj_gen;
3545 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3569 case INTEGER_LITERAL:
3570 case FLOATING_POINT_LITERAL:
3571 case STRING_LITERAL:
3591 jj_la1[102] = jj_gen;
3592 jj_consume_token(-1);
3593 throw new ParseException();
3598 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3603 jj_la1[103] = jj_gen;
3606 ElseIfStatementColon();
3608 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3610 ElseStatementColon();
3613 jj_la1[104] = jj_gen;
3617 setMarker(fileToParse,
3618 "Ugly syntax detected, you should if () {...} instead of if (): ... endif;",
3622 "Line " + token.beginLine);
3623 } catch (CoreException e) {
3624 PHPeclipsePlugin.log(e);
3627 jj_consume_token(ENDIF);
3628 } catch (ParseException e) {
3629 errorMessage = "'endif' expected";
3631 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3632 errorEnd = jj_input_stream.getPosition() + 1;
3633 {if (true) throw e;}
3636 jj_consume_token(SEMICOLON);
3637 } catch (ParseException e) {
3638 errorMessage = "';' expected after 'endif' keyword";
3640 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3641 errorEnd = jj_input_stream.getPosition() + 1;
3642 {if (true) throw e;}
3669 case INTEGER_LITERAL:
3670 case FLOATING_POINT_LITERAL:
3671 case STRING_LITERAL:
3685 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3709 case INTEGER_LITERAL:
3710 case FLOATING_POINT_LITERAL:
3711 case STRING_LITERAL:
3731 jj_la1[105] = jj_gen;
3732 jj_consume_token(-1);
3733 throw new ParseException();
3737 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3742 jj_la1[106] = jj_gen;
3747 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3749 jj_consume_token(ELSE);
3752 } catch (ParseException e) {
3753 if (errorMessage != null) {
3754 {if (true) throw e;}
3756 errorMessage = "unexpected token '"+e.currentToken.next.image+"', a statement was expected";
3758 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
3759 errorEnd = jj_input_stream.getPosition() + 1;
3760 {if (true) throw e;}
3764 jj_la1[107] = jj_gen;
3769 jj_la1[108] = jj_gen;
3770 jj_consume_token(-1);
3771 throw new ParseException();
3775 static final public void ElseIfStatementColon() throws ParseException {
3776 jj_consume_token(ELSEIF);
3777 Condition("elseif");
3778 jj_consume_token(COLON);
3781 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3806 case INTEGER_LITERAL:
3807 case FLOATING_POINT_LITERAL:
3808 case STRING_LITERAL:
3825 jj_la1[109] = jj_gen;
3828 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3852 case INTEGER_LITERAL:
3853 case FLOATING_POINT_LITERAL:
3854 case STRING_LITERAL:
3874 jj_la1[110] = jj_gen;
3875 jj_consume_token(-1);
3876 throw new ParseException();
3881 static final public void ElseStatementColon() throws ParseException {
3882 jj_consume_token(ELSE);
3883 jj_consume_token(COLON);
3886 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3911 case INTEGER_LITERAL:
3912 case FLOATING_POINT_LITERAL:
3913 case STRING_LITERAL:
3930 jj_la1[111] = jj_gen;
3933 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3957 case INTEGER_LITERAL:
3958 case FLOATING_POINT_LITERAL:
3959 case STRING_LITERAL:
3979 jj_la1[112] = jj_gen;
3980 jj_consume_token(-1);
3981 throw new ParseException();
3986 static final public void ElseIfStatement() throws ParseException {
3987 jj_consume_token(ELSEIF);
3988 Condition("elseif");
3992 static final public void WhileStatement() throws ParseException {
3994 final int pos = jj_input_stream.getPosition();
3995 token = jj_consume_token(WHILE);
3997 WhileStatement0(pos,pos + token.image.length());
4000 static final public void WhileStatement0(final int start, final int end) throws ParseException {
4001 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4003 jj_consume_token(COLON);
4006 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4030 case INTEGER_LITERAL:
4031 case FLOATING_POINT_LITERAL:
4032 case STRING_LITERAL:
4049 jj_la1[113] = jj_gen;
4055 setMarker(fileToParse,
4056 "Ugly syntax detected, you should while () {...} instead of while (): ... endwhile;",
4060 "Line " + token.beginLine);
4061 } catch (CoreException e) {
4062 PHPeclipsePlugin.log(e);
4065 jj_consume_token(ENDWHILE);
4066 } catch (ParseException e) {
4067 errorMessage = "'endwhile' expected";
4069 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
4070 errorEnd = jj_input_stream.getPosition() + 1;
4071 {if (true) throw e;}
4074 jj_consume_token(SEMICOLON);
4075 } catch (ParseException e) {
4076 errorMessage = "';' expected after 'endwhile' keyword";
4078 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
4079 errorEnd = jj_input_stream.getPosition() + 1;
4080 {if (true) throw e;}
4106 case INTEGER_LITERAL:
4107 case FLOATING_POINT_LITERAL:
4108 case STRING_LITERAL:
4125 jj_la1[114] = jj_gen;
4126 jj_consume_token(-1);
4127 throw new ParseException();
4131 static final public void DoStatement() throws ParseException {
4132 jj_consume_token(DO);
4134 jj_consume_token(WHILE);
4137 jj_consume_token(SEMICOLON);
4138 } catch (ParseException e) {
4139 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"'. A ';' was expected";
4141 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
4142 errorEnd = jj_input_stream.getPosition() + 1;
4143 {if (true) throw e;}
4147 static final public void ForeachStatement() throws ParseException {
4148 jj_consume_token(FOREACH);
4150 jj_consume_token(LPAREN);
4151 } catch (ParseException e) {
4152 errorMessage = "'(' expected after 'foreach' keyword";
4154 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
4155 errorEnd = jj_input_stream.getPosition() + 1;
4156 {if (true) throw e;}
4160 } catch (ParseException e) {
4161 errorMessage = "variable expected";
4163 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
4164 errorEnd = jj_input_stream.getPosition() + 1;
4165 {if (true) throw e;}
4169 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4175 jj_la1[115] = jj_gen;
4181 jj_consume_token(AS);
4182 } catch (ParseException e) {
4183 errorMessage = "'as' expected";
4185 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
4186 errorEnd = jj_input_stream.getPosition() + 1;
4187 {if (true) throw e;}
4191 } catch (ParseException e) {
4192 errorMessage = "variable expected";
4194 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
4195 errorEnd = jj_input_stream.getPosition() + 1;
4196 {if (true) throw e;}
4198 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4200 jj_consume_token(ARRAYASSIGN);
4204 jj_la1[116] = jj_gen;
4208 jj_consume_token(RPAREN);
4209 } catch (ParseException e) {
4210 errorMessage = "')' expected after 'foreach' keyword";
4212 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
4213 errorEnd = jj_input_stream.getPosition() + 1;
4214 {if (true) throw e;}
4218 } catch (ParseException e) {
4219 if (errorMessage != null) {if (true) throw e;}
4220 errorMessage = "statement expected";
4222 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
4223 errorEnd = jj_input_stream.getPosition() + 1;
4224 {if (true) throw e;}
4228 static final public void ForStatement() throws ParseException {
4230 final int pos = jj_input_stream.getPosition();
4231 token = jj_consume_token(FOR);
4233 jj_consume_token(LPAREN);
4234 } catch (ParseException e) {
4235 errorMessage = "'(' expected after 'for' keyword";
4237 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
4238 errorEnd = jj_input_stream.getPosition() + 1;
4239 {if (true) throw e;}
4241 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4252 jj_la1[117] = jj_gen;
4255 jj_consume_token(SEMICOLON);
4256 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4264 case INTEGER_LITERAL:
4265 case FLOATING_POINT_LITERAL:
4266 case STRING_LITERAL:
4281 jj_la1[118] = jj_gen;
4284 jj_consume_token(SEMICOLON);
4285 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4293 StatementExpressionList();
4296 jj_la1[119] = jj_gen;
4299 jj_consume_token(RPAREN);
4300 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4324 case INTEGER_LITERAL:
4325 case FLOATING_POINT_LITERAL:
4326 case STRING_LITERAL:
4343 jj_consume_token(COLON);
4346 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4370 case INTEGER_LITERAL:
4371 case FLOATING_POINT_LITERAL:
4372 case STRING_LITERAL:
4389 jj_la1[120] = jj_gen;
4395 setMarker(fileToParse,
4396 "Ugly syntax detected, you should for () {...} instead of for (): ... endfor;",
4398 pos+token.image.length(),
4400 "Line " + token.beginLine);
4401 } catch (CoreException e) {
4402 PHPeclipsePlugin.log(e);
4405 jj_consume_token(ENDFOR);
4406 } catch (ParseException e) {
4407 errorMessage = "'endfor' expected";
4409 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
4410 errorEnd = jj_input_stream.getPosition() + 1;
4411 {if (true) throw e;}
4414 jj_consume_token(SEMICOLON);
4415 } catch (ParseException e) {
4416 errorMessage = "';' expected after 'endfor' keyword";
4418 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
4419 errorEnd = jj_input_stream.getPosition() + 1;
4420 {if (true) throw e;}
4424 jj_la1[121] = jj_gen;
4425 jj_consume_token(-1);
4426 throw new ParseException();
4430 static final public void ForInit() throws ParseException {
4431 if (jj_2_8(2147483647)) {
4432 LocalVariableDeclaration();
4434 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4442 StatementExpressionList();
4445 jj_la1[122] = jj_gen;
4446 jj_consume_token(-1);
4447 throw new ParseException();
4452 static final public void StatementExpressionList() throws ParseException {
4453 StatementExpression();
4456 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4461 jj_la1[123] = jj_gen;
4464 jj_consume_token(COMMA);
4465 StatementExpression();
4469 static final public void ContinueStatement() throws ParseException {
4470 jj_consume_token(CONTINUE);
4471 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4479 case INTEGER_LITERAL:
4480 case FLOATING_POINT_LITERAL:
4481 case STRING_LITERAL:
4496 jj_la1[124] = jj_gen;
4500 jj_consume_token(SEMICOLON);
4501 } catch (ParseException e) {
4502 errorMessage = "';' expected after 'continue' statement";
4504 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
4505 errorEnd = jj_input_stream.getPosition() + 1;
4506 {if (true) throw e;}
4510 static final public void ReturnStatement() throws ParseException {
4511 jj_consume_token(RETURN);
4512 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4520 case INTEGER_LITERAL:
4521 case FLOATING_POINT_LITERAL:
4522 case STRING_LITERAL:
4537 jj_la1[125] = jj_gen;
4541 jj_consume_token(SEMICOLON);
4542 } catch (ParseException e) {
4543 errorMessage = "';' expected after 'return' statement";
4545 errorStart = jj_input_stream.getPosition() - e.currentToken.next.image.length() + 1;
4546 errorEnd = jj_input_stream.getPosition() + 1;
4547 {if (true) throw e;}
4551 static final private boolean jj_2_1(int xla) {
4552 jj_la = xla; jj_lastpos = jj_scanpos = token;
4553 boolean retval = !jj_3_1();
4558 static final private boolean jj_2_2(int xla) {
4559 jj_la = xla; jj_lastpos = jj_scanpos = token;
4560 boolean retval = !jj_3_2();
4565 static final private boolean jj_2_3(int xla) {
4566 jj_la = xla; jj_lastpos = jj_scanpos = token;
4567 boolean retval = !jj_3_3();
4572 static final private boolean jj_2_4(int xla) {
4573 jj_la = xla; jj_lastpos = jj_scanpos = token;
4574 boolean retval = !jj_3_4();
4579 static final private boolean jj_2_5(int xla) {
4580 jj_la = xla; jj_lastpos = jj_scanpos = token;
4581 boolean retval = !jj_3_5();
4586 static final private boolean jj_2_6(int xla) {
4587 jj_la = xla; jj_lastpos = jj_scanpos = token;
4588 boolean retval = !jj_3_6();
4593 static final private boolean jj_2_7(int xla) {
4594 jj_la = xla; jj_lastpos = jj_scanpos = token;
4595 boolean retval = !jj_3_7();
4600 static final private boolean jj_2_8(int xla) {
4601 jj_la = xla; jj_lastpos = jj_scanpos = token;
4602 boolean retval = !jj_3_8();
4607 static final private boolean jj_3R_189() {
4608 if (jj_scan_token(INCR)) return true;
4609 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4613 static final private boolean jj_3R_181() {
4618 if (jj_3R_190()) return true;
4619 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4620 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4624 static final private boolean jj_3R_171() {
4625 if (jj_3R_178()) return true;
4626 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4630 static final private boolean jj_3R_184() {
4631 if (jj_3R_193()) return true;
4632 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4636 static final private boolean jj_3R_170() {
4637 if (jj_3R_177()) return true;
4638 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4642 if (jj_3R_184()) { jj_scanpos = xsp; break; }
4643 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4648 static final private boolean jj_3R_183() {
4649 if (jj_3R_193()) return true;
4650 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4654 static final private boolean jj_3R_44() {
4655 if (jj_3R_52()) return true;
4656 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4657 if (jj_3R_53()) return true;
4658 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4659 if (jj_3R_47()) return true;
4660 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4664 static final private boolean jj_3R_180() {
4665 if (jj_scan_token(ARRAY)) return true;
4666 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4670 static final private boolean jj_3_5() {
4671 if (jj_scan_token(IDENTIFIER)) return true;
4672 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4673 if (jj_scan_token(STATICCLASSACCESS)) return true;
4674 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4675 if (jj_3R_182()) return true;
4676 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4680 if (jj_3R_183()) { jj_scanpos = xsp; break; }
4681 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4686 static final private boolean jj_3R_166() {
4693 if (jj_3R_171()) return true;
4694 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4695 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4696 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4700 static final private boolean jj_3_3() {
4701 if (jj_3R_44()) return true;
4702 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4706 static final private boolean jj_3R_58() {
4707 if (jj_3R_88()) return true;
4708 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4712 static final private boolean jj_3R_57() {
4713 if (jj_3R_44()) return true;
4714 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4718 static final private boolean jj_3R_56() {
4719 if (jj_3R_87()) return true;
4720 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4724 static final private boolean jj_3R_179() {
4725 if (jj_3R_54()) return true;
4726 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4730 static final private boolean jj_3R_47() {
4739 if (jj_3R_58()) return true;
4740 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4741 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4742 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4743 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4747 static final private boolean jj_3R_55() {
4748 if (jj_3R_86()) return true;
4749 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4753 static final private boolean jj_3R_168() {
4754 if (jj_3R_166()) return true;
4755 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4758 if (jj_3R_181()) jj_scanpos = xsp;
4759 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4763 static final private boolean jj_3R_46() {
4764 if (jj_scan_token(ARRAY)) return true;
4765 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4769 static final private boolean jj_3R_85() {
4770 if (jj_scan_token(OBJECT)) return true;
4771 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4775 static final private boolean jj_3R_167() {
4776 if (jj_scan_token(LPAREN)) return true;
4777 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4782 if (jj_3R_180()) return true;
4783 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4784 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4785 if (jj_scan_token(RPAREN)) return true;
4786 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4787 if (jj_3R_141()) return true;
4788 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4792 static final private boolean jj_3R_84() {
4793 if (jj_scan_token(INTEGER)) return true;
4794 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4798 static final private boolean jj_3R_45() {
4799 if (jj_3R_54()) return true;
4800 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4804 static final private boolean jj_3R_83() {
4805 if (jj_scan_token(INT)) return true;
4806 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4810 static final private boolean jj_3R_82() {
4811 if (jj_scan_token(FLOAT)) return true;
4812 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4816 static final private boolean jj_3R_81() {
4817 if (jj_scan_token(DOUBLE)) return true;
4818 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4822 static final private boolean jj_3R_80() {
4823 if (jj_scan_token(REAL)) return true;
4824 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4828 static final private boolean jj_3R_79() {
4829 if (jj_scan_token(BOOLEAN)) return true;
4830 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4834 static final private boolean jj_3R_78() {
4835 if (jj_scan_token(BOOL)) return true;
4836 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4840 static final private boolean jj_3R_77() {
4841 if (jj_scan_token(STRING)) return true;
4842 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4846 static final private boolean jj_3R_54() {
4865 if (jj_3R_85()) return true;
4866 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4867 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4868 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4869 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4870 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4871 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4872 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4873 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4874 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4878 static final private boolean jj_3_4() {
4879 if (jj_scan_token(LPAREN)) return true;
4880 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4885 if (jj_3R_46()) return true;
4886 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4887 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4888 if (jj_scan_token(RPAREN)) return true;
4889 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4893 static final private boolean jj_3R_160() {
4894 if (jj_scan_token(DECR)) return true;
4895 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4899 static final private boolean jj_3R_103() {
4900 if (jj_scan_token(ASSIGN)) return true;
4901 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4902 if (jj_3R_47()) return true;
4903 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4907 static final private boolean jj_3R_165() {
4908 if (jj_scan_token(LPAREN)) return true;
4909 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4910 if (jj_3R_47()) return true;
4911 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4912 if (jj_scan_token(RPAREN)) return true;
4913 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4917 static final private boolean jj_3R_164() {
4918 if (jj_3R_169()) return true;
4919 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4923 static final private boolean jj_3R_163() {
4924 if (jj_3R_168()) return true;
4925 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4929 static final private boolean jj_3R_162() {
4930 if (jj_3R_167()) return true;
4931 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4935 static final private boolean jj_3R_158() {
4946 if (jj_3R_165()) return true;
4947 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4948 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4949 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4950 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4951 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4955 static final private boolean jj_3R_161() {
4956 if (jj_scan_token(BANG)) return true;
4957 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4958 if (jj_3R_141()) return true;
4959 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4963 static final private boolean jj_3R_159() {
4964 if (jj_scan_token(INCR)) return true;
4965 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4969 static final private boolean jj_3R_156() {
4970 if (jj_scan_token(MINUS)) return true;
4971 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4975 static final private boolean jj_3R_157() {
4980 if (jj_3R_160()) return true;
4981 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4982 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4983 if (jj_3R_166()) return true;
4984 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4988 static final private boolean jj_3R_102() {
4989 if (jj_scan_token(COMMA)) return true;
4990 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4991 if (jj_3R_52()) return true;
4992 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
4996 static final private boolean jj_3R_101() {
4997 if (jj_3R_52()) return true;
4998 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5002 static final private boolean jj_3R_149() {
5003 if (jj_scan_token(REM)) return true;
5004 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5008 static final private boolean jj_3R_154() {
5009 if (jj_3R_158()) return true;
5010 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5014 static final private boolean jj_3R_153() {
5015 if (jj_3R_157()) return true;
5016 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5020 static final private boolean jj_3R_155() {
5021 if (jj_scan_token(PLUS)) return true;
5022 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5026 static final private boolean jj_3R_150() {
5033 if (jj_3R_154()) return true;
5034 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5035 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5036 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5040 static final private boolean jj_3R_152() {
5045 if (jj_3R_156()) return true;
5046 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5047 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5048 if (jj_3R_141()) return true;
5049 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5053 static final private boolean jj_3R_87() {
5054 if (jj_scan_token(LIST)) return true;
5055 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5056 if (jj_scan_token(LPAREN)) return true;
5057 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5060 if (jj_3R_101()) jj_scanpos = xsp;
5061 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5064 if (jj_3R_102()) { jj_scanpos = xsp; break; }
5065 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5067 if (jj_scan_token(RPAREN)) return true;
5068 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5070 if (jj_3R_103()) jj_scanpos = xsp;
5071 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5075 static final private boolean jj_3R_151() {
5076 if (jj_scan_token(AT)) return true;
5077 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5081 static final private boolean jj_3R_146() {
5085 if (jj_3R_151()) { jj_scanpos = xsp; break; }
5086 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5088 if (jj_3R_150()) return true;
5089 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5093 static final private boolean jj_3R_86() {
5094 if (jj_scan_token(PRINT)) return true;
5095 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5096 if (jj_3R_47()) return true;
5097 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5101 static final private boolean jj_3R_148() {
5102 if (jj_scan_token(SLASH)) return true;
5103 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5107 static final private boolean jj_3R_141() {
5112 if (jj_3R_146()) return true;
5113 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5114 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5118 static final private boolean jj_3R_145() {
5119 if (jj_scan_token(BIT_AND)) return true;
5120 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5121 if (jj_3R_150()) return true;
5122 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5126 static final private boolean jj_3R_140() {
5127 if (jj_scan_token(RUNSIGNEDSHIFT)) return true;
5128 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5132 static final private boolean jj_3R_147() {
5133 if (jj_scan_token(STAR)) return true;
5134 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5138 static final private boolean jj_3R_142() {
5145 if (jj_3R_149()) return true;
5146 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5147 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5148 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5149 if (jj_3R_141()) return true;
5150 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5154 static final private boolean jj_3R_144() {
5155 if (jj_scan_token(MINUS)) return true;
5156 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5160 static final private boolean jj_3R_135() {
5161 if (jj_scan_token(GE)) return true;
5162 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5166 static final private boolean jj_3R_136() {
5167 if (jj_3R_141()) return true;
5168 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5172 if (jj_3R_142()) { jj_scanpos = xsp; break; }
5173 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5178 static final private boolean jj_3R_139() {
5179 if (jj_scan_token(RSIGNEDSHIFT)) return true;
5180 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5184 static final private boolean jj_3R_134() {
5185 if (jj_scan_token(LE)) return true;
5186 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5190 static final private boolean jj_3R_143() {
5191 if (jj_scan_token(PLUS)) return true;
5192 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5196 static final private boolean jj_3R_137() {
5201 if (jj_3R_144()) return true;
5202 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5203 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5204 if (jj_3R_136()) return true;
5205 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5209 static final private boolean jj_3R_130() {
5210 if (jj_3R_136()) return true;
5211 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5215 if (jj_3R_137()) { jj_scanpos = xsp; break; }
5216 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5221 static final private boolean jj_3R_133() {
5222 if (jj_scan_token(GT)) return true;
5223 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5227 static final private boolean jj_3R_138() {
5228 if (jj_scan_token(LSHIFT)) return true;
5229 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5233 static final private boolean jj_3R_131() {
5240 if (jj_3R_140()) return true;
5241 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5242 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5243 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5244 if (jj_3R_130()) return true;
5245 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5249 static final private boolean jj_3R_123() {
5250 if (jj_3R_130()) return true;
5251 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5255 if (jj_3R_131()) { jj_scanpos = xsp; break; }
5256 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5261 static final private boolean jj_3R_200() {
5262 if (jj_scan_token(COMMA)) return true;
5263 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5267 static final private boolean jj_3R_132() {
5268 if (jj_scan_token(LT)) return true;
5269 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5273 static final private boolean jj_3_2() {
5274 if (jj_scan_token(COMMA)) return true;
5275 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5276 if (jj_3R_43()) return true;
5277 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5281 static final private boolean jj_3R_124() {
5290 if (jj_3R_135()) return true;
5291 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5292 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5293 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5294 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5295 if (jj_3R_123()) return true;
5296 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5300 static final private boolean jj_3R_199() {
5301 if (jj_3R_43()) return true;
5302 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5306 if (jj_3_2()) { jj_scanpos = xsp; break; }
5307 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5312 static final private boolean jj_3R_121() {
5313 if (jj_3R_123()) return true;
5314 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5318 if (jj_3R_124()) { jj_scanpos = xsp; break; }
5319 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5324 static final private boolean jj_3R_194() {
5325 if (jj_scan_token(LPAREN)) return true;
5326 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5329 if (jj_3R_199()) jj_scanpos = xsp;
5330 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5332 if (jj_3R_200()) jj_scanpos = xsp;
5333 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5334 if (jj_scan_token(RPAREN)) return true;
5335 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5339 static final private boolean jj_3_7() {
5340 if (jj_3R_48()) return true;
5341 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5345 static final private boolean jj_3_8() {
5346 if (jj_3R_49()) return true;
5347 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5351 static final private boolean jj_3R_203() {
5352 if (jj_scan_token(ARRAYASSIGN)) return true;
5353 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5354 if (jj_3R_47()) return true;
5355 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5359 static final private boolean jj_3R_129() {
5360 if (jj_scan_token(TRIPLEEQUAL)) return true;
5361 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5365 static final private boolean jj_3R_43() {
5366 if (jj_3R_47()) return true;
5367 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5370 if (jj_3R_203()) jj_scanpos = xsp;
5371 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5375 static final private boolean jj_3R_128() {
5376 if (jj_scan_token(BANGDOUBLEEQUAL)) return true;
5377 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5381 static final private boolean jj_3R_127() {
5382 if (jj_scan_token(NE)) return true;
5383 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5387 static final private boolean jj_3R_126() {
5388 if (jj_scan_token(DIF)) return true;
5389 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5393 static final private boolean jj_3R_125() {
5394 if (jj_scan_token(EQ)) return true;
5395 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5399 static final private boolean jj_3_6() {
5400 if (jj_3R_47()) return true;
5401 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5402 if (jj_scan_token(SEMICOLON)) return true;
5403 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5407 static final private boolean jj_3R_122() {
5418 if (jj_3R_129()) return true;
5419 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5420 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5421 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5422 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5423 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5424 if (jj_3R_121()) return true;
5425 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5429 static final private boolean jj_3R_119() {
5430 if (jj_3R_121()) return true;
5431 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5435 if (jj_3R_122()) { jj_scanpos = xsp; break; }
5436 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5441 static final private boolean jj_3R_205() {
5442 if (jj_scan_token(COMMA)) return true;
5443 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5444 if (jj_3R_47()) return true;
5445 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5449 static final private boolean jj_3R_120() {
5450 if (jj_scan_token(BIT_AND)) return true;
5451 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5452 if (jj_3R_119()) return true;
5453 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5457 static final private boolean jj_3R_204() {
5458 if (jj_3R_47()) return true;
5459 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5463 if (jj_3R_205()) { jj_scanpos = xsp; break; }
5464 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5469 static final private boolean jj_3R_117() {
5470 if (jj_3R_119()) return true;
5471 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5475 if (jj_3R_120()) { jj_scanpos = xsp; break; }
5476 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5481 static final private boolean jj_3R_202() {
5482 if (jj_3R_204()) return true;
5483 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5487 static final private boolean jj_3R_118() {
5488 if (jj_scan_token(XOR)) return true;
5489 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5490 if (jj_3R_117()) return true;
5491 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5495 static final private boolean jj_3R_93() {
5496 if (jj_scan_token(DOLLAR_ID)) return true;
5497 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5501 static final private boolean jj_3R_201() {
5502 if (jj_scan_token(LPAREN)) return true;
5503 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5506 if (jj_3R_202()) jj_scanpos = xsp;
5507 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5508 if (jj_scan_token(RPAREN)) return true;
5509 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5513 static final private boolean jj_3R_110() {
5514 if (jj_scan_token(LBRACE)) return true;
5515 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5516 if (jj_3R_47()) return true;
5517 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5518 if (jj_scan_token(RBRACE)) return true;
5519 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5523 static final private boolean jj_3R_115() {
5524 if (jj_3R_117()) return true;
5525 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5529 if (jj_3R_118()) { jj_scanpos = xsp; break; }
5530 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5535 static final private boolean jj_3R_196() {
5536 if (jj_scan_token(FALSE)) return true;
5537 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5541 static final private boolean jj_3R_92() {
5542 if (jj_scan_token(DOLLAR)) return true;
5543 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5544 if (jj_3R_61()) return true;
5545 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5549 static final private boolean jj_3R_95() {
5550 if (jj_3R_54()) return true;
5551 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5555 static final private boolean jj_3R_195() {
5556 if (jj_scan_token(TRUE)) return true;
5557 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5561 static final private boolean jj_3R_185() {
5566 if (jj_3R_196()) return true;
5567 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5568 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5572 static final private boolean jj_3R_116() {
5573 if (jj_scan_token(BIT_OR)) return true;
5574 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5575 if (jj_3R_115()) return true;
5576 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5580 static final private boolean jj_3R_176() {
5581 if (jj_scan_token(NULL)) return true;
5582 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5586 static final private boolean jj_3R_111() {
5587 if (jj_3R_115()) return true;
5588 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5592 if (jj_3R_116()) { jj_scanpos = xsp; break; }
5593 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5598 static final private boolean jj_3R_175() {
5599 if (jj_3R_185()) return true;
5600 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5604 static final private boolean jj_3R_174() {
5605 if (jj_scan_token(STRING_LITERAL)) return true;
5606 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5610 static final private boolean jj_3R_173() {
5611 if (jj_scan_token(FLOATING_POINT_LITERAL)) return true;
5612 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5616 static final private boolean jj_3R_169() {
5627 if (jj_3R_176()) return true;
5628 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5629 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5630 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5631 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5632 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5636 static final private boolean jj_3R_172() {
5637 if (jj_scan_token(INTEGER_LITERAL)) return true;
5638 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5642 static final private boolean jj_3R_91() {
5643 if (jj_scan_token(IDENTIFIER)) return true;
5644 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5647 if (jj_3R_110()) jj_scanpos = xsp;
5648 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5652 static final private boolean jj_3R_114() {
5653 if (jj_scan_token(_ANDL)) return true;
5654 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5658 static final private boolean jj_3R_89() {
5659 if (jj_scan_token(ASSIGN)) return true;
5660 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5661 if (jj_3R_47()) return true;
5662 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5666 static final private boolean jj_3R_90() {
5667 if (jj_scan_token(LBRACE)) return true;
5668 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5669 if (jj_3R_47()) return true;
5670 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5671 if (jj_scan_token(RBRACE)) return true;
5672 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5676 static final private boolean jj_3R_61() {
5685 if (jj_3R_93()) return true;
5686 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5687 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5688 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5689 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5693 static final private boolean jj_3R_60() {
5694 if (jj_scan_token(COMMA)) return true;
5695 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5696 if (jj_3R_59()) return true;
5697 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5701 static final private boolean jj_3R_100() {
5702 if (jj_scan_token(LBRACE)) return true;
5703 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5704 if (jj_3R_47()) return true;
5705 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5706 if (jj_scan_token(RBRACE)) return true;
5707 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5711 static final private boolean jj_3R_112() {
5712 if (jj_scan_token(DOT)) return true;
5713 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5714 if (jj_3R_111()) return true;
5715 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5719 static final private boolean jj_3R_94() {
5720 if (jj_3R_47()) return true;
5721 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5725 static final private boolean jj_3R_62() {
5730 if (jj_3R_95()) return true;
5731 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5732 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5736 static final private boolean jj_3R_106() {
5737 if (jj_3R_111()) return true;
5738 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5742 if (jj_3R_112()) { jj_scanpos = xsp; break; }
5743 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5748 static final private boolean jj_3R_97() {
5749 if (jj_scan_token(DOLLAR)) return true;
5750 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5751 if (jj_3R_61()) return true;
5752 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5756 static final private boolean jj_3R_109() {
5757 if (jj_scan_token(_ORL)) return true;
5758 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5762 static final private boolean jj_3R_51() {
5763 if (jj_scan_token(LBRACKET)) return true;
5764 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5767 if (jj_3R_62()) jj_scanpos = xsp;
5768 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5769 if (jj_scan_token(RBRACKET)) return true;
5770 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5774 static final private boolean jj_3R_113() {
5775 if (jj_scan_token(SC_AND)) return true;
5776 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5780 static final private boolean jj_3R_107() {
5785 if (jj_3R_114()) return true;
5786 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5787 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5788 if (jj_3R_106()) return true;
5789 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5793 static final private boolean jj_3R_59() {
5794 if (jj_3R_52()) return true;
5795 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5798 if (jj_3R_89()) jj_scanpos = xsp;
5799 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5803 static final private boolean jj_3R_96() {
5804 if (jj_scan_token(DOLLAR_ID)) return true;
5805 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5808 if (jj_3R_100()) jj_scanpos = xsp;
5809 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5813 static final private boolean jj_3R_63() {
5818 if (jj_3R_97()) return true;
5819 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5820 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5824 static final private boolean jj_3R_104() {
5825 if (jj_3R_106()) return true;
5826 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5830 if (jj_3R_107()) { jj_scanpos = xsp; break; }
5831 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5836 static final private boolean jj_3R_99() {
5837 if (jj_scan_token(HOOK)) return true;
5838 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5839 if (jj_3R_47()) return true;
5840 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5841 if (jj_scan_token(COLON)) return true;
5842 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5843 if (jj_3R_88()) return true;
5844 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5848 static final private boolean jj_3R_49() {
5849 if (jj_3R_59()) return true;
5850 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5854 if (jj_3R_60()) { jj_scanpos = xsp; break; }
5855 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5860 static final private boolean jj_3R_50() {
5861 if (jj_scan_token(CLASSACCESS)) return true;
5862 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5863 if (jj_3R_61()) return true;
5864 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5868 static final private boolean jj_3R_42() {
5873 if (jj_3R_51()) return true;
5874 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5875 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5879 static final private boolean jj_3R_198() {
5880 if (jj_3R_42()) return true;
5881 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5885 static final private boolean jj_3R_197() {
5886 if (jj_3R_201()) return true;
5887 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5891 static final private boolean jj_3R_193() {
5896 if (jj_3R_198()) return true;
5897 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5898 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5902 static final private boolean jj_3_1() {
5903 if (jj_3R_42()) return true;
5904 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5908 static final private boolean jj_3R_108() {
5909 if (jj_scan_token(SC_OR)) return true;
5910 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5914 static final private boolean jj_3R_105() {
5919 if (jj_3R_109()) return true;
5920 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5921 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5922 if (jj_3R_104()) return true;
5923 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5927 static final private boolean jj_3R_52() {
5928 if (jj_3R_63()) return true;
5929 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5933 if (jj_3_1()) { jj_scanpos = xsp; break; }
5934 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5939 static final private boolean jj_3R_98() {
5940 if (jj_3R_104()) return true;
5941 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5945 if (jj_3R_105()) { jj_scanpos = xsp; break; }
5946 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5951 static final private boolean jj_3R_192() {
5952 if (jj_3R_52()) return true;
5953 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5957 static final private boolean jj_3R_191() {
5958 if (jj_scan_token(IDENTIFIER)) return true;
5959 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5963 static final private boolean jj_3R_182() {
5968 if (jj_3R_192()) return true;
5969 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5970 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5974 static final private boolean jj_3R_88() {
5975 if (jj_3R_98()) return true;
5976 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5979 if (jj_3R_99()) jj_scanpos = xsp;
5980 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5984 static final private boolean jj_3R_188() {
5985 if (jj_3R_52()) return true;
5986 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5990 static final private boolean jj_3R_76() {
5991 if (jj_scan_token(TILDEEQUAL)) return true;
5992 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5996 static final private boolean jj_3R_190() {
5997 if (jj_scan_token(DECR)) return true;
5998 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6002 static final private boolean jj_3R_187() {
6003 if (jj_scan_token(NEW)) return true;
6004 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6005 if (jj_3R_182()) return true;
6006 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6010 static final private boolean jj_3R_75() {
6011 if (jj_scan_token(DOTASSIGN)) return true;
6012 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6016 static final private boolean jj_3R_186() {
6017 if (jj_scan_token(IDENTIFIER)) return true;
6018 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6022 static final private boolean jj_3R_177() {
6029 if (jj_3R_188()) return true;
6030 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6031 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6032 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6036 static final private boolean jj_3R_74() {
6037 if (jj_scan_token(ORASSIGN)) return true;
6038 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6042 static final private boolean jj_3R_73() {
6043 if (jj_scan_token(XORASSIGN)) return true;
6044 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6048 static final private boolean jj_3R_72() {
6049 if (jj_scan_token(ANDASSIGN)) return true;
6050 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6054 static final private boolean jj_3R_71() {
6055 if (jj_scan_token(RSIGNEDSHIFTASSIGN)) return true;
6056 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6060 static final private boolean jj_3R_70() {
6061 if (jj_scan_token(LSHIFTASSIGN)) return true;
6062 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6066 static final private boolean jj_3R_48() {
6067 if (jj_scan_token(IDENTIFIER)) return true;
6068 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6069 if (jj_scan_token(COLON)) return true;
6070 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6074 static final private boolean jj_3R_69() {
6075 if (jj_scan_token(MINUSASSIGN)) return true;
6076 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6080 static final private boolean jj_3R_68() {
6081 if (jj_scan_token(PLUSASSIGN)) return true;
6082 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6086 static final private boolean jj_3R_67() {
6087 if (jj_scan_token(REMASSIGN)) return true;
6088 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6092 static final private boolean jj_3R_66() {
6093 if (jj_scan_token(SLASHASSIGN)) return true;
6094 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6098 static final private boolean jj_3R_65() {
6099 if (jj_scan_token(STARASSIGN)) return true;
6100 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6104 static final private boolean jj_3R_178() {
6105 if (jj_scan_token(ARRAY)) return true;
6106 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6107 if (jj_3R_194()) return true;
6108 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6112 static final private boolean jj_3R_53() {
6139 if (jj_3R_76()) return true;
6140 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6141 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6142 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6143 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6144 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6145 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6146 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6147 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6148 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6149 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6150 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6151 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6152 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6156 static final private boolean jj_3R_64() {
6157 if (jj_scan_token(ASSIGN)) return true;
6158 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6162 static private boolean jj_initialized_once = false;
6163 static public PHPParserTokenManager token_source;
6164 static SimpleCharStream jj_input_stream;
6165 static public Token token, jj_nt;
6166 static private int jj_ntk;
6167 static private Token jj_scanpos, jj_lastpos;
6168 static private int jj_la;
6169 static public boolean lookingAhead = false;
6170 static private boolean jj_semLA;
6171 static private int jj_gen;
6172 static final private int[] jj_la1 = new int[126];
6173 static private int[] jj_la1_0;
6174 static private int[] jj_la1_1;
6175 static private int[] jj_la1_2;
6176 static private int[] jj_la1_3;
6177 static private int[] jj_la1_4;
6185 private static void jj_la1_0() {
6186 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,};
6188 private static void jj_la1_1() {
6189 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,};
6191 private static void jj_la1_2() {
6192 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,};
6194 private static void jj_la1_3() {
6195 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,};
6197 private static void jj_la1_4() {
6198 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,};
6200 static final private JJCalls[] jj_2_rtns = new JJCalls[8];
6201 static private boolean jj_rescan = false;
6202 static private int jj_gc = 0;
6204 public PHPParser(java.io.InputStream stream) {
6205 if (jj_initialized_once) {
6206 System.out.println("ERROR: Second call to constructor of static parser. You must");
6207 System.out.println(" either use ReInit() or set the JavaCC option STATIC to false");
6208 System.out.println(" during parser generation.");
6211 jj_initialized_once = true;
6212 jj_input_stream = new SimpleCharStream(stream, 1, 1);
6213 token_source = new PHPParserTokenManager(jj_input_stream);
6214 token = new Token();
6217 for (int i = 0; i < 126; i++) jj_la1[i] = -1;
6218 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
6221 static public void ReInit(java.io.InputStream stream) {
6222 jj_input_stream.ReInit(stream, 1, 1);
6223 token_source.ReInit(jj_input_stream);
6224 token = new Token();
6227 for (int i = 0; i < 126; i++) jj_la1[i] = -1;
6228 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
6231 public PHPParser(java.io.Reader stream) {
6232 if (jj_initialized_once) {
6233 System.out.println("ERROR: Second call to constructor of static parser. You must");
6234 System.out.println(" either use ReInit() or set the JavaCC option STATIC to false");
6235 System.out.println(" during parser generation.");
6238 jj_initialized_once = true;
6239 jj_input_stream = new SimpleCharStream(stream, 1, 1);
6240 token_source = new PHPParserTokenManager(jj_input_stream);
6241 token = new Token();
6244 for (int i = 0; i < 126; i++) jj_la1[i] = -1;
6245 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
6248 static public void ReInit(java.io.Reader stream) {
6249 jj_input_stream.ReInit(stream, 1, 1);
6250 token_source.ReInit(jj_input_stream);
6251 token = new Token();
6254 for (int i = 0; i < 126; i++) jj_la1[i] = -1;
6255 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
6258 public PHPParser(PHPParserTokenManager tm) {
6259 if (jj_initialized_once) {
6260 System.out.println("ERROR: Second call to constructor of static parser. You must");
6261 System.out.println(" either use ReInit() or set the JavaCC option STATIC to false");
6262 System.out.println(" during parser generation.");
6265 jj_initialized_once = true;
6267 token = new Token();
6270 for (int i = 0; i < 126; i++) jj_la1[i] = -1;
6271 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
6274 public void ReInit(PHPParserTokenManager tm) {
6276 token = new Token();
6279 for (int i = 0; i < 126; i++) jj_la1[i] = -1;
6280 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
6283 static final private Token jj_consume_token(int kind) throws ParseException {
6285 if ((oldToken = token).next != null) token = token.next;
6286 else token = token.next = token_source.getNextToken();
6288 if (token.kind == kind) {
6290 if (++jj_gc > 100) {
6292 for (int i = 0; i < jj_2_rtns.length; i++) {
6293 JJCalls c = jj_2_rtns[i];
6295 if (c.gen < jj_gen) c.first = null;
6304 throw generateParseException();
6307 static final private boolean jj_scan_token(int kind) {
6308 if (jj_scanpos == jj_lastpos) {
6310 if (jj_scanpos.next == null) {
6311 jj_lastpos = jj_scanpos = jj_scanpos.next = token_source.getNextToken();
6313 jj_lastpos = jj_scanpos = jj_scanpos.next;
6316 jj_scanpos = jj_scanpos.next;
6319 int i = 0; Token tok = token;
6320 while (tok != null && tok != jj_scanpos) { i++; tok = tok.next; }
6321 if (tok != null) jj_add_error_token(kind, i);
6323 return (jj_scanpos.kind != kind);
6326 static final public Token getNextToken() {
6327 if (token.next != null) token = token.next;
6328 else token = token.next = token_source.getNextToken();
6334 static final public Token getToken(int index) {
6335 Token t = lookingAhead ? jj_scanpos : token;
6336 for (int i = 0; i < index; i++) {
6337 if (t.next != null) t = t.next;
6338 else t = t.next = token_source.getNextToken();
6343 static final private int jj_ntk() {
6344 if ((jj_nt=token.next) == null)
6345 return (jj_ntk = (token.next=token_source.getNextToken()).kind);
6347 return (jj_ntk = jj_nt.kind);
6350 static private java.util.Vector jj_expentries = new java.util.Vector();
6351 static private int[] jj_expentry;
6352 static private int jj_kind = -1;
6353 static private int[] jj_lasttokens = new int[100];
6354 static private int jj_endpos;
6356 static private void jj_add_error_token(int kind, int pos) {
6357 if (pos >= 100) return;
6358 if (pos == jj_endpos + 1) {
6359 jj_lasttokens[jj_endpos++] = kind;
6360 } else if (jj_endpos != 0) {
6361 jj_expentry = new int[jj_endpos];
6362 for (int i = 0; i < jj_endpos; i++) {
6363 jj_expentry[i] = jj_lasttokens[i];
6365 boolean exists = false;
6366 for (java.util.Enumeration enum = jj_expentries.elements(); enum.hasMoreElements();) {
6367 int[] oldentry = (int[])(enum.nextElement());
6368 if (oldentry.length == jj_expentry.length) {
6370 for (int i = 0; i < jj_expentry.length; i++) {
6371 if (oldentry[i] != jj_expentry[i]) {
6379 if (!exists) jj_expentries.addElement(jj_expentry);
6380 if (pos != 0) jj_lasttokens[(jj_endpos = pos) - 1] = kind;
6384 static public ParseException generateParseException() {
6385 jj_expentries.removeAllElements();
6386 boolean[] la1tokens = new boolean[141];
6387 for (int i = 0; i < 141; i++) {
6388 la1tokens[i] = false;
6391 la1tokens[jj_kind] = true;
6394 for (int i = 0; i < 126; i++) {
6395 if (jj_la1[i] == jj_gen) {
6396 for (int j = 0; j < 32; j++) {
6397 if ((jj_la1_0[i] & (1<<j)) != 0) {
6398 la1tokens[j] = true;
6400 if ((jj_la1_1[i] & (1<<j)) != 0) {
6401 la1tokens[32+j] = true;
6403 if ((jj_la1_2[i] & (1<<j)) != 0) {
6404 la1tokens[64+j] = true;
6406 if ((jj_la1_3[i] & (1<<j)) != 0) {
6407 la1tokens[96+j] = true;
6409 if ((jj_la1_4[i] & (1<<j)) != 0) {
6410 la1tokens[128+j] = true;
6415 for (int i = 0; i < 141; i++) {
6417 jj_expentry = new int[1];
6419 jj_expentries.addElement(jj_expentry);
6424 jj_add_error_token(0, 0);
6425 int[][] exptokseq = new int[jj_expentries.size()][];
6426 for (int i = 0; i < jj_expentries.size(); i++) {
6427 exptokseq[i] = (int[])jj_expentries.elementAt(i);
6429 return new ParseException(token, exptokseq, tokenImage);
6432 static final public void enable_tracing() {
6435 static final public void disable_tracing() {
6438 static final private void jj_rescan_token() {
6440 for (int i = 0; i < 8; i++) {
6441 JJCalls p = jj_2_rtns[i];
6443 if (p.gen > jj_gen) {
6444 jj_la = p.arg; jj_lastpos = jj_scanpos = p.first;
6446 case 0: jj_3_1(); break;
6447 case 1: jj_3_2(); break;
6448 case 2: jj_3_3(); break;
6449 case 3: jj_3_4(); break;
6450 case 4: jj_3_5(); break;
6451 case 5: jj_3_6(); break;
6452 case 6: jj_3_7(); break;
6453 case 7: jj_3_8(); break;
6457 } while (p != null);
6462 static final private void jj_save(int index, int xla) {
6463 JJCalls p = jj_2_rtns[index];
6464 while (p.gen > jj_gen) {
6465 if (p.next == null) { p = p.next = new JJCalls(); break; }
6468 p.gen = jj_gen + xla - jj_la; p.first = token; p.arg = xla;
6471 static final class JJCalls {