org.apache.commons.jexl2.parser.Parser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commons-jexl Show documentation
Show all versions of commons-jexl Show documentation
Jexl is an implementation of the JSTL Expression Language with extensions.
/* Generated By:JJTree&JavaCC: Do not edit this line. Parser.java */
package org.apache.commons.jexl2.parser;
import java.io.Reader;
import org.apache.commons.jexl2.JexlInfo;
public class Parser extends StringParser/*@bgen(jjtree)*/implements ParserTreeConstants, ParserConstants {/*@bgen(jjtree)*/
protected JJTParserState jjtree = new JJTParserState();public boolean ALLOW_REGISTERS = false;
public ASTJexlScript parse(Reader reader, JexlInfo info)
throws ParseException {
/*
* If registers are allowed, the default parser state has to be REGISTERS.
*/
if (ALLOW_REGISTERS) {
token_source.defaultLexState = REGISTERS;
}
ReInit(reader);
/*
* lets do the 'Unique Init' in here to be
* safe - it's a pain to remember
*/
ASTJexlScript tree = JexlScript();
tree.value = info;
return tree;
}
void jjtreeOpenNodeScope(Node n) {}
void jjtreeCloseNodeScope(Node n) throws ParseException {
if (n instanceof ASTAmbiguous && n.jjtGetNumChildren() > 0) {
Token tok = this.getToken(0);
StringBuilder strb = new StringBuilder("Ambiguous statement ");
if (tok != null) {
strb.append("@");
strb.append(tok.beginLine);
strb.append(":");
strb.append(tok.beginColumn);
}
strb.append(", missing ';' between expressions");
throw new ParseException(strb.toString());
}
}
/***************************************
* Statements
***************************************/
final public ASTJexlScript JexlScript() throws ParseException {
/*@bgen(jjtree) JexlScript */
ASTJexlScript jjtn000 = new ASTJexlScript(JJTJEXLSCRIPT);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
jjtreeOpenNodeScope(jjtn000);
try {
label_1:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case IF:
case FOR:
case FOREACH:
case WHILE:
case NEW:
case EMPTY:
case SIZE:
case NULL:
case TRUE:
case FALSE:
case LPAREN:
case LCURLY:
case LBRACKET:
case SEMICOL:
case not:
case minus:
case tilda:
case IDENTIFIER:
case REGISTER:
case INTEGER_LITERAL:
case FLOAT_LITERAL:
case STRING_LITERAL:
;
break;
default:
jj_la1[0] = jj_gen;
break label_1;
}
Statement();
}
jj_consume_token(0);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtreeCloseNodeScope(jjtn000);
{if (true) return jjtn000;}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
jjtreeCloseNodeScope(jjtn000);
}
}
throw new Error("Missing return statement in function");
}
final public void Statement() throws ParseException {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case SEMICOL:
jj_consume_token(SEMICOL);
break;
default:
jj_la1[1] = jj_gen;
if (jj_2_1(3)) {
Block();
} else {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case IF:
IfStatement();
break;
case FOR:
case FOREACH:
ForeachStatement();
break;
case WHILE:
WhileStatement();
break;
case NEW:
case EMPTY:
case SIZE:
case NULL:
case TRUE:
case FALSE:
case LPAREN:
case LCURLY:
case LBRACKET:
case not:
case minus:
case tilda:
case IDENTIFIER:
case REGISTER:
case INTEGER_LITERAL:
case FLOAT_LITERAL:
case STRING_LITERAL:
ExpressionStatement();
break;
default:
jj_la1[2] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
}
}
final public void Block() throws ParseException {
/*@bgen(jjtree) Block */
ASTBlock jjtn000 = new ASTBlock(JJTBLOCK);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
jjtreeOpenNodeScope(jjtn000);
try {
jj_consume_token(LCURLY);
label_2:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case IF:
case FOR:
case FOREACH:
case WHILE:
case NEW:
case EMPTY:
case SIZE:
case NULL:
case TRUE:
case FALSE:
case LPAREN:
case LCURLY:
case LBRACKET:
case SEMICOL:
case not:
case minus:
case tilda:
case IDENTIFIER:
case REGISTER:
case INTEGER_LITERAL:
case FLOAT_LITERAL:
case STRING_LITERAL:
;
break;
default:
jj_la1[3] = jj_gen;
break label_2;
}
Statement();
}
jj_consume_token(RCURLY);
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
jjtreeCloseNodeScope(jjtn000);
}
}
}
final public void ExpressionStatement() throws ParseException {
Expression();
label_3:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case NEW:
case EMPTY:
case SIZE:
case NULL:
case TRUE:
case FALSE:
case LPAREN:
case LCURLY:
case LBRACKET:
case not:
case minus:
case tilda:
case IDENTIFIER:
case REGISTER:
case INTEGER_LITERAL:
case FLOAT_LITERAL:
case STRING_LITERAL:
;
break;
default:
jj_la1[4] = jj_gen;
break label_3;
}
ASTAmbiguous jjtn001 = new ASTAmbiguous(JJTAMBIGUOUS);
boolean jjtc001 = true;
jjtree.openNodeScope(jjtn001);
jjtreeOpenNodeScope(jjtn001);
try {
Expression();
} catch (Throwable jjte001) {
if (jjtc001) {
jjtree.clearNodeScope(jjtn001);
jjtc001 = false;
} else {
jjtree.popNode();
}
if (jjte001 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte001;}
}
if (jjte001 instanceof ParseException) {
{if (true) throw (ParseException)jjte001;}
}
{if (true) throw (Error)jjte001;}
} finally {
if (jjtc001) {
jjtree.closeNodeScope(jjtn001, true);
jjtreeCloseNodeScope(jjtn001);
}
}
}
if (jj_2_2(2)) {
jj_consume_token(SEMICOL);
} else {
;
}
}
final public void IfStatement() throws ParseException {
/*@bgen(jjtree) IfStatement */
ASTIfStatement jjtn000 = new ASTIfStatement(JJTIFSTATEMENT);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
jjtreeOpenNodeScope(jjtn000);
try {
jj_consume_token(IF);
jj_consume_token(LPAREN);
Expression();
jj_consume_token(RPAREN);
Statement();
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case ELSE:
jj_consume_token(ELSE);
Statement();
break;
default:
jj_la1[5] = jj_gen;
;
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
jjtreeCloseNodeScope(jjtn000);
}
}
}
final public void WhileStatement() throws ParseException {
/*@bgen(jjtree) WhileStatement */
ASTWhileStatement jjtn000 = new ASTWhileStatement(JJTWHILESTATEMENT);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
jjtreeOpenNodeScope(jjtn000);
try {
jj_consume_token(WHILE);
jj_consume_token(LPAREN);
Expression();
jj_consume_token(RPAREN);
Statement();
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
jjtreeCloseNodeScope(jjtn000);
}
}
}
final public void ForeachStatement() throws ParseException {
/*@bgen(jjtree) ForeachStatement */
ASTForeachStatement jjtn000 = new ASTForeachStatement(JJTFOREACHSTATEMENT);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
jjtreeOpenNodeScope(jjtn000);
try {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case FOR:
jj_consume_token(FOR);
jj_consume_token(LPAREN);
Reference();
jj_consume_token(COLON);
Expression();
jj_consume_token(RPAREN);
Statement();
break;
case FOREACH:
jj_consume_token(FOREACH);
jj_consume_token(LPAREN);
Reference();
jj_consume_token(IN);
Expression();
jj_consume_token(RPAREN);
Statement();
break;
default:
jj_la1[6] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
jjtreeCloseNodeScope(jjtn000);
}
}
}
/***************************************
* Expression syntax
***************************************/
final public void Expression() throws ParseException {
if (jj_2_3(2147483647)) {
Assignment();
} else {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case NEW:
case EMPTY:
case SIZE:
case NULL:
case TRUE:
case FALSE:
case LPAREN:
case LCURLY:
case LBRACKET:
case not:
case minus:
case tilda:
case IDENTIFIER:
case REGISTER:
case INTEGER_LITERAL:
case FLOAT_LITERAL:
case STRING_LITERAL:
ConditionalExpression();
break;
default:
jj_la1[7] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
}
final public void Assignment() throws ParseException {
/*@bgen(jjtree) #Assignment( 2) */
ASTAssignment jjtn000 = new ASTAssignment(JJTASSIGNMENT);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
jjtreeOpenNodeScope(jjtn000);
try {
Reference();
jj_consume_token(assign);
Expression();
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, 2);
jjtreeCloseNodeScope(jjtn000);
}
}
}
/***************************************
* Conditional & relational
***************************************/
final public void ConditionalExpression() throws ParseException {
ConditionalOrExpression();
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case QMARK:
case ELVIS:
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case QMARK:
jj_consume_token(QMARK);
Expression();
jj_consume_token(COLON);
ASTTernaryNode jjtn001 = new ASTTernaryNode(JJTTERNARYNODE);
boolean jjtc001 = true;
jjtree.openNodeScope(jjtn001);
jjtreeOpenNodeScope(jjtn001);
try {
Expression();
} catch (Throwable jjte001) {
if (jjtc001) {
jjtree.clearNodeScope(jjtn001);
jjtc001 = false;
} else {
jjtree.popNode();
}
if (jjte001 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte001;}
}
if (jjte001 instanceof ParseException) {
{if (true) throw (ParseException)jjte001;}
}
{if (true) throw (Error)jjte001;}
} finally {
if (jjtc001) {
jjtree.closeNodeScope(jjtn001, 3);
jjtreeCloseNodeScope(jjtn001);
}
}
break;
case ELVIS:
jj_consume_token(ELVIS);
ASTTernaryNode jjtn002 = new ASTTernaryNode(JJTTERNARYNODE);
boolean jjtc002 = true;
jjtree.openNodeScope(jjtn002);
jjtreeOpenNodeScope(jjtn002);
try {
Expression();
} catch (Throwable jjte002) {
if (jjtc002) {
jjtree.clearNodeScope(jjtn002);
jjtc002 = false;
} else {
jjtree.popNode();
}
if (jjte002 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte002;}
}
if (jjte002 instanceof ParseException) {
{if (true) throw (ParseException)jjte002;}
}
{if (true) throw (Error)jjte002;}
} finally {
if (jjtc002) {
jjtree.closeNodeScope(jjtn002, 2);
jjtreeCloseNodeScope(jjtn002);
}
}
break;
default:
jj_la1[8] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
break;
default:
jj_la1[9] = jj_gen;
;
}
}
final public void ConditionalOrExpression() throws ParseException {
ConditionalAndExpression();
label_4:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case OR:
;
break;
default:
jj_la1[10] = jj_gen;
break label_4;
}
jj_consume_token(OR);
ASTOrNode jjtn001 = new ASTOrNode(JJTORNODE);
boolean jjtc001 = true;
jjtree.openNodeScope(jjtn001);
jjtreeOpenNodeScope(jjtn001);
try {
ConditionalAndExpression();
} catch (Throwable jjte001) {
if (jjtc001) {
jjtree.clearNodeScope(jjtn001);
jjtc001 = false;
} else {
jjtree.popNode();
}
if (jjte001 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte001;}
}
if (jjte001 instanceof ParseException) {
{if (true) throw (ParseException)jjte001;}
}
{if (true) throw (Error)jjte001;}
} finally {
if (jjtc001) {
jjtree.closeNodeScope(jjtn001, 2);
jjtreeCloseNodeScope(jjtn001);
}
}
}
}
final public void ConditionalAndExpression() throws ParseException {
InclusiveOrExpression();
label_5:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case AND:
;
break;
default:
jj_la1[11] = jj_gen;
break label_5;
}
jj_consume_token(AND);
ASTAndNode jjtn001 = new ASTAndNode(JJTANDNODE);
boolean jjtc001 = true;
jjtree.openNodeScope(jjtn001);
jjtreeOpenNodeScope(jjtn001);
try {
InclusiveOrExpression();
} catch (Throwable jjte001) {
if (jjtc001) {
jjtree.clearNodeScope(jjtn001);
jjtc001 = false;
} else {
jjtree.popNode();
}
if (jjte001 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte001;}
}
if (jjte001 instanceof ParseException) {
{if (true) throw (ParseException)jjte001;}
}
{if (true) throw (Error)jjte001;}
} finally {
if (jjtc001) {
jjtree.closeNodeScope(jjtn001, 2);
jjtreeCloseNodeScope(jjtn001);
}
}
}
}
final public void InclusiveOrExpression() throws ParseException {
ExclusiveOrExpression();
label_6:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case or:
;
break;
default:
jj_la1[12] = jj_gen;
break label_6;
}
jj_consume_token(or);
ASTBitwiseOrNode jjtn001 = new ASTBitwiseOrNode(JJTBITWISEORNODE);
boolean jjtc001 = true;
jjtree.openNodeScope(jjtn001);
jjtreeOpenNodeScope(jjtn001);
try {
ExclusiveOrExpression();
} catch (Throwable jjte001) {
if (jjtc001) {
jjtree.clearNodeScope(jjtn001);
jjtc001 = false;
} else {
jjtree.popNode();
}
if (jjte001 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte001;}
}
if (jjte001 instanceof ParseException) {
{if (true) throw (ParseException)jjte001;}
}
{if (true) throw (Error)jjte001;}
} finally {
if (jjtc001) {
jjtree.closeNodeScope(jjtn001, 2);
jjtreeCloseNodeScope(jjtn001);
}
}
}
}
final public void ExclusiveOrExpression() throws ParseException {
AndExpression();
label_7:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case xor:
;
break;
default:
jj_la1[13] = jj_gen;
break label_7;
}
jj_consume_token(xor);
ASTBitwiseXorNode jjtn001 = new ASTBitwiseXorNode(JJTBITWISEXORNODE);
boolean jjtc001 = true;
jjtree.openNodeScope(jjtn001);
jjtreeOpenNodeScope(jjtn001);
try {
AndExpression();
} catch (Throwable jjte001) {
if (jjtc001) {
jjtree.clearNodeScope(jjtn001);
jjtc001 = false;
} else {
jjtree.popNode();
}
if (jjte001 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte001;}
}
if (jjte001 instanceof ParseException) {
{if (true) throw (ParseException)jjte001;}
}
{if (true) throw (Error)jjte001;}
} finally {
if (jjtc001) {
jjtree.closeNodeScope(jjtn001, 2);
jjtreeCloseNodeScope(jjtn001);
}
}
}
}
final public void AndExpression() throws ParseException {
EqualityExpression();
label_8:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case and:
;
break;
default:
jj_la1[14] = jj_gen;
break label_8;
}
jj_consume_token(and);
ASTBitwiseAndNode jjtn001 = new ASTBitwiseAndNode(JJTBITWISEANDNODE);
boolean jjtc001 = true;
jjtree.openNodeScope(jjtn001);
jjtreeOpenNodeScope(jjtn001);
try {
EqualityExpression();
} catch (Throwable jjte001) {
if (jjtc001) {
jjtree.clearNodeScope(jjtn001);
jjtc001 = false;
} else {
jjtree.popNode();
}
if (jjte001 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte001;}
}
if (jjte001 instanceof ParseException) {
{if (true) throw (ParseException)jjte001;}
}
{if (true) throw (Error)jjte001;}
} finally {
if (jjtc001) {
jjtree.closeNodeScope(jjtn001, 2);
jjtreeCloseNodeScope(jjtn001);
}
}
}
}
final public void EqualityExpression() throws ParseException {
RelationalExpression();
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case eq:
case ne:
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case eq:
jj_consume_token(eq);
ASTEQNode jjtn001 = new ASTEQNode(JJTEQNODE);
boolean jjtc001 = true;
jjtree.openNodeScope(jjtn001);
jjtreeOpenNodeScope(jjtn001);
try {
RelationalExpression();
} catch (Throwable jjte001) {
if (jjtc001) {
jjtree.clearNodeScope(jjtn001);
jjtc001 = false;
} else {
jjtree.popNode();
}
if (jjte001 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte001;}
}
if (jjte001 instanceof ParseException) {
{if (true) throw (ParseException)jjte001;}
}
{if (true) throw (Error)jjte001;}
} finally {
if (jjtc001) {
jjtree.closeNodeScope(jjtn001, 2);
jjtreeCloseNodeScope(jjtn001);
}
}
break;
case ne:
jj_consume_token(ne);
ASTNENode jjtn002 = new ASTNENode(JJTNENODE);
boolean jjtc002 = true;
jjtree.openNodeScope(jjtn002);
jjtreeOpenNodeScope(jjtn002);
try {
RelationalExpression();
} catch (Throwable jjte002) {
if (jjtc002) {
jjtree.clearNodeScope(jjtn002);
jjtc002 = false;
} else {
jjtree.popNode();
}
if (jjte002 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte002;}
}
if (jjte002 instanceof ParseException) {
{if (true) throw (ParseException)jjte002;}
}
{if (true) throw (Error)jjte002;}
} finally {
if (jjtc002) {
jjtree.closeNodeScope(jjtn002, 2);
jjtreeCloseNodeScope(jjtn002);
}
}
break;
default:
jj_la1[15] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
break;
default:
jj_la1[16] = jj_gen;
;
}
}
final public void RelationalExpression() throws ParseException {
AdditiveExpression();
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case req:
case rne:
case gt:
case ge:
case lt:
case le:
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case lt:
jj_consume_token(lt);
ASTLTNode jjtn001 = new ASTLTNode(JJTLTNODE);
boolean jjtc001 = true;
jjtree.openNodeScope(jjtn001);
jjtreeOpenNodeScope(jjtn001);
try {
AdditiveExpression();
} catch (Throwable jjte001) {
if (jjtc001) {
jjtree.clearNodeScope(jjtn001);
jjtc001 = false;
} else {
jjtree.popNode();
}
if (jjte001 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte001;}
}
if (jjte001 instanceof ParseException) {
{if (true) throw (ParseException)jjte001;}
}
{if (true) throw (Error)jjte001;}
} finally {
if (jjtc001) {
jjtree.closeNodeScope(jjtn001, 2);
jjtreeCloseNodeScope(jjtn001);
}
}
break;
case gt:
jj_consume_token(gt);
ASTGTNode jjtn002 = new ASTGTNode(JJTGTNODE);
boolean jjtc002 = true;
jjtree.openNodeScope(jjtn002);
jjtreeOpenNodeScope(jjtn002);
try {
AdditiveExpression();
} catch (Throwable jjte002) {
if (jjtc002) {
jjtree.clearNodeScope(jjtn002);
jjtc002 = false;
} else {
jjtree.popNode();
}
if (jjte002 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte002;}
}
if (jjte002 instanceof ParseException) {
{if (true) throw (ParseException)jjte002;}
}
{if (true) throw (Error)jjte002;}
} finally {
if (jjtc002) {
jjtree.closeNodeScope(jjtn002, 2);
jjtreeCloseNodeScope(jjtn002);
}
}
break;
case le:
jj_consume_token(le);
ASTLENode jjtn003 = new ASTLENode(JJTLENODE);
boolean jjtc003 = true;
jjtree.openNodeScope(jjtn003);
jjtreeOpenNodeScope(jjtn003);
try {
AdditiveExpression();
} catch (Throwable jjte003) {
if (jjtc003) {
jjtree.clearNodeScope(jjtn003);
jjtc003 = false;
} else {
jjtree.popNode();
}
if (jjte003 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte003;}
}
if (jjte003 instanceof ParseException) {
{if (true) throw (ParseException)jjte003;}
}
{if (true) throw (Error)jjte003;}
} finally {
if (jjtc003) {
jjtree.closeNodeScope(jjtn003, 2);
jjtreeCloseNodeScope(jjtn003);
}
}
break;
case ge:
jj_consume_token(ge);
ASTGENode jjtn004 = new ASTGENode(JJTGENODE);
boolean jjtc004 = true;
jjtree.openNodeScope(jjtn004);
jjtreeOpenNodeScope(jjtn004);
try {
AdditiveExpression();
} catch (Throwable jjte004) {
if (jjtc004) {
jjtree.clearNodeScope(jjtn004);
jjtc004 = false;
} else {
jjtree.popNode();
}
if (jjte004 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte004;}
}
if (jjte004 instanceof ParseException) {
{if (true) throw (ParseException)jjte004;}
}
{if (true) throw (Error)jjte004;}
} finally {
if (jjtc004) {
jjtree.closeNodeScope(jjtn004, 2);
jjtreeCloseNodeScope(jjtn004);
}
}
break;
case req:
jj_consume_token(req);
ASTERNode jjtn005 = new ASTERNode(JJTERNODE);
boolean jjtc005 = true;
jjtree.openNodeScope(jjtn005);
jjtreeOpenNodeScope(jjtn005);
try {
AdditiveExpression();
} catch (Throwable jjte005) {
if (jjtc005) {
jjtree.clearNodeScope(jjtn005);
jjtc005 = false;
} else {
jjtree.popNode();
}
if (jjte005 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte005;}
}
if (jjte005 instanceof ParseException) {
{if (true) throw (ParseException)jjte005;}
}
{if (true) throw (Error)jjte005;}
} finally {
if (jjtc005) {
jjtree.closeNodeScope(jjtn005, 2);
jjtreeCloseNodeScope(jjtn005);
}
}
break;
case rne:
jj_consume_token(rne);
ASTNRNode jjtn006 = new ASTNRNode(JJTNRNODE);
boolean jjtc006 = true;
jjtree.openNodeScope(jjtn006);
jjtreeOpenNodeScope(jjtn006);
try {
AdditiveExpression();
} catch (Throwable jjte006) {
if (jjtc006) {
jjtree.clearNodeScope(jjtn006);
jjtc006 = false;
} else {
jjtree.popNode();
}
if (jjte006 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte006;}
}
if (jjte006 instanceof ParseException) {
{if (true) throw (ParseException)jjte006;}
}
{if (true) throw (Error)jjte006;}
} finally {
if (jjtc006) {
jjtree.closeNodeScope(jjtn006, 2);
jjtreeCloseNodeScope(jjtn006);
}
}
break;
default:
jj_la1[17] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
break;
default:
jj_la1[18] = jj_gen;
;
}
}
/***************************************
* Arithmetic
***************************************/
final public void AdditiveExpression() throws ParseException {
/*@bgen(jjtree) #AdditiveNode(> 1) */
ASTAdditiveNode jjtn000 = new ASTAdditiveNode(JJTADDITIVENODE);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
jjtreeOpenNodeScope(jjtn000);
try {
MultiplicativeExpression();
label_9:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case plus:
case minus:
;
break;
default:
jj_la1[19] = jj_gen;
break label_9;
}
AdditiveOperator();
MultiplicativeExpression();
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, jjtree.nodeArity() > 1);
jjtreeCloseNodeScope(jjtn000);
}
}
}
final public void AdditiveOperator() throws ParseException {
/*@bgen(jjtree) AdditiveOperator */
ASTAdditiveOperator jjtn000 = new ASTAdditiveOperator(JJTADDITIVEOPERATOR);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
jjtreeOpenNodeScope(jjtn000);
try {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case plus:
jj_consume_token(plus);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtreeCloseNodeScope(jjtn000);
jjtn000.image = "+";
break;
case minus:
jj_consume_token(minus);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtreeCloseNodeScope(jjtn000);
jjtn000.image = "-";
break;
default:
jj_la1[20] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
jjtreeCloseNodeScope(jjtn000);
}
}
}
final public void MultiplicativeExpression() throws ParseException {
UnaryExpression();
label_10:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case mod:
case div:
case mult:
;
break;
default:
jj_la1[21] = jj_gen;
break label_10;
}
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case mult:
jj_consume_token(mult);
ASTMulNode jjtn001 = new ASTMulNode(JJTMULNODE);
boolean jjtc001 = true;
jjtree.openNodeScope(jjtn001);
jjtreeOpenNodeScope(jjtn001);
try {
UnaryExpression();
} catch (Throwable jjte001) {
if (jjtc001) {
jjtree.clearNodeScope(jjtn001);
jjtc001 = false;
} else {
jjtree.popNode();
}
if (jjte001 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte001;}
}
if (jjte001 instanceof ParseException) {
{if (true) throw (ParseException)jjte001;}
}
{if (true) throw (Error)jjte001;}
} finally {
if (jjtc001) {
jjtree.closeNodeScope(jjtn001, 2);
jjtreeCloseNodeScope(jjtn001);
}
}
break;
case div:
jj_consume_token(div);
ASTDivNode jjtn002 = new ASTDivNode(JJTDIVNODE);
boolean jjtc002 = true;
jjtree.openNodeScope(jjtn002);
jjtreeOpenNodeScope(jjtn002);
try {
UnaryExpression();
} catch (Throwable jjte002) {
if (jjtc002) {
jjtree.clearNodeScope(jjtn002);
jjtc002 = false;
} else {
jjtree.popNode();
}
if (jjte002 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte002;}
}
if (jjte002 instanceof ParseException) {
{if (true) throw (ParseException)jjte002;}
}
{if (true) throw (Error)jjte002;}
} finally {
if (jjtc002) {
jjtree.closeNodeScope(jjtn002, 2);
jjtreeCloseNodeScope(jjtn002);
}
}
break;
case mod:
jj_consume_token(mod);
ASTModNode jjtn003 = new ASTModNode(JJTMODNODE);
boolean jjtc003 = true;
jjtree.openNodeScope(jjtn003);
jjtreeOpenNodeScope(jjtn003);
try {
UnaryExpression();
} catch (Throwable jjte003) {
if (jjtc003) {
jjtree.clearNodeScope(jjtn003);
jjtc003 = false;
} else {
jjtree.popNode();
}
if (jjte003 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte003;}
}
if (jjte003 instanceof ParseException) {
{if (true) throw (ParseException)jjte003;}
}
{if (true) throw (Error)jjte003;}
} finally {
if (jjtc003) {
jjtree.closeNodeScope(jjtn003, 2);
jjtreeCloseNodeScope(jjtn003);
}
}
break;
default:
jj_la1[22] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
}
final public void UnaryExpression() throws ParseException {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case minus:
jj_consume_token(minus);
ASTUnaryMinusNode jjtn001 = new ASTUnaryMinusNode(JJTUNARYMINUSNODE);
boolean jjtc001 = true;
jjtree.openNodeScope(jjtn001);
jjtreeOpenNodeScope(jjtn001);
try {
UnaryExpression();
} catch (Throwable jjte001) {
if (jjtc001) {
jjtree.clearNodeScope(jjtn001);
jjtc001 = false;
} else {
jjtree.popNode();
}
if (jjte001 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte001;}
}
if (jjte001 instanceof ParseException) {
{if (true) throw (ParseException)jjte001;}
}
{if (true) throw (Error)jjte001;}
} finally {
if (jjtc001) {
jjtree.closeNodeScope(jjtn001, 1);
jjtreeCloseNodeScope(jjtn001);
}
}
break;
case tilda:
jj_consume_token(tilda);
ASTBitwiseComplNode jjtn002 = new ASTBitwiseComplNode(JJTBITWISECOMPLNODE);
boolean jjtc002 = true;
jjtree.openNodeScope(jjtn002);
jjtreeOpenNodeScope(jjtn002);
try {
UnaryExpression();
} catch (Throwable jjte002) {
if (jjtc002) {
jjtree.clearNodeScope(jjtn002);
jjtc002 = false;
} else {
jjtree.popNode();
}
if (jjte002 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte002;}
}
if (jjte002 instanceof ParseException) {
{if (true) throw (ParseException)jjte002;}
}
{if (true) throw (Error)jjte002;}
} finally {
if (jjtc002) {
jjtree.closeNodeScope(jjtn002, 1);
jjtreeCloseNodeScope(jjtn002);
}
}
break;
case not:
jj_consume_token(not);
ASTNotNode jjtn003 = new ASTNotNode(JJTNOTNODE);
boolean jjtc003 = true;
jjtree.openNodeScope(jjtn003);
jjtreeOpenNodeScope(jjtn003);
try {
UnaryExpression();
} catch (Throwable jjte003) {
if (jjtc003) {
jjtree.clearNodeScope(jjtn003);
jjtc003 = false;
} else {
jjtree.popNode();
}
if (jjte003 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte003;}
}
if (jjte003 instanceof ParseException) {
{if (true) throw (ParseException)jjte003;}
}
{if (true) throw (Error)jjte003;}
} finally {
if (jjtc003) {
jjtree.closeNodeScope(jjtn003, 1);
jjtreeCloseNodeScope(jjtn003);
}
}
break;
case NEW:
case EMPTY:
case SIZE:
case NULL:
case TRUE:
case FALSE:
case LPAREN:
case LCURLY:
case LBRACKET:
case IDENTIFIER:
case REGISTER:
case INTEGER_LITERAL:
case FLOAT_LITERAL:
case STRING_LITERAL:
PrimaryExpression();
break;
default:
jj_la1[23] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
/***************************************
* Identifier & Literals
***************************************/
final public void Identifier() throws ParseException {
/*@bgen(jjtree) Identifier */
ASTIdentifier jjtn000 = new ASTIdentifier(JJTIDENTIFIER);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
jjtreeOpenNodeScope(jjtn000);Token t;
try {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case IDENTIFIER:
t = jj_consume_token(IDENTIFIER);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtreeCloseNodeScope(jjtn000);
jjtn000.image = t.image;
break;
case REGISTER:
t = jj_consume_token(REGISTER);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtreeCloseNodeScope(jjtn000);
jjtn000.image = t.image;
break;
default:
jj_la1[24] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
jjtreeCloseNodeScope(jjtn000);
}
}
}
final public void Literal() throws ParseException {
Token t;
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case INTEGER_LITERAL:
IntegerLiteral();
break;
case FLOAT_LITERAL:
FloatLiteral();
break;
case TRUE:
case FALSE:
BooleanLiteral();
break;
case STRING_LITERAL:
StringLiteral();
break;
case NULL:
NullLiteral();
break;
default:
jj_la1[25] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
final public void NullLiteral() throws ParseException {
/*@bgen(jjtree) NullLiteral */
ASTNullLiteral jjtn000 = new ASTNullLiteral(JJTNULLLITERAL);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
jjtreeOpenNodeScope(jjtn000);
try {
jj_consume_token(NULL);
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
jjtreeCloseNodeScope(jjtn000);
}
}
}
final public void BooleanLiteral() throws ParseException {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case TRUE:
ASTTrueNode jjtn001 = new ASTTrueNode(JJTTRUENODE);
boolean jjtc001 = true;
jjtree.openNodeScope(jjtn001);
jjtreeOpenNodeScope(jjtn001);
try {
jj_consume_token(TRUE);
} finally {
if (jjtc001) {
jjtree.closeNodeScope(jjtn001, true);
jjtreeCloseNodeScope(jjtn001);
}
}
break;
case FALSE:
ASTFalseNode jjtn002 = new ASTFalseNode(JJTFALSENODE);
boolean jjtc002 = true;
jjtree.openNodeScope(jjtn002);
jjtreeOpenNodeScope(jjtn002);
try {
jj_consume_token(FALSE);
} finally {
if (jjtc002) {
jjtree.closeNodeScope(jjtn002, true);
jjtreeCloseNodeScope(jjtn002);
}
}
break;
default:
jj_la1[26] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
final public void IntegerLiteral() throws ParseException {
/*@bgen(jjtree) IntegerLiteral */
ASTIntegerLiteral jjtn000 = new ASTIntegerLiteral(JJTINTEGERLITERAL);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
jjtreeOpenNodeScope(jjtn000);Token t;
try {
t = jj_consume_token(INTEGER_LITERAL);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtreeCloseNodeScope(jjtn000);
jjtn000.image = t.image; jjtn000.literal = Integer.valueOf(t.image);
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
jjtreeCloseNodeScope(jjtn000);
}
}
}
final public void FloatLiteral() throws ParseException {
/*@bgen(jjtree) FloatLiteral */
ASTFloatLiteral jjtn000 = new ASTFloatLiteral(JJTFLOATLITERAL);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
jjtreeOpenNodeScope(jjtn000);Token t;
try {
t = jj_consume_token(FLOAT_LITERAL);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtreeCloseNodeScope(jjtn000);
jjtn000.image = t.image; jjtn000.literal = Float.valueOf(t.image);
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
jjtreeCloseNodeScope(jjtn000);
}
}
}
final public void StringLiteral() throws ParseException {
/*@bgen(jjtree) StringLiteral */
ASTStringLiteral jjtn000 = new ASTStringLiteral(JJTSTRINGLITERAL);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
jjtreeOpenNodeScope(jjtn000);Token t;
try {
t = jj_consume_token(STRING_LITERAL);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtreeCloseNodeScope(jjtn000);
jjtn000.image = Parser.buildString(t.image, true);
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
jjtreeCloseNodeScope(jjtn000);
}
}
}
final public void ArrayLiteral() throws ParseException {
/*@bgen(jjtree) ArrayLiteral */
ASTArrayLiteral jjtn000 = new ASTArrayLiteral(JJTARRAYLITERAL);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
jjtreeOpenNodeScope(jjtn000);
try {
jj_consume_token(LBRACKET);
Expression();
label_11:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case COMMA:
;
break;
default:
jj_la1[27] = jj_gen;
break label_11;
}
jj_consume_token(COMMA);
Expression();
}
jj_consume_token(RBRACKET);
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
jjtreeCloseNodeScope(jjtn000);
}
}
}
final public void MapLiteral() throws ParseException {
/*@bgen(jjtree) MapLiteral */
ASTMapLiteral jjtn000 = new ASTMapLiteral(JJTMAPLITERAL);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
jjtreeOpenNodeScope(jjtn000);
try {
jj_consume_token(LCURLY);
MapEntry();
label_12:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case COMMA:
;
break;
default:
jj_la1[28] = jj_gen;
break label_12;
}
jj_consume_token(COMMA);
MapEntry();
}
jj_consume_token(RCURLY);
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
jjtreeCloseNodeScope(jjtn000);
}
}
}
final public void MapEntry() throws ParseException {
/*@bgen(jjtree) MapEntry */
ASTMapEntry jjtn000 = new ASTMapEntry(JJTMAPENTRY);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
jjtreeOpenNodeScope(jjtn000);
try {
Expression();
jj_consume_token(COLON);
Expression();
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
jjtreeCloseNodeScope(jjtn000);
}
}
}
/***************************************
* Functions & Methods
***************************************/
final public void EmptyFunction() throws ParseException {
/*@bgen(jjtree) EmptyFunction */
ASTEmptyFunction jjtn000 = new ASTEmptyFunction(JJTEMPTYFUNCTION);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
jjtreeOpenNodeScope(jjtn000);
try {
if (jj_2_4(3)) {
jj_consume_token(EMPTY);
jj_consume_token(LPAREN);
Expression();
jj_consume_token(RPAREN);
} else {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case EMPTY:
jj_consume_token(EMPTY);
Reference();
break;
default:
jj_la1[29] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
jjtreeCloseNodeScope(jjtn000);
}
}
}
final public void SizeFunction() throws ParseException {
/*@bgen(jjtree) SizeFunction */
ASTSizeFunction jjtn000 = new ASTSizeFunction(JJTSIZEFUNCTION);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
jjtreeOpenNodeScope(jjtn000);
try {
jj_consume_token(SIZE);
jj_consume_token(LPAREN);
Expression();
jj_consume_token(RPAREN);
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
jjtreeCloseNodeScope(jjtn000);
}
}
}
final public void Function() throws ParseException {
/*@bgen(jjtree) FunctionNode */
ASTFunctionNode jjtn000 = new ASTFunctionNode(JJTFUNCTIONNODE);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
jjtreeOpenNodeScope(jjtn000);
try {
Identifier();
jj_consume_token(COLON);
Identifier();
jj_consume_token(LPAREN);
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case NEW:
case EMPTY:
case SIZE:
case NULL:
case TRUE:
case FALSE:
case LPAREN:
case LCURLY:
case LBRACKET:
case not:
case minus:
case tilda:
case IDENTIFIER:
case REGISTER:
case INTEGER_LITERAL:
case FLOAT_LITERAL:
case STRING_LITERAL:
Expression();
label_13:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case COMMA:
;
break;
default:
jj_la1[30] = jj_gen;
break label_13;
}
jj_consume_token(COMMA);
Expression();
}
break;
default:
jj_la1[31] = jj_gen;
;
}
jj_consume_token(RPAREN);
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
jjtreeCloseNodeScope(jjtn000);
}
}
}
final public void Method() throws ParseException {
/*@bgen(jjtree) MethodNode */
ASTMethodNode jjtn000 = new ASTMethodNode(JJTMETHODNODE);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
jjtreeOpenNodeScope(jjtn000);
try {
Identifier();
jj_consume_token(LPAREN);
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case NEW:
case EMPTY:
case SIZE:
case NULL:
case TRUE:
case FALSE:
case LPAREN:
case LCURLY:
case LBRACKET:
case not:
case minus:
case tilda:
case IDENTIFIER:
case REGISTER:
case INTEGER_LITERAL:
case FLOAT_LITERAL:
case STRING_LITERAL:
Expression();
label_14:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case COMMA:
;
break;
default:
jj_la1[32] = jj_gen;
break label_14;
}
jj_consume_token(COMMA);
Expression();
}
break;
default:
jj_la1[33] = jj_gen;
;
}
jj_consume_token(RPAREN);
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
jjtreeCloseNodeScope(jjtn000);
}
}
}
final public void AnyMethod() throws ParseException {
if (jj_2_5(2147483647)) {
SizeMethod();
} else if (jj_2_6(2147483647)) {
Method();
} else {
jj_consume_token(-1);
throw new ParseException();
}
}
final public void SizeMethod() throws ParseException {
/*@bgen(jjtree) SizeMethod */
ASTSizeMethod jjtn000 = new ASTSizeMethod(JJTSIZEMETHOD);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
jjtreeOpenNodeScope(jjtn000);
try {
jj_consume_token(SIZE);
jj_consume_token(LPAREN);
jj_consume_token(RPAREN);
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
jjtreeCloseNodeScope(jjtn000);
}
}
}
final public void Constructor() throws ParseException {
/*@bgen(jjtree) #ConstructorNode(true) */
ASTConstructorNode jjtn000 = new ASTConstructorNode(JJTCONSTRUCTORNODE);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
jjtreeOpenNodeScope(jjtn000);
try {
jj_consume_token(NEW);
jj_consume_token(LPAREN);
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case NEW:
case EMPTY:
case SIZE:
case NULL:
case TRUE:
case FALSE:
case LPAREN:
case LCURLY:
case LBRACKET:
case not:
case minus:
case tilda:
case IDENTIFIER:
case REGISTER:
case INTEGER_LITERAL:
case FLOAT_LITERAL:
case STRING_LITERAL:
Expression();
label_15:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case COMMA:
;
break;
default:
jj_la1[34] = jj_gen;
break label_15;
}
jj_consume_token(COMMA);
Expression();
}
break;
default:
jj_la1[35] = jj_gen;
;
}
jj_consume_token(RPAREN);
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
jjtreeCloseNodeScope(jjtn000);
}
}
}
/***************************************
* References
***************************************/
final public void PrimaryExpression() throws ParseException {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case NULL:
case TRUE:
case FALSE:
case INTEGER_LITERAL:
case FLOAT_LITERAL:
case STRING_LITERAL:
Literal();
break;
default:
jj_la1[36] = jj_gen;
if (jj_2_7(3)) {
Reference();
} else if (jj_2_8(2147483647)) {
jj_consume_token(LPAREN);
Expression();
jj_consume_token(RPAREN);
} else if (jj_2_9(2147483647)) {
EmptyFunction();
} else if (jj_2_10(2147483647)) {
SizeFunction();
} else if (jj_2_11(2147483647)) {
Constructor();
} else if (jj_2_12(2147483647)) {
MapLiteral();
} else if (jj_2_13(2147483647)) {
ArrayLiteral();
} else {
jj_consume_token(-1);
throw new ParseException();
}
}
}
final public void ArrayAccess() throws ParseException {
/*@bgen(jjtree) ArrayAccess */
ASTArrayAccess jjtn000 = new ASTArrayAccess(JJTARRAYACCESS);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
jjtreeOpenNodeScope(jjtn000);
try {
Identifier();
label_16:
while (true) {
jj_consume_token(LBRACKET);
Expression();
jj_consume_token(RBRACKET);
if (jj_2_14(2)) {
;
} else {
break label_16;
}
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
jjtreeCloseNodeScope(jjtn000);
}
}
}
final public void DotReference() throws ParseException {
label_17:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case DOT:
;
break;
default:
jj_la1[37] = jj_gen;
break label_17;
}
jj_consume_token(DOT);
if (jj_2_16(2147483647)) {
ArrayAccess();
} else {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case SIZE:
case IDENTIFIER:
case REGISTER:
case INTEGER_LITERAL:
if (jj_2_15(3)) {
AnyMethod();
} else {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case IDENTIFIER:
case REGISTER:
Identifier();
break;
case INTEGER_LITERAL:
IntegerLiteral();
break;
default:
jj_la1[38] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
break;
default:
jj_la1[39] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
}
}
final public void Reference() throws ParseException {
/*@bgen(jjtree) Reference */
ASTReference jjtn000 = new ASTReference(JJTREFERENCE);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
jjtreeOpenNodeScope(jjtn000);
try {
if (jj_2_17(2147483647)) {
Constructor();
} else if (jj_2_18(2147483647)) {
ArrayAccess();
} else if (jj_2_19(2147483647)) {
Function();
} else if (jj_2_20(2147483647)) {
Method();
} else {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case IDENTIFIER:
case REGISTER:
Identifier();
break;
default:
jj_la1[40] = jj_gen;
if (jj_2_21(2147483647)) {
MapLiteral();
} else if (jj_2_22(2147483647)) {
ArrayLiteral();
} else {
jj_consume_token(-1);
throw new ParseException();
}
}
}
DotReference();
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
jjtreeCloseNodeScope(jjtn000);
}
}
}
private boolean jj_2_1(int xla) {
jj_la = xla; jj_lastpos = jj_scanpos = token;
try { return !jj_3_1(); }
catch(LookaheadSuccess ls) { return true; }
finally { jj_save(0, xla); }
}
private boolean jj_2_2(int xla) {
jj_la = xla; jj_lastpos = jj_scanpos = token;
try { return !jj_3_2(); }
catch(LookaheadSuccess ls) { return true; }
finally { jj_save(1, xla); }
}
private boolean jj_2_3(int xla) {
jj_la = xla; jj_lastpos = jj_scanpos = token;
try { return !jj_3_3(); }
catch(LookaheadSuccess ls) { return true; }
finally { jj_save(2, xla); }
}
private boolean jj_2_4(int xla) {
jj_la = xla; jj_lastpos = jj_scanpos = token;
try { return !jj_3_4(); }
catch(LookaheadSuccess ls) { return true; }
finally { jj_save(3, xla); }
}
private boolean jj_2_5(int xla) {
jj_la = xla; jj_lastpos = jj_scanpos = token;
try { return !jj_3_5(); }
catch(LookaheadSuccess ls) { return true; }
finally { jj_save(4, xla); }
}
private boolean jj_2_6(int xla) {
jj_la = xla; jj_lastpos = jj_scanpos = token;
try { return !jj_3_6(); }
catch(LookaheadSuccess ls) { return true; }
finally { jj_save(5, xla); }
}
private boolean jj_2_7(int xla) {
jj_la = xla; jj_lastpos = jj_scanpos = token;
try { return !jj_3_7(); }
catch(LookaheadSuccess ls) { return true; }
finally { jj_save(6, xla); }
}
private boolean jj_2_8(int xla) {
jj_la = xla; jj_lastpos = jj_scanpos = token;
try { return !jj_3_8(); }
catch(LookaheadSuccess ls) { return true; }
finally { jj_save(7, xla); }
}
private boolean jj_2_9(int xla) {
jj_la = xla; jj_lastpos = jj_scanpos = token;
try { return !jj_3_9(); }
catch(LookaheadSuccess ls) { return true; }
finally { jj_save(8, xla); }
}
private boolean jj_2_10(int xla) {
jj_la = xla; jj_lastpos = jj_scanpos = token;
try { return !jj_3_10(); }
catch(LookaheadSuccess ls) { return true; }
finally { jj_save(9, xla); }
}
private boolean jj_2_11(int xla) {
jj_la = xla; jj_lastpos = jj_scanpos = token;
try { return !jj_3_11(); }
catch(LookaheadSuccess ls) { return true; }
finally { jj_save(10, xla); }
}
private boolean jj_2_12(int xla) {
jj_la = xla; jj_lastpos = jj_scanpos = token;
try { return !jj_3_12(); }
catch(LookaheadSuccess ls) { return true; }
finally { jj_save(11, xla); }
}
private boolean jj_2_13(int xla) {
jj_la = xla; jj_lastpos = jj_scanpos = token;
try { return !jj_3_13(); }
catch(LookaheadSuccess ls) { return true; }
finally { jj_save(12, xla); }
}
private boolean jj_2_14(int xla) {
jj_la = xla; jj_lastpos = jj_scanpos = token;
try { return !jj_3_14(); }
catch(LookaheadSuccess ls) { return true; }
finally { jj_save(13, xla); }
}
private boolean jj_2_15(int xla) {
jj_la = xla; jj_lastpos = jj_scanpos = token;
try { return !jj_3_15(); }
catch(LookaheadSuccess ls) { return true; }
finally { jj_save(14, xla); }
}
private boolean jj_2_16(int xla) {
jj_la = xla; jj_lastpos = jj_scanpos = token;
try { return !jj_3_16(); }
catch(LookaheadSuccess ls) { return true; }
finally { jj_save(15, xla); }
}
private boolean jj_2_17(int xla) {
jj_la = xla; jj_lastpos = jj_scanpos = token;
try { return !jj_3_17(); }
catch(LookaheadSuccess ls) { return true; }
finally { jj_save(16, xla); }
}
private boolean jj_2_18(int xla) {
jj_la = xla; jj_lastpos = jj_scanpos = token;
try { return !jj_3_18(); }
catch(LookaheadSuccess ls) { return true; }
finally { jj_save(17, xla); }
}
private boolean jj_2_19(int xla) {
jj_la = xla; jj_lastpos = jj_scanpos = token;
try { return !jj_3_19(); }
catch(LookaheadSuccess ls) { return true; }
finally { jj_save(18, xla); }
}
private boolean jj_2_20(int xla) {
jj_la = xla; jj_lastpos = jj_scanpos = token;
try { return !jj_3_20(); }
catch(LookaheadSuccess ls) { return true; }
finally { jj_save(19, xla); }
}
private boolean jj_2_21(int xla) {
jj_la = xla; jj_lastpos = jj_scanpos = token;
try { return !jj_3_21(); }
catch(LookaheadSuccess ls) { return true; }
finally { jj_save(20, xla); }
}
private boolean jj_2_22(int xla) {
jj_la = xla; jj_lastpos = jj_scanpos = token;
try { return !jj_3_22(); }
catch(LookaheadSuccess ls) { return true; }
finally { jj_save(21, xla); }
}
private boolean jj_3R_109() {
if (jj_scan_token(mult)) return true;
if (jj_3R_102()) return true;
return false;
}
private boolean jj_3R_103() {
Token xsp;
xsp = jj_scanpos;
if (jj_3R_109()) {
jj_scanpos = xsp;
if (jj_3R_110()) {
jj_scanpos = xsp;
if (jj_3R_111()) return true;
}
}
return false;
}
private boolean jj_3_14() {
if (jj_scan_token(LBRACKET)) return true;
if (jj_3R_20()) return true;
if (jj_scan_token(RBRACKET)) return true;
return false;
}
private boolean jj_3_15() {
if (jj_3R_23()) return true;
return false;
}
private boolean jj_3R_60() {
Token xsp;
xsp = jj_scanpos;
if (jj_3_15()) {
jj_scanpos = xsp;
if (jj_3R_70()) {
jj_scanpos = xsp;
if (jj_3R_71()) return true;
}
}
return false;
}
private boolean jj_3R_94() {
if (jj_3R_102()) return true;
Token xsp;
while (true) {
xsp = jj_scanpos;
if (jj_3R_103()) { jj_scanpos = xsp; break; }
}
return false;
}
private boolean jj_3R_59() {
if (jj_3R_41()) return true;
return false;
}
private boolean jj_3R_113() {
if (jj_scan_token(minus)) return true;
return false;
}
private boolean jj_3R_68() {
if (jj_scan_token(COMMA)) return true;
if (jj_3R_20()) return true;
return false;
}
private boolean jj_3R_112() {
if (jj_scan_token(plus)) return true;
return false;
}
private boolean jj_3R_104() {
Token xsp;
xsp = jj_scanpos;
if (jj_3R_112()) {
jj_scanpos = xsp;
if (jj_3R_113()) return true;
}
return false;
}
private boolean jj_3R_46() {
if (jj_scan_token(DOT)) return true;
Token xsp;
xsp = jj_scanpos;
if (jj_3R_59()) {
jj_scanpos = xsp;
if (jj_3R_60()) return true;
}
return false;
}
private boolean jj_3_13() {
if (jj_scan_token(LBRACKET)) return true;
if (jj_3R_20()) return true;
return false;
}
private boolean jj_3R_32() {
Token xsp;
while (true) {
xsp = jj_scanpos;
if (jj_3R_46()) { jj_scanpos = xsp; break; }
}
return false;
}
private boolean jj_3_12() {
if (jj_scan_token(LCURLY)) return true;
if (jj_3R_22()) return true;
return false;
}
private boolean jj_3R_90() {
if (jj_3R_94()) return true;
Token xsp;
while (true) {
xsp = jj_scanpos;
if (jj_3R_95()) { jj_scanpos = xsp; break; }
}
return false;
}
private boolean jj_3R_41() {
if (jj_3R_21()) return true;
Token xsp;
if (jj_3_14()) return true;
while (true) {
xsp = jj_scanpos;
if (jj_3_14()) { jj_scanpos = xsp; break; }
}
return false;
}
private boolean jj_3R_67() {
if (jj_scan_token(COMMA)) return true;
if (jj_3R_20()) return true;
return false;
}
private boolean jj_3_11() {
if (jj_scan_token(NEW)) return true;
if (jj_scan_token(LPAREN)) return true;
return false;
}
private boolean jj_3_10() {
if (jj_scan_token(SIZE)) return true;
return false;
}
private boolean jj_3_9() {
if (jj_scan_token(EMPTY)) return true;
return false;
}
private boolean jj_3_8() {
if (jj_scan_token(LPAREN)) return true;
return false;
}
private boolean jj_3R_121() {
if (jj_3R_45()) return true;
return false;
}
private boolean jj_3R_55() {
if (jj_3R_20()) return true;
Token xsp;
while (true) {
xsp = jj_scanpos;
if (jj_3R_68()) { jj_scanpos = xsp; break; }
}
return false;
}
private boolean jj_3R_120() {
if (jj_3R_44()) return true;
return false;
}
private boolean jj_3R_101() {
if (jj_scan_token(rne)) return true;
if (jj_3R_90()) return true;
return false;
}
private boolean jj_3R_69() {
if (jj_scan_token(COMMA)) return true;
if (jj_3R_20()) return true;
return false;
}
private boolean jj_3R_119() {
if (jj_3R_40()) return true;
return false;
}
private boolean jj_3R_100() {
if (jj_scan_token(req)) return true;
if (jj_3R_90()) return true;
return false;
}
private boolean jj_3R_118() {
if (jj_3R_124()) return true;
return false;
}
private boolean jj_3R_99() {
if (jj_scan_token(ge)) return true;
if (jj_3R_90()) return true;
return false;
}
private boolean jj_3R_117() {
if (jj_3R_123()) return true;
return false;
}
private boolean jj_3R_98() {
if (jj_scan_token(le)) return true;
if (jj_3R_90()) return true;
return false;
}
private boolean jj_3R_54() {
if (jj_3R_20()) return true;
Token xsp;
while (true) {
xsp = jj_scanpos;
if (jj_3R_67()) { jj_scanpos = xsp; break; }
}
return false;
}
private boolean jj_3R_116() {
if (jj_scan_token(LPAREN)) return true;
if (jj_3R_20()) return true;
if (jj_scan_token(RPAREN)) return true;
return false;
}
private boolean jj_3R_97() {
if (jj_scan_token(gt)) return true;
if (jj_3R_90()) return true;
return false;
}
private boolean jj_3R_96() {
if (jj_scan_token(lt)) return true;
if (jj_3R_90()) return true;
return false;
}
private boolean jj_3R_91() {
Token xsp;
xsp = jj_scanpos;
if (jj_3R_96()) {
jj_scanpos = xsp;
if (jj_3R_97()) {
jj_scanpos = xsp;
if (jj_3R_98()) {
jj_scanpos = xsp;
if (jj_3R_99()) {
jj_scanpos = xsp;
if (jj_3R_100()) {
jj_scanpos = xsp;
if (jj_3R_101()) return true;
}
}
}
}
}
return false;
}
private boolean jj_3_7() {
if (jj_3R_19()) return true;
return false;
}
private boolean jj_3R_115() {
if (jj_3R_122()) return true;
return false;
}
private boolean jj_3R_114() {
Token xsp;
xsp = jj_scanpos;
if (jj_3R_115()) {
jj_scanpos = xsp;
if (jj_3_7()) {
jj_scanpos = xsp;
if (jj_3R_116()) {
jj_scanpos = xsp;
if (jj_3R_117()) {
jj_scanpos = xsp;
if (jj_3R_118()) {
jj_scanpos = xsp;
if (jj_3R_119()) {
jj_scanpos = xsp;
if (jj_3R_120()) {
jj_scanpos = xsp;
if (jj_3R_121()) return true;
}
}
}
}
}
}
}
return false;
}
private boolean jj_3R_88() {
if (jj_3R_90()) return true;
Token xsp;
xsp = jj_scanpos;
if (jj_3R_91()) jj_scanpos = xsp;
return false;
}
private boolean jj_3R_56() {
if (jj_3R_20()) return true;
Token xsp;
while (true) {
xsp = jj_scanpos;
if (jj_3R_69()) { jj_scanpos = xsp; break; }
}
return false;
}
private boolean jj_3R_93() {
if (jj_scan_token(ne)) return true;
if (jj_3R_88()) return true;
return false;
}
private boolean jj_3R_92() {
if (jj_scan_token(eq)) return true;
if (jj_3R_88()) return true;
return false;
}
private boolean jj_3R_89() {
Token xsp;
xsp = jj_scanpos;
if (jj_3R_92()) {
jj_scanpos = xsp;
if (jj_3R_93()) return true;
}
return false;
}
private boolean jj_3_6() {
if (jj_3R_21()) return true;
if (jj_scan_token(LPAREN)) return true;
return false;
}
private boolean jj_3_5() {
if (jj_scan_token(SIZE)) return true;
return false;
}
private boolean jj_3R_40() {
if (jj_scan_token(NEW)) return true;
if (jj_scan_token(LPAREN)) return true;
Token xsp;
xsp = jj_scanpos;
if (jj_3R_54()) jj_scanpos = xsp;
if (jj_scan_token(RPAREN)) return true;
return false;
}
private boolean jj_3R_86() {
if (jj_3R_88()) return true;
Token xsp;
xsp = jj_scanpos;
if (jj_3R_89()) jj_scanpos = xsp;
return false;
}
private boolean jj_3R_49() {
if (jj_scan_token(SIZE)) return true;
if (jj_scan_token(LPAREN)) return true;
if (jj_scan_token(RPAREN)) return true;
return false;
}
private boolean jj_3R_87() {
if (jj_scan_token(and)) return true;
if (jj_3R_86()) return true;
return false;
}
private boolean jj_3R_38() {
if (jj_3R_43()) return true;
return false;
}
private boolean jj_3R_84() {
if (jj_3R_86()) return true;
Token xsp;
while (true) {
xsp = jj_scanpos;
if (jj_3R_87()) { jj_scanpos = xsp; break; }
}
return false;
}
private boolean jj_3R_23() {
Token xsp;
xsp = jj_scanpos;
if (jj_3R_37()) {
jj_scanpos = xsp;
if (jj_3R_38()) return true;
}
return false;
}
private boolean jj_3R_37() {
if (jj_3R_49()) return true;
return false;
}
private boolean jj_3R_85() {
if (jj_scan_token(xor)) return true;
if (jj_3R_84()) return true;
return false;
}
private boolean jj_3R_43() {
if (jj_3R_21()) return true;
if (jj_scan_token(LPAREN)) return true;
Token xsp;
xsp = jj_scanpos;
if (jj_3R_56()) jj_scanpos = xsp;
if (jj_scan_token(RPAREN)) return true;
return false;
}
private boolean jj_3R_82() {
if (jj_3R_84()) return true;
Token xsp;
while (true) {
xsp = jj_scanpos;
if (jj_3R_85()) { jj_scanpos = xsp; break; }
}
return false;
}
private boolean jj_3R_83() {
if (jj_scan_token(or)) return true;
if (jj_3R_82()) return true;
return false;
}
private boolean jj_3R_42() {
if (jj_3R_21()) return true;
if (jj_scan_token(COLON)) return true;
if (jj_3R_21()) return true;
if (jj_scan_token(LPAREN)) return true;
Token xsp;
xsp = jj_scanpos;
if (jj_3R_55()) jj_scanpos = xsp;
if (jj_scan_token(RPAREN)) return true;
return false;
}
private boolean jj_3R_80() {
if (jj_3R_82()) return true;
Token xsp;
while (true) {
xsp = jj_scanpos;
if (jj_3R_83()) { jj_scanpos = xsp; break; }
}
return false;
}
private boolean jj_3R_57() {
if (jj_scan_token(COMMA)) return true;
if (jj_3R_22()) return true;
return false;
}
private boolean jj_3R_124() {
if (jj_scan_token(SIZE)) return true;
if (jj_scan_token(LPAREN)) return true;
if (jj_3R_20()) return true;
if (jj_scan_token(RPAREN)) return true;
return false;
}
private boolean jj_3R_81() {
if (jj_scan_token(AND)) return true;
if (jj_3R_80()) return true;
return false;
}
private boolean jj_3R_58() {
if (jj_scan_token(COMMA)) return true;
if (jj_3R_20()) return true;
return false;
}
private boolean jj_3R_130() {
if (jj_scan_token(EMPTY)) return true;
if (jj_3R_19()) return true;
return false;
}
private boolean jj_3R_123() {
Token xsp;
xsp = jj_scanpos;
if (jj_3_4()) {
jj_scanpos = xsp;
if (jj_3R_130()) return true;
}
return false;
}
private boolean jj_3R_72() {
if (jj_3R_80()) return true;
Token xsp;
while (true) {
xsp = jj_scanpos;
if (jj_3R_81()) { jj_scanpos = xsp; break; }
}
return false;
}
private boolean jj_3_4() {
if (jj_scan_token(EMPTY)) return true;
if (jj_scan_token(LPAREN)) return true;
if (jj_3R_20()) return true;
if (jj_scan_token(RPAREN)) return true;
return false;
}
private boolean jj_3R_73() {
if (jj_scan_token(OR)) return true;
if (jj_3R_72()) return true;
return false;
}
private boolean jj_3_2() {
if (jj_scan_token(SEMICOL)) return true;
return false;
}
private boolean jj_3R_61() {
if (jj_3R_72()) return true;
Token xsp;
while (true) {
xsp = jj_scanpos;
if (jj_3R_73()) { jj_scanpos = xsp; break; }
}
return false;
}
private boolean jj_3R_22() {
if (jj_3R_20()) return true;
if (jj_scan_token(COLON)) return true;
if (jj_3R_20()) return true;
return false;
}
private boolean jj_3R_75() {
if (jj_scan_token(ELVIS)) return true;
if (jj_3R_20()) return true;
return false;
}
private boolean jj_3R_44() {
if (jj_scan_token(LCURLY)) return true;
if (jj_3R_22()) return true;
Token xsp;
while (true) {
xsp = jj_scanpos;
if (jj_3R_57()) { jj_scanpos = xsp; break; }
}
if (jj_scan_token(RCURLY)) return true;
return false;
}
private boolean jj_3R_74() {
if (jj_scan_token(QMARK)) return true;
if (jj_3R_20()) return true;
if (jj_scan_token(COLON)) return true;
if (jj_3R_20()) return true;
return false;
}
private boolean jj_3R_62() {
Token xsp;
xsp = jj_scanpos;
if (jj_3R_74()) {
jj_scanpos = xsp;
if (jj_3R_75()) return true;
}
return false;
}
private boolean jj_3R_48() {
if (jj_3R_61()) return true;
Token xsp;
xsp = jj_scanpos;
if (jj_3R_62()) jj_scanpos = xsp;
return false;
}
private boolean jj_3R_45() {
if (jj_scan_token(LBRACKET)) return true;
if (jj_3R_20()) return true;
Token xsp;
while (true) {
xsp = jj_scanpos;
if (jj_3R_58()) { jj_scanpos = xsp; break; }
}
if (jj_scan_token(RBRACKET)) return true;
return false;
}
private boolean jj_3_3() {
if (jj_3R_19()) return true;
if (jj_scan_token(assign)) return true;
return false;
}
private boolean jj_3R_47() {
if (jj_3R_19()) return true;
if (jj_scan_token(assign)) return true;
if (jj_3R_20()) return true;
return false;
}
private boolean jj_3R_133() {
if (jj_scan_token(STRING_LITERAL)) return true;
return false;
}
private boolean jj_3R_34() {
if (jj_3R_48()) return true;
return false;
}
private boolean jj_3R_20() {
Token xsp;
xsp = jj_scanpos;
if (jj_3R_33()) {
jj_scanpos = xsp;
if (jj_3R_34()) return true;
}
return false;
}
private boolean jj_3R_33() {
if (jj_3R_47()) return true;
return false;
}
private boolean jj_3R_131() {
if (jj_scan_token(FLOAT_LITERAL)) return true;
return false;
}
private boolean jj_3R_77() {
if (jj_scan_token(FOREACH)) return true;
if (jj_scan_token(LPAREN)) return true;
return false;
}
private boolean jj_3R_79() {
if (jj_scan_token(INTEGER_LITERAL)) return true;
return false;
}
private boolean jj_3R_76() {
if (jj_scan_token(FOR)) return true;
if (jj_scan_token(LPAREN)) return true;
return false;
}
private boolean jj_3R_64() {
Token xsp;
xsp = jj_scanpos;
if (jj_3R_76()) {
jj_scanpos = xsp;
if (jj_3R_77()) return true;
}
return false;
}
private boolean jj_3R_78() {
if (jj_3R_20()) return true;
return false;
}
private boolean jj_3R_65() {
if (jj_scan_token(WHILE)) return true;
if (jj_scan_token(LPAREN)) return true;
return false;
}
private boolean jj_3R_136() {
if (jj_scan_token(FALSE)) return true;
return false;
}
private boolean jj_3R_135() {
if (jj_scan_token(TRUE)) return true;
return false;
}
private boolean jj_3R_132() {
Token xsp;
xsp = jj_scanpos;
if (jj_3R_135()) {
jj_scanpos = xsp;
if (jj_3R_136()) return true;
}
return false;
}
private boolean jj_3R_63() {
if (jj_scan_token(IF)) return true;
if (jj_scan_token(LPAREN)) return true;
return false;
}
private boolean jj_3R_134() {
if (jj_scan_token(NULL)) return true;
return false;
}
private boolean jj_3R_24() {
if (jj_3R_39()) return true;
return false;
}
private boolean jj_3R_66() {
if (jj_3R_20()) return true;
Token xsp;
while (true) {
xsp = jj_scanpos;
if (jj_3R_78()) { jj_scanpos = xsp; break; }
}
xsp = jj_scanpos;
if (jj_3_2()) jj_scanpos = xsp;
return false;
}
private boolean jj_3R_129() {
if (jj_3R_134()) return true;
return false;
}
private boolean jj_3R_128() {
if (jj_3R_133()) return true;
return false;
}
private boolean jj_3R_127() {
if (jj_3R_132()) return true;
return false;
}
private boolean jj_3R_18() {
if (jj_scan_token(LCURLY)) return true;
Token xsp;
while (true) {
xsp = jj_scanpos;
if (jj_3R_24()) { jj_scanpos = xsp; break; }
}
if (jj_scan_token(RCURLY)) return true;
return false;
}
private boolean jj_3R_126() {
if (jj_3R_131()) return true;
return false;
}
private boolean jj_3R_53() {
if (jj_3R_66()) return true;
return false;
}
private boolean jj_3R_125() {
if (jj_3R_79()) return true;
return false;
}
private boolean jj_3R_122() {
Token xsp;
xsp = jj_scanpos;
if (jj_3R_125()) {
jj_scanpos = xsp;
if (jj_3R_126()) {
jj_scanpos = xsp;
if (jj_3R_127()) {
jj_scanpos = xsp;
if (jj_3R_128()) {
jj_scanpos = xsp;
if (jj_3R_129()) return true;
}
}
}
}
return false;
}
private boolean jj_3R_52() {
if (jj_3R_65()) return true;
return false;
}
private boolean jj_3R_51() {
if (jj_3R_64()) return true;
return false;
}
private boolean jj_3R_50() {
if (jj_3R_63()) return true;
return false;
}
private boolean jj_3_1() {
if (jj_3R_18()) return true;
return false;
}
private boolean jj_3R_39() {
Token xsp;
xsp = jj_scanpos;
if (jj_scan_token(27)) {
jj_scanpos = xsp;
if (jj_3_1()) {
jj_scanpos = xsp;
if (jj_3R_50()) {
jj_scanpos = xsp;
if (jj_3R_51()) {
jj_scanpos = xsp;
if (jj_3R_52()) {
jj_scanpos = xsp;
if (jj_3R_53()) return true;
}
}
}
}
}
return false;
}
private boolean jj_3R_36() {
if (jj_scan_token(REGISTER)) return true;
return false;
}
private boolean jj_3R_21() {
Token xsp;
xsp = jj_scanpos;
if (jj_3R_35()) {
jj_scanpos = xsp;
if (jj_3R_36()) return true;
}
return false;
}
private boolean jj_3R_35() {
if (jj_scan_token(IDENTIFIER)) return true;
return false;
}
private boolean jj_3_22() {
if (jj_scan_token(LBRACKET)) return true;
return false;
}
private boolean jj_3_21() {
if (jj_scan_token(LCURLY)) return true;
return false;
}
private boolean jj_3_20() {
if (jj_3R_21()) return true;
if (jj_scan_token(LPAREN)) return true;
return false;
}
private boolean jj_3_19() {
if (jj_3R_21()) return true;
if (jj_scan_token(COLON)) return true;
if (jj_3R_21()) return true;
if (jj_scan_token(LPAREN)) return true;
return false;
}
private boolean jj_3_18() {
if (jj_3R_21()) return true;
if (jj_scan_token(LBRACKET)) return true;
return false;
}
private boolean jj_3R_31() {
if (jj_3R_45()) return true;
return false;
}
private boolean jj_3_17() {
if (jj_scan_token(NEW)) return true;
return false;
}
private boolean jj_3R_30() {
if (jj_3R_44()) return true;
return false;
}
private boolean jj_3R_95() {
if (jj_3R_104()) return true;
if (jj_3R_94()) return true;
return false;
}
private boolean jj_3R_29() {
if (jj_3R_21()) return true;
return false;
}
private boolean jj_3R_108() {
if (jj_3R_114()) return true;
return false;
}
private boolean jj_3R_28() {
if (jj_3R_43()) return true;
return false;
}
private boolean jj_3R_107() {
if (jj_scan_token(not)) return true;
if (jj_3R_102()) return true;
return false;
}
private boolean jj_3R_27() {
if (jj_3R_42()) return true;
return false;
}
private boolean jj_3R_106() {
if (jj_scan_token(tilda)) return true;
if (jj_3R_102()) return true;
return false;
}
private boolean jj_3R_26() {
if (jj_3R_41()) return true;
return false;
}
private boolean jj_3R_105() {
if (jj_scan_token(minus)) return true;
if (jj_3R_102()) return true;
return false;
}
private boolean jj_3R_102() {
Token xsp;
xsp = jj_scanpos;
if (jj_3R_105()) {
jj_scanpos = xsp;
if (jj_3R_106()) {
jj_scanpos = xsp;
if (jj_3R_107()) {
jj_scanpos = xsp;
if (jj_3R_108()) return true;
}
}
}
return false;
}
private boolean jj_3R_71() {
if (jj_3R_79()) return true;
return false;
}
private boolean jj_3R_25() {
if (jj_3R_40()) return true;
return false;
}
private boolean jj_3R_70() {
if (jj_3R_21()) return true;
return false;
}
private boolean jj_3R_19() {
Token xsp;
xsp = jj_scanpos;
if (jj_3R_25()) {
jj_scanpos = xsp;
if (jj_3R_26()) {
jj_scanpos = xsp;
if (jj_3R_27()) {
jj_scanpos = xsp;
if (jj_3R_28()) {
jj_scanpos = xsp;
if (jj_3R_29()) {
jj_scanpos = xsp;
if (jj_3R_30()) {
jj_scanpos = xsp;
if (jj_3R_31()) return true;
}
}
}
}
}
}
if (jj_3R_32()) return true;
return false;
}
private boolean jj_3_16() {
if (jj_3R_21()) return true;
if (jj_scan_token(LBRACKET)) return true;
return false;
}
private boolean jj_3R_111() {
if (jj_scan_token(mod)) return true;
if (jj_3R_102()) return true;
return false;
}
private boolean jj_3R_110() {
if (jj_scan_token(div)) return true;
if (jj_3R_102()) return true;
return false;
}
/** Generated Token Manager. */
public ParserTokenManager token_source;
SimpleCharStream jj_input_stream;
/** Current token. */
public Token token;
/** Next token. */
public Token jj_nt;
private int jj_ntk;
private Token jj_scanpos, jj_lastpos;
private int jj_la;
private int jj_gen;
final private int[] jj_la1 = new int[41];
static private int[] jj_la1_0;
static private int[] jj_la1_1;
static {
jj_la1_init_0();
jj_la1_init_1();
}
private static void jj_la1_init_0() {
jj_la1_0 = new int[] {0xaaffa00,0x8000000,0x2affa00,0xaaffa00,0x2afc000,0x400,0x1800,0x2afc000,0x80000000,0x80000000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x2afc000,0x0,0xe0000,0xc0000,0x20000000,0x20000000,0x8000,0x20000000,0x2afc000,0x20000000,0x2afc000,0x20000000,0x2afc000,0xe0000,0x40000000,0x0,0x10000,0x0,};
}
private static void jj_la1_init_1() {
jj_la1_1 = new int[] {0x1e454000,0x0,0x1e454000,0x1e454000,0x1e454000,0x0,0x0,0x1e454000,0x1,0x1,0x4,0x2,0x100000,0x200000,0x80000,0x18,0x18,0x7e0,0x7e0,0x18000,0x18000,0x23000,0x23000,0x1e454000,0x2400000,0x1c000000,0x0,0x0,0x0,0x0,0x0,0x1e454000,0x0,0x1e454000,0x0,0x1e454000,0x1c000000,0x0,0x6400000,0x6400000,0x2400000,};
}
final private JJCalls[] jj_2_rtns = new JJCalls[22];
private boolean jj_rescan = false;
private int jj_gc = 0;
/** Constructor with InputStream. */
public Parser(java.io.InputStream stream) {
this(stream, null);
}
/** Constructor with InputStream and supplied encoding */
public Parser(java.io.InputStream stream, String encoding) {
try { jj_input_stream = new SimpleCharStream(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException e) { throw new RuntimeException(e); }
token_source = new ParserTokenManager(jj_input_stream);
token = new Token();
jj_ntk = -1;
jj_gen = 0;
for (int i = 0; i < 41; i++) jj_la1[i] = -1;
for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
}
/** Reinitialise. */
public void ReInit(java.io.InputStream stream) {
ReInit(stream, null);
}
/** Reinitialise. */
public void ReInit(java.io.InputStream stream, String encoding) {
try { jj_input_stream.ReInit(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException e) { throw new RuntimeException(e); }
token_source.ReInit(jj_input_stream);
token = new Token();
jj_ntk = -1;
jjtree.reset();
jj_gen = 0;
for (int i = 0; i < 41; i++) jj_la1[i] = -1;
for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
}
/** Constructor. */
public Parser(java.io.Reader stream) {
jj_input_stream = new SimpleCharStream(stream, 1, 1);
token_source = new ParserTokenManager(jj_input_stream);
token = new Token();
jj_ntk = -1;
jj_gen = 0;
for (int i = 0; i < 41; i++) jj_la1[i] = -1;
for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
}
/** Reinitialise. */
public void ReInit(java.io.Reader stream) {
jj_input_stream.ReInit(stream, 1, 1);
token_source.ReInit(jj_input_stream);
token = new Token();
jj_ntk = -1;
jjtree.reset();
jj_gen = 0;
for (int i = 0; i < 41; i++) jj_la1[i] = -1;
for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
}
/** Constructor with generated Token Manager. */
public Parser(ParserTokenManager tm) {
token_source = tm;
token = new Token();
jj_ntk = -1;
jj_gen = 0;
for (int i = 0; i < 41; i++) jj_la1[i] = -1;
for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
}
/** Reinitialise. */
public void ReInit(ParserTokenManager tm) {
token_source = tm;
token = new Token();
jj_ntk = -1;
jjtree.reset();
jj_gen = 0;
for (int i = 0; i < 41; i++) jj_la1[i] = -1;
for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
}
private Token jj_consume_token(int kind) throws ParseException {
Token oldToken;
if ((oldToken = token).next != null) token = token.next;
else token = token.next = token_source.getNextToken();
jj_ntk = -1;
if (token.kind == kind) {
jj_gen++;
if (++jj_gc > 100) {
jj_gc = 0;
for (int i = 0; i < jj_2_rtns.length; i++) {
JJCalls c = jj_2_rtns[i];
while (c != null) {
if (c.gen < jj_gen) c.first = null;
c = c.next;
}
}
}
return token;
}
token = oldToken;
jj_kind = kind;
throw generateParseException();
}
static private final class LookaheadSuccess extends java.lang.Error { }
final private LookaheadSuccess jj_ls = new LookaheadSuccess();
private boolean jj_scan_token(int kind) {
if (jj_scanpos == jj_lastpos) {
jj_la--;
if (jj_scanpos.next == null) {
jj_lastpos = jj_scanpos = jj_scanpos.next = token_source.getNextToken();
} else {
jj_lastpos = jj_scanpos = jj_scanpos.next;
}
} else {
jj_scanpos = jj_scanpos.next;
}
if (jj_rescan) {
int i = 0; Token tok = token;
while (tok != null && tok != jj_scanpos) { i++; tok = tok.next; }
if (tok != null) jj_add_error_token(kind, i);
}
if (jj_scanpos.kind != kind) return true;
if (jj_la == 0 && jj_scanpos == jj_lastpos) throw jj_ls;
return false;
}
/** Get the next Token. */
final public Token getNextToken() {
if (token.next != null) token = token.next;
else token = token.next = token_source.getNextToken();
jj_ntk = -1;
jj_gen++;
return token;
}
/** Get the specific Token. */
final public Token getToken(int index) {
Token t = token;
for (int i = 0; i < index; i++) {
if (t.next != null) t = t.next;
else t = t.next = token_source.getNextToken();
}
return t;
}
private int jj_ntk() {
if ((jj_nt=token.next) == null)
return (jj_ntk = (token.next=token_source.getNextToken()).kind);
else
return (jj_ntk = jj_nt.kind);
}
private java.util.List jj_expentries = new java.util.ArrayList();
private int[] jj_expentry;
private int jj_kind = -1;
private int[] jj_lasttokens = new int[100];
private int jj_endpos;
private void jj_add_error_token(int kind, int pos) {
if (pos >= 100) return;
if (pos == jj_endpos + 1) {
jj_lasttokens[jj_endpos++] = kind;
} else if (jj_endpos != 0) {
jj_expentry = new int[jj_endpos];
for (int i = 0; i < jj_endpos; i++) {
jj_expentry[i] = jj_lasttokens[i];
}
jj_entries_loop: for (java.util.Iterator> it = jj_expentries.iterator(); it.hasNext();) {
int[] oldentry = (int[])(it.next());
if (oldentry.length == jj_expentry.length) {
for (int i = 0; i < jj_expentry.length; i++) {
if (oldentry[i] != jj_expentry[i]) {
continue jj_entries_loop;
}
}
jj_expentries.add(jj_expentry);
break jj_entries_loop;
}
}
if (pos != 0) jj_lasttokens[(jj_endpos = pos) - 1] = kind;
}
}
/** Generate ParseException. */
public ParseException generateParseException() {
jj_expentries.clear();
boolean[] la1tokens = new boolean[61];
if (jj_kind >= 0) {
la1tokens[jj_kind] = true;
jj_kind = -1;
}
for (int i = 0; i < 41; i++) {
if (jj_la1[i] == jj_gen) {
for (int j = 0; j < 32; j++) {
if ((jj_la1_0[i] & (1< jj_gen) {
jj_la = p.arg; jj_lastpos = jj_scanpos = p.first;
switch (i) {
case 0: jj_3_1(); break;
case 1: jj_3_2(); break;
case 2: jj_3_3(); break;
case 3: jj_3_4(); break;
case 4: jj_3_5(); break;
case 5: jj_3_6(); break;
case 6: jj_3_7(); break;
case 7: jj_3_8(); break;
case 8: jj_3_9(); break;
case 9: jj_3_10(); break;
case 10: jj_3_11(); break;
case 11: jj_3_12(); break;
case 12: jj_3_13(); break;
case 13: jj_3_14(); break;
case 14: jj_3_15(); break;
case 15: jj_3_16(); break;
case 16: jj_3_17(); break;
case 17: jj_3_18(); break;
case 18: jj_3_19(); break;
case 19: jj_3_20(); break;
case 20: jj_3_21(); break;
case 21: jj_3_22(); break;
}
}
p = p.next;
} while (p != null);
} catch(LookaheadSuccess ls) { }
}
jj_rescan = false;
}
private void jj_save(int index, int xla) {
JJCalls p = jj_2_rtns[index];
while (p.gen > jj_gen) {
if (p.next == null) { p = p.next = new JJCalls(); break; }
p = p.next;
}
p.gen = jj_gen + xla - jj_la; p.first = token; p.arg = xla;
}
static final class JJCalls {
int gen;
Token first;
int arg;
JJCalls next;
}
}