- /* Generated By:JJTree&JavaCC: Do not edit this line. Parser.java */
- package org.apache.commons.jexl.parser;
- import java.io.Reader;
- public class Parser/*@bgen(jjtree)*/implements ParserTreeConstants, ParserConstants {/*@bgen(jjtree)*/
- protected JJTParserState jjtree = new JJTParserState();public SimpleNode parse(Reader reader)
- throws Exception
- {
- ReInit(reader);
- /*
- * lets do the 'Unique Init' in here to be
- * safe - it's a pain to remember
- */
- SimpleNode tree = JexlScript();
- return tree;
- }
- /*
- * Program structuring syntax follows.
- */
- final public SimpleNode JexlScript() throws ParseException {
- /*@bgen(jjtree) JexlScript */
- ASTJexlScript jjtn000 = new ASTJexlScript(this, JJTJEXLSCRIPT);
- boolean jjtc000 = true;
- jjtree.openNodeScope(jjtn000);String name;
- try {
- label_1:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case INTEGER_LITERAL:
- case FLOAT_LITERAL:
- case 9:
- case 11:
- case 12:
- case 14:
- case 36:
- case 42:
- case 43:
- case 44:
- case 45:
- case 46:
- case 47:
- case 48:
- case 49:
- case 51:
- case 52:
- case IDENTIFIER:
- case STRING_LITERAL:
- ;
- break;
- default:
- jj_la1[0] = jj_gen;
- break label_1;
- }
- Statement();
- }
- jj_consume_token(0);
- jjtree.closeNodeScope(jjtn000, true);
- jjtc000 = false;
- {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);
- }
- }
- throw new Error("Missing return statement in function");
- }
- final public void Block() throws ParseException {
- /*@bgen(jjtree) Block */
- ASTBlock jjtn000 = new ASTBlock(this, JJTBLOCK);
- boolean jjtc000 = true;
- jjtree.openNodeScope(jjtn000);
- try {
- jj_consume_token(9);
- label_2:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case INTEGER_LITERAL:
- case FLOAT_LITERAL:
- case 9:
- case 11:
- case 12:
- case 14:
- case 36:
- case 42:
- case 43:
- case 44:
- case 45:
- case 46:
- case 47:
- case 48:
- case 49:
- case 51:
- case 52:
- case IDENTIFIER:
- case STRING_LITERAL:
- ;
- break;
- default:
- jj_la1[1] = jj_gen;
- break label_2;
- }
- Statement();
- }
- jj_consume_token(10);
- } 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);
- }
- }
- }
- final public void EmptyFunction() throws ParseException {
- /*@bgen(jjtree) EmptyFunction */
- ASTEmptyFunction jjtn000 = new ASTEmptyFunction(this, JJTEMPTYFUNCTION);
- boolean jjtc000 = true;
- jjtree.openNodeScope(jjtn000);
- try {
- jj_consume_token(11);
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case IDENTIFIER:
- Reference();
- break;
- case 12:
- jj_consume_token(12);
- Reference();
- jj_consume_token(13);
- break;
- default:
- jj_la1[2] = 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);
- }
- }
- }
- final public void SizeFunction() throws ParseException {
- /*@bgen(jjtree) SizeFunction */
- ASTSizeFunction jjtn000 = new ASTSizeFunction(this, JJTSIZEFUNCTION);
- boolean jjtc000 = true;
- jjtree.openNodeScope(jjtn000);
- try {
- jj_consume_token(14);
- jj_consume_token(12);
- Reference();
- jj_consume_token(13);
- } 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);
- }
- }
- }
- final public void Identifier() throws ParseException {
- /*@bgen(jjtree) Identifier */
- ASTIdentifier jjtn000 = new ASTIdentifier(this, JJTIDENTIFIER);
- boolean jjtc000 = true;
- jjtree.openNodeScope(jjtn000);Token t;
- try {
- t = jj_consume_token(IDENTIFIER);
- jjtree.closeNodeScope(jjtn000, true);
- jjtc000 = false;
- jjtn000.val = t.image;
- } finally {
- if (jjtc000) {
- jjtree.closeNodeScope(jjtn000, true);
- }
- }
- }
- /*
- * Expression syntax follows.
- */
- final public void Expression() throws ParseException {
- /*@bgen(jjtree) Expression */
- ASTExpression jjtn000 = new ASTExpression(this, JJTEXPRESSION);
- boolean jjtc000 = true;
- jjtree.openNodeScope(jjtn000);
- try {
- if (jj_2_1(2147483647)) {
- Assignment();
- } else {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case INTEGER_LITERAL:
- case FLOAT_LITERAL:
- case 11:
- case 12:
- case 14:
- case 36:
- case 42:
- case 43:
- case 44:
- case 45:
- case 46:
- case 47:
- case IDENTIFIER:
- case STRING_LITERAL:
- ConditionalOrExpression();
- break;
- default:
- jj_la1[3] = 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);
- }
- }
- }
- final public void Assignment() throws ParseException {
- /*@bgen(jjtree) #Assignment( 2) */
- ASTAssignment jjtn000 = new ASTAssignment(this, JJTASSIGNMENT);
- boolean jjtc000 = true;
- jjtree.openNodeScope(jjtn000);
- try {
- PrimaryExpression();
- jj_consume_token(15);
- 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);
- }
- }
- }
- final public void ConditionalOrExpression() throws ParseException {
- ConditionalAndExpression();
- label_3:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case 16:
- case 17:
- ;
- break;
- default:
- jj_la1[4] = jj_gen;
- break label_3;
- }
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case 16:
- jj_consume_token(16);
- ASTOrNode jjtn001 = new ASTOrNode(this, JJTORNODE);
- boolean jjtc001 = true;
- jjtree.openNodeScope(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);
- }
- }
- break;
- case 17:
- jj_consume_token(17);
- ASTOrNode jjtn002 = new ASTOrNode(this, JJTORNODE);
- boolean jjtc002 = true;
- jjtree.openNodeScope(jjtn002);
- try {
- ConditionalAndExpression();
- } 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);
- }
- }
- break;
- default:
- jj_la1[5] = jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- }
- }
- final public void ConditionalAndExpression() throws ParseException {
- InclusiveOrExpression();
- label_4:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case 18:
- case 19:
- ;
- break;
- default:
- jj_la1[6] = jj_gen;
- break label_4;
- }
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case 18:
- jj_consume_token(18);
- ASTAndNode jjtn001 = new ASTAndNode(this, JJTANDNODE);
- boolean jjtc001 = true;
- jjtree.openNodeScope(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);
- }
- }
- break;
- case 19:
- jj_consume_token(19);
- ASTAndNode jjtn002 = new ASTAndNode(this, JJTANDNODE);
- boolean jjtc002 = true;
- jjtree.openNodeScope(jjtn002);
- try {
- InclusiveOrExpression();
- } 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);
- }
- }
- break;
- default:
- jj_la1[7] = jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- }
- }
- final public void InclusiveOrExpression() throws ParseException {
- ExclusiveOrExpression();
- label_5:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case 20:
- ;
- break;
- default:
- jj_la1[8] = jj_gen;
- break label_5;
- }
- jj_consume_token(20);
- ASTBitwiseOrNode jjtn001 = new ASTBitwiseOrNode(this, JJTBITWISEORNODE);
- boolean jjtc001 = true;
- jjtree.openNodeScope(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);
- }
- }
- }
- }
- final public void ExclusiveOrExpression() throws ParseException {
- AndExpression();
- label_6:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case 21:
- ;
- break;
- default:
- jj_la1[9] = jj_gen;
- break label_6;
- }
- jj_consume_token(21);
- ASTBitwiseXorNode jjtn001 = new ASTBitwiseXorNode(this, JJTBITWISEXORNODE);
- boolean jjtc001 = true;
- jjtree.openNodeScope(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);
- }
- }
- }
- }
- final public void AndExpression() throws ParseException {
- EqualityExpression();
- label_7:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case 22:
- ;
- break;
- default:
- jj_la1[10] = jj_gen;
- break label_7;
- }
- jj_consume_token(22);
- ASTBitwiseAndNode jjtn001 = new ASTBitwiseAndNode(this, JJTBITWISEANDNODE);
- boolean jjtc001 = true;
- jjtree.openNodeScope(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);
- }
- }
- }
- }
- final public void EqualityExpression() throws ParseException {
- RelationalExpression();
- label_8:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case 23:
- case 24:
- case 25:
- case 26:
- ;
- break;
- default:
- jj_la1[11] = jj_gen;
- break label_8;
- }
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case 23:
- jj_consume_token(23);
- ASTEQNode jjtn001 = new ASTEQNode(this, JJTEQNODE);
- boolean jjtc001 = true;
- jjtree.openNodeScope(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);
- }
- }
- break;
- case 24:
- jj_consume_token(24);
- ASTEQNode jjtn002 = new ASTEQNode(this, JJTEQNODE);
- boolean jjtc002 = true;
- jjtree.openNodeScope(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);
- }
- }
- break;
- case 25:
- jj_consume_token(25);
- ASTNENode jjtn003 = new ASTNENode(this, JJTNENODE);
- boolean jjtc003 = true;
- jjtree.openNodeScope(jjtn003);
- try {
- RelationalExpression();
- } 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);
- }
- }
- break;
- case 26:
- jj_consume_token(26);
- ASTNENode jjtn004 = new ASTNENode(this, JJTNENODE);
- boolean jjtc004 = true;
- jjtree.openNodeScope(jjtn004);
- try {
- RelationalExpression();
- } 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);
- }
- }
- break;
- default:
- jj_la1[12] = jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- }
- }
- final public void RelationalExpression() throws ParseException {
- AdditiveExpression();
- label_9:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case 27:
- case 28:
- case 29:
- case 30:
- case 31:
- case 32:
- case 33:
- case 34:
- ;
- break;
- default:
- jj_la1[13] = jj_gen;
- break label_9;
- }
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case 27:
- jj_consume_token(27);
- ASTLTNode jjtn001 = new ASTLTNode(this, JJTLTNODE);
- boolean jjtc001 = true;
- jjtree.openNodeScope(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);
- }
- }
- break;
- case 28:
- jj_consume_token(28);
- ASTLTNode jjtn002 = new ASTLTNode(this, JJTLTNODE);
- boolean jjtc002 = true;
- jjtree.openNodeScope(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);
- }
- }
- break;
- case 29:
- jj_consume_token(29);
- ASTGTNode jjtn003 = new ASTGTNode(this, JJTGTNODE);
- boolean jjtc003 = true;
- jjtree.openNodeScope(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);
- }
- }
- break;
- case 30:
- jj_consume_token(30);
- ASTGTNode jjtn004 = new ASTGTNode(this, JJTGTNODE);
- boolean jjtc004 = true;
- jjtree.openNodeScope(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);
- }
- }
- break;
- case 31:
- jj_consume_token(31);
- ASTLENode jjtn005 = new ASTLENode(this, JJTLENODE);
- boolean jjtc005 = true;
- jjtree.openNodeScope(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);
- }
- }
- break;
- case 32:
- jj_consume_token(32);
- ASTLENode jjtn006 = new ASTLENode(this, JJTLENODE);
- boolean jjtc006 = true;
- jjtree.openNodeScope(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);
- }
- }
- break;
- case 33:
- jj_consume_token(33);
- ASTGENode jjtn007 = new ASTGENode(this, JJTGENODE);
- boolean jjtc007 = true;
- jjtree.openNodeScope(jjtn007);
- try {
- AdditiveExpression();
- } catch (Throwable jjte007) {
- if (jjtc007) {
- jjtree.clearNodeScope(jjtn007);
- jjtc007 = false;
- } else {
- jjtree.popNode();
- }
- if (jjte007 instanceof RuntimeException) {
- {if (true) throw (RuntimeException)jjte007;}
- }
- if (jjte007 instanceof ParseException) {
- {if (true) throw (ParseException)jjte007;}
- }
- {if (true) throw (Error)jjte007;}
- } finally {
- if (jjtc007) {
- jjtree.closeNodeScope(jjtn007, 2);
- }
- }
- break;
- case 34:
- jj_consume_token(34);
- ASTGENode jjtn008 = new ASTGENode(this, JJTGENODE);
- boolean jjtc008 = true;
- jjtree.openNodeScope(jjtn008);
- try {
- AdditiveExpression();
- } catch (Throwable jjte008) {
- if (jjtc008) {
- jjtree.clearNodeScope(jjtn008);
- jjtc008 = false;
- } else {
- jjtree.popNode();
- }
- if (jjte008 instanceof RuntimeException) {
- {if (true) throw (RuntimeException)jjte008;}
- }
- if (jjte008 instanceof ParseException) {
- {if (true) throw (ParseException)jjte008;}
- }
- {if (true) throw (Error)jjte008;}
- } finally {
- if (jjtc008) {
- jjtree.closeNodeScope(jjtn008, 2);
- }
- }
- break;
- default:
- jj_la1[14] = jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- }
- }
- final public void AdditiveExpression() throws ParseException {
- MultiplicativeExpression();
- label_10:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case 35:
- case 36:
- ;
- break;
- default:
- jj_la1[15] = jj_gen;
- break label_10;
- }
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case 35:
- jj_consume_token(35);
- ASTAddNode jjtn001 = new ASTAddNode(this, JJTADDNODE);
- boolean jjtc001 = true;
- jjtree.openNodeScope(jjtn001);
- try {
- MultiplicativeExpression();
- } 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);
- }
- }
- break;
- case 36:
- jj_consume_token(36);
- ASTSubtractNode jjtn002 = new ASTSubtractNode(this, JJTSUBTRACTNODE);
- boolean jjtc002 = true;
- jjtree.openNodeScope(jjtn002);
- try {
- MultiplicativeExpression();
- } 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);
- }
- }
- break;
- default:
- jj_la1[16] = jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- }
- }
- final public void MultiplicativeExpression() throws ParseException {
- UnaryExpression();
- label_11:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case 37:
- case 38:
- case 39:
- case 40:
- case 41:
- ;
- break;
- default:
- jj_la1[17] = jj_gen;
- break label_11;
- }
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case 37:
- jj_consume_token(37);
- ASTMulNode jjtn001 = new ASTMulNode(this, JJTMULNODE);
- boolean jjtc001 = true;
- jjtree.openNodeScope(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);
- }
- }
- break;
- case 38:
- jj_consume_token(38);
- ASTDivNode jjtn002 = new ASTDivNode(this, JJTDIVNODE);
- boolean jjtc002 = true;
- jjtree.openNodeScope(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);
- }
- }
- break;
- case 39:
- jj_consume_token(39);
- ASTDivNode jjtn003 = new ASTDivNode(this, JJTDIVNODE);
- boolean jjtc003 = true;
- jjtree.openNodeScope(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);
- }
- }
- break;
- case 40:
- jj_consume_token(40);
- ASTModNode jjtn004 = new ASTModNode(this, JJTMODNODE);
- boolean jjtc004 = true;
- jjtree.openNodeScope(jjtn004);
- try {
- UnaryExpression();
- } 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);
- }
- }
- break;
- case 41:
- jj_consume_token(41);
- ASTModNode jjtn005 = new ASTModNode(this, JJTMODNODE);
- boolean jjtc005 = true;
- jjtree.openNodeScope(jjtn005);
- try {
- UnaryExpression();
- } 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);
- }
- }
- break;
- default:
- jj_la1[18] = jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- }
- }
- final public void UnaryExpression() throws ParseException {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case 36:
- jj_consume_token(36);
- ASTUnaryMinusNode jjtn001 = new ASTUnaryMinusNode(this, JJTUNARYMINUSNODE);
- boolean jjtc001 = true;
- jjtree.openNodeScope(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);
- }
- }
- break;
- case 42:
- jj_consume_token(42);
- ASTBitwiseComplNode jjtn002 = new ASTBitwiseComplNode(this, JJTBITWISECOMPLNODE);
- boolean jjtc002 = true;
- jjtree.openNodeScope(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);
- }
- }
- break;
- case 43:
- jj_consume_token(43);
- ASTNotNode jjtn003 = new ASTNotNode(this, JJTNOTNODE);
- boolean jjtc003 = true;
- jjtree.openNodeScope(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);
- }
- }
- break;
- case 44:
- jj_consume_token(44);
- ASTNotNode jjtn004 = new ASTNotNode(this, JJTNOTNODE);
- boolean jjtc004 = true;
- jjtree.openNodeScope(jjtn004);
- try {
- UnaryExpression();
- } 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, 1);
- }
- }
- break;
- case INTEGER_LITERAL:
- case FLOAT_LITERAL:
- case 11:
- case 12:
- case 14:
- case 45:
- case 46:
- case 47:
- case IDENTIFIER:
- case STRING_LITERAL:
- PrimaryExpression();
- break;
- default:
- jj_la1[19] = jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- }
- final public void PrimaryExpression() throws ParseException {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case INTEGER_LITERAL:
- case FLOAT_LITERAL:
- case 45:
- case 46:
- case 47:
- case STRING_LITERAL:
- Literal();
- break;
- case IDENTIFIER:
- Reference();
- break;
- case 12:
- jj_consume_token(12);
- Expression();
- jj_consume_token(13);