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.util.ArrayList;
13 import java.io.StringReader;
15 import java.text.MessageFormat;
17 import net.sourceforge.phpeclipse.actions.PHPStartApacheAction;
18 import net.sourceforge.phpeclipse.PHPeclipsePlugin;
19 import net.sourceforge.phpdt.internal.compiler.ast.*;
20 import net.sourceforge.phpdt.internal.compiler.parser.OutlineableWithChildren;
21 import net.sourceforge.phpdt.internal.compiler.parser.PHPOutlineInfo;
25 * This php parser is inspired by the Java 1.2 grammar example
26 * given with JavaCC. You can get JavaCC at http://www.webgain.com
27 * You can test the parser with the PHPParserTestCase2.java
28 * @author Matthieu Casanova
30 public final class PHPParser extends PHPParserSuperclass implements PHPParserConstants {
32 /** The file that is parsed. */
33 private static IFile fileToParse;
35 /** The current segment. */
36 private static OutlineableWithChildren currentSegment;
38 private static final String PARSE_ERROR_STRING = "Parse error"; //$NON-NLS-1$
39 private static final String PARSE_WARNING_STRING = "Warning"; //$NON-NLS-1$
40 static PHPOutlineInfo outlineInfo;
42 private static boolean assigning;
44 /** The error level of the current ParseException. */
45 private static int errorLevel = ERROR;
46 /** The message of the current ParseException. If it's null it's because the parse exception wasn't handled */
47 private static String errorMessage;
49 private static int errorStart = -1;
50 private static int errorEnd = -1;
51 private static PHPDocument phpDocument;
53 * The point where html starts.
54 * It will be used by the token manager to create HTMLCode objects
56 public static int htmlStart;
59 private final static int AstStackIncrement = 100;
60 /** The stack of node. */
61 private static AstNode[] nodes;
62 /** The cursor in expression stack. */
63 private static int nodePtr;
65 public final void setFileToParse(final IFile fileToParse) {
66 this.fileToParse = fileToParse;
72 public PHPParser(final IFile fileToParse) {
73 this(new StringReader(""));
74 this.fileToParse = fileToParse;
78 * Reinitialize the parser.
80 private static final void init() {
81 nodes = new AstNode[AstStackIncrement];
87 * Add an php node on the stack.
88 * @param node the node that will be added to the stack
90 private static final void pushOnAstNodes(AstNode node) {
92 nodes[++nodePtr] = node;
93 } catch (IndexOutOfBoundsException e) {
94 int oldStackLength = nodes.length;
95 AstNode[] oldStack = nodes;
96 nodes = new AstNode[oldStackLength + AstStackIncrement];
97 System.arraycopy(oldStack, 0, nodes, 0, oldStackLength);
98 nodePtr = oldStackLength;
99 nodes[nodePtr] = node;
103 public final PHPOutlineInfo parseInfo(final Object parent, final String s) {
104 phpDocument = new PHPDocument(parent,"_root".toCharArray());
105 currentSegment = phpDocument;
106 outlineInfo = new PHPOutlineInfo(parent, currentSegment);
107 final StringReader stream = new StringReader(s);
108 if (jj_input_stream == null) {
109 jj_input_stream = new SimpleCharStream(stream, 1, 1);
115 phpDocument.nodes = new AstNode[nodes.length];
116 System.arraycopy(nodes,0,phpDocument.nodes,0,nodes.length);
117 PHPeclipsePlugin.log(1,phpDocument.toString());
118 } catch (ParseException e) {
119 processParseException(e);
125 * This method will process the parse exception.
126 * If the error message is null, the parse exception wasn't catched and a trace is written in the log
127 * @param e the ParseException
129 private static void processParseException(final ParseException e) {
130 if (errorMessage == null) {
131 PHPeclipsePlugin.log(e);
132 errorMessage = "this exception wasn't handled by the parser please tell us how to reproduce it";
133 errorStart = SimpleCharStream.getPosition();
134 errorEnd = errorStart + 1;
141 * Create marker for the parse error
142 * @param e the ParseException
144 private static void setMarker(final ParseException e) {
146 if (errorStart == -1) {
147 setMarker(fileToParse,
149 SimpleCharStream.tokenBegin,
150 SimpleCharStream.tokenBegin + e.currentToken.image.length(),
152 "Line " + e.currentToken.beginLine);
154 setMarker(fileToParse,
159 "Line " + e.currentToken.beginLine);
163 } catch (CoreException e2) {
164 PHPeclipsePlugin.log(e2);
169 * Create markers according to the external parser output
171 private static void createMarkers(final String output, final IFile file) throws CoreException {
172 // delete all markers
173 file.deleteMarkers(IMarker.PROBLEM, false, 0);
178 while ((brIndx = output.indexOf("<br />", indx)) != -1) {
179 // newer php error output (tested with 4.2.3)
180 scanLine(output, file, indx, brIndx);
185 while ((brIndx = output.indexOf("<br>", indx)) != -1) {
186 // older php error output (tested with 4.2.3)
187 scanLine(output, file, indx, brIndx);
193 private static void scanLine(final String output,
196 final int brIndx) throws CoreException {
198 StringBuffer lineNumberBuffer = new StringBuffer(10);
200 current = output.substring(indx, brIndx);
202 if (current.indexOf(PARSE_WARNING_STRING) != -1 || current.indexOf(PARSE_ERROR_STRING) != -1) {
203 int onLine = current.indexOf("on line <b>");
205 lineNumberBuffer.delete(0, lineNumberBuffer.length());
206 for (int i = onLine; i < current.length(); i++) {
207 ch = current.charAt(i);
208 if ('0' <= ch && '9' >= ch) {
209 lineNumberBuffer.append(ch);
213 int lineNumber = Integer.parseInt(lineNumberBuffer.toString());
215 Hashtable attributes = new Hashtable();
217 current = current.replaceAll("\n", "");
218 current = current.replaceAll("<b>", "");
219 current = current.replaceAll("</b>", "");
220 MarkerUtilities.setMessage(attributes, current);
222 if (current.indexOf(PARSE_ERROR_STRING) != -1)
223 attributes.put(IMarker.SEVERITY, new Integer(IMarker.SEVERITY_ERROR));
224 else if (current.indexOf(PARSE_WARNING_STRING) != -1)
225 attributes.put(IMarker.SEVERITY, new Integer(IMarker.SEVERITY_WARNING));
227 attributes.put(IMarker.SEVERITY, new Integer(IMarker.SEVERITY_INFO));
228 MarkerUtilities.setLineNumber(attributes, lineNumber);
229 MarkerUtilities.createMarker(file, attributes, IMarker.PROBLEM);
234 public final void parse(final String s) throws CoreException {
235 final StringReader stream = new StringReader(s);
236 if (jj_input_stream == null) {
237 jj_input_stream = new SimpleCharStream(stream, 1, 1);
243 } catch (ParseException e) {
244 processParseException(e);
249 * Call the php parse command ( php -l -f <filename> )
250 * and create markers according to the external parser output
252 public static void phpExternalParse(final IFile file) {
253 final IPreferenceStore store = PHPeclipsePlugin.getDefault().getPreferenceStore();
254 final String filename = file.getLocation().toString();
256 final String[] arguments = { filename };
257 final MessageFormat form = new MessageFormat(store.getString(PHPeclipsePlugin.EXTERNAL_PARSER_PREF));
258 final String command = form.format(arguments);
260 final String parserResult = PHPStartApacheAction.getParserOutput(command, "External parser: ");
263 // parse the buffer to find the errors and warnings
264 createMarkers(parserResult, file);
265 } catch (CoreException e) {
266 PHPeclipsePlugin.log(e);
271 * Put a new html block in the stack.
273 public static final void createNewHTMLCode() {
274 final int currentPosition = SimpleCharStream.getPosition();
275 if (currentPosition == htmlStart) {
278 final char[] chars = SimpleCharStream.currentBuffer.substring(htmlStart,currentPosition+1).toCharArray();
279 pushOnAstNodes(new HTMLCode(chars, htmlStart,currentPosition));
282 private static final void parse() throws ParseException {
286 static final public void phpFile() throws ParseException {
290 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
328 case INTEGER_LITERAL:
329 case FLOATING_POINT_LITERAL:
345 } catch (TokenMgrError e) {
346 PHPeclipsePlugin.log(e);
347 errorStart = SimpleCharStream.getPosition();
348 errorEnd = errorStart + 1;
349 errorMessage = e.getMessage();
351 {if (true) throw generateParseException();}
356 * A php block is a <?= expression [;]?>
357 * or <?php somephpcode ?>
358 * or <? somephpcode ?>
360 static final public void PhpBlock() throws ParseException {
361 final int start = SimpleCharStream.getPosition();
362 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
402 case INTEGER_LITERAL:
403 case FLOATING_POINT_LITERAL:
410 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
413 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
415 jj_consume_token(PHPSTARTLONG);
418 jj_consume_token(PHPSTARTSHORT);
420 setMarker(fileToParse,
421 "You should use '<?php' instead of '<?' it will avoid some problems with XML",
423 SimpleCharStream.getPosition(),
425 "Line " + token.beginLine);
426 } catch (CoreException e) {
427 PHPeclipsePlugin.log(e);
432 jj_consume_token(-1);
433 throw new ParseException();
442 jj_consume_token(PHPEND);
443 } catch (ParseException e) {
444 errorMessage = "'?>' expected";
446 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
447 errorEnd = SimpleCharStream.getPosition() + 1;
453 jj_consume_token(-1);
454 throw new ParseException();
458 static final public PHPEchoBlock phpEchoBlock() throws ParseException {
459 final Expression expr;
460 final int pos = SimpleCharStream.getPosition();
461 PHPEchoBlock echoBlock;
462 jj_consume_token(PHPECHOSTART);
464 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
466 jj_consume_token(SEMICOLON);
472 jj_consume_token(PHPEND);
473 echoBlock = new PHPEchoBlock(expr,pos,SimpleCharStream.getPosition());
474 pushOnAstNodes(echoBlock);
475 {if (true) return echoBlock;}
476 throw new Error("Missing return statement in function");
479 static final public void Php() throws ParseException {
482 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
516 case INTEGER_LITERAL:
517 case FLOATING_POINT_LITERAL:
534 static final public ClassDeclaration ClassDeclaration() throws ParseException {
535 final ClassDeclaration classDeclaration;
536 final Token className;
537 Token superclassName = null;
539 jj_consume_token(CLASS);
541 pos = SimpleCharStream.getPosition();
542 className = jj_consume_token(IDENTIFIER);
543 } catch (ParseException e) {
544 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', identifier expected";
546 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
547 errorEnd = SimpleCharStream.getPosition() + 1;
550 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
552 jj_consume_token(EXTENDS);
554 superclassName = jj_consume_token(IDENTIFIER);
555 } catch (ParseException e) {
556 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', identifier expected";
558 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
559 errorEnd = SimpleCharStream.getPosition() + 1;
567 if (superclassName == null) {
568 classDeclaration = new ClassDeclaration(currentSegment,
569 className.image.toCharArray(),
573 classDeclaration = new ClassDeclaration(currentSegment,
574 className.image.toCharArray(),
575 superclassName.image.toCharArray(),
579 currentSegment.add(classDeclaration);
580 currentSegment = classDeclaration;
581 ClassBody(classDeclaration);
582 currentSegment = (OutlineableWithChildren) currentSegment.getParent();
583 classDeclaration.sourceEnd = SimpleCharStream.getPosition();
584 pushOnAstNodes(classDeclaration);
585 {if (true) return classDeclaration;}
586 throw new Error("Missing return statement in function");
589 static final public void ClassBody(ClassDeclaration classDeclaration) throws ParseException {
591 jj_consume_token(LBRACE);
592 } catch (ParseException e) {
593 errorMessage = "unexpected token : '"+ e.currentToken.next.image + "', '{' expected";
595 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
596 errorEnd = SimpleCharStream.getPosition() + 1;
601 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
610 ClassBodyDeclaration(classDeclaration);
613 jj_consume_token(RBRACE);
614 } catch (ParseException e) {
615 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', 'var', 'function' or '}' expected";
617 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
618 errorEnd = SimpleCharStream.getPosition() + 1;
624 * A class can contain only methods and fields.
626 static final public void ClassBodyDeclaration(ClassDeclaration classDeclaration) throws ParseException {
627 MethodDeclaration method;
628 FieldDeclaration field;
629 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
631 method = MethodDeclaration();
632 method.setParent(classDeclaration);
635 field = FieldDeclaration();
639 jj_consume_token(-1);
640 throw new ParseException();
645 * A class field declaration : it's var VariableDeclarator() (, VariableDeclarator())*;.
647 static final public FieldDeclaration FieldDeclaration() throws ParseException {
648 VariableDeclaration variableDeclaration;
649 VariableDeclaration[] list;
650 final ArrayList arrayList = new ArrayList();
651 final int pos = SimpleCharStream.getPosition();
652 jj_consume_token(VAR);
653 variableDeclaration = VariableDeclarator();
654 arrayList.add(variableDeclaration);
655 outlineInfo.addVariable(new String(variableDeclaration.name));
656 currentSegment.add(variableDeclaration);
659 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
667 jj_consume_token(COMMA);
668 variableDeclaration = VariableDeclarator();
669 arrayList.add(variableDeclaration);
670 outlineInfo.addVariable(new String(variableDeclaration.name));
671 currentSegment.add(variableDeclaration);
674 jj_consume_token(SEMICOLON);
675 } catch (ParseException e) {
676 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"'. A ';' was expected after variable declaration";
678 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
679 errorEnd = SimpleCharStream.getPosition() + 1;
680 processParseException(e);
682 list = new VariableDeclaration[arrayList.size()];
683 arrayList.toArray(list);
684 {if (true) return new FieldDeclaration(list,
686 SimpleCharStream.getPosition(),
688 throw new Error("Missing return statement in function");
691 static final public VariableDeclaration VariableDeclarator() throws ParseException {
692 final String varName;
693 Expression initializer = null;
694 final int pos = SimpleCharStream.getPosition();
695 varName = VariableDeclaratorId();
696 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
698 jj_consume_token(ASSIGN);
700 initializer = VariableInitializer();
701 } catch (ParseException e) {
702 errorMessage = "Literal expression expected in variable initializer";
704 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
705 errorEnd = SimpleCharStream.getPosition() + 1;
713 if (initializer == null) {
714 {if (true) return new VariableDeclaration(currentSegment,
715 varName.toCharArray(),
717 SimpleCharStream.getPosition());}
719 {if (true) return new VariableDeclaration(currentSegment,
720 varName.toCharArray(),
723 throw new Error("Missing return statement in function");
728 * @return the variable name (with suffix)
730 static final public String VariableDeclaratorId() throws ParseException {
732 Expression expression;
733 final StringBuffer buff = new StringBuffer();
734 final int pos = SimpleCharStream.getPosition();
735 ConstantIdentifier ex;
746 ex = new ConstantIdentifier(expr.toCharArray(),
748 SimpleCharStream.getPosition());
749 expression = VariableSuffix(ex);
750 buff.append(expression.toStringExpression());
752 {if (true) return buff.toString();}
753 } catch (ParseException e) {
754 errorMessage = "'$' expected for variable identifier";
756 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
757 errorEnd = SimpleCharStream.getPosition() + 1;
760 throw new Error("Missing return statement in function");
763 static final public String Variable() throws ParseException {
764 final StringBuffer buff;
765 Expression expression = null;
768 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
770 token = jj_consume_token(DOLLAR_ID);
771 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
773 jj_consume_token(LBRACE);
774 expression = Expression();
775 jj_consume_token(RBRACE);
781 if (expression == null && !assigning) {
782 {if (true) return token.image.substring(1);}
784 buff = new StringBuffer(token.image);
786 buff.append(expression.toStringExpression());
788 {if (true) return buff.toString();}
791 jj_consume_token(DOLLAR);
792 expr = VariableName();
793 {if (true) return "$" + expr;}
797 jj_consume_token(-1);
798 throw new ParseException();
800 throw new Error("Missing return statement in function");
803 static final public String VariableName() throws ParseException {
804 final StringBuffer buff;
806 Expression expression = null;
808 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
810 jj_consume_token(LBRACE);
811 expression = Expression();
812 jj_consume_token(RBRACE);
813 buff = new StringBuffer("{");
814 buff.append(expression.toStringExpression());
816 {if (true) return buff.toString();}
819 token = jj_consume_token(IDENTIFIER);
820 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
822 jj_consume_token(LBRACE);
823 expression = Expression();
824 jj_consume_token(RBRACE);
830 if (expression == null) {
831 {if (true) return token.image;}
833 buff = new StringBuffer(token.image);
835 buff.append(expression.toStringExpression());
837 {if (true) return buff.toString();}
840 jj_consume_token(DOLLAR);
841 expr = VariableName();
842 buff = new StringBuffer("$");
844 {if (true) return buff.toString();}
847 token = jj_consume_token(DOLLAR_ID);
848 {if (true) return token.image;}
852 jj_consume_token(-1);
853 throw new ParseException();
855 throw new Error("Missing return statement in function");
858 static final public Expression VariableInitializer() throws ParseException {
859 final Expression expr;
861 final int pos = SimpleCharStream.getPosition();
862 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
866 case INTEGER_LITERAL:
867 case FLOATING_POINT_LITERAL:
870 {if (true) return expr;}
873 jj_consume_token(MINUS);
874 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
875 case INTEGER_LITERAL:
876 token = jj_consume_token(INTEGER_LITERAL);
878 case FLOATING_POINT_LITERAL:
879 token = jj_consume_token(FLOATING_POINT_LITERAL);
883 jj_consume_token(-1);
884 throw new ParseException();
886 {if (true) return new PrefixedUnaryExpression(new NumberLiteral(token.image.toCharArray(),
888 SimpleCharStream.getPosition()),
893 jj_consume_token(PLUS);
894 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
895 case INTEGER_LITERAL:
896 token = jj_consume_token(INTEGER_LITERAL);
898 case FLOATING_POINT_LITERAL:
899 token = jj_consume_token(FLOATING_POINT_LITERAL);
903 jj_consume_token(-1);
904 throw new ParseException();
906 {if (true) return new PrefixedUnaryExpression(new NumberLiteral(token.image.toCharArray(),
908 SimpleCharStream.getPosition()),
913 expr = ArrayDeclarator();
914 {if (true) return expr;}
917 token = jj_consume_token(IDENTIFIER);
918 {if (true) return new ConstantIdentifier(token.image.toCharArray(),pos,SimpleCharStream.getPosition());}
922 jj_consume_token(-1);
923 throw new ParseException();
925 throw new Error("Missing return statement in function");
928 static final public ArrayVariableDeclaration ArrayVariable() throws ParseException {
929 Expression expr,expr2;
931 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
933 jj_consume_token(ARRAYASSIGN);
934 expr2 = Expression();
935 {if (true) return new ArrayVariableDeclaration(expr,expr2);}
941 {if (true) return new ArrayVariableDeclaration(expr,SimpleCharStream.getPosition());}
942 throw new Error("Missing return statement in function");
945 static final public ArrayVariableDeclaration[] ArrayInitializer() throws ParseException {
946 ArrayVariableDeclaration expr;
947 final ArrayList list = new ArrayList();
948 jj_consume_token(LPAREN);
949 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
965 case INTEGER_LITERAL:
966 case FLOATING_POINT_LITERAL:
971 expr = ArrayVariable();
980 jj_consume_token(COMMA);
981 expr = ArrayVariable();
989 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
991 jj_consume_token(COMMA);
998 jj_consume_token(RPAREN);
999 ArrayVariableDeclaration[] vars = new ArrayVariableDeclaration[list.size()];
1001 {if (true) return vars;}
1002 throw new Error("Missing return statement in function");
1006 * A Method Declaration.
1007 * <b>function</b> MetodDeclarator() Block()
1009 static final public MethodDeclaration MethodDeclaration() throws ParseException {
1010 final MethodDeclaration functionDeclaration;
1012 jj_consume_token(FUNCTION);
1014 functionDeclaration = MethodDeclarator();
1015 outlineInfo.addVariable(new String(functionDeclaration.name));
1016 } catch (ParseException e) {
1017 if (errorMessage != null) {if (true) throw e;}
1018 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', function identifier expected";
1020 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
1021 errorEnd = SimpleCharStream.getPosition() + 1;
1022 {if (true) throw e;}
1024 if (currentSegment != null) {
1025 currentSegment.add(functionDeclaration);
1026 currentSegment = functionDeclaration;
1029 functionDeclaration.statements = block.statements;
1030 if (currentSegment != null) {
1031 currentSegment = (OutlineableWithChildren) currentSegment.getParent();
1033 {if (true) return functionDeclaration;}
1034 throw new Error("Missing return statement in function");
1038 * A MethodDeclarator.
1039 * [&] IDENTIFIER(parameters ...).
1040 * @return a function description for the outline
1042 static final public MethodDeclaration MethodDeclarator() throws ParseException {
1043 final Token identifier;
1044 Token reference = null;
1045 final Hashtable formalParameters;
1046 final int pos = SimpleCharStream.getPosition();
1047 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1049 reference = jj_consume_token(BIT_AND);
1052 jj_la1[21] = jj_gen;
1055 identifier = jj_consume_token(IDENTIFIER);
1056 formalParameters = FormalParameters();
1057 {if (true) return new MethodDeclaration(currentSegment,
1058 identifier.image.toCharArray(),
1062 SimpleCharStream.getPosition());}
1063 throw new Error("Missing return statement in function");
1067 * FormalParameters follows method identifier.
1068 * (FormalParameter())
1070 static final public Hashtable FormalParameters() throws ParseException {
1071 VariableDeclaration var;
1072 final Hashtable parameters = new Hashtable();
1074 jj_consume_token(LPAREN);
1075 } catch (ParseException e) {
1076 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', '(' expected after function identifier";
1078 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
1079 errorEnd = SimpleCharStream.getPosition() + 1;
1080 {if (true) throw e;}
1082 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1086 var = FormalParameter();
1087 parameters.put(new String(var.name),var);
1090 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1095 jj_la1[22] = jj_gen;
1098 jj_consume_token(COMMA);
1099 var = FormalParameter();
1100 parameters.put(new String(var.name),var);
1104 jj_la1[23] = jj_gen;
1108 jj_consume_token(RPAREN);
1109 } catch (ParseException e) {
1110 errorMessage = "')' expected";
1112 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
1113 errorEnd = SimpleCharStream.getPosition() + 1;
1114 {if (true) throw e;}
1116 {if (true) return parameters;}
1117 throw new Error("Missing return statement in function");
1121 * A formal parameter.
1122 * $varname[=value] (,$varname[=value])
1124 static final public VariableDeclaration FormalParameter() throws ParseException {
1125 final VariableDeclaration variableDeclaration;
1127 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1129 token = jj_consume_token(BIT_AND);
1132 jj_la1[24] = jj_gen;
1135 variableDeclaration = VariableDeclarator();
1136 if (token != null) {
1137 variableDeclaration.setReference(true);
1139 {if (true) return variableDeclaration;}
1140 throw new Error("Missing return statement in function");
1143 static final public ConstantIdentifier Type() throws ParseException {
1145 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1147 jj_consume_token(STRING);
1148 pos = SimpleCharStream.getPosition();
1149 {if (true) return new ConstantIdentifier(Types.STRING,
1153 jj_consume_token(BOOL);
1154 pos = SimpleCharStream.getPosition();
1155 {if (true) return new ConstantIdentifier(Types.BOOL,
1159 jj_consume_token(BOOLEAN);
1160 pos = SimpleCharStream.getPosition();
1161 {if (true) return new ConstantIdentifier(Types.BOOLEAN,
1165 jj_consume_token(REAL);
1166 pos = SimpleCharStream.getPosition();
1167 {if (true) return new ConstantIdentifier(Types.REAL,
1171 jj_consume_token(DOUBLE);
1172 pos = SimpleCharStream.getPosition();
1173 {if (true) return new ConstantIdentifier(Types.DOUBLE,
1177 jj_consume_token(FLOAT);
1178 pos = SimpleCharStream.getPosition();
1179 {if (true) return new ConstantIdentifier(Types.FLOAT,
1183 jj_consume_token(INT);
1184 pos = SimpleCharStream.getPosition();
1185 {if (true) return new ConstantIdentifier(Types.INT,
1189 jj_consume_token(INTEGER);
1190 pos = SimpleCharStream.getPosition();
1191 {if (true) return new ConstantIdentifier(Types.INTEGER,
1195 jj_consume_token(OBJECT);
1196 pos = SimpleCharStream.getPosition();
1197 {if (true) return new ConstantIdentifier(Types.OBJECT,
1201 jj_la1[25] = jj_gen;
1202 jj_consume_token(-1);
1203 throw new ParseException();
1205 throw new Error("Missing return statement in function");
1208 static final public Expression Expression() throws ParseException {
1209 final Expression expr;
1210 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1212 expr = PrintExpression();
1213 {if (true) return expr;}
1216 expr = ListExpression();
1217 {if (true) return expr;}
1220 jj_la1[26] = jj_gen;
1221 if (jj_2_3(2147483647)) {
1222 expr = varAssignation();
1223 {if (true) return expr;}
1225 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1239 case INTEGER_LITERAL:
1240 case FLOATING_POINT_LITERAL:
1241 case STRING_LITERAL:
1245 expr = ConditionalExpression();
1246 {if (true) return expr;}
1249 jj_la1[27] = jj_gen;
1250 jj_consume_token(-1);
1251 throw new ParseException();
1255 throw new Error("Missing return statement in function");
1259 * A Variable assignation.
1260 * varName (an assign operator) any expression
1262 static final public VarAssignation varAssignation() throws ParseException {
1264 final Expression expression;
1265 final int assignOperator;
1266 final int pos = SimpleCharStream.getPosition();
1267 varName = VariableDeclaratorId();
1268 assignOperator = AssignmentOperator();
1270 expression = Expression();
1271 } catch (ParseException e) {
1272 if (errorMessage != null) {
1273 {if (true) throw e;}
1275 errorMessage = "expression expected";
1277 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
1278 errorEnd = SimpleCharStream.getPosition() + 1;
1279 {if (true) throw e;}
1281 {if (true) return new VarAssignation(varName.toCharArray(),
1285 SimpleCharStream.getPosition());}
1286 throw new Error("Missing return statement in function");
1289 static final public int AssignmentOperator() throws ParseException {
1290 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1292 jj_consume_token(ASSIGN);
1293 {if (true) return VarAssignation.EQUAL;}
1296 jj_consume_token(STARASSIGN);
1297 {if (true) return VarAssignation.STAR_EQUAL;}
1300 jj_consume_token(SLASHASSIGN);
1301 {if (true) return VarAssignation.SLASH_EQUAL;}
1304 jj_consume_token(REMASSIGN);
1305 {if (true) return VarAssignation.REM_EQUAL;}
1308 jj_consume_token(PLUSASSIGN);
1309 {if (true) return VarAssignation.PLUS_EQUAL;}
1312 jj_consume_token(MINUSASSIGN);
1313 {if (true) return VarAssignation.MINUS_EQUAL;}
1316 jj_consume_token(LSHIFTASSIGN);
1317 {if (true) return VarAssignation.LSHIFT_EQUAL;}
1319 case RSIGNEDSHIFTASSIGN:
1320 jj_consume_token(RSIGNEDSHIFTASSIGN);
1321 {if (true) return VarAssignation.RSIGNEDSHIFT_EQUAL;}
1324 jj_consume_token(ANDASSIGN);
1325 {if (true) return VarAssignation.AND_EQUAL;}
1328 jj_consume_token(XORASSIGN);
1329 {if (true) return VarAssignation.XOR_EQUAL;}
1332 jj_consume_token(ORASSIGN);
1333 {if (true) return VarAssignation.OR_EQUAL;}
1336 jj_consume_token(DOTASSIGN);
1337 {if (true) return VarAssignation.DOT_EQUAL;}
1340 jj_consume_token(TILDEEQUAL);
1341 {if (true) return VarAssignation.TILDE_EQUAL;}
1344 jj_la1[28] = jj_gen;
1345 jj_consume_token(-1);
1346 throw new ParseException();
1348 throw new Error("Missing return statement in function");
1351 static final public Expression ConditionalExpression() throws ParseException {
1352 final Expression expr;
1353 Expression expr2 = null;
1354 Expression expr3 = null;
1355 expr = ConditionalOrExpression();
1356 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1358 jj_consume_token(HOOK);
1359 expr2 = Expression();
1360 jj_consume_token(COLON);
1361 expr3 = ConditionalExpression();
1364 jj_la1[29] = jj_gen;
1367 if (expr3 == null) {
1368 {if (true) return expr;}
1370 {if (true) return new ConditionalExpression(expr,expr2,expr3);}
1371 throw new Error("Missing return statement in function");
1374 static final public Expression ConditionalOrExpression() throws ParseException {
1375 Expression expr,expr2;
1377 expr = ConditionalAndExpression();
1380 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1386 jj_la1[30] = jj_gen;
1389 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1391 jj_consume_token(OR_OR);
1392 operator = OperatorIds.OR_OR;
1395 jj_consume_token(_ORL);
1396 operator = OperatorIds.ORL;
1399 jj_la1[31] = jj_gen;
1400 jj_consume_token(-1);
1401 throw new ParseException();
1403 expr2 = ConditionalAndExpression();
1404 expr = new BinaryExpression(expr,expr2,operator);
1406 {if (true) return expr;}
1407 throw new Error("Missing return statement in function");
1410 static final public Expression ConditionalAndExpression() throws ParseException {
1411 Expression expr,expr2;
1413 expr = ConcatExpression();
1416 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1422 jj_la1[32] = jj_gen;
1425 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1427 jj_consume_token(AND_AND);
1428 operator = OperatorIds.AND_AND;
1431 jj_consume_token(_ANDL);
1432 operator = OperatorIds.ANDL;
1435 jj_la1[33] = jj_gen;
1436 jj_consume_token(-1);
1437 throw new ParseException();
1439 expr2 = ConcatExpression();
1440 expr = new BinaryExpression(expr,expr2,operator);
1442 {if (true) return expr;}
1443 throw new Error("Missing return statement in function");
1446 static final public Expression ConcatExpression() throws ParseException {
1447 Expression expr,expr2;
1448 expr = InclusiveOrExpression();
1451 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1456 jj_la1[34] = jj_gen;
1459 jj_consume_token(DOT);
1460 expr2 = InclusiveOrExpression();
1461 expr = new BinaryExpression(expr,expr2,OperatorIds.DOT);
1463 {if (true) return expr;}
1464 throw new Error("Missing return statement in function");
1467 static final public Expression InclusiveOrExpression() throws ParseException {
1468 Expression expr,expr2;
1469 expr = ExclusiveOrExpression();
1472 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1477 jj_la1[35] = jj_gen;
1480 jj_consume_token(BIT_OR);
1481 expr2 = ExclusiveOrExpression();
1482 expr = new BinaryExpression(expr,expr2,OperatorIds.OR);
1484 {if (true) return expr;}
1485 throw new Error("Missing return statement in function");
1488 static final public Expression ExclusiveOrExpression() throws ParseException {
1489 Expression expr,expr2;
1490 expr = AndExpression();
1493 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1498 jj_la1[36] = jj_gen;
1501 jj_consume_token(XOR);
1502 expr2 = AndExpression();
1503 expr = new BinaryExpression(expr,expr2,OperatorIds.XOR);
1505 {if (true) return expr;}
1506 throw new Error("Missing return statement in function");
1509 static final public Expression AndExpression() throws ParseException {
1510 Expression expr,expr2;
1511 expr = EqualityExpression();
1514 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1519 jj_la1[37] = jj_gen;
1522 jj_consume_token(BIT_AND);
1523 expr2 = EqualityExpression();
1524 expr = new BinaryExpression(expr,expr2,OperatorIds.AND);
1526 {if (true) return expr;}
1527 throw new Error("Missing return statement in function");
1530 static final public Expression EqualityExpression() throws ParseException {
1531 Expression expr,expr2;
1533 expr = RelationalExpression();
1536 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1540 case BANGDOUBLEEQUAL:
1545 jj_la1[38] = jj_gen;
1548 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1550 jj_consume_token(EQUAL_EQUAL);
1551 operator = OperatorIds.EQUAL_EQUAL;
1554 jj_consume_token(DIF);
1555 operator = OperatorIds.DIF;
1558 jj_consume_token(NOT_EQUAL);
1559 operator = OperatorIds.DIF;
1561 case BANGDOUBLEEQUAL:
1562 jj_consume_token(BANGDOUBLEEQUAL);
1563 operator = OperatorIds.BANG_EQUAL_EQUAL;
1566 jj_consume_token(TRIPLEEQUAL);
1567 operator = OperatorIds.EQUAL_EQUAL_EQUAL;
1570 jj_la1[39] = jj_gen;
1571 jj_consume_token(-1);
1572 throw new ParseException();
1575 expr2 = RelationalExpression();
1576 } catch (ParseException e) {
1577 if (errorMessage != null) {
1578 {if (true) throw e;}
1580 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', expression expected";
1582 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
1583 errorEnd = SimpleCharStream.getPosition() + 1;
1584 {if (true) throw e;}
1586 expr = new BinaryExpression(expr,expr2,operator);
1588 {if (true) return expr;}
1589 throw new Error("Missing return statement in function");
1592 static final public Expression RelationalExpression() throws ParseException {
1593 Expression expr,expr2;
1595 expr = ShiftExpression();
1598 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1606 jj_la1[40] = jj_gen;
1609 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1611 jj_consume_token(LT);
1612 operator = OperatorIds.LESS;
1615 jj_consume_token(GT);
1616 operator = OperatorIds.GREATER;
1619 jj_consume_token(LE);
1620 operator = OperatorIds.LESS_EQUAL;
1623 jj_consume_token(GE);
1624 operator = OperatorIds.GREATER_EQUAL;
1627 jj_la1[41] = jj_gen;
1628 jj_consume_token(-1);
1629 throw new ParseException();
1631 expr2 = ShiftExpression();
1632 expr = new BinaryExpression(expr,expr2,operator);
1634 {if (true) return expr;}
1635 throw new Error("Missing return statement in function");
1638 static final public Expression ShiftExpression() throws ParseException {
1639 Expression expr,expr2;
1641 expr = AdditiveExpression();
1644 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1647 case RUNSIGNEDSHIFT:
1651 jj_la1[42] = jj_gen;
1654 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1656 jj_consume_token(LSHIFT);
1657 operator = OperatorIds.LEFT_SHIFT;
1660 jj_consume_token(RSIGNEDSHIFT);
1661 operator = OperatorIds.RIGHT_SHIFT;
1663 case RUNSIGNEDSHIFT:
1664 jj_consume_token(RUNSIGNEDSHIFT);
1665 operator = OperatorIds.UNSIGNED_RIGHT_SHIFT;
1668 jj_la1[43] = jj_gen;
1669 jj_consume_token(-1);
1670 throw new ParseException();
1672 expr2 = AdditiveExpression();
1673 expr = new BinaryExpression(expr,expr2,operator);
1675 {if (true) return expr;}
1676 throw new Error("Missing return statement in function");
1679 static final public Expression AdditiveExpression() throws ParseException {
1680 Expression expr,expr2;
1682 expr = MultiplicativeExpression();
1685 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1691 jj_la1[44] = jj_gen;
1694 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1696 jj_consume_token(PLUS);
1697 operator = OperatorIds.PLUS;
1700 jj_consume_token(MINUS);
1701 operator = OperatorIds.MINUS;
1704 jj_la1[45] = jj_gen;
1705 jj_consume_token(-1);
1706 throw new ParseException();
1708 expr2 = MultiplicativeExpression();
1709 expr = new BinaryExpression(expr,expr2,operator);
1711 {if (true) return expr;}
1712 throw new Error("Missing return statement in function");
1715 static final public Expression MultiplicativeExpression() throws ParseException {
1716 Expression expr,expr2;
1719 expr = UnaryExpression();
1720 } catch (ParseException e) {
1721 if (errorMessage != null) {if (true) throw e;}
1722 errorMessage = "unexpected token '"+e.currentToken.next.image+"'";
1724 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
1725 errorEnd = SimpleCharStream.getPosition() + 1;
1726 {if (true) throw e;}
1730 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1737 jj_la1[46] = jj_gen;
1740 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1742 jj_consume_token(STAR);
1743 operator = OperatorIds.MULTIPLY;
1746 jj_consume_token(SLASH);
1747 operator = OperatorIds.DIVIDE;
1750 jj_consume_token(REMAINDER);
1751 operator = OperatorIds.REMAINDER;
1754 jj_la1[47] = jj_gen;
1755 jj_consume_token(-1);
1756 throw new ParseException();
1758 expr2 = UnaryExpression();
1759 expr = new BinaryExpression(expr,expr2,operator);
1761 {if (true) return expr;}
1762 throw new Error("Missing return statement in function");
1766 * An unary expression starting with @, & or nothing
1768 static final public Expression UnaryExpression() throws ParseException {
1770 final int pos = SimpleCharStream.getPosition();
1771 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1773 jj_consume_token(BIT_AND);
1774 expr = UnaryExpressionNoPrefix();
1775 {if (true) return new PrefixedUnaryExpression(expr,OperatorIds.AND,pos);}
1789 case INTEGER_LITERAL:
1790 case FLOATING_POINT_LITERAL:
1791 case STRING_LITERAL:
1795 expr = AtUnaryExpression();
1796 {if (true) return expr;}
1799 jj_la1[48] = jj_gen;
1800 jj_consume_token(-1);
1801 throw new ParseException();
1803 throw new Error("Missing return statement in function");
1806 static final public Expression AtUnaryExpression() throws ParseException {
1808 final int pos = SimpleCharStream.getPosition();
1809 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1811 jj_consume_token(AT);
1812 expr = AtUnaryExpression();
1813 {if (true) return new PrefixedUnaryExpression(expr,OperatorIds.AT,pos);}
1826 case INTEGER_LITERAL:
1827 case FLOATING_POINT_LITERAL:
1828 case STRING_LITERAL:
1832 expr = UnaryExpressionNoPrefix();
1833 {if (true) return expr;}
1836 jj_la1[49] = jj_gen;
1837 jj_consume_token(-1);
1838 throw new ParseException();
1840 throw new Error("Missing return statement in function");
1843 static final public Expression UnaryExpressionNoPrefix() throws ParseException {
1846 final int pos = SimpleCharStream.getPosition();
1847 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1850 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1852 jj_consume_token(PLUS);
1853 operator = OperatorIds.PLUS;
1856 jj_consume_token(MINUS);
1857 operator = OperatorIds.MINUS;
1860 jj_la1[50] = jj_gen;
1861 jj_consume_token(-1);
1862 throw new ParseException();
1864 expr = UnaryExpression();
1865 {if (true) return new PrefixedUnaryExpression(expr,operator,pos);}
1869 expr = PreIncDecExpression();
1870 {if (true) return expr;}
1879 case INTEGER_LITERAL:
1880 case FLOATING_POINT_LITERAL:
1881 case STRING_LITERAL:
1885 expr = UnaryExpressionNotPlusMinus();
1886 {if (true) return expr;}
1889 jj_la1[51] = jj_gen;
1890 jj_consume_token(-1);
1891 throw new ParseException();
1893 throw new Error("Missing return statement in function");
1896 static final public Expression PreIncDecExpression() throws ParseException {
1897 final Expression expr;
1899 final int pos = SimpleCharStream.getPosition();
1900 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1902 jj_consume_token(INCR);
1903 operator = OperatorIds.PLUS_PLUS;
1906 jj_consume_token(DECR);
1907 operator = OperatorIds.MINUS_MINUS;
1910 jj_la1[52] = jj_gen;
1911 jj_consume_token(-1);
1912 throw new ParseException();
1914 expr = PrimaryExpression();
1915 {if (true) return new PrefixedUnaryExpression(expr,operator,pos);}
1916 throw new Error("Missing return statement in function");
1919 static final public Expression UnaryExpressionNotPlusMinus() throws ParseException {
1921 final int pos = SimpleCharStream.getPosition();
1922 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1924 jj_consume_token(BANG);
1925 expr = UnaryExpression();
1926 {if (true) return new PrefixedUnaryExpression(expr,OperatorIds.NOT,pos);}
1929 jj_la1[53] = jj_gen;
1930 if (jj_2_4(2147483647)) {
1931 expr = CastExpression();
1932 {if (true) return expr;}
1934 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1940 expr = PostfixExpression();
1941 {if (true) return expr;}
1946 case INTEGER_LITERAL:
1947 case FLOATING_POINT_LITERAL:
1948 case STRING_LITERAL:
1950 {if (true) return expr;}
1953 jj_consume_token(LPAREN);
1954 expr = Expression();
1956 jj_consume_token(RPAREN);
1957 } catch (ParseException e) {
1958 errorMessage = "')' expected";
1960 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
1961 errorEnd = SimpleCharStream.getPosition() + 1;
1962 {if (true) throw e;}
1964 {if (true) return expr;}
1967 jj_la1[54] = jj_gen;
1968 jj_consume_token(-1);
1969 throw new ParseException();
1973 throw new Error("Missing return statement in function");
1976 static final public CastExpression CastExpression() throws ParseException {
1977 final ConstantIdentifier type;
1978 final Expression expr;
1979 final int pos = SimpleCharStream.getPosition();
1980 jj_consume_token(LPAREN);
1981 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1994 jj_consume_token(ARRAY);
1995 type = new ConstantIdentifier(Types.ARRAY,pos,SimpleCharStream.getPosition());
1998 jj_la1[55] = jj_gen;
1999 jj_consume_token(-1);
2000 throw new ParseException();
2002 jj_consume_token(RPAREN);
2003 expr = UnaryExpression();
2004 {if (true) return new CastExpression(type,expr,pos,SimpleCharStream.getPosition());}
2005 throw new Error("Missing return statement in function");
2008 static final public Expression PostfixExpression() throws ParseException {
2011 final int pos = SimpleCharStream.getPosition();
2012 expr = PrimaryExpression();
2013 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2016 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2018 jj_consume_token(INCR);
2019 operator = OperatorIds.PLUS_PLUS;
2022 jj_consume_token(DECR);
2023 operator = OperatorIds.MINUS_MINUS;
2026 jj_la1[56] = jj_gen;
2027 jj_consume_token(-1);
2028 throw new ParseException();
2032 jj_la1[57] = jj_gen;
2035 if (operator == -1) {
2036 {if (true) return expr;}
2038 {if (true) return new PostfixedUnaryExpression(expr,operator,pos);}
2039 throw new Error("Missing return statement in function");
2042 static final public Expression PrimaryExpression() throws ParseException {
2043 final Token identifier;
2045 final int pos = SimpleCharStream.getPosition();
2047 identifier = jj_consume_token(IDENTIFIER);
2048 jj_consume_token(STATICCLASSACCESS);
2049 expr = ClassIdentifier();
2050 expr = new ClassAccess(new ConstantIdentifier(identifier.image.toCharArray(),
2052 SimpleCharStream.getPosition()),
2054 ClassAccess.STATIC);
2057 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2064 jj_la1[58] = jj_gen;
2067 expr = PrimarySuffix(expr);
2069 {if (true) return expr;}
2071 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2076 expr = PrimaryPrefix();
2079 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2086 jj_la1[59] = jj_gen;
2089 expr = PrimarySuffix(expr);
2091 {if (true) return expr;}
2094 expr = ArrayDeclarator();
2095 {if (true) return expr;}
2098 jj_la1[60] = jj_gen;
2099 jj_consume_token(-1);
2100 throw new ParseException();
2103 throw new Error("Missing return statement in function");
2106 static final public ArrayInitializer ArrayDeclarator() throws ParseException {
2107 final ArrayVariableDeclaration[] vars;
2108 final int pos = SimpleCharStream.getPosition();
2109 jj_consume_token(ARRAY);
2110 vars = ArrayInitializer();
2111 {if (true) return new ArrayInitializer(vars,pos,SimpleCharStream.getPosition());}
2112 throw new Error("Missing return statement in function");
2115 static final public Expression PrimaryPrefix() throws ParseException {
2116 final Expression expr;
2119 final int pos = SimpleCharStream.getPosition();
2120 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2122 token = jj_consume_token(IDENTIFIER);
2123 {if (true) return new ConstantIdentifier(token.image.toCharArray(),
2125 SimpleCharStream.getPosition());}
2128 jj_consume_token(NEW);
2129 expr = ClassIdentifier();
2130 {if (true) return new PrefixedUnaryExpression(expr,
2136 var = VariableDeclaratorId();
2137 {if (true) return new ConstantIdentifier(var.toCharArray(),
2139 SimpleCharStream.getPosition());}
2142 jj_la1[61] = jj_gen;
2143 jj_consume_token(-1);
2144 throw new ParseException();
2146 throw new Error("Missing return statement in function");
2149 static final public PrefixedUnaryExpression classInstantiation() throws ParseException {
2151 final StringBuffer buff;
2152 final int pos = SimpleCharStream.getPosition();
2153 jj_consume_token(NEW);
2154 expr = ClassIdentifier();
2155 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2161 buff = new StringBuffer(expr.toStringExpression());
2162 expr = PrimaryExpression();
2163 buff.append(expr.toStringExpression());
2164 expr = new ConstantIdentifier(buff.toString().toCharArray(),
2166 SimpleCharStream.getPosition());
2169 jj_la1[62] = jj_gen;
2172 {if (true) return new PrefixedUnaryExpression(expr,
2175 throw new Error("Missing return statement in function");
2178 static final public ConstantIdentifier ClassIdentifier() throws ParseException {
2181 final int pos = SimpleCharStream.getPosition();
2182 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2184 token = jj_consume_token(IDENTIFIER);
2185 {if (true) return new ConstantIdentifier(token.image.toCharArray(),
2187 SimpleCharStream.getPosition());}
2191 expr = VariableDeclaratorId();
2192 {if (true) return new ConstantIdentifier(expr.toCharArray(),
2194 SimpleCharStream.getPosition());}
2197 jj_la1[63] = jj_gen;
2198 jj_consume_token(-1);
2199 throw new ParseException();
2201 throw new Error("Missing return statement in function");
2204 static final public AbstractSuffixExpression PrimarySuffix(Expression prefix) throws ParseException {
2205 final AbstractSuffixExpression expr;
2206 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2208 expr = Arguments(prefix);
2209 {if (true) return expr;}
2213 expr = VariableSuffix(prefix);
2214 {if (true) return expr;}
2217 jj_la1[64] = jj_gen;
2218 jj_consume_token(-1);
2219 throw new ParseException();
2221 throw new Error("Missing return statement in function");
2224 static final public AbstractSuffixExpression VariableSuffix(Expression prefix) throws ParseException {
2226 final int pos = SimpleCharStream.getPosition();
2227 Expression expression = null;
2228 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2230 jj_consume_token(CLASSACCESS);
2232 expr = VariableName();
2233 } catch (ParseException e) {
2234 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', function call or field access expected";
2236 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
2237 errorEnd = SimpleCharStream.getPosition() + 1;
2238 {if (true) throw e;}
2240 {if (true) return new ClassAccess(prefix,
2241 new ConstantIdentifier(expr.toCharArray(),pos,SimpleCharStream.getPosition()),
2242 ClassAccess.NORMAL);}
2245 jj_consume_token(LBRACKET);
2246 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2271 case INTEGER_LITERAL:
2272 case FLOATING_POINT_LITERAL:
2273 case STRING_LITERAL:
2277 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2293 case INTEGER_LITERAL:
2294 case FLOATING_POINT_LITERAL:
2295 case STRING_LITERAL:
2299 expression = Expression();
2310 expression = Type();
2313 jj_la1[65] = jj_gen;
2314 jj_consume_token(-1);
2315 throw new ParseException();
2319 jj_la1[66] = jj_gen;
2323 jj_consume_token(RBRACKET);
2324 } catch (ParseException e) {
2325 errorMessage = "']' expected";
2327 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
2328 errorEnd = SimpleCharStream.getPosition() + 1;
2329 {if (true) throw e;}
2331 {if (true) return new ArrayDeclarator(prefix,expression,SimpleCharStream.getPosition());}
2334 jj_la1[67] = jj_gen;
2335 jj_consume_token(-1);
2336 throw new ParseException();
2338 throw new Error("Missing return statement in function");
2341 static final public Literal Literal() throws ParseException {
2344 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2345 case INTEGER_LITERAL:
2346 token = jj_consume_token(INTEGER_LITERAL);
2347 pos = SimpleCharStream.getPosition();
2348 {if (true) return new NumberLiteral(token.image.toCharArray(),pos-token.image.length(),pos);}
2350 case FLOATING_POINT_LITERAL:
2351 token = jj_consume_token(FLOATING_POINT_LITERAL);
2352 pos = SimpleCharStream.getPosition();
2353 {if (true) return new NumberLiteral(token.image.toCharArray(),pos-token.image.length(),pos);}
2355 case STRING_LITERAL:
2356 token = jj_consume_token(STRING_LITERAL);
2357 pos = SimpleCharStream.getPosition();
2358 {if (true) return new StringLiteral(token.image.toCharArray(),pos-token.image.length());}
2361 jj_consume_token(TRUE);
2362 pos = SimpleCharStream.getPosition();
2363 {if (true) return new TrueLiteral(pos-4,pos);}
2366 jj_consume_token(FALSE);
2367 pos = SimpleCharStream.getPosition();
2368 {if (true) return new FalseLiteral(pos-4,pos);}
2371 jj_consume_token(NULL);
2372 pos = SimpleCharStream.getPosition();
2373 {if (true) return new NullLiteral(pos-4,pos);}
2376 jj_la1[68] = jj_gen;
2377 jj_consume_token(-1);
2378 throw new ParseException();
2380 throw new Error("Missing return statement in function");
2383 static final public FunctionCall Arguments(Expression func) throws ParseException {
2384 Expression[] args = null;
2385 jj_consume_token(LPAREN);
2386 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2402 case INTEGER_LITERAL:
2403 case FLOATING_POINT_LITERAL:
2404 case STRING_LITERAL:
2408 args = ArgumentList();
2411 jj_la1[69] = jj_gen;
2415 jj_consume_token(RPAREN);
2416 } catch (ParseException e) {
2417 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', ')' expected to close the argument list";
2419 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
2420 errorEnd = SimpleCharStream.getPosition() + 1;
2421 {if (true) throw e;}
2423 {if (true) return new FunctionCall(func,args,SimpleCharStream.getPosition());}
2424 throw new Error("Missing return statement in function");
2428 * An argument list is a list of arguments separated by comma :
2429 * argumentDeclaration() (, argumentDeclaration)*
2430 * @return an array of arguments
2432 static final public Expression[] ArgumentList() throws ParseException {
2434 final ArrayList list = new ArrayList();
2439 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2444 jj_la1[70] = jj_gen;
2447 jj_consume_token(COMMA);
2451 } catch (ParseException e) {
2452 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"'. An expression expected after a comma in argument list";
2454 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
2455 errorEnd = SimpleCharStream.getPosition() + 1;
2456 {if (true) throw e;}
2459 Expression[] arguments = new Expression[list.size()];
2460 list.toArray(arguments);
2461 {if (true) return arguments;}
2462 throw new Error("Missing return statement in function");
2466 * A Statement without break.
2468 static final public Statement StatementNoBreak() throws ParseException {
2469 final Statement statement;
2472 statement = Expression();
2474 jj_consume_token(SEMICOLON);
2475 } catch (ParseException e) {
2476 if (e.currentToken.next.kind != 4) {
2477 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"'. A ';' was expected";
2479 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
2480 errorEnd = SimpleCharStream.getPosition() + 1;
2481 {if (true) throw e;}
2484 {if (true) return statement;}
2485 } else if (jj_2_7(2)) {
2486 statement = LabeledStatement();
2487 {if (true) return statement;}
2489 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2491 statement = Block();
2492 {if (true) return statement;}
2495 statement = EmptyStatement();
2496 {if (true) return statement;}
2505 statement = StatementExpression();
2507 jj_consume_token(SEMICOLON);
2508 } catch (ParseException e) {
2509 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"'. A ';' was expected";
2511 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
2512 errorEnd = SimpleCharStream.getPosition() + 1;
2513 {if (true) throw e;}
2515 {if (true) return statement;}
2518 statement = SwitchStatement();
2519 {if (true) return statement;}
2522 statement = IfStatement();
2523 {if (true) return statement;}
2526 statement = WhileStatement();
2527 {if (true) return statement;}
2530 statement = DoStatement();
2531 {if (true) return statement;}
2534 statement = ForStatement();
2535 {if (true) return statement;}
2538 statement = ForeachStatement();
2539 {if (true) return statement;}
2542 statement = ContinueStatement();
2543 {if (true) return statement;}
2546 statement = ReturnStatement();
2547 {if (true) return statement;}
2550 statement = EchoStatement();
2551 {if (true) return statement;}
2558 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2560 token = jj_consume_token(AT);
2563 jj_la1[71] = jj_gen;
2566 statement = IncludeStatement();
2567 if (token != null) {
2568 ((InclusionStatement)statement).silent = true;
2570 {if (true) return statement;}
2573 statement = StaticStatement();
2574 {if (true) return statement;}
2577 statement = GlobalStatement();
2578 {if (true) return statement;}
2581 jj_la1[72] = jj_gen;
2582 jj_consume_token(-1);
2583 throw new ParseException();
2586 throw new Error("Missing return statement in function");
2590 * A Normal statement.
2592 static final public Statement Statement() throws ParseException {
2593 final Statement statement;
2594 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2625 case INTEGER_LITERAL:
2626 case FLOATING_POINT_LITERAL:
2627 case STRING_LITERAL:
2633 statement = StatementNoBreak();
2634 {if (true) return statement;}
2637 statement = BreakStatement();
2638 {if (true) return statement;}
2641 jj_la1[73] = jj_gen;
2642 jj_consume_token(-1);
2643 throw new ParseException();
2645 throw new Error("Missing return statement in function");
2649 * An html block inside a php syntax.
2651 static final public HTMLBlock htmlBlock() throws ParseException {
2652 final int startIndex = nodePtr;
2653 AstNode[] blockNodes;
2655 jj_consume_token(PHPEND);
2658 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2663 jj_la1[74] = jj_gen;
2669 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2671 jj_consume_token(PHPSTARTLONG);
2674 jj_consume_token(PHPSTARTSHORT);
2677 jj_la1[75] = jj_gen;
2678 jj_consume_token(-1);
2679 throw new ParseException();
2681 } catch (ParseException e) {
2682 errorMessage = "End of file unexpected, '<?php' expected";
2684 errorStart = SimpleCharStream.getPosition();
2685 errorEnd = SimpleCharStream.getPosition();
2686 {if (true) throw e;}
2688 nbNodes = nodePtr - startIndex;
2689 blockNodes = new AstNode[nbNodes];
2690 System.arraycopy(nodes,startIndex,blockNodes,0,nbNodes);
2691 nodePtr = startIndex;
2692 {if (true) return new HTMLBlock(blockNodes);}
2693 throw new Error("Missing return statement in function");
2697 * An include statement. It's "include" an expression;
2699 static final public InclusionStatement IncludeStatement() throws ParseException {
2700 final Expression expr;
2702 final int pos = SimpleCharStream.getPosition();
2703 final InclusionStatement inclusionStatement;
2704 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2706 jj_consume_token(REQUIRE);
2707 keyword = InclusionStatement.REQUIRE;
2710 jj_consume_token(REQUIRE_ONCE);
2711 keyword = InclusionStatement.REQUIRE_ONCE;
2714 jj_consume_token(INCLUDE);
2715 keyword = InclusionStatement.INCLUDE;
2718 jj_consume_token(INCLUDE_ONCE);
2719 keyword = InclusionStatement.INCLUDE_ONCE;
2722 jj_la1[76] = jj_gen;
2723 jj_consume_token(-1);
2724 throw new ParseException();
2727 expr = Expression();
2728 } catch (ParseException e) {
2729 if (errorMessage != null) {
2730 {if (true) throw e;}
2732 errorMessage = "unexpected token '"+ e.currentToken.next.image+"', expression expected";
2734 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
2735 errorEnd = SimpleCharStream.getPosition() + 1;
2736 {if (true) throw e;}
2738 inclusionStatement = new InclusionStatement(currentSegment,
2742 currentSegment.add(inclusionStatement);
2744 jj_consume_token(SEMICOLON);
2745 } catch (ParseException e) {
2746 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"'. A ';' was expected";
2748 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
2749 errorEnd = SimpleCharStream.getPosition() + 1;
2750 {if (true) throw e;}
2752 {if (true) return inclusionStatement;}
2753 throw new Error("Missing return statement in function");
2756 static final public PrintExpression PrintExpression() throws ParseException {
2757 final Expression expr;
2758 final int pos = SimpleCharStream.getPosition();
2759 jj_consume_token(PRINT);
2760 expr = Expression();
2761 {if (true) return new PrintExpression(expr,pos,SimpleCharStream.getPosition());}
2762 throw new Error("Missing return statement in function");
2765 static final public ListExpression ListExpression() throws ParseException {
2767 Expression expression = null;
2768 ArrayList list = new ArrayList();
2769 final int pos = SimpleCharStream.getPosition();
2770 jj_consume_token(LIST);
2772 jj_consume_token(LPAREN);
2773 } catch (ParseException e) {
2774 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', '(' expected";
2776 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
2777 errorEnd = SimpleCharStream.getPosition() + 1;
2778 {if (true) throw e;}
2780 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2783 expr = VariableDeclaratorId();
2787 jj_la1[77] = jj_gen;
2790 if (expr == null) list.add(null);
2793 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2798 jj_la1[78] = jj_gen;
2802 jj_consume_token(COMMA);
2803 } catch (ParseException e) {
2804 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', ',' expected";
2806 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
2807 errorEnd = SimpleCharStream.getPosition() + 1;
2808 {if (true) throw e;}
2810 expr = VariableDeclaratorId();
2814 jj_consume_token(RPAREN);
2815 } catch (ParseException e) {
2816 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"', ')' expected";
2818 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
2819 errorEnd = SimpleCharStream.getPosition() + 1;
2820 {if (true) throw e;}
2822 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2824 jj_consume_token(ASSIGN);
2825 expression = Expression();
2826 String[] strings = new String[list.size()];
2827 list.toArray(strings);
2828 {if (true) return new ListExpression(strings,
2831 SimpleCharStream.getPosition());}
2834 jj_la1[79] = jj_gen;
2837 String[] strings = new String[list.size()];
2838 list.toArray(strings);
2839 {if (true) return new ListExpression(strings,pos,SimpleCharStream.getPosition());}
2840 throw new Error("Missing return statement in function");
2844 * An echo statement.
2845 * echo anyexpression (, otherexpression)*
2847 static final public EchoStatement EchoStatement() throws ParseException {
2848 final ArrayList expressions = new ArrayList();
2850 final int pos = SimpleCharStream.getPosition();
2851 jj_consume_token(ECHO);
2852 expr = Expression();
2853 expressions.add(expr);
2856 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2861 jj_la1[80] = jj_gen;
2864 jj_consume_token(COMMA);
2865 expr = Expression();
2866 expressions.add(expr);
2869 jj_consume_token(SEMICOLON);
2870 Expression[] exprs = new Expression[expressions.size()];
2871 expressions.toArray(exprs);
2872 {if (true) return new EchoStatement(exprs,pos);}
2873 } catch (ParseException e) {
2874 if (e.currentToken.next.kind != 4) {
2875 errorMessage = "';' expected after 'echo' statement";
2877 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
2878 errorEnd = SimpleCharStream.getPosition() + 1;
2879 {if (true) throw e;}
2882 throw new Error("Missing return statement in function");
2885 static final public GlobalStatement GlobalStatement() throws ParseException {
2886 final int pos = SimpleCharStream.getPosition();
2888 ArrayList vars = new ArrayList();
2889 GlobalStatement global;
2890 jj_consume_token(GLOBAL);
2891 expr = VariableDeclaratorId();
2895 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2900 jj_la1[81] = jj_gen;
2903 jj_consume_token(COMMA);
2904 expr = VariableDeclaratorId();
2908 jj_consume_token(SEMICOLON);
2909 String[] strings = new String[vars.size()];
2910 vars.toArray(strings);
2911 global = new GlobalStatement(currentSegment,
2914 SimpleCharStream.getPosition());
2915 currentSegment.add(global);
2916 {if (true) return global;}
2917 } catch (ParseException e) {
2918 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"'. a ';' was expected";
2920 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
2921 errorEnd = SimpleCharStream.getPosition() + 1;
2922 {if (true) throw e;}
2924 throw new Error("Missing return statement in function");
2927 static final public StaticStatement StaticStatement() throws ParseException {
2928 final int pos = SimpleCharStream.getPosition();
2929 final ArrayList vars = new ArrayList();
2930 VariableDeclaration expr;
2931 jj_consume_token(STATIC);
2932 expr = VariableDeclarator();
2933 vars.add(new String(expr.name));
2936 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2941 jj_la1[82] = jj_gen;
2944 jj_consume_token(COMMA);
2945 expr = VariableDeclarator();
2946 vars.add(new String(expr.name));
2949 jj_consume_token(SEMICOLON);
2950 String[] strings = new String[vars.size()];
2951 vars.toArray(strings);
2952 {if (true) return new StaticStatement(strings,
2954 SimpleCharStream.getPosition());}
2955 } catch (ParseException e) {
2956 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"'. a ';' was expected";
2958 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
2959 errorEnd = SimpleCharStream.getPosition() + 1;
2960 {if (true) throw e;}
2962 throw new Error("Missing return statement in function");
2965 static final public LabeledStatement LabeledStatement() throws ParseException {
2966 final int pos = SimpleCharStream.getPosition();
2968 final Statement statement;
2969 label = jj_consume_token(IDENTIFIER);
2970 jj_consume_token(COLON);
2971 statement = Statement();
2972 {if (true) return new LabeledStatement(label.image.toCharArray(),statement,pos,SimpleCharStream.getPosition());}
2973 throw new Error("Missing return statement in function");
2983 static final public Block Block() throws ParseException {
2984 final int pos = SimpleCharStream.getPosition();
2985 final ArrayList list = new ArrayList();
2986 Statement statement;
2988 jj_consume_token(LBRACE);
2989 } catch (ParseException e) {
2990 errorMessage = "'{' expected";
2992 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
2993 errorEnd = SimpleCharStream.getPosition() + 1;
2994 {if (true) throw e;}
2998 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3033 case INTEGER_LITERAL:
3034 case FLOATING_POINT_LITERAL:
3035 case STRING_LITERAL:
3044 jj_la1[83] = jj_gen;
3047 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3081 case INTEGER_LITERAL:
3082 case FLOATING_POINT_LITERAL:
3083 case STRING_LITERAL:
3089 statement = BlockStatement();
3090 list.add(statement);
3093 statement = htmlBlock();
3094 list.add(statement);
3097 jj_la1[84] = jj_gen;
3098 jj_consume_token(-1);
3099 throw new ParseException();
3103 jj_consume_token(RBRACE);
3104 } catch (ParseException e) {
3105 errorMessage = "unexpected token : '"+ e.currentToken.image +"', '}' expected";
3107 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
3108 errorEnd = SimpleCharStream.getPosition() + 1;
3109 {if (true) throw e;}
3111 Statement[] statements = new Statement[list.size()];
3112 list.toArray(statements);
3113 {if (true) return new Block(statements,pos,SimpleCharStream.getPosition());}
3114 throw new Error("Missing return statement in function");
3117 static final public Statement BlockStatement() throws ParseException {
3118 final Statement statement;
3119 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3151 case INTEGER_LITERAL:
3152 case FLOATING_POINT_LITERAL:
3153 case STRING_LITERAL:
3159 statement = Statement();
3160 if (phpDocument == currentSegment) pushOnAstNodes(statement);
3161 {if (true) return statement;}
3164 statement = ClassDeclaration();
3165 {if (true) return statement;}
3168 statement = MethodDeclaration();
3169 if (phpDocument == currentSegment) pushOnAstNodes(statement);
3170 {if (true) return statement;}
3173 jj_la1[85] = jj_gen;
3174 jj_consume_token(-1);
3175 throw new ParseException();
3177 throw new Error("Missing return statement in function");
3181 * A Block statement that will not contain any 'break'
3183 static final public Statement BlockStatementNoBreak() throws ParseException {
3184 final Statement statement;
3185 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3216 case INTEGER_LITERAL:
3217 case FLOATING_POINT_LITERAL:
3218 case STRING_LITERAL:
3224 statement = StatementNoBreak();
3225 {if (true) return statement;}
3228 statement = ClassDeclaration();
3229 {if (true) return statement;}
3232 statement = MethodDeclaration();
3233 {if (true) return statement;}
3236 jj_la1[86] = jj_gen;
3237 jj_consume_token(-1);
3238 throw new ParseException();
3240 throw new Error("Missing return statement in function");
3243 static final public VariableDeclaration[] LocalVariableDeclaration() throws ParseException {
3244 final ArrayList list = new ArrayList();
3245 VariableDeclaration var;
3246 var = LocalVariableDeclarator();
3250 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3255 jj_la1[87] = jj_gen;
3258 jj_consume_token(COMMA);
3259 var = LocalVariableDeclarator();
3262 VariableDeclaration[] vars = new VariableDeclaration[list.size()];
3264 {if (true) return vars;}
3265 throw new Error("Missing return statement in function");
3268 static final public VariableDeclaration LocalVariableDeclarator() throws ParseException {
3269 final String varName;
3270 Expression initializer = null;
3271 final int pos = SimpleCharStream.getPosition();
3272 varName = VariableDeclaratorId();
3273 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3275 jj_consume_token(ASSIGN);
3276 initializer = Expression();
3279 jj_la1[88] = jj_gen;
3282 if (initializer == null) {
3283 {if (true) return new VariableDeclaration(currentSegment,
3284 varName.toCharArray(),
3286 SimpleCharStream.getPosition());}
3288 {if (true) return new VariableDeclaration(currentSegment,
3289 varName.toCharArray(),
3292 throw new Error("Missing return statement in function");
3295 static final public EmptyStatement EmptyStatement() throws ParseException {
3297 jj_consume_token(SEMICOLON);
3298 pos = SimpleCharStream.getPosition();
3299 {if (true) return new EmptyStatement(pos-1,pos);}
3300 throw new Error("Missing return statement in function");
3303 static final public Statement StatementExpression() throws ParseException {
3304 Expression expr,expr2;
3306 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3309 expr = PreIncDecExpression();
3310 {if (true) return expr;}
3317 expr = PrimaryExpression();
3318 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3333 case RSIGNEDSHIFTASSIGN:
3334 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3336 jj_consume_token(INCR);
3337 {if (true) return new PostfixedUnaryExpression(expr,
3338 OperatorIds.PLUS_PLUS,
3339 SimpleCharStream.getPosition());}
3342 jj_consume_token(DECR);
3343 {if (true) return new PostfixedUnaryExpression(expr,
3344 OperatorIds.MINUS_MINUS,
3345 SimpleCharStream.getPosition());}
3359 case RSIGNEDSHIFTASSIGN:
3360 operator = AssignmentOperator();
3361 expr2 = Expression();
3362 {if (true) return new BinaryExpression(expr,expr2,operator);}
3365 jj_la1[89] = jj_gen;
3366 jj_consume_token(-1);
3367 throw new ParseException();
3371 jj_la1[90] = jj_gen;
3374 {if (true) return expr;}
3377 jj_la1[91] = jj_gen;
3378 jj_consume_token(-1);
3379 throw new ParseException();
3381 throw new Error("Missing return statement in function");
3384 static final public SwitchStatement SwitchStatement() throws ParseException {
3385 final Expression variable;
3386 final AbstractCase[] cases;
3387 final int pos = SimpleCharStream.getPosition();
3388 jj_consume_token(SWITCH);
3390 jj_consume_token(LPAREN);
3391 } catch (ParseException e) {
3392 errorMessage = "'(' expected after 'switch'";
3394 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
3395 errorEnd = SimpleCharStream.getPosition() + 1;
3396 {if (true) throw e;}
3399 variable = Expression();
3400 } catch (ParseException e) {
3401 if (errorMessage != null) {
3402 {if (true) throw e;}
3404 errorMessage = "expression expected";
3406 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
3407 errorEnd = SimpleCharStream.getPosition() + 1;
3408 {if (true) throw e;}
3411 jj_consume_token(RPAREN);
3412 } catch (ParseException e) {
3413 errorMessage = "')' expected";
3415 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
3416 errorEnd = SimpleCharStream.getPosition() + 1;
3417 {if (true) throw e;}
3419 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3421 cases = switchStatementBrace();
3424 cases = switchStatementColon(pos, pos + 6);
3427 jj_la1[92] = jj_gen;
3428 jj_consume_token(-1);
3429 throw new ParseException();
3431 {if (true) return new SwitchStatement(variable,cases,pos,SimpleCharStream.getPosition());}
3432 throw new Error("Missing return statement in function");
3435 static final public AbstractCase[] switchStatementBrace() throws ParseException {
3437 final ArrayList cases = new ArrayList();
3438 jj_consume_token(LBRACE);
3441 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3447 jj_la1[93] = jj_gen;
3450 cas = switchLabel0();
3454 jj_consume_token(RBRACE);
3455 AbstractCase[] abcase = new AbstractCase[cases.size()];
3456 cases.toArray(abcase);
3457 {if (true) return abcase;}
3458 } catch (ParseException e) {
3459 errorMessage = "'}' expected";
3461 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
3462 errorEnd = SimpleCharStream.getPosition() + 1;
3463 {if (true) throw e;}
3465 throw new Error("Missing return statement in function");
3469 * A Switch statement with : ... endswitch;
3470 * @param start the begin offset of the switch
3471 * @param end the end offset of the switch
3473 static final public AbstractCase[] switchStatementColon(final int start, final int end) throws ParseException {
3475 final ArrayList cases = new ArrayList();
3476 jj_consume_token(COLON);
3478 setMarker(fileToParse,
3479 "Ugly syntax detected, you should switch () {...} instead of switch (): ... enswitch;",
3483 "Line " + token.beginLine);
3484 } catch (CoreException e) {
3485 PHPeclipsePlugin.log(e);
3489 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3495 jj_la1[94] = jj_gen;
3498 cas = switchLabel0();
3502 jj_consume_token(ENDSWITCH);
3503 } catch (ParseException e) {
3504 errorMessage = "'endswitch' expected";
3506 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
3507 errorEnd = SimpleCharStream.getPosition() + 1;
3508 {if (true) throw e;}
3511 jj_consume_token(SEMICOLON);
3512 AbstractCase[] abcase = new AbstractCase[cases.size()];
3513 cases.toArray(abcase);
3514 {if (true) return abcase;}
3515 } catch (ParseException e) {
3516 errorMessage = "';' expected after 'endswitch' keyword";
3518 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
3519 errorEnd = SimpleCharStream.getPosition() + 1;
3520 {if (true) throw e;}
3522 throw new Error("Missing return statement in function");
3525 static final public AbstractCase switchLabel0() throws ParseException {
3526 final Expression expr;
3527 Statement statement;
3528 final ArrayList stmts = new ArrayList();
3529 final int pos = SimpleCharStream.getPosition();
3530 expr = SwitchLabel();
3533 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3567 case INTEGER_LITERAL:
3568 case FLOATING_POINT_LITERAL:
3569 case STRING_LITERAL:
3578 jj_la1[95] = jj_gen;
3581 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3614 case INTEGER_LITERAL:
3615 case FLOATING_POINT_LITERAL:
3616 case STRING_LITERAL:
3622 statement = BlockStatementNoBreak();
3623 stmts.add(statement);
3626 statement = htmlBlock();
3627 stmts.add(statement);
3630 jj_la1[96] = jj_gen;
3631 jj_consume_token(-1);
3632 throw new ParseException();
3635 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3637 statement = BreakStatement();
3638 stmts.add(statement);
3641 jj_la1[97] = jj_gen;
3644 Statement[] stmtsArray = new Statement[stmts.size()];
3645 stmts.toArray(stmtsArray);
3646 if (expr == null) {//it's a default
3647 {if (true) return new DefaultCase(stmtsArray,pos,SimpleCharStream.getPosition());}
3649 {if (true) return new Case(expr,stmtsArray,pos,SimpleCharStream.getPosition());}
3650 throw new Error("Missing return statement in function");
3655 * case Expression() :
3657 * @return the if it was a case and null if not
3659 static final public Expression SwitchLabel() throws ParseException {
3660 final Expression expr;
3661 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3663 token = jj_consume_token(CASE);
3665 expr = Expression();
3666 } catch (ParseException e) {
3667 if (errorMessage != null) {if (true) throw e;}
3668 errorMessage = "expression expected after 'case' keyword";
3670 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
3671 errorEnd = SimpleCharStream.getPosition() + 1;
3672 {if (true) throw e;}
3675 jj_consume_token(COLON);
3676 {if (true) return expr;}
3677 } catch (ParseException e) {
3678 errorMessage = "':' expected after case expression";
3680 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
3681 errorEnd = SimpleCharStream.getPosition() + 1;
3682 {if (true) throw e;}
3686 token = jj_consume_token(_DEFAULT);
3688 jj_consume_token(COLON);
3689 {if (true) return null;}
3690 } catch (ParseException e) {
3691 errorMessage = "':' expected after 'default' keyword";
3693 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
3694 errorEnd = SimpleCharStream.getPosition() + 1;
3695 {if (true) throw e;}
3699 jj_la1[98] = jj_gen;
3700 jj_consume_token(-1);
3701 throw new ParseException();
3703 throw new Error("Missing return statement in function");
3706 static final public Break BreakStatement() throws ParseException {
3707 Expression expression = null;
3708 final int start = SimpleCharStream.getPosition();
3709 jj_consume_token(BREAK);
3710 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3726 case INTEGER_LITERAL:
3727 case FLOATING_POINT_LITERAL:
3728 case STRING_LITERAL:
3732 expression = Expression();
3735 jj_la1[99] = jj_gen;
3739 jj_consume_token(SEMICOLON);
3740 } catch (ParseException e) {
3741 errorMessage = "';' expected after 'break' keyword";
3743 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
3744 errorEnd = SimpleCharStream.getPosition() + 1;
3745 {if (true) throw e;}
3747 {if (true) return new Break(expression, start, SimpleCharStream.getPosition());}
3748 throw new Error("Missing return statement in function");
3751 static final public IfStatement IfStatement() throws ParseException {
3752 final int pos = SimpleCharStream.getPosition();
3753 Expression condition;
3754 IfStatement ifStatement;
3755 jj_consume_token(IF);
3756 condition = Condition("if");
3757 ifStatement = IfStatement0(condition, pos,pos+2);
3758 {if (true) return ifStatement;}
3759 throw new Error("Missing return statement in function");
3762 static final public Expression Condition(final String keyword) throws ParseException {
3763 final Expression condition;
3765 jj_consume_token(LPAREN);
3766 } catch (ParseException e) {
3767 errorMessage = "'(' expected after " + keyword + " keyword";
3769 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length();
3770 errorEnd = errorStart +1;
3771 processParseException(e);
3773 condition = Expression();
3775 jj_consume_token(RPAREN);
3776 {if (true) return condition;}
3777 } catch (ParseException e) {
3778 errorMessage = "')' expected after " + keyword + " keyword";
3780 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
3781 errorEnd = SimpleCharStream.getPosition() + 1;
3782 {if (true) throw e;}
3784 throw new Error("Missing return statement in function");
3787 static final public IfStatement IfStatement0(Expression condition, final int start,final int end) throws ParseException {
3788 Statement statement;
3790 final Statement[] statementsArray;
3791 ElseIf elseifStatement;
3792 Else elseStatement = null;
3794 final ArrayList elseIfList = new ArrayList();
3796 int pos = SimpleCharStream.getPosition();
3798 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3800 jj_consume_token(COLON);
3801 stmts = new ArrayList();
3804 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3837 case INTEGER_LITERAL:
3838 case FLOATING_POINT_LITERAL:
3839 case STRING_LITERAL:
3848 jj_la1[100] = jj_gen;
3851 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3883 case INTEGER_LITERAL:
3884 case FLOATING_POINT_LITERAL:
3885 case STRING_LITERAL:
3891 statement = Statement();
3892 stmts.add(statement);
3895 statement = htmlBlock();
3896 stmts.add(statement);
3899 jj_la1[101] = jj_gen;
3900 jj_consume_token(-1);
3901 throw new ParseException();
3904 endStatements = SimpleCharStream.getPosition();
3907 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3912 jj_la1[102] = jj_gen;
3915 elseifStatement = ElseIfStatementColon();
3916 elseIfList.add(elseifStatement);
3918 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3920 elseStatement = ElseStatementColon();
3923 jj_la1[103] = jj_gen;
3927 setMarker(fileToParse,
3928 "Ugly syntax detected, you should if () {...} instead of if (): ... endif;",
3932 "Line " + token.beginLine);
3933 } catch (CoreException e) {
3934 PHPeclipsePlugin.log(e);
3937 jj_consume_token(ENDIF);
3938 } catch (ParseException e) {
3939 errorMessage = "'endif' expected";
3941 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
3942 errorEnd = SimpleCharStream.getPosition() + 1;
3943 {if (true) throw e;}
3946 jj_consume_token(SEMICOLON);
3947 } catch (ParseException e) {
3948 errorMessage = "';' expected after 'endif' keyword";
3950 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
3951 errorEnd = SimpleCharStream.getPosition() + 1;
3952 {if (true) throw e;}
3954 elseIfs = new ElseIf[elseIfList.size()];
3955 elseIfList.toArray(elseIfs);
3956 if (stmts.size() == 1) {
3957 {if (true) return new IfStatement(condition,
3958 (Statement) stmts.get(0),
3962 SimpleCharStream.getPosition());}
3964 statementsArray = new Statement[stmts.size()];
3965 stmts.toArray(statementsArray);
3966 {if (true) return new IfStatement(condition,
3967 new Block(statementsArray,pos,endStatements),
3971 SimpleCharStream.getPosition());}
4006 case INTEGER_LITERAL:
4007 case FLOATING_POINT_LITERAL:
4008 case STRING_LITERAL:
4014 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4046 case INTEGER_LITERAL:
4047 case FLOATING_POINT_LITERAL:
4048 case STRING_LITERAL:
4060 jj_la1[104] = jj_gen;
4061 jj_consume_token(-1);
4062 throw new ParseException();
4066 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4071 jj_la1[105] = jj_gen;
4074 elseifStatement = ElseIfStatement();
4075 elseIfList.add(elseifStatement);
4077 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4079 jj_consume_token(ELSE);
4081 pos = SimpleCharStream.getPosition();
4082 statement = Statement();
4083 elseStatement = new Else(statement,pos,SimpleCharStream.getPosition());
4084 } catch (ParseException e) {
4085 if (errorMessage != null) {
4086 {if (true) throw e;}
4088 errorMessage = "unexpected token '"+e.currentToken.next.image+"', a statement was expected";
4090 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
4091 errorEnd = SimpleCharStream.getPosition() + 1;
4092 {if (true) throw e;}
4096 jj_la1[106] = jj_gen;
4099 elseIfs = new ElseIf[elseIfList.size()];
4100 elseIfList.toArray(elseIfs);
4101 {if (true) return new IfStatement(condition,
4106 SimpleCharStream.getPosition());}
4109 jj_la1[107] = jj_gen;
4110 jj_consume_token(-1);
4111 throw new ParseException();
4113 throw new Error("Missing return statement in function");
4116 static final public ElseIf ElseIfStatementColon() throws ParseException {
4117 Expression condition;
4118 Statement statement;
4119 final ArrayList list = new ArrayList();
4120 final int pos = SimpleCharStream.getPosition();
4121 jj_consume_token(ELSEIF);
4122 condition = Condition("elseif");
4123 jj_consume_token(COLON);
4126 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4159 case INTEGER_LITERAL:
4160 case FLOATING_POINT_LITERAL:
4161 case STRING_LITERAL:
4170 jj_la1[108] = jj_gen;
4173 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4205 case INTEGER_LITERAL:
4206 case FLOATING_POINT_LITERAL:
4207 case STRING_LITERAL:
4213 statement = Statement();
4214 list.add(statement);
4217 statement = htmlBlock();
4218 list.add(statement);
4221 jj_la1[109] = jj_gen;
4222 jj_consume_token(-1);
4223 throw new ParseException();
4226 Statement[] stmtsArray = new Statement[list.size()];
4227 list.toArray(stmtsArray);
4228 {if (true) return new ElseIf(condition,stmtsArray ,pos,SimpleCharStream.getPosition());}
4229 throw new Error("Missing return statement in function");
4232 static final public Else ElseStatementColon() throws ParseException {
4233 Statement statement;
4234 final ArrayList list = new ArrayList();
4235 final int pos = SimpleCharStream.getPosition();
4236 jj_consume_token(ELSE);
4237 jj_consume_token(COLON);
4240 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4273 case INTEGER_LITERAL:
4274 case FLOATING_POINT_LITERAL:
4275 case STRING_LITERAL:
4284 jj_la1[110] = jj_gen;
4287 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4319 case INTEGER_LITERAL:
4320 case FLOATING_POINT_LITERAL:
4321 case STRING_LITERAL:
4327 statement = Statement();
4328 list.add(statement);
4331 statement = htmlBlock();
4332 list.add(statement);
4335 jj_la1[111] = jj_gen;
4336 jj_consume_token(-1);
4337 throw new ParseException();
4340 Statement[] stmtsArray = new Statement[list.size()];
4341 list.toArray(stmtsArray);
4342 {if (true) return new Else(stmtsArray,pos,SimpleCharStream.getPosition());}
4343 throw new Error("Missing return statement in function");
4346 static final public ElseIf ElseIfStatement() throws ParseException {
4347 Expression condition;
4348 Statement statement;
4349 final ArrayList list = new ArrayList();
4350 final int pos = SimpleCharStream.getPosition();
4351 jj_consume_token(ELSEIF);
4352 condition = Condition("elseif");
4353 statement = Statement();
4354 list.add(statement);/*todo:do better*/
4355 Statement[] stmtsArray = new Statement[list.size()];
4356 list.toArray(stmtsArray);
4357 {if (true) return new ElseIf(condition,stmtsArray,pos,SimpleCharStream.getPosition());}
4358 throw new Error("Missing return statement in function");
4361 static final public WhileStatement WhileStatement() throws ParseException {
4362 final Expression condition;
4363 final Statement action;
4364 final int pos = SimpleCharStream.getPosition();
4365 jj_consume_token(WHILE);
4366 condition = Condition("while");
4367 action = WhileStatement0(pos,pos + 5);
4368 {if (true) return new WhileStatement(condition,action,pos,SimpleCharStream.getPosition());}
4369 throw new Error("Missing return statement in function");
4372 static final public Statement WhileStatement0(final int start, final int end) throws ParseException {
4373 Statement statement;
4374 final ArrayList stmts = new ArrayList();
4375 final int pos = SimpleCharStream.getPosition();
4376 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4378 jj_consume_token(COLON);
4381 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4413 case INTEGER_LITERAL:
4414 case FLOATING_POINT_LITERAL:
4415 case STRING_LITERAL:
4424 jj_la1[112] = jj_gen;
4427 statement = Statement();
4428 stmts.add(statement);
4431 setMarker(fileToParse,
4432 "Ugly syntax detected, you should while () {...} instead of while (): ... endwhile;",
4436 "Line " + token.beginLine);
4437 } catch (CoreException e) {
4438 PHPeclipsePlugin.log(e);
4441 jj_consume_token(ENDWHILE);
4442 } catch (ParseException e) {
4443 errorMessage = "'endwhile' expected";
4445 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
4446 errorEnd = SimpleCharStream.getPosition() + 1;
4447 {if (true) throw e;}
4450 jj_consume_token(SEMICOLON);
4451 Statement[] stmtsArray = new Statement[stmts.size()];
4452 stmts.toArray(stmtsArray);
4453 {if (true) return new Block(stmtsArray,pos,SimpleCharStream.getPosition());}
4454 } catch (ParseException e) {
4455 errorMessage = "';' expected after 'endwhile' keyword";
4457 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
4458 errorEnd = SimpleCharStream.getPosition() + 1;
4459 {if (true) throw e;}
4493 case INTEGER_LITERAL:
4494 case FLOATING_POINT_LITERAL:
4495 case STRING_LITERAL:
4501 statement = Statement();
4502 {if (true) return statement;}
4505 jj_la1[113] = jj_gen;
4506 jj_consume_token(-1);
4507 throw new ParseException();
4509 throw new Error("Missing return statement in function");
4512 static final public DoStatement DoStatement() throws ParseException {
4513 final Statement action;
4514 final Expression condition;
4515 final int pos = SimpleCharStream.getPosition();
4516 jj_consume_token(DO);
4517 action = Statement();
4518 jj_consume_token(WHILE);
4519 condition = Condition("while");
4521 jj_consume_token(SEMICOLON);
4522 {if (true) return new DoStatement(condition,action,pos,SimpleCharStream.getPosition());}
4523 } catch (ParseException e) {
4524 errorMessage = "unexpected token : '"+ e.currentToken.next.image +"'. A ';' was expected";
4526 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
4527 errorEnd = SimpleCharStream.getPosition() + 1;
4528 {if (true) throw e;}
4530 throw new Error("Missing return statement in function");
4533 static final public ForeachStatement ForeachStatement() throws ParseException {
4534 Statement statement;
4535 Expression expression;
4536 final int pos = SimpleCharStream.getPosition();
4537 ArrayVariableDeclaration variable;
4538 jj_consume_token(FOREACH);
4540 jj_consume_token(LPAREN);
4541 } catch (ParseException e) {
4542 errorMessage = "'(' expected after 'foreach' keyword";
4544 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
4545 errorEnd = SimpleCharStream.getPosition() + 1;
4546 {if (true) throw e;}
4549 expression = Expression();
4550 } catch (ParseException e) {
4551 errorMessage = "variable expected";
4553 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
4554 errorEnd = SimpleCharStream.getPosition() + 1;
4555 {if (true) throw e;}
4558 jj_consume_token(AS);
4559 } catch (ParseException e) {
4560 errorMessage = "'as' expected";
4562 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
4563 errorEnd = SimpleCharStream.getPosition() + 1;
4564 {if (true) throw e;}
4567 variable = ArrayVariable();
4568 } catch (ParseException e) {
4569 errorMessage = "variable expected";
4571 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
4572 errorEnd = SimpleCharStream.getPosition() + 1;
4573 {if (true) throw e;}
4576 jj_consume_token(RPAREN);
4577 } catch (ParseException e) {
4578 errorMessage = "')' expected after 'foreach' keyword";
4580 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
4581 errorEnd = SimpleCharStream.getPosition() + 1;
4582 {if (true) throw e;}
4585 statement = Statement();
4586 } catch (ParseException e) {
4587 if (errorMessage != null) {if (true) throw e;}
4588 errorMessage = "statement expected";
4590 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
4591 errorEnd = SimpleCharStream.getPosition() + 1;
4592 {if (true) throw e;}
4594 {if (true) return new ForeachStatement(expression,
4598 SimpleCharStream.getPosition());}
4599 throw new Error("Missing return statement in function");
4602 static final public ForStatement ForStatement() throws ParseException {
4604 final int pos = SimpleCharStream.getPosition();
4605 Statement[] initializations = null;
4606 Expression condition = null;
4607 Statement[] increments = null;
4609 final ArrayList list = new ArrayList();
4610 final int startBlock, endBlock;
4611 token = jj_consume_token(FOR);
4613 jj_consume_token(LPAREN);
4614 } catch (ParseException e) {
4615 errorMessage = "'(' expected after 'for' keyword";
4617 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
4618 errorEnd = SimpleCharStream.getPosition() + 1;
4619 {if (true) throw e;}
4621 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4629 initializations = ForInit();
4632 jj_la1[114] = jj_gen;
4635 jj_consume_token(SEMICOLON);
4636 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4652 case INTEGER_LITERAL:
4653 case FLOATING_POINT_LITERAL:
4654 case STRING_LITERAL:
4658 condition = Expression();
4661 jj_la1[115] = jj_gen;
4664 jj_consume_token(SEMICOLON);
4665 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4673 increments = StatementExpressionList();
4676 jj_la1[116] = jj_gen;
4679 jj_consume_token(RPAREN);
4680 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4712 case INTEGER_LITERAL:
4713 case FLOATING_POINT_LITERAL:
4714 case STRING_LITERAL:
4720 action = Statement();
4721 {if (true) return new ForStatement(initializations,condition,increments,action,pos,SimpleCharStream.getPosition());}
4724 jj_consume_token(COLON);
4725 startBlock = SimpleCharStream.getPosition();
4728 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4760 case INTEGER_LITERAL:
4761 case FLOATING_POINT_LITERAL:
4762 case STRING_LITERAL:
4771 jj_la1[117] = jj_gen;
4774 action = Statement();
4778 setMarker(fileToParse,
4779 "Ugly syntax detected, you should for () {...} instead of for (): ... endfor;",
4781 pos+token.image.length(),
4783 "Line " + token.beginLine);
4784 } catch (CoreException e) {
4785 PHPeclipsePlugin.log(e);
4787 endBlock = SimpleCharStream.getPosition();
4789 jj_consume_token(ENDFOR);
4790 } catch (ParseException e) {
4791 errorMessage = "'endfor' expected";
4793 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
4794 errorEnd = SimpleCharStream.getPosition() + 1;
4795 {if (true) throw e;}
4798 jj_consume_token(SEMICOLON);
4799 Statement[] stmtsArray = new Statement[list.size()];
4800 list.toArray(stmtsArray);
4801 {if (true) return new ForStatement(initializations,condition,increments,new Block(stmtsArray,startBlock,endBlock),pos,SimpleCharStream.getPosition());}
4802 } catch (ParseException e) {
4803 errorMessage = "';' expected after 'endfor' keyword";
4805 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
4806 errorEnd = SimpleCharStream.getPosition() + 1;
4807 {if (true) throw e;}
4811 jj_la1[118] = jj_gen;
4812 jj_consume_token(-1);
4813 throw new ParseException();
4815 throw new Error("Missing return statement in function");
4818 static final public Statement[] ForInit() throws ParseException {
4819 Statement[] statements;
4820 if (jj_2_8(2147483647)) {
4821 statements = LocalVariableDeclaration();
4822 {if (true) return statements;}
4824 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4832 statements = StatementExpressionList();
4833 {if (true) return statements;}
4836 jj_la1[119] = jj_gen;
4837 jj_consume_token(-1);
4838 throw new ParseException();
4841 throw new Error("Missing return statement in function");
4844 static final public Statement[] StatementExpressionList() throws ParseException {
4845 final ArrayList list = new ArrayList();
4847 expr = StatementExpression();
4851 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4856 jj_la1[120] = jj_gen;
4859 jj_consume_token(COMMA);
4860 StatementExpression();
4863 Statement[] stmtsArray = new Statement[list.size()];
4864 list.toArray(stmtsArray);
4865 {if (true) return stmtsArray;}
4866 throw new Error("Missing return statement in function");
4869 static final public Continue ContinueStatement() throws ParseException {
4870 Expression expr = null;
4871 final int pos = SimpleCharStream.getPosition();
4872 jj_consume_token(CONTINUE);
4873 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4889 case INTEGER_LITERAL:
4890 case FLOATING_POINT_LITERAL:
4891 case STRING_LITERAL:
4895 expr = Expression();
4898 jj_la1[121] = jj_gen;
4902 jj_consume_token(SEMICOLON);
4903 {if (true) return new Continue(expr,pos,SimpleCharStream.getPosition());}
4904 } catch (ParseException e) {
4905 errorMessage = "';' expected after 'continue' statement";
4907 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
4908 errorEnd = SimpleCharStream.getPosition() + 1;
4909 {if (true) throw e;}
4911 throw new Error("Missing return statement in function");
4914 static final public ReturnStatement ReturnStatement() throws ParseException {
4915 Expression expr = null;
4916 final int pos = SimpleCharStream.getPosition();
4917 jj_consume_token(RETURN);
4918 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
4934 case INTEGER_LITERAL:
4935 case FLOATING_POINT_LITERAL:
4936 case STRING_LITERAL:
4940 expr = Expression();
4943 jj_la1[122] = jj_gen;
4947 jj_consume_token(SEMICOLON);
4948 {if (true) return new ReturnStatement(expr,pos,SimpleCharStream.getPosition());}
4949 } catch (ParseException e) {
4950 errorMessage = "';' expected after 'return' statement";
4952 errorStart = SimpleCharStream.getPosition() - e.currentToken.next.image.length() + 1;
4953 errorEnd = SimpleCharStream.getPosition() + 1;
4954 {if (true) throw e;}
4956 throw new Error("Missing return statement in function");
4959 static final private boolean jj_2_1(int xla) {
4960 jj_la = xla; jj_lastpos = jj_scanpos = token;
4961 boolean retval = !jj_3_1();
4966 static final private boolean jj_2_2(int xla) {
4967 jj_la = xla; jj_lastpos = jj_scanpos = token;
4968 boolean retval = !jj_3_2();
4973 static final private boolean jj_2_3(int xla) {
4974 jj_la = xla; jj_lastpos = jj_scanpos = token;
4975 boolean retval = !jj_3_3();
4980 static final private boolean jj_2_4(int xla) {
4981 jj_la = xla; jj_lastpos = jj_scanpos = token;
4982 boolean retval = !jj_3_4();
4987 static final private boolean jj_2_5(int xla) {
4988 jj_la = xla; jj_lastpos = jj_scanpos = token;
4989 boolean retval = !jj_3_5();
4994 static final private boolean jj_2_6(int xla) {
4995 jj_la = xla; jj_lastpos = jj_scanpos = token;
4996 boolean retval = !jj_3_6();
5001 static final private boolean jj_2_7(int xla) {
5002 jj_la = xla; jj_lastpos = jj_scanpos = token;
5003 boolean retval = !jj_3_7();
5008 static final private boolean jj_2_8(int xla) {
5009 jj_la = xla; jj_lastpos = jj_scanpos = token;
5010 boolean retval = !jj_3_8();
5015 static final private boolean jj_3R_83() {
5016 if (jj_scan_token(OBJECT)) return true;
5017 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5021 static final private boolean jj_3R_82() {
5022 if (jj_scan_token(INTEGER)) return true;
5023 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5027 static final private boolean jj_3R_44() {
5028 if (jj_scan_token(ARRAY)) return true;
5029 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5033 static final private boolean jj_3R_184() {
5034 if (jj_scan_token(ARRAY)) return true;
5035 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5039 static final private boolean jj_3R_81() {
5040 if (jj_scan_token(INT)) return true;
5041 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5045 static final private boolean jj_3R_183() {
5046 if (jj_3R_52()) return true;
5047 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5051 static final private boolean jj_3R_85() {
5052 if (jj_scan_token(LIST)) return true;
5053 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5054 if (jj_scan_token(LPAREN)) return true;
5055 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5058 if (jj_3R_99()) jj_scanpos = xsp;
5059 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5062 if (jj_3R_100()) { jj_scanpos = xsp; break; }
5063 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5065 if (jj_scan_token(RPAREN)) return true;
5066 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5068 if (jj_3R_101()) jj_scanpos = xsp;
5069 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5073 static final private boolean jj_3R_80() {
5074 if (jj_scan_token(FLOAT)) return true;
5075 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5079 static final private boolean jj_3R_167() {
5080 if (jj_scan_token(LPAREN)) return true;
5081 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5086 if (jj_3R_184()) return true;
5087 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5088 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5089 if (jj_scan_token(RPAREN)) return true;
5090 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5091 if (jj_3R_139()) return true;
5092 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5096 static final private boolean jj_3R_79() {
5097 if (jj_scan_token(DOUBLE)) return true;
5098 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5102 static final private boolean jj_3R_43() {
5103 if (jj_3R_52()) return true;
5104 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5108 static final private boolean jj_3R_78() {
5109 if (jj_scan_token(REAL)) return true;
5110 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5114 static final private boolean jj_3R_77() {
5115 if (jj_scan_token(BOOLEAN)) return true;
5116 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5120 static final private boolean jj_3R_84() {
5121 if (jj_scan_token(PRINT)) return true;
5122 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5123 if (jj_3R_45()) return true;
5124 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5128 static final private boolean jj_3R_76() {
5129 if (jj_scan_token(BOOL)) return true;
5130 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5134 static final private boolean jj_3_4() {
5135 if (jj_scan_token(LPAREN)) return true;
5136 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5141 if (jj_3R_44()) return true;
5142 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5143 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5144 if (jj_scan_token(RPAREN)) return true;
5145 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5149 static final private boolean jj_3R_75() {
5150 if (jj_scan_token(STRING)) return true;
5151 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5155 static final private boolean jj_3R_52() {
5174 if (jj_3R_83()) return true;
5175 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5176 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5177 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5178 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5179 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5180 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5181 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5182 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5183 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5187 static final private boolean jj_3R_165() {
5188 if (jj_scan_token(LPAREN)) return true;
5189 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5190 if (jj_3R_45()) return true;
5191 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5192 if (jj_scan_token(RPAREN)) return true;
5193 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5197 static final private boolean jj_3R_164() {
5198 if (jj_3R_169()) return true;
5199 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5203 static final private boolean jj_3R_163() {
5204 if (jj_3R_168()) return true;
5205 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5209 static final private boolean jj_3R_162() {
5210 if (jj_3R_167()) return true;
5211 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5215 static final private boolean jj_3R_158() {
5226 if (jj_3R_165()) return true;
5227 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5228 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5229 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5230 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5231 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5235 static final private boolean jj_3R_161() {
5236 if (jj_scan_token(BANG)) return true;
5237 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5238 if (jj_3R_139()) return true;
5239 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5243 static final private boolean jj_3R_160() {
5244 if (jj_scan_token(DECR)) return true;
5245 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5249 static final private boolean jj_3R_159() {
5250 if (jj_scan_token(INCR)) return true;
5251 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5255 static final private boolean jj_3R_157() {
5260 if (jj_3R_160()) return true;
5261 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5262 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5263 if (jj_3R_166()) return true;
5264 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5268 static final private boolean jj_3R_152() {
5269 if (jj_3R_158()) return true;
5270 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5274 static final private boolean jj_3R_151() {
5275 if (jj_3R_157()) return true;
5276 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5280 static final private boolean jj_3R_156() {
5281 if (jj_scan_token(MINUS)) return true;
5282 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5286 static final private boolean jj_3R_155() {
5287 if (jj_scan_token(PLUS)) return true;
5288 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5292 static final private boolean jj_3R_148() {
5299 if (jj_3R_152()) return true;
5300 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5301 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5302 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5306 static final private boolean jj_3R_150() {
5311 if (jj_3R_156()) return true;
5312 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5313 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5314 if (jj_3R_139()) return true;
5315 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5319 static final private boolean jj_3R_154() {
5320 if (jj_3R_148()) return true;
5321 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5325 static final private boolean jj_3R_149() {
5330 if (jj_3R_154()) return true;
5331 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5332 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5336 static final private boolean jj_3R_153() {
5337 if (jj_scan_token(AT)) return true;
5338 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5339 if (jj_3R_149()) return true;
5340 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5344 static final private boolean jj_3R_144() {
5345 if (jj_3R_149()) return true;
5346 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5350 static final private boolean jj_3R_139() {
5355 if (jj_3R_144()) return true;
5356 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5357 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5361 static final private boolean jj_3R_143() {
5362 if (jj_scan_token(BIT_AND)) return true;
5363 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5364 if (jj_3R_148()) return true;
5365 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5369 static final private boolean jj_3R_147() {
5370 if (jj_scan_token(REMAINDER)) return true;
5371 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5375 static final private boolean jj_3R_146() {
5376 if (jj_scan_token(SLASH)) return true;
5377 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5381 static final private boolean jj_3R_145() {
5382 if (jj_scan_token(STAR)) return true;
5383 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5387 static final private boolean jj_3R_87() {
5388 if (jj_scan_token(ASSIGN)) return true;
5389 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5390 if (jj_3R_45()) return true;
5391 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5395 static final private boolean jj_3R_140() {
5402 if (jj_3R_147()) return true;
5403 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5404 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5405 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5406 if (jj_3R_139()) return true;
5407 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5411 static final private boolean jj_3R_134() {
5412 if (jj_3R_139()) return true;
5413 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5417 if (jj_3R_140()) { jj_scanpos = xsp; break; }
5418 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5423 static final private boolean jj_3R_142() {
5424 if (jj_scan_token(MINUS)) return true;
5425 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5429 static final private boolean jj_3R_141() {
5430 if (jj_scan_token(PLUS)) return true;
5431 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5435 static final private boolean jj_3R_135() {
5440 if (jj_3R_142()) return true;
5441 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5442 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5443 if (jj_3R_134()) return true;
5444 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5448 static final private boolean jj_3R_128() {
5449 if (jj_3R_134()) return true;
5450 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5454 if (jj_3R_135()) { jj_scanpos = xsp; break; }
5455 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5460 static final private boolean jj_3R_198() {
5461 if (jj_scan_token(COMMA)) return true;
5462 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5466 static final private boolean jj_3_7() {
5467 if (jj_3R_46()) return true;
5468 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5472 static final private boolean jj_3_2() {
5473 if (jj_scan_token(COMMA)) return true;
5474 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5475 if (jj_3R_41()) return true;
5476 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5480 static final private boolean jj_3R_57() {
5481 if (jj_3R_50()) return true;
5482 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5485 if (jj_3R_87()) jj_scanpos = xsp;
5486 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5490 static final private boolean jj_3R_197() {
5491 if (jj_3R_41()) return true;
5492 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5496 if (jj_3_2()) { jj_scanpos = xsp; break; }
5497 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5502 static final private boolean jj_3R_138() {
5503 if (jj_scan_token(RUNSIGNEDSHIFT)) return true;
5504 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5508 static final private boolean jj_3R_137() {
5509 if (jj_scan_token(RSIGNEDSHIFT)) return true;
5510 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5514 static final private boolean jj_3R_136() {
5515 if (jj_scan_token(LSHIFT)) return true;
5516 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5520 static final private boolean jj_3R_129() {
5527 if (jj_3R_138()) return true;
5528 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5529 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5530 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5531 if (jj_3R_128()) return true;
5532 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5536 static final private boolean jj_3R_121() {
5537 if (jj_3R_128()) return true;
5538 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5542 if (jj_3R_129()) { jj_scanpos = xsp; break; }
5543 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5548 static final private boolean jj_3_6() {
5549 if (jj_3R_45()) return true;
5550 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5551 if (jj_scan_token(SEMICOLON)) return true;
5552 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5556 static final private boolean jj_3R_192() {
5557 if (jj_scan_token(LPAREN)) return true;
5558 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5561 if (jj_3R_197()) jj_scanpos = xsp;
5562 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5564 if (jj_3R_198()) jj_scanpos = xsp;
5565 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5566 if (jj_scan_token(RPAREN)) return true;
5567 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5571 static final private boolean jj_3R_58() {
5572 if (jj_scan_token(COMMA)) return true;
5573 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5574 if (jj_3R_57()) return true;
5575 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5579 static final private boolean jj_3R_47() {
5580 if (jj_3R_57()) return true;
5581 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5585 if (jj_3R_58()) { jj_scanpos = xsp; break; }
5586 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5591 static final private boolean jj_3R_133() {
5592 if (jj_scan_token(GE)) return true;
5593 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5597 static final private boolean jj_3R_201() {
5598 if (jj_scan_token(ARRAYASSIGN)) return true;
5599 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5600 if (jj_3R_45()) return true;
5601 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5605 static final private boolean jj_3R_132() {
5606 if (jj_scan_token(LE)) return true;
5607 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5611 static final private boolean jj_3R_131() {
5612 if (jj_scan_token(GT)) return true;
5613 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5617 static final private boolean jj_3R_41() {
5618 if (jj_3R_45()) return true;
5619 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5622 if (jj_3R_201()) jj_scanpos = xsp;
5623 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5627 static final private boolean jj_3R_130() {
5628 if (jj_scan_token(LT)) return true;
5629 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5633 static final private boolean jj_3R_122() {
5642 if (jj_3R_133()) return true;
5643 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5644 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5645 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5646 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5647 if (jj_3R_121()) return true;
5648 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5652 static final private boolean jj_3R_119() {
5653 if (jj_3R_121()) return true;
5654 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5658 if (jj_3R_122()) { jj_scanpos = xsp; break; }
5659 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5664 static final private boolean jj_3R_203() {
5665 if (jj_scan_token(COMMA)) return true;
5666 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5667 if (jj_3R_45()) return true;
5668 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5672 static final private boolean jj_3R_202() {
5673 if (jj_3R_45()) return true;
5674 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5678 if (jj_3R_203()) { jj_scanpos = xsp; break; }
5679 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5684 static final private boolean jj_3R_127() {
5685 if (jj_scan_token(TRIPLEEQUAL)) return true;
5686 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5690 static final private boolean jj_3R_200() {
5691 if (jj_3R_202()) return true;
5692 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5696 static final private boolean jj_3R_126() {
5697 if (jj_scan_token(BANGDOUBLEEQUAL)) return true;
5698 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5702 static final private boolean jj_3R_125() {
5703 if (jj_scan_token(NOT_EQUAL)) return true;
5704 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5708 static final private boolean jj_3R_124() {
5709 if (jj_scan_token(DIF)) return true;
5710 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5714 static final private boolean jj_3R_123() {
5715 if (jj_scan_token(EQUAL_EQUAL)) return true;
5716 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5720 static final private boolean jj_3R_120() {
5731 if (jj_3R_127()) return true;
5732 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5733 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5734 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5735 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5736 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5737 if (jj_3R_119()) return true;
5738 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5742 static final private boolean jj_3R_108() {
5743 if (jj_scan_token(LBRACE)) return true;
5744 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5745 if (jj_3R_45()) return true;
5746 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5747 if (jj_scan_token(RBRACE)) return true;
5748 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5752 static final private boolean jj_3R_93() {
5753 if (jj_3R_52()) return true;
5754 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5758 static final private boolean jj_3R_117() {
5759 if (jj_3R_119()) return true;
5760 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5764 if (jj_3R_120()) { jj_scanpos = xsp; break; }
5765 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5770 static final private boolean jj_3R_199() {
5771 if (jj_scan_token(LPAREN)) return true;
5772 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5775 if (jj_3R_200()) jj_scanpos = xsp;
5776 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5777 if (jj_scan_token(RPAREN)) return true;
5778 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5782 static final private boolean jj_3R_91() {
5783 if (jj_scan_token(DOLLAR_ID)) return true;
5784 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5788 static final private boolean jj_3R_90() {
5789 if (jj_scan_token(DOLLAR)) return true;
5790 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5791 if (jj_3R_59()) return true;
5792 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5796 static final private boolean jj_3R_118() {
5797 if (jj_scan_token(BIT_AND)) return true;
5798 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5799 if (jj_3R_117()) return true;
5800 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5804 static final private boolean jj_3R_177() {
5805 if (jj_scan_token(NULL)) return true;
5806 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5810 static final private boolean jj_3R_176() {
5811 if (jj_scan_token(FALSE)) return true;
5812 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5816 static final private boolean jj_3R_115() {
5817 if (jj_3R_117()) return true;
5818 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5822 if (jj_3R_118()) { jj_scanpos = xsp; break; }
5823 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5828 static final private boolean jj_3R_175() {
5829 if (jj_scan_token(TRUE)) return true;
5830 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5834 static final private boolean jj_3R_174() {
5835 if (jj_scan_token(STRING_LITERAL)) return true;
5836 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5840 static final private boolean jj_3R_173() {
5841 if (jj_scan_token(FLOATING_POINT_LITERAL)) return true;
5842 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5846 static final private boolean jj_3R_89() {
5847 if (jj_scan_token(IDENTIFIER)) return true;
5848 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5851 if (jj_3R_108()) jj_scanpos = xsp;
5852 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5856 static final private boolean jj_3R_169() {
5869 if (jj_3R_177()) return true;
5870 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5871 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5872 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5873 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5874 } else 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_172() {
5880 if (jj_scan_token(INTEGER_LITERAL)) return true;
5881 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5885 static final private boolean jj_3R_116() {
5886 if (jj_scan_token(XOR)) return true;
5887 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5888 if (jj_3R_115()) return true;
5889 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5893 static final private boolean jj_3R_88() {
5894 if (jj_scan_token(LBRACE)) return true;
5895 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5896 if (jj_3R_45()) return true;
5897 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5898 if (jj_scan_token(RBRACE)) return true;
5899 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5903 static final private boolean jj_3R_59() {
5912 if (jj_3R_91()) return true;
5913 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5914 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5915 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5916 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5920 static final private boolean jj_3R_113() {
5921 if (jj_3R_115()) return true;
5922 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5926 if (jj_3R_116()) { jj_scanpos = xsp; break; }
5927 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5932 static final private boolean jj_3R_92() {
5933 if (jj_3R_45()) return true;
5934 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5938 static final private boolean jj_3R_60() {
5943 if (jj_3R_93()) return true;
5944 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5945 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5949 static final private boolean jj_3R_46() {
5950 if (jj_scan_token(IDENTIFIER)) return true;
5951 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5952 if (jj_scan_token(COLON)) return true;
5953 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5957 static final private boolean jj_3R_98() {
5958 if (jj_scan_token(LBRACE)) return true;
5959 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5960 if (jj_3R_45()) return true;
5961 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5962 if (jj_scan_token(RBRACE)) return true;
5963 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5967 static final private boolean jj_3R_114() {
5968 if (jj_scan_token(BIT_OR)) return true;
5969 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5970 if (jj_3R_113()) return true;
5971 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5975 static final private boolean jj_3_8() {
5976 if (jj_3R_47()) return true;
5977 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5981 static final private boolean jj_3R_95() {
5982 if (jj_scan_token(DOLLAR)) return true;
5983 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5984 if (jj_3R_59()) return true;
5985 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5989 static final private boolean jj_3R_109() {
5990 if (jj_3R_113()) return true;
5991 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
5995 if (jj_3R_114()) { jj_scanpos = xsp; break; }
5996 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6001 static final private boolean jj_3R_49() {
6002 if (jj_scan_token(LBRACKET)) return true;
6003 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6006 if (jj_3R_60()) jj_scanpos = xsp;
6007 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6008 if (jj_scan_token(RBRACKET)) return true;
6009 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6013 static final private boolean jj_3R_110() {
6014 if (jj_scan_token(DOT)) return true;
6015 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6016 if (jj_3R_109()) return true;
6017 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6021 static final private boolean jj_3R_94() {
6022 if (jj_scan_token(DOLLAR_ID)) return true;
6023 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6026 if (jj_3R_98()) jj_scanpos = xsp;
6027 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6031 static final private boolean jj_3R_61() {
6036 if (jj_3R_95()) return true;
6037 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6038 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6042 static final private boolean jj_3R_104() {
6043 if (jj_3R_109()) return true;
6044 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6048 if (jj_3R_110()) { jj_scanpos = xsp; break; }
6049 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6054 static final private boolean jj_3R_48() {
6055 if (jj_scan_token(CLASSACCESS)) return true;
6056 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6057 if (jj_3R_59()) return true;
6058 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6062 static final private boolean jj_3R_40() {
6067 if (jj_3R_49()) return true;
6068 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6069 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6073 static final private boolean jj_3R_112() {
6074 if (jj_scan_token(_ANDL)) return true;
6075 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6079 static final private boolean jj_3R_111() {
6080 if (jj_scan_token(AND_AND)) return true;
6081 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6085 static final private boolean jj_3R_196() {
6086 if (jj_3R_40()) return true;
6087 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6091 static final private boolean jj_3R_105() {
6096 if (jj_3R_112()) return true;
6097 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6098 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6099 if (jj_3R_104()) return true;
6100 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6104 static final private boolean jj_3R_195() {
6105 if (jj_3R_199()) return true;
6106 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6110 static final private boolean jj_3R_188() {
6115 if (jj_3R_196()) return true;
6116 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6117 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6121 static final private boolean jj_3R_97() {
6122 if (jj_scan_token(HOOK)) return true;
6123 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6124 if (jj_3R_45()) return true;
6125 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6126 if (jj_scan_token(COLON)) return true;
6127 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6128 if (jj_3R_86()) return true;
6129 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6133 static final private boolean jj_3R_102() {
6134 if (jj_3R_104()) return true;
6135 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6139 if (jj_3R_105()) { jj_scanpos = xsp; break; }
6140 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6145 static final private boolean jj_3_1() {
6146 if (jj_3R_40()) return true;
6147 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6151 static final private boolean jj_3R_187() {
6152 if (jj_3R_50()) return true;
6153 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6157 static final private boolean jj_3R_107() {
6158 if (jj_scan_token(_ORL)) return true;
6159 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6163 static final private boolean jj_3R_106() {
6164 if (jj_scan_token(OR_OR)) return true;
6165 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6169 static final private boolean jj_3R_186() {
6170 if (jj_scan_token(IDENTIFIER)) return true;
6171 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6175 static final private boolean jj_3R_178() {
6180 if (jj_3R_187()) return true;
6181 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6182 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6186 static final private boolean jj_3R_50() {
6187 if (jj_3R_61()) return true;
6188 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6192 if (jj_3_1()) { jj_scanpos = xsp; break; }
6193 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6198 static final private boolean jj_3R_103() {
6203 if (jj_3R_107()) return true;
6204 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6205 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6206 if (jj_3R_102()) return true;
6207 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6211 static final private boolean jj_3R_96() {
6212 if (jj_3R_102()) return true;
6213 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6217 if (jj_3R_103()) { jj_scanpos = xsp; break; }
6218 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6223 static final private boolean jj_3R_86() {
6224 if (jj_3R_96()) return true;
6225 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6228 if (jj_3R_97()) jj_scanpos = xsp;
6229 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6233 static final private boolean jj_3R_74() {
6234 if (jj_scan_token(TILDEEQUAL)) return true;
6235 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6239 static final private boolean jj_3R_191() {
6240 if (jj_3R_50()) return true;
6241 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6245 static final private boolean jj_3R_73() {
6246 if (jj_scan_token(DOTASSIGN)) return true;
6247 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6251 static final private boolean jj_3R_72() {
6252 if (jj_scan_token(ORASSIGN)) return true;
6253 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6257 static final private boolean jj_3R_71() {
6258 if (jj_scan_token(XORASSIGN)) return true;
6259 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6263 static final private boolean jj_3R_190() {
6264 if (jj_scan_token(NEW)) return true;
6265 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6266 if (jj_3R_178()) return true;
6267 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6271 static final private boolean jj_3R_70() {
6272 if (jj_scan_token(ANDASSIGN)) return true;
6273 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6277 static final private boolean jj_3R_69() {
6278 if (jj_scan_token(RSIGNEDSHIFTASSIGN)) return true;
6279 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6283 static final private boolean jj_3R_68() {
6284 if (jj_scan_token(LSHIFTASSIGN)) return true;
6285 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6289 static final private boolean jj_3R_189() {
6290 if (jj_scan_token(IDENTIFIER)) return true;
6291 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6295 static final private boolean jj_3R_180() {
6302 if (jj_3R_191()) return true;
6303 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6304 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6305 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6309 static final private boolean jj_3R_67() {
6310 if (jj_scan_token(MINUSASSIGN)) return true;
6311 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6315 static final private boolean jj_3R_66() {
6316 if (jj_scan_token(PLUSASSIGN)) return true;
6317 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6321 static final private boolean jj_3R_65() {
6322 if (jj_scan_token(REMASSIGN)) return true;
6323 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6327 static final private boolean jj_3R_64() {
6328 if (jj_scan_token(SLASHASSIGN)) return true;
6329 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6333 static final private boolean jj_3R_63() {
6334 if (jj_scan_token(STARASSIGN)) return true;
6335 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6339 static final private boolean jj_3R_51() {
6366 if (jj_3R_74()) return true;
6367 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6368 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6369 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6370 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6371 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6372 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6373 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6374 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6375 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6376 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6377 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6378 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6379 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6383 static final private boolean jj_3R_62() {
6384 if (jj_scan_token(ASSIGN)) return true;
6385 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6389 static final private boolean jj_3R_182() {
6390 if (jj_scan_token(ARRAY)) return true;
6391 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6392 if (jj_3R_192()) return true;
6393 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6397 static final private boolean jj_3R_171() {
6398 if (jj_3R_182()) return true;
6399 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6403 static final private boolean jj_3R_181() {
6404 if (jj_3R_188()) return true;
6405 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6409 static final private boolean jj_3R_170() {
6410 if (jj_3R_180()) return true;
6411 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6415 if (jj_3R_181()) { jj_scanpos = xsp; break; }
6416 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6421 static final private boolean jj_3R_101() {
6422 if (jj_scan_token(ASSIGN)) return true;
6423 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6424 if (jj_3R_45()) return true;
6425 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6429 static final private boolean jj_3R_179() {
6430 if (jj_3R_188()) return true;
6431 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6435 static final private boolean jj_3R_42() {
6436 if (jj_3R_50()) return true;
6437 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6438 if (jj_3R_51()) return true;
6439 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6440 if (jj_3R_45()) return true;
6441 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6445 static final private boolean jj_3_3() {
6446 if (jj_3R_42()) return true;
6447 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6451 static final private boolean jj_3_5() {
6452 if (jj_scan_token(IDENTIFIER)) return true;
6453 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6454 if (jj_scan_token(STATICCLASSACCESS)) return true;
6455 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6456 if (jj_3R_178()) return true;
6457 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6461 if (jj_3R_179()) { jj_scanpos = xsp; break; }
6462 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6467 static final private boolean jj_3R_166() {
6474 if (jj_3R_171()) return true;
6475 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6476 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6477 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6481 static final private boolean jj_3R_56() {
6482 if (jj_3R_86()) return true;
6483 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6487 static final private boolean jj_3R_55() {
6488 if (jj_3R_42()) return true;
6489 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6493 static final private boolean jj_3R_54() {
6494 if (jj_3R_85()) return true;
6495 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6499 static final private boolean jj_3R_45() {
6508 if (jj_3R_56()) return true;
6509 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6510 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6511 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6512 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6516 static final private boolean jj_3R_53() {
6517 if (jj_3R_84()) return true;
6518 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6522 static final private boolean jj_3R_100() {
6523 if (jj_scan_token(COMMA)) return true;
6524 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6525 if (jj_3R_50()) return true;
6526 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6530 static final private boolean jj_3R_194() {
6531 if (jj_scan_token(DECR)) return true;
6532 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6536 static final private boolean jj_3R_193() {
6537 if (jj_scan_token(INCR)) return true;
6538 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6542 static final private boolean jj_3R_185() {
6547 if (jj_3R_194()) return true;
6548 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6549 } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6553 static final private boolean jj_3R_99() {
6554 if (jj_3R_50()) return true;
6555 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6559 static final private boolean jj_3R_168() {
6560 if (jj_3R_166()) return true;
6561 if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6564 if (jj_3R_185()) jj_scanpos = xsp;
6565 else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
6569 static private boolean jj_initialized_once = false;
6570 static public PHPParserTokenManager token_source;
6571 static SimpleCharStream jj_input_stream;
6572 static public Token token, jj_nt;
6573 static private int jj_ntk;
6574 static private Token jj_scanpos, jj_lastpos;
6575 static private int jj_la;
6576 static public boolean lookingAhead = false;
6577 static private boolean jj_semLA;
6578 static private int jj_gen;
6579 static final private int[] jj_la1 = new int[123];
6580 static private int[] jj_la1_0;
6581 static private int[] jj_la1_1;
6582 static private int[] jj_la1_2;
6583 static private int[] jj_la1_3;
6584 static private int[] jj_la1_4;
6592 private static void jj_la1_0() {
6593 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,0x4000000,0x4000000,0x0,0x4000000,0x0,0x0,0x4000000,0x4000000,0x0,0x0,0x0,0x0,0x4000000,0x0,0x4000000,0x0,0x0,0x34000000,0x34000000,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,0x0,0x34000000,0xfc800010,0xfc800010,0x1000000,0x2000000,0xfc800010,0x1000000,0x2000000,0xfc800010,0xfc800010,0xfc800010,0xfc800010,0xfc800010,0xfc800000,0xfc800000,0x4000000,0x34000000,0x4000000,0xfc800000,0xfc800000,0x4000000,0x0,0x34000000,0x34000000,};
6595 private static void jj_la1_1() {
6596 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,0xc30000,0xc30000,0x0,0xc30000,0x0,0x0,0xc30000,0x80000000,0x0,0x0,0x20,0x20,0x10000,0x10000,0x10000,0x0,0x20,0x80c30000,0x80c30000,0x20,0xc20000,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,0x900,0xc30000,0x21d7541f,0x21d7541f,0x0,0x0,0x21d7541f,0x0,0x0,0x21d7541f,0x21d7541f,0x21d7541f,0x21d7541f,0x21d7541f,0x21d7541f,0x21d7541f,0x10000,0xc30000,0x10000,0x21d7541f,0x21d7541f,0x10000,0x0,0xc30000,0xc30000,};
6598 private static void jj_la1_2() {
6599 jj_la1_2 = new int[] {0x804f0700,0x0,0x0,0x804f0700,0x0,0x804f0700,0x0,0x0,0x0,0x0,0x0,0x0,0x200,0x0,0x200,0x80000000,0x80000000,0x800c0000,0x0,0x804f0700,0x0,0x400000,0x0,0x400200,0x400000,0xff,0x0,0x804f0700,0x0,0x1000,0x20004000,0x20004000,0x40008000,0x40008000,0x0,0x800000,0x1000000,0x400000,0x0,0x0,0x0,0x0,0x1c000000,0x1c000000,0xc0000,0xc0000,0x2300000,0x2300000,0x804f0700,0x800f0700,0xc0000,0x800f0600,0x30000,0x400,0x80000200,0xff,0x30000,0x30000,0x0,0x0,0x200,0x200,0x200,0x200,0x0,0x804f07ff,0x804f07ff,0x0,0x80000000,0x804f0700,0x0,0x100,0x30300,0x804f0700,0x0,0x0,0x0,0x200,0x0,0x0,0x0,0x0,0x0,0x804f0700,0x804f0700,0x804f0700,0x804f0700,0x0,0x0,0x30000,0x30000,0x30200,0x2000,0x0,0x0,0x804f0700,0x804f0700,0x0,0x0,0x804f0700,0x804f0700,0x804f0700,0x0,0x0,0x804f0700,0x0,0x0,0x804f2700,0x804f0700,0x804f0700,0x804f0700,0x804f0700,0x804f0700,0x804f2700,0x30200,0x804f0700,0x30200,0x804f0700,0x804f2700,0x30200,0x0,0x804f0700,0x804f0700,};
6601 private static void jj_la1_3() {
6602 jj_la1_3 = new int[] {0x8a228,0x0,0x0,0x8a228,0x80000,0x8a228,0x0,0x0,0x0,0x100000,0x80000000,0x8000,0x0,0x8000,0x8200,0x8,0x8,0x228,0x0,0x2228,0x100000,0x0,0x100000,0x0,0x0,0x0,0x0,0x2228,0x80000000,0x0,0x0,0x0,0x0,0x0,0x200000,0x0,0x0,0x0,0x79000000,0x79000000,0x6c00000,0x6c00000,0x0,0x0,0x0,0x0,0x0,0x0,0x2228,0x2228,0x0,0x2228,0x0,0x0,0x2228,0x0,0x0,0x0,0x22000,0x22000,0x200,0x200,0x200,0x200,0x22000,0x2228,0x2228,0x20000,0x28,0x2228,0x100000,0x0,0x88200,0x8a228,0x0,0x0,0x0,0x0,0x100000,0x80000000,0x100000,0x100000,0x100000,0x8a228,0x8a228,0x8a228,0x8a228,0x100000,0x80000000,0x80000000,0x80000000,0x200,0x8000,0x0,0x0,0x8a228,0x8a228,0x0,0x0,0x2228,0x8a228,0x8a228,0x0,0x0,0x8a228,0x0,0x0,0x8a228,0x8a228,0x8a228,0x8a228,0x8a228,0x8a228,0x8a228,0x200,0x2228,0x200,0x8a228,0x8a228,0x200,0x100000,0x2228,0x2228,};
6604 private static void jj_la1_4() {
6605 jj_la1_4 = new int[] {0x1000,0x0,0x0,0x1000,0x0,0x1000,0x0,0x0,0x0,0x0,0x0,0x0,0x1000,0x0,0x1000,0x0,0x0,0x0,0x0,0x1000,0x0,0x0,0x0,0x1000,0x0,0x0,0x0,0x1000,0xfff,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1000,0x1000,0x0,0x1000,0x0,0x0,0x1000,0x0,0x0,0x0,0x0,0x0,0x1000,0x1000,0x1000,0x1000,0x0,0x1000,0x1000,0x0,0x0,0x1000,0x0,0x0,0x1000,0x1000,0x0,0x0,0x0,0x1000,0x0,0x0,0x0,0x0,0x0,0x1000,0x1000,0x1000,0x1000,0x0,0x0,0xfff,0xfff,0x1000,0x0,0x0,0x0,0x1000,0x1000,0x0,0x0,0x1000,0x1000,0x1000,0x0,0x0,0x1000,0x0,0x0,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x0,0x1000,0x1000,};
6607 static final private JJCalls[] jj_2_rtns = new JJCalls[8];
6608 static private boolean jj_rescan = false;
6609 static private int jj_gc = 0;
6611 public PHPParser(java.io.InputStream stream) {
6612 if (jj_initialized_once) {
6613 System.out.println("ERROR: Second call to constructor of static parser. You must");
6614 System.out.println(" either use ReInit() or set the JavaCC option STATIC to false");
6615 System.out.println(" during parser generation.");
6618 jj_initialized_once = true;
6619 jj_input_stream = new SimpleCharStream(stream, 1, 1);
6620 token_source = new PHPParserTokenManager(jj_input_stream);
6621 token = new Token();
6624 for (int i = 0; i < 123; i++) jj_la1[i] = -1;
6625 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
6628 static public void ReInit(java.io.InputStream stream) {
6629 jj_input_stream.ReInit(stream, 1, 1);
6630 token_source.ReInit(jj_input_stream);
6631 token = new Token();
6634 for (int i = 0; i < 123; i++) jj_la1[i] = -1;
6635 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
6638 public PHPParser(java.io.Reader stream) {
6639 if (jj_initialized_once) {
6640 System.out.println("ERROR: Second call to constructor of static parser. You must");
6641 System.out.println(" either use ReInit() or set the JavaCC option STATIC to false");
6642 System.out.println(" during parser generation.");
6645 jj_initialized_once = true;
6646 jj_input_stream = new SimpleCharStream(stream, 1, 1);
6647 token_source = new PHPParserTokenManager(jj_input_stream);
6648 token = new Token();
6651 for (int i = 0; i < 123; i++) jj_la1[i] = -1;
6652 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
6655 static public void ReInit(java.io.Reader stream) {
6656 jj_input_stream.ReInit(stream, 1, 1);
6657 token_source.ReInit(jj_input_stream);
6658 token = new Token();
6661 for (int i = 0; i < 123; i++) jj_la1[i] = -1;
6662 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
6665 public PHPParser(PHPParserTokenManager tm) {
6666 if (jj_initialized_once) {
6667 System.out.println("ERROR: Second call to constructor of static parser. You must");
6668 System.out.println(" either use ReInit() or set the JavaCC option STATIC to false");
6669 System.out.println(" during parser generation.");
6672 jj_initialized_once = true;
6674 token = new Token();
6677 for (int i = 0; i < 123; i++) jj_la1[i] = -1;
6678 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
6681 public void ReInit(PHPParserTokenManager tm) {
6683 token = new Token();
6686 for (int i = 0; i < 123; i++) jj_la1[i] = -1;
6687 for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
6690 static final private Token jj_consume_token(int kind) throws ParseException {
6692 if ((oldToken = token).next != null) token = token.next;
6693 else token = token.next = token_source.getNextToken();
6695 if (token.kind == kind) {
6697 if (++jj_gc > 100) {
6699 for (int i = 0; i < jj_2_rtns.length; i++) {
6700 JJCalls c = jj_2_rtns[i];
6702 if (c.gen < jj_gen) c.first = null;
6711 throw generateParseException();
6714 static final private boolean jj_scan_token(int kind) {
6715 if (jj_scanpos == jj_lastpos) {
6717 if (jj_scanpos.next == null) {
6718 jj_lastpos = jj_scanpos = jj_scanpos.next = token_source.getNextToken();
6720 jj_lastpos = jj_scanpos = jj_scanpos.next;
6723 jj_scanpos = jj_scanpos.next;
6726 int i = 0; Token tok = token;
6727 while (tok != null && tok != jj_scanpos) { i++; tok = tok.next; }
6728 if (tok != null) jj_add_error_token(kind, i);
6730 return (jj_scanpos.kind != kind);
6733 static final public Token getNextToken() {
6734 if (token.next != null) token = token.next;
6735 else token = token.next = token_source.getNextToken();
6741 static final public Token getToken(int index) {
6742 Token t = lookingAhead ? jj_scanpos : token;
6743 for (int i = 0; i < index; i++) {
6744 if (t.next != null) t = t.next;
6745 else t = t.next = token_source.getNextToken();
6750 static final private int jj_ntk() {
6751 if ((jj_nt=token.next) == null)
6752 return (jj_ntk = (token.next=token_source.getNextToken()).kind);
6754 return (jj_ntk = jj_nt.kind);
6757 static private java.util.Vector jj_expentries = new java.util.Vector();
6758 static private int[] jj_expentry;
6759 static private int jj_kind = -1;
6760 static private int[] jj_lasttokens = new int[100];
6761 static private int jj_endpos;
6763 static private void jj_add_error_token(int kind, int pos) {
6764 if (pos >= 100) return;
6765 if (pos == jj_endpos + 1) {
6766 jj_lasttokens[jj_endpos++] = kind;
6767 } else if (jj_endpos != 0) {
6768 jj_expentry = new int[jj_endpos];
6769 for (int i = 0; i < jj_endpos; i++) {
6770 jj_expentry[i] = jj_lasttokens[i];
6772 boolean exists = false;
6773 for (java.util.Enumeration enum = jj_expentries.elements(); enum.hasMoreElements();) {
6774 int[] oldentry = (int[])(enum.nextElement());
6775 if (oldentry.length == jj_expentry.length) {
6777 for (int i = 0; i < jj_expentry.length; i++) {
6778 if (oldentry[i] != jj_expentry[i]) {
6786 if (!exists) jj_expentries.addElement(jj_expentry);
6787 if (pos != 0) jj_lasttokens[(jj_endpos = pos) - 1] = kind;
6791 static public ParseException generateParseException() {
6792 jj_expentries.removeAllElements();
6793 boolean[] la1tokens = new boolean[141];
6794 for (int i = 0; i < 141; i++) {
6795 la1tokens[i] = false;
6798 la1tokens[jj_kind] = true;
6801 for (int i = 0; i < 123; i++) {
6802 if (jj_la1[i] == jj_gen) {
6803 for (int j = 0; j < 32; j++) {
6804 if ((jj_la1_0[i] & (1<<j)) != 0) {
6805 la1tokens[j] = true;
6807 if ((jj_la1_1[i] & (1<<j)) != 0) {
6808 la1tokens[32+j] = true;
6810 if ((jj_la1_2[i] & (1<<j)) != 0) {
6811 la1tokens[64+j] = true;
6813 if ((jj_la1_3[i] & (1<<j)) != 0) {
6814 la1tokens[96+j] = true;
6816 if ((jj_la1_4[i] & (1<<j)) != 0) {
6817 la1tokens[128+j] = true;
6822 for (int i = 0; i < 141; i++) {
6824 jj_expentry = new int[1];
6826 jj_expentries.addElement(jj_expentry);
6831 jj_add_error_token(0, 0);
6832 int[][] exptokseq = new int[jj_expentries.size()][];
6833 for (int i = 0; i < jj_expentries.size(); i++) {
6834 exptokseq[i] = (int[])jj_expentries.elementAt(i);
6836 return new ParseException(token, exptokseq, tokenImage);
6839 static final public void enable_tracing() {
6842 static final public void disable_tracing() {
6845 static final private void jj_rescan_token() {
6847 for (int i = 0; i < 8; i++) {
6848 JJCalls p = jj_2_rtns[i];
6850 if (p.gen > jj_gen) {
6851 jj_la = p.arg; jj_lastpos = jj_scanpos = p.first;
6853 case 0: jj_3_1(); break;
6854 case 1: jj_3_2(); break;
6855 case 2: jj_3_3(); break;
6856 case 3: jj_3_4(); break;
6857 case 4: jj_3_5(); break;
6858 case 5: jj_3_6(); break;
6859 case 6: jj_3_7(); break;
6860 case 7: jj_3_8(); break;
6864 } while (p != null);
6869 static final private void jj_save(int index, int xla) {
6870 JJCalls p = jj_2_rtns[index];
6871 while (p.gen > jj_gen) {
6872 if (p.next == null) { p = p.next = new JJCalls(); break; }
6875 p.gen = jj_gen + xla - jj_la; p.first = token; p.arg = xla;
6878 static final class JJCalls {