org.python.parser.PythonGrammar Maven / Gradle / Ivy
Go to download
Jython is an implementation of the high-level, dynamic, object-oriented
language Python written in 100% Pure Java, and seamlessly integrated with
the Java platform. It thus allows you to run Python on any Java platform.
/* Generated By:JJTree&JavaCC: Do not edit this line. PythonGrammar.java */
package org.python.parser;
import org.python.parser.ast.modType;
public class PythonGrammar/*@bgen(jjtree)*/implements PythonGrammarTreeConstants, PythonGrammarConstants {/*@bgen(jjtree)*/
protected JJTPythonGrammarState jjtree = new JJTPythonGrammarState();public IParserHost hostLiteralMkr;
void jjtreeOpenNodeScope(Node n) {
Token t = getToken(1);
jjtree.pushNodePos(t.beginLine, t.beginColumn);
}
void jjtreeCloseNodeScope(Node n) {
jjtree.setNodePos();
}
Object makeInt(String s, int radix) {
if (s.endsWith("L") || s.endsWith("l")) {
s = s.substring(0, s.length()-1);
return hostLiteralMkr.newLong(new java.math.BigInteger(s, radix));
}
int ndigits = s.length();
int i=0;
while (i < ndigits && s.charAt(i) == '0')
i++;
if ((ndigits - i) > 11) {
return hostLiteralMkr.newLong(new java.math.BigInteger(s, radix));
}
long l = Long.valueOf(s, radix).longValue();
if (l > 0xffffffffl || (radix == 10 && l > Integer.MAX_VALUE)) {
return hostLiteralMkr.newLong(new java.math.BigInteger(s, radix));
}
return hostLiteralMkr.newInteger((int) l);
}
Object makeFloat(String s) {
return hostLiteralMkr.newFloat(Double.valueOf(s).doubleValue());
}
Object makeLong(String s) {
return hostLiteralMkr.newLong(s);
}
Object makeComplex(String s) {
s = s.substring(0, s.length() - 1);
return hostLiteralMkr.newImaginary(Double.valueOf(s).doubleValue());
}
String makeString(String s, int quotes) {
//System.out.println("string: "+s);
char quoteChar = s.charAt(0);
int start=0;
boolean ustring = false;
if (quoteChar == 'u' || quoteChar == 'U') {
ustring = true;
start++;
}
quoteChar = s.charAt(start);
if (quoteChar == 'r' || quoteChar == 'R') {
return s.substring(quotes+start+1, s.length()-quotes);
} else {
StringBuffer sb = new StringBuffer(s.length());
char[] ca = s.toCharArray();
int n = ca.length-quotes;
int i=quotes+start;
int last_i=i;
return hostLiteralMkr.decode_UnicodeEscape(s, i, n, "strict", ustring);
}
}
// ! maximal currently used LOOKAHEAD is 3
private static final int MAX_LOOKAHEAD = 3;
public boolean partial_valid_sentence(Throwable t) {
if (t instanceof TokenMgrError) {
// check whether EOF condition inside multi-line string,
// or just after newline continuation inside a string (*NLC states)
TokenMgrError e = (TokenMgrError)t;
switch(e.lexState) {
case IN_STRING1NLC:
case IN_STRING2NLC:
case IN_STRING13:
case IN_STRING23:
case IN_USTRING1NLC:
case IN_USTRING2NLC:
case IN_USTRING13:
case IN_USTRING23:
return e.EOFSeen;
default:
return false;
}
}
if (!(t instanceof ParseException))
return false;
try {
ParseException e = (ParseException)t;
int tok = getNextToken().kind;
if (tok == EOF) return true; // all tokens eaten
// or check whether remaing tokens partially fullfill lookahead
// expectations
int[][] expected = e.expectedTokenSequences;
if (expected == null) return false;
int[] ahead = new int[MAX_LOOKAHEAD-1];
int i = 0;
for(;;) {
ahead[i] = tok;
i++;
tok = getNextToken().kind;
if (tok == EOF) break;
if (i >= MAX_LOOKAHEAD-1) return false;
}
int nahead = i;
next_expected:
for(int j = 0; j>' test (, test)+ [,]
final public void print_stmt() throws ParseException {
if (jj_2_10(2)) {
jj_consume_token(PRINT);
jj_consume_token(RSHIFT);
SimpleNode jjtn001 = (SimpleNode)SimpleNode.jjtCreate(this, JJTPRINTEXT_STMT);
boolean jjtc001 = true;
jjtree.openNodeScope(jjtn001);
jjtreeOpenNodeScope(jjtn001);
try {
test();
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case COMMA:
label_10:
while (true) {
jj_consume_token(COMMA);
test();
if (jj_2_8(2)) {
;
} else {
break label_10;
}
}
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case COMMA:
Comma();
break;
default:
jj_la1[21] = jj_gen;
;
}
break;
default:
jj_la1[22] = jj_gen;
;
}
} 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);
}
}
} else if (jj_2_11(2)) {
jj_consume_token(PRINT);
SimpleNode jjtn002 = (SimpleNode)SimpleNode.jjtCreate(this, JJTPRINT_STMT);
boolean jjtc002 = true;
jjtree.openNodeScope(jjtn002);
jjtreeOpenNodeScope(jjtn002);
try {
test();
label_11:
while (true) {
if (jj_2_9(2)) {
;
} else {
break label_11;
}
jj_consume_token(COMMA);
test();
}
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case COMMA:
Comma();
break;
default:
jj_la1[23] = jj_gen;
;
}
} 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, true);
jjtreeCloseNodeScope(jjtn002);
}
}
} else {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case PRINT:
SimpleNode jjtn003 = (SimpleNode)SimpleNode.jjtCreate(this, JJTPRINT_STMT);
boolean jjtc003 = true;
jjtree.openNodeScope(jjtn003);
jjtreeOpenNodeScope(jjtn003);
try {
jj_consume_token(PRINT);
} finally {
if (jjtc003) {
jjtree.closeNodeScope(jjtn003, true);
jjtreeCloseNodeScope(jjtn003);
}
}
break;
default:
jj_la1[24] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
}
//del_stmt: 'del' exprlist
final public void del_stmt() throws ParseException {
/*@bgen(jjtree) del_stmt */
SimpleNode jjtn000 = (SimpleNode)SimpleNode.jjtCreate(this, JJTDEL_STMT);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
jjtreeOpenNodeScope(jjtn000);
try {
jj_consume_token(DEL);
exprlist();
} 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);
}
}
}
//pass_stmt: 'pass'
final public void pass_stmt() throws ParseException {
/*@bgen(jjtree) pass_stmt */
SimpleNode jjtn000 = (SimpleNode)SimpleNode.jjtCreate(this, JJTPASS_STMT);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
jjtreeOpenNodeScope(jjtn000);
try {
jj_consume_token(PASS);
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
jjtreeCloseNodeScope(jjtn000);
}
}
}
//flow_stmt: break_stmt | continue_stmt | return_stmt | yield_stmt | raise_stmt
final public void flow_stmt() throws ParseException {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case BREAK:
SimpleNode jjtn001 = (SimpleNode)SimpleNode.jjtCreate(this, JJTBREAK_STMT);
boolean jjtc001 = true;
jjtree.openNodeScope(jjtn001);
jjtreeOpenNodeScope(jjtn001);
try {
jj_consume_token(BREAK);
} finally {
if (jjtc001) {
jjtree.closeNodeScope(jjtn001, 0);
jjtreeCloseNodeScope(jjtn001);
}
}
break;
case CONTINUE:
SimpleNode jjtn002 = (SimpleNode)SimpleNode.jjtCreate(this, JJTCONTINUE_STMT);
boolean jjtc002 = true;
jjtree.openNodeScope(jjtn002);
jjtreeOpenNodeScope(jjtn002);
try {
jj_consume_token(CONTINUE);
} finally {
if (jjtc002) {
jjtree.closeNodeScope(jjtn002, 0);
jjtreeCloseNodeScope(jjtn002);
}
}
break;
case RETURN:
return_stmt();
break;
case YIELD:
yield_stmt();
break;
case RAISE:
raise_stmt();
break;
default:
jj_la1[25] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
//return_stmt: 'return' [testlist]
final public void return_stmt() throws ParseException {
/*@bgen(jjtree) return_stmt */
SimpleNode jjtn000 = (SimpleNode)SimpleNode.jjtCreate(this, JJTRETURN_STMT);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
jjtreeOpenNodeScope(jjtn000);
try {
jj_consume_token(RETURN);
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case LPAREN:
case LBRACE:
case LBRACKET:
case PLUS:
case MINUS:
case NOT:
case NOT_BOOL:
case LAMBDA:
case AS:
case NAME:
case DECNUMBER:
case HEXNUMBER:
case OCTNUMBER:
case FLOAT:
case COMPLEX:
case SINGLE_STRING:
case SINGLE_STRING2:
case TRIPLE_STRING:
case TRIPLE_STRING2:
case SINGLE_USTRING:
case SINGLE_USTRING2:
case TRIPLE_USTRING:
case TRIPLE_USTRING2:
case 135:
SmartTestList();
break;
default:
jj_la1[26] = 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);
}
}
}
//yield_stmt: 'yield' [testlist]
final public void yield_stmt() throws ParseException {
/*@bgen(jjtree) yield_stmt */
SimpleNode jjtn000 = (SimpleNode)SimpleNode.jjtCreate(this, JJTYIELD_STMT);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
jjtreeOpenNodeScope(jjtn000);
try {
jj_consume_token(YIELD);
SmartTestList();
} 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);
}
}
}
//raise_stmt: 'raise' [test [',' test [',' test]]]
final public void raise_stmt() throws ParseException {
/*@bgen(jjtree) raise_stmt */
SimpleNode jjtn000 = (SimpleNode)SimpleNode.jjtCreate(this, JJTRAISE_STMT);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
jjtreeOpenNodeScope(jjtn000);
try {
jj_consume_token(RAISE);
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case LPAREN:
case LBRACE:
case LBRACKET:
case PLUS:
case MINUS:
case NOT:
case NOT_BOOL:
case LAMBDA:
case AS:
case NAME:
case DECNUMBER:
case HEXNUMBER:
case OCTNUMBER:
case FLOAT:
case COMPLEX:
case SINGLE_STRING:
case SINGLE_STRING2:
case TRIPLE_STRING:
case TRIPLE_STRING2:
case SINGLE_USTRING:
case SINGLE_USTRING2:
case TRIPLE_USTRING:
case TRIPLE_USTRING2:
case 135:
test();
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case COMMA:
jj_consume_token(COMMA);
test();
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case COMMA:
jj_consume_token(COMMA);
test();
break;
default:
jj_la1[27] = jj_gen;
;
}
break;
default:
jj_la1[28] = jj_gen;
;
}
break;
default:
jj_la1[29] = 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);
}
}
}
//import_stmt: 'import' dotted_name (',' dotted_name)* | 'from' dotted_name 'import' ('*' | NAME (',' NAME)*)
final public void import_stmt() throws ParseException {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case IMPORT:
jj_consume_token(IMPORT);
Import();
break;
case FROM:
jj_consume_token(FROM);
ImportFrom();
break;
default:
jj_la1[30] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
final public void Import() throws ParseException {
/*@bgen(jjtree) Import */
SimpleNode jjtn000 = (SimpleNode)SimpleNode.jjtCreate(this, JJTIMPORT);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
jjtreeOpenNodeScope(jjtn000);
try {
dotted_as_name();
label_12:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case COMMA:
;
break;
default:
jj_la1[31] = jj_gen;
break label_12;
}
jj_consume_token(COMMA);
dotted_as_name();
}
} 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 ImportFrom() throws ParseException {
/*@bgen(jjtree) ImportFrom */
SimpleNode jjtn000 = (SimpleNode)SimpleNode.jjtCreate(this, JJTIMPORTFROM);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
jjtreeOpenNodeScope(jjtn000);String mod; String name;
try {
mod = dotted_name();
jj_consume_token(IMPORT);
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case MULTIPLY:
jj_consume_token(MULTIPLY);
break;
case OR_BOOL:
case AND_BOOL:
case NOT_BOOL:
case IS:
case IN:
case LAMBDA:
case IF:
case ELSE:
case ELIF:
case WHILE:
case FOR:
case TRY:
case EXCEPT:
case DEF:
case CLASS:
case FINALLY:
case PRINT:
case PASS:
case BREAK:
case CONTINUE:
case RETURN:
case YIELD:
case IMPORT:
case FROM:
case DEL:
case RAISE:
case GLOBAL:
case EXEC:
case ASSERT:
case AS:
case NAME:
name = import_as_name();
label_13:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case COMMA:
;
break;
default:
jj_la1[32] = jj_gen;
break label_13;
}
jj_consume_token(COMMA);
import_as_name();
}
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtreeCloseNodeScope(jjtn000);
if (mod.equals("__future__") && name.equals("generators"))
token_source.generator_allowed = true;
break;
default:
jj_la1[33] = 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);
}
}
}
//dotted_as_name: dotted_name [NAME NAME]
final public void dotted_as_name() throws ParseException {
/*@bgen(jjtree) dotted_as_name */
SimpleNode jjtn000 = (SimpleNode)SimpleNode.jjtCreate(this, JJTDOTTED_AS_NAME);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
jjtreeOpenNodeScope(jjtn000);
try {
dotted_name();
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case AS:
jj_consume_token(AS);
Name();
break;
default:
jj_la1[34] = 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);
}
}
}
//dotted_name: NAME ('.' NAME)*
final public String dotted_name() throws ParseException {
/*@bgen(jjtree) dotted_name */
SimpleNode jjtn000 = (SimpleNode)SimpleNode.jjtCreate(this, JJTDOTTED_NAME);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
jjtreeOpenNodeScope(jjtn000);Token t; StringBuffer sb = new StringBuffer();
try {
t = AnyName();
sb.append(t.image);
label_14:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case DOT:
;
break;
default:
jj_la1[35] = jj_gen;
break label_14;
}
jj_consume_token(DOT);
t = AnyName();
sb.append("." + t.image);
}
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtreeCloseNodeScope(jjtn000);
{if (true) return sb.toString();}
} 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");
}
//import_as_name: NAME [NAME NAME]
final public String import_as_name() throws ParseException {
/*@bgen(jjtree) import_as_name */
SimpleNode jjtn000 = (SimpleNode)SimpleNode.jjtCreate(this, JJTIMPORT_AS_NAME);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
jjtreeOpenNodeScope(jjtn000);Token t;
try {
t = AnyName();
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case AS:
jj_consume_token(AS);
Name();
break;
default:
jj_la1[36] = jj_gen;
;
}
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtreeCloseNodeScope(jjtn000);
{if (true) return t.image;}
} 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");
}
//global_stmt: 'global' NAME (',' NAME)*
final public void global_stmt() throws ParseException {
/*@bgen(jjtree) global_stmt */
SimpleNode jjtn000 = (SimpleNode)SimpleNode.jjtCreate(this, JJTGLOBAL_STMT);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
jjtreeOpenNodeScope(jjtn000);
try {
jj_consume_token(GLOBAL);
Name();
label_15:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case COMMA:
;
break;
default:
jj_la1[37] = jj_gen;
break label_15;
}
jj_consume_token(COMMA);
Name();
}
} 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);
}
}
}
//exec_stmt: 'exec' expr ['in' test [',' test]]
final public void exec_stmt() throws ParseException {
/*@bgen(jjtree) exec_stmt */
SimpleNode jjtn000 = (SimpleNode)SimpleNode.jjtCreate(this, JJTEXEC_STMT);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
jjtreeOpenNodeScope(jjtn000);
try {
jj_consume_token(EXEC);
expr();
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case IN:
jj_consume_token(IN);
test();
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case COMMA:
jj_consume_token(COMMA);
test();
break;
default:
jj_la1[38] = jj_gen;
;
}
break;
default:
jj_la1[39] = 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);
}
}
}
//assert_stmt: 'assert' test [',' test]
final public void assert_stmt() throws ParseException {
/*@bgen(jjtree) assert_stmt */
SimpleNode jjtn000 = (SimpleNode)SimpleNode.jjtCreate(this, JJTASSERT_STMT);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
jjtreeOpenNodeScope(jjtn000);
try {
jj_consume_token(ASSERT);
test();
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case COMMA:
jj_consume_token(COMMA);
test();
break;
default:
jj_la1[40] = 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);
}
}
}
//compound_stmt: if_stmt | while_stmt | for_stmt | try_stmt | funcdef | classdef
final public void compound_stmt() throws ParseException {
token_source.compound = true;
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case IF:
if_stmt();
break;
case WHILE:
while_stmt();
break;
case FOR:
for_stmt();
break;
case TRY:
try_stmt();
break;
case DEF:
funcdef();
break;
case CLASS:
classdef();
break;
default:
jj_la1[41] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
//if_stmt: 'if' test ':' suite ('elif' test ':' suite)* ['else' ':' suite]
final public void if_stmt() throws ParseException {
/*@bgen(jjtree) if_stmt */
SimpleNode jjtn000 = (SimpleNode)SimpleNode.jjtCreate(this, JJTIF_STMT);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
jjtreeOpenNodeScope(jjtn000);
try {
jj_consume_token(IF);
test();
jj_consume_token(COLON);
suite();
label_16:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case ELIF:
;
break;
default:
jj_la1[42] = jj_gen;
break label_16;
}
jj_consume_token(ELIF);
test();
jj_consume_token(COLON);
suite();
}
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case ELSE:
jj_consume_token(ELSE);
jj_consume_token(COLON);
suite();
break;
default:
jj_la1[43] = 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);
}
}
}
//while_stmt: 'while' test ':' suite ['else' ':' suite]
final public void while_stmt() throws ParseException {
/*@bgen(jjtree) while_stmt */
SimpleNode jjtn000 = (SimpleNode)SimpleNode.jjtCreate(this, JJTWHILE_STMT);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
jjtreeOpenNodeScope(jjtn000);
try {
jj_consume_token(WHILE);
test();
jj_consume_token(COLON);
suite();
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case ELSE:
jj_consume_token(ELSE);
jj_consume_token(COLON);
suite();
break;
default:
jj_la1[44] = 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);
}
}
}
//for_stmt: 'for' exprlist 'in' testlist ':' suite ['else' ':' suite]
final public void for_stmt() throws ParseException {
/*@bgen(jjtree) for_stmt */
SimpleNode jjtn000 = (SimpleNode)SimpleNode.jjtCreate(this, JJTFOR_STMT);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
jjtreeOpenNodeScope(jjtn000);
try {
jj_consume_token(FOR);
exprlist();
jj_consume_token(IN);
SmartTestList();
jj_consume_token(COLON);
suite();
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case ELSE:
jj_consume_token(ELSE);
jj_consume_token(COLON);
suite();
break;
default:
jj_la1[45] = 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);
}
}
}
//try_stmt: ('try' ':' suite (except_clause ':' suite)+ #diagram:break
// ['else' ':' suite] | 'try' ':' suite 'finally' ':' suite)
final public void try_stmt() throws ParseException {
jj_consume_token(TRY);
jj_consume_token(COLON);
suite();
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case EXCEPT:
SimpleNode jjtn001 = (SimpleNode)SimpleNode.jjtCreate(this, JJTTRY_STMT);
boolean jjtc001 = true;
jjtree.openNodeScope(jjtn001);
jjtreeOpenNodeScope(jjtn001);
try {
label_17:
while (true) {
except_clause();
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case EXCEPT:
;
break;
default:
jj_la1[46] = jj_gen;
break label_17;
}
}
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case ELSE:
jj_consume_token(ELSE);
jj_consume_token(COLON);
suite();
break;
default:
jj_la1[47] = jj_gen;
;
}
} 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, jjtree . nodeArity ( ) + 1);
jjtreeCloseNodeScope(jjtn001);
}
}
break;
case FINALLY:
jj_consume_token(FINALLY);
jj_consume_token(COLON);
SimpleNode jjtn002 = (SimpleNode)SimpleNode.jjtCreate(this, JJTTRYFINALLY_STMT);
boolean jjtc002 = true;
jjtree.openNodeScope(jjtn002);
jjtreeOpenNodeScope(jjtn002);
try {
suite();
} 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, jjtree . nodeArity ( ) + 1);
jjtreeCloseNodeScope(jjtn002);
}
}
break;
default:
jj_la1[48] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
//except_clause: 'except' [test [',' test]]
final public void except_clause() throws ParseException {
/*@bgen(jjtree) except_clause */
SimpleNode jjtn000 = (SimpleNode)SimpleNode.jjtCreate(this, JJTEXCEPT_CLAUSE);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
jjtreeOpenNodeScope(jjtn000);
try {
jj_consume_token(EXCEPT);
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case LPAREN:
case LBRACE:
case LBRACKET:
case PLUS:
case MINUS:
case NOT:
case NOT_BOOL:
case LAMBDA:
case AS:
case NAME:
case DECNUMBER:
case HEXNUMBER:
case OCTNUMBER:
case FLOAT:
case COMPLEX:
case SINGLE_STRING:
case SINGLE_STRING2:
case TRIPLE_STRING:
case TRIPLE_STRING2:
case SINGLE_USTRING:
case SINGLE_USTRING2:
case TRIPLE_USTRING:
case TRIPLE_USTRING2:
case 135:
test();
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case COMMA:
jj_consume_token(COMMA);
test();
break;
default:
jj_la1[49] = jj_gen;
;
}
break;
default:
jj_la1[50] = jj_gen;
;
}
jj_consume_token(COLON);
suite();
} 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);
}
}
}
//suite: simple_stmt | NEWLINE INDENT stmt+ DEDENT
final public void suite() throws ParseException {
/*@bgen(jjtree) suite */
SimpleNode jjtn000 = (SimpleNode)SimpleNode.jjtCreate(this, JJTSUITE);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
jjtreeOpenNodeScope(jjtn000);
try {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case LPAREN:
case LBRACE:
case LBRACKET:
case PLUS:
case MINUS:
case NOT:
case NOT_BOOL:
case LAMBDA:
case PRINT:
case PASS:
case BREAK:
case CONTINUE:
case RETURN:
case YIELD:
case IMPORT:
case FROM:
case DEL:
case RAISE:
case GLOBAL:
case EXEC:
case ASSERT:
case AS:
case NAME:
case DECNUMBER:
case HEXNUMBER:
case OCTNUMBER:
case FLOAT:
case COMPLEX:
case SINGLE_STRING:
case SINGLE_STRING2:
case TRIPLE_STRING:
case TRIPLE_STRING2:
case SINGLE_USTRING:
case SINGLE_USTRING2:
case TRIPLE_USTRING:
case TRIPLE_USTRING2:
case 135:
simple_stmt();
break;
case NEWLINE:
jj_consume_token(NEWLINE);
token_source.expect_indent = true;
jj_consume_token(INDENT);
token_source.expect_indent = false;
label_18:
while (true) {
stmt();
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case LPAREN:
case LBRACE:
case LBRACKET:
case PLUS:
case MINUS:
case NOT:
case NOT_BOOL:
case LAMBDA:
case IF:
case WHILE:
case FOR:
case TRY:
case DEF:
case CLASS:
case PRINT:
case PASS:
case BREAK:
case CONTINUE:
case RETURN:
case YIELD:
case IMPORT:
case FROM:
case DEL:
case RAISE:
case GLOBAL:
case EXEC:
case ASSERT:
case AS:
case NAME:
case DECNUMBER:
case HEXNUMBER:
case OCTNUMBER:
case FLOAT:
case COMPLEX:
case SINGLE_STRING:
case SINGLE_STRING2:
case TRIPLE_STRING:
case TRIPLE_STRING2:
case SINGLE_USTRING:
case SINGLE_USTRING2:
case TRIPLE_USTRING:
case TRIPLE_USTRING2:
case 135:
;
break;
default:
jj_la1[51] = jj_gen;
break label_18;
}
}
jj_consume_token(DEDENT);
break;
default:
jj_la1[52] = 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);
}
}
}
//test: and_test ('or' and_test)* | lambdef
final public void test() throws ParseException {
/*@bgen(jjtree) #or_boolean(> 1) */
SimpleNode jjtn000 = (SimpleNode)SimpleNode.jjtCreate(this, JJTOR_BOOLEAN);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
jjtreeOpenNodeScope(jjtn000);
try {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case LAMBDA:
lambdef();
break;
case LPAREN:
case LBRACE:
case LBRACKET:
case PLUS:
case MINUS:
case NOT:
case NOT_BOOL:
case AS:
case NAME:
case DECNUMBER:
case HEXNUMBER:
case OCTNUMBER:
case FLOAT:
case COMPLEX:
case SINGLE_STRING:
case SINGLE_STRING2:
case TRIPLE_STRING:
case TRIPLE_STRING2:
case SINGLE_USTRING:
case SINGLE_USTRING2:
case TRIPLE_USTRING:
case TRIPLE_USTRING2:
case 135:
and_test();
label_19:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case OR_BOOL:
;
break;
default:
jj_la1[53] = jj_gen;
break label_19;
}
jj_consume_token(OR_BOOL);
and_test();
}
break;
default:
jj_la1[54] = 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, jjtree.nodeArity() > 1);
jjtreeCloseNodeScope(jjtn000);
}
}
}
//and_test: not_test ('and' not_test)*
final public void and_test() throws ParseException {
/*@bgen(jjtree) #and_boolean(> 1) */
SimpleNode jjtn000 = (SimpleNode)SimpleNode.jjtCreate(this, JJTAND_BOOLEAN);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
jjtreeOpenNodeScope(jjtn000);
try {
not_test();
label_20:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case AND_BOOL:
;
break;
default:
jj_la1[55] = jj_gen;
break label_20;
}
jj_consume_token(AND_BOOL);
not_test();
}
} 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);
}
}
}
//not_test: 'not' not_test | comparison
final public void not_test() throws ParseException {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case NOT_BOOL:
jj_consume_token(NOT_BOOL);
SimpleNode jjtn001 = (SimpleNode)SimpleNode.jjtCreate(this, JJTNOT_1OP);
boolean jjtc001 = true;
jjtree.openNodeScope(jjtn001);
jjtreeOpenNodeScope(jjtn001);
try {
not_test();
} 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 LPAREN:
case LBRACE:
case LBRACKET:
case PLUS:
case MINUS:
case NOT:
case AS:
case NAME:
case DECNUMBER:
case HEXNUMBER:
case OCTNUMBER:
case FLOAT:
case COMPLEX:
case SINGLE_STRING:
case SINGLE_STRING2:
case TRIPLE_STRING:
case TRIPLE_STRING2:
case SINGLE_USTRING:
case SINGLE_USTRING2:
case TRIPLE_USTRING:
case TRIPLE_USTRING2:
case 135:
comparison();
break;
default:
jj_la1[56] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
//comparison: expr (comp_op expr)*
final public void comparison() throws ParseException {
SimpleNode jjtn001 = (SimpleNode)SimpleNode.jjtCreate(this, JJTCOMPARISION);
boolean jjtc001 = true;
jjtree.openNodeScope(jjtn001);
jjtreeOpenNodeScope(jjtn001);
try {
expr();
label_21:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case GREATER:
case LESS:
case EQEQUAL:
case EQLESS:
case EQGREATER:
case LESSGREATER:
case NOTEQUAL:
case NOT_BOOL:
case IS:
case IN:
;
break;
default:
jj_la1[57] = jj_gen;
break label_21;
}
comp_op();
expr();
}
} 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, jjtree.nodeArity() > 1);
jjtreeCloseNodeScope(jjtn001);
}
}
}
//comp_op: '<'|'>'|'=='|'>='|'<='|'<>'|'!='|'in'|'not' 'in'|'is'|'is' 'not'
final public void comp_op() throws ParseException {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case LESS:
SimpleNode jjtn001 = (SimpleNode)SimpleNode.jjtCreate(this, JJTLESS_CMP);
boolean jjtc001 = true;
jjtree.openNodeScope(jjtn001);
jjtreeOpenNodeScope(jjtn001);
try {
jj_consume_token(LESS);
} finally {
if (jjtc001) {
jjtree.closeNodeScope(jjtn001, 0);
jjtreeCloseNodeScope(jjtn001);
}
}
break;
case GREATER:
SimpleNode jjtn002 = (SimpleNode)SimpleNode.jjtCreate(this, JJTGREATER_CMP);
boolean jjtc002 = true;
jjtree.openNodeScope(jjtn002);
jjtreeOpenNodeScope(jjtn002);
try {
jj_consume_token(GREATER);
} finally {
if (jjtc002) {
jjtree.closeNodeScope(jjtn002, 0);
jjtreeCloseNodeScope(jjtn002);
}
}
break;
case EQEQUAL:
SimpleNode jjtn003 = (SimpleNode)SimpleNode.jjtCreate(this, JJTEQUAL_CMP);
boolean jjtc003 = true;
jjtree.openNodeScope(jjtn003);
jjtreeOpenNodeScope(jjtn003);
try {
jj_consume_token(EQEQUAL);
} finally {
if (jjtc003) {
jjtree.closeNodeScope(jjtn003, 0);
jjtreeCloseNodeScope(jjtn003);
}
}
break;
case EQGREATER:
SimpleNode jjtn004 = (SimpleNode)SimpleNode.jjtCreate(this, JJTGREATER_EQUAL_CMP);
boolean jjtc004 = true;
jjtree.openNodeScope(jjtn004);
jjtreeOpenNodeScope(jjtn004);
try {
jj_consume_token(EQGREATER);
} finally {
if (jjtc004) {
jjtree.closeNodeScope(jjtn004, 0);
jjtreeCloseNodeScope(jjtn004);
}
}
break;
case EQLESS:
SimpleNode jjtn005 = (SimpleNode)SimpleNode.jjtCreate(this, JJTLESS_EQUAL_CMP);
boolean jjtc005 = true;
jjtree.openNodeScope(jjtn005);
jjtreeOpenNodeScope(jjtn005);
try {
jj_consume_token(EQLESS);
} finally {
if (jjtc005) {
jjtree.closeNodeScope(jjtn005, 0);
jjtreeCloseNodeScope(jjtn005);
}
}
break;
case LESSGREATER:
SimpleNode jjtn006 = (SimpleNode)SimpleNode.jjtCreate(this, JJTNOTEQUAL_CMP);
boolean jjtc006 = true;
jjtree.openNodeScope(jjtn006);
jjtreeOpenNodeScope(jjtn006);
try {
jj_consume_token(LESSGREATER);
} finally {
if (jjtc006) {
jjtree.closeNodeScope(jjtn006, 0);
jjtreeCloseNodeScope(jjtn006);
}
}
break;
case NOTEQUAL:
SimpleNode jjtn007 = (SimpleNode)SimpleNode.jjtCreate(this, JJTNOTEQUAL_CMP);
boolean jjtc007 = true;
jjtree.openNodeScope(jjtn007);
jjtreeOpenNodeScope(jjtn007);
try {
jj_consume_token(NOTEQUAL);
} finally {
if (jjtc007) {
jjtree.closeNodeScope(jjtn007, 0);
jjtreeCloseNodeScope(jjtn007);
}
}
break;
case IN:
SimpleNode jjtn008 = (SimpleNode)SimpleNode.jjtCreate(this, JJTIN_CMP);
boolean jjtc008 = true;
jjtree.openNodeScope(jjtn008);
jjtreeOpenNodeScope(jjtn008);
try {
jj_consume_token(IN);
} finally {
if (jjtc008) {
jjtree.closeNodeScope(jjtn008, 0);
jjtreeCloseNodeScope(jjtn008);
}
}
break;
case NOT_BOOL:
jj_consume_token(NOT_BOOL);
SimpleNode jjtn009 = (SimpleNode)SimpleNode.jjtCreate(this, JJTNOT_IN_CMP);
boolean jjtc009 = true;
jjtree.openNodeScope(jjtn009);
jjtreeOpenNodeScope(jjtn009);
try {
jj_consume_token(IN);
} finally {
if (jjtc009) {
jjtree.closeNodeScope(jjtn009, 0);
jjtreeCloseNodeScope(jjtn009);
}
}
break;
default:
jj_la1[58] = jj_gen;
if (jj_2_12(2)) {
jj_consume_token(IS);
SimpleNode jjtn010 = (SimpleNode)SimpleNode.jjtCreate(this, JJTIS_NOT_CMP);
boolean jjtc010 = true;
jjtree.openNodeScope(jjtn010);
jjtreeOpenNodeScope(jjtn010);
try {
jj_consume_token(NOT_BOOL);
} finally {
if (jjtc010) {
jjtree.closeNodeScope(jjtn010, 0);
jjtreeCloseNodeScope(jjtn010);
}
}
} else {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case IS:
SimpleNode jjtn011 = (SimpleNode)SimpleNode.jjtCreate(this, JJTIS_CMP);
boolean jjtc011 = true;
jjtree.openNodeScope(jjtn011);
jjtreeOpenNodeScope(jjtn011);
try {
jj_consume_token(IS);
} finally {
if (jjtc011) {
jjtree.closeNodeScope(jjtn011, 0);
jjtreeCloseNodeScope(jjtn011);
}
}
break;
default:
jj_la1[59] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
}
}
//expr: xor_expr ('|' xor_expr)*
final public void expr() throws ParseException {
xor_expr();
label_22:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case OR:
;
break;
default:
jj_la1[60] = jj_gen;
break label_22;
}
jj_consume_token(OR);
SimpleNode jjtn001 = (SimpleNode)SimpleNode.jjtCreate(this, JJTOR_2OP);
boolean jjtc001 = true;
jjtree.openNodeScope(jjtn001);
jjtreeOpenNodeScope(jjtn001);
try {
xor_expr();
} 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);
}
}
}
}
//xor_expr: and_expr ('^' and_expr)*
final public void xor_expr() throws ParseException {
and_expr();
label_23:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case XOR:
;
break;
default:
jj_la1[61] = jj_gen;
break label_23;
}
jj_consume_token(XOR);
SimpleNode jjtn001 = (SimpleNode)SimpleNode.jjtCreate(this, JJTXOR_2OP);
boolean jjtc001 = true;
jjtree.openNodeScope(jjtn001);
jjtreeOpenNodeScope(jjtn001);
try {
and_expr();
} 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);
}
}
}
}
//and_expr: shift_expr ('&' shift_expr)*
final public void and_expr() throws ParseException {
shift_expr();
label_24:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case AND:
;
break;
default:
jj_la1[62] = jj_gen;
break label_24;
}
jj_consume_token(AND);
SimpleNode jjtn001 = (SimpleNode)SimpleNode.jjtCreate(this, JJTAND_2OP);
boolean jjtc001 = true;
jjtree.openNodeScope(jjtn001);
jjtreeOpenNodeScope(jjtn001);
try {
shift_expr();
} 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);
}
}
}
}
//shift_expr: arith_expr (('<<'|'>>') arith_expr)*
final public void shift_expr() throws ParseException {
arith_expr();
label_25:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case LSHIFT:
case RSHIFT:
;
break;
default:
jj_la1[63] = jj_gen;
break label_25;
}
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case LSHIFT:
jj_consume_token(LSHIFT);
SimpleNode jjtn001 = (SimpleNode)SimpleNode.jjtCreate(this, JJTLSHIFT_2OP);
boolean jjtc001 = true;
jjtree.openNodeScope(jjtn001);
jjtreeOpenNodeScope(jjtn001);
try {
arith_expr();
} 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 RSHIFT:
jj_consume_token(RSHIFT);
SimpleNode jjtn002 = (SimpleNode)SimpleNode.jjtCreate(this, JJTRSHIFT_2OP);
boolean jjtc002 = true;
jjtree.openNodeScope(jjtn002);
jjtreeOpenNodeScope(jjtn002);
try {
arith_expr();
} 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[64] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
}
//arith_expr: term (('+'|'-') term)*
final public void arith_expr() throws ParseException {
term();
label_26:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case PLUS:
case MINUS:
;
break;
default:
jj_la1[65] = jj_gen;
break label_26;
}
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case PLUS:
jj_consume_token(PLUS);
SimpleNode jjtn001 = (SimpleNode)SimpleNode.jjtCreate(this, JJTADD_2OP);
boolean jjtc001 = true;
jjtree.openNodeScope(jjtn001);
jjtreeOpenNodeScope(jjtn001);
try {
term();
} 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 MINUS:
jj_consume_token(MINUS);
SimpleNode jjtn002 = (SimpleNode)SimpleNode.jjtCreate(this, JJTSUB_2OP);
boolean jjtc002 = true;
jjtree.openNodeScope(jjtn002);
jjtreeOpenNodeScope(jjtn002);
try {
term();
} 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[66] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
}
//term: factor (('*'|'/'|'%') factor)*
final public void term() throws ParseException {
factor();
label_27:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case MULTIPLY:
case DIVIDE:
case FLOORDIVIDE:
case MODULO:
;
break;
default:
jj_la1[67] = jj_gen;
break label_27;
}
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case MULTIPLY:
jj_consume_token(MULTIPLY);
SimpleNode jjtn001 = (SimpleNode)SimpleNode.jjtCreate(this, JJTMUL_2OP);
boolean jjtc001 = true;
jjtree.openNodeScope(jjtn001);
jjtreeOpenNodeScope(jjtn001);
try {
factor();
} 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 DIVIDE:
jj_consume_token(DIVIDE);
SimpleNode jjtn002 = (SimpleNode)SimpleNode.jjtCreate(this, JJTDIV_2OP);
boolean jjtc002 = true;
jjtree.openNodeScope(jjtn002);
jjtreeOpenNodeScope(jjtn002);
try {
factor();
} 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 FLOORDIVIDE:
jj_consume_token(FLOORDIVIDE);
SimpleNode jjtn003 = (SimpleNode)SimpleNode.jjtCreate(this, JJTFLOORDIV_2OP);
boolean jjtc003 = true;
jjtree.openNodeScope(jjtn003);
jjtreeOpenNodeScope(jjtn003);
try {
factor();
} 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 MODULO:
jj_consume_token(MODULO);
SimpleNode jjtn004 = (SimpleNode)SimpleNode.jjtCreate(this, JJTMOD_2OP);
boolean jjtc004 = true;
jjtree.openNodeScope(jjtn004);
jjtreeOpenNodeScope(jjtn004);
try {
factor();
} 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;
default:
jj_la1[68] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
}
//factor: ('+'|'-'|'~') factor | power
final public void factor() throws ParseException {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case PLUS:
jj_consume_token(PLUS);
SimpleNode jjtn001 = (SimpleNode)SimpleNode.jjtCreate(this, JJTPOS_1OP);
boolean jjtc001 = true;
jjtree.openNodeScope(jjtn001);
jjtreeOpenNodeScope(jjtn001);
try {
factor();
} 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 MINUS:
jj_consume_token(MINUS);
SimpleNode jjtn002 = (SimpleNode)SimpleNode.jjtCreate(this, JJTNEG_1OP);
boolean jjtc002 = true;
jjtree.openNodeScope(jjtn002);
jjtreeOpenNodeScope(jjtn002);
try {
factor();
} 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);
SimpleNode jjtn003 = (SimpleNode)SimpleNode.jjtCreate(this, JJTINVERT_1OP);
boolean jjtc003 = true;
jjtree.openNodeScope(jjtn003);
jjtreeOpenNodeScope(jjtn003);
try {
factor();
} 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 LPAREN:
case LBRACE:
case LBRACKET:
case AS:
case NAME:
case DECNUMBER:
case HEXNUMBER:
case OCTNUMBER:
case FLOAT:
case COMPLEX:
case SINGLE_STRING:
case SINGLE_STRING2:
case TRIPLE_STRING:
case TRIPLE_STRING2:
case SINGLE_USTRING:
case SINGLE_USTRING2:
case TRIPLE_USTRING:
case TRIPLE_USTRING2:
case 135:
power();
break;
default:
jj_la1[69] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
/*Modified, no recursion*/
//power: atom trailer* ('**' factor)*
final public void power() throws ParseException {
atomtrailer();
label_28:
while (true) {
if (jj_2_13(2)) {
;
} else {
break label_28;
}
jj_consume_token(POWER);
SimpleNode jjtn001 = (SimpleNode)SimpleNode.jjtCreate(this, JJTPOW_2OP);
boolean jjtc001 = true;
jjtree.openNodeScope(jjtn001);
jjtreeOpenNodeScope(jjtn001);
try {
factor();
} 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);
}
}
}
}
//trailer: '(' [arglist] ')' | '[' subscriptlist ']' | '.' NAME
final public void atomtrailer() throws ParseException {
atom();
label_29:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case LPAREN:
case LBRACKET:
case DOT:
;
break;
default:
jj_la1[70] = jj_gen;
break label_29;
}
if (jj_2_14(2)) {
jj_consume_token(LPAREN);
SimpleNode jjtn001 = (SimpleNode)SimpleNode.jjtCreate(this, JJTCALL_OP);
boolean jjtc001 = true;
jjtree.openNodeScope(jjtn001);
jjtreeOpenNodeScope(jjtn001);
try {
jj_consume_token(RPAREN);
} finally {
if (jjtc001) {
jjtree.closeNodeScope(jjtn001, 1);
jjtreeCloseNodeScope(jjtn001);
}
}
} else {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case LPAREN:
SimpleNode jjtn002 = (SimpleNode)SimpleNode.jjtCreate(this, JJTCALL_OP);
boolean jjtc002 = true;
jjtree.openNodeScope(jjtn002);
jjtreeOpenNodeScope(jjtn002);
try {
jj_consume_token(LPAREN);
arglist();
jj_consume_token(RPAREN);
} 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, jjtree . nodeArity ( ) + 1);
jjtreeCloseNodeScope(jjtn002);
}
}
break;
case LBRACKET:
jj_consume_token(LBRACKET);
subscriptlist();
SimpleNode jjtn003 = (SimpleNode)SimpleNode.jjtCreate(this, JJTINDEX_OP);
boolean jjtc003 = true;
jjtree.openNodeScope(jjtn003);
jjtreeOpenNodeScope(jjtn003);
try {
jj_consume_token(RBRACKET);
} finally {
if (jjtc003) {
jjtree.closeNodeScope(jjtn003, 2);
jjtreeCloseNodeScope(jjtn003);
}
}
break;
case DOT:
jj_consume_token(DOT);
SimpleNode jjtn004 = (SimpleNode)SimpleNode.jjtCreate(this, JJTDOT_OP);
boolean jjtc004 = true;
jjtree.openNodeScope(jjtn004);
jjtreeOpenNodeScope(jjtn004);
try {
AnyName();
} 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;
default:
jj_la1[71] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
}
}
//atom: '(' [testlist] ')' | '[' [testlist] ']' | '{' [dictmaker] '}' | '`' testlist '`' | NAME | NUMBER | STRING+
final public void atom() throws ParseException {
if (jj_2_15(2)) {
SimpleNode jjtn001 = (SimpleNode)SimpleNode.jjtCreate(this, JJTTUPLE);
boolean jjtc001 = true;
jjtree.openNodeScope(jjtn001);
jjtreeOpenNodeScope(jjtn001);
try {
jj_consume_token(LPAREN);
jj_consume_token(RPAREN);
} finally {
if (jjtc001) {
jjtree.closeNodeScope(jjtn001, true);
jjtreeCloseNodeScope(jjtn001);
}
}
} else {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case LPAREN:
jj_consume_token(LPAREN);
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case LPAREN:
case LBRACE:
case LBRACKET:
case PLUS:
case MINUS:
case NOT:
case NOT_BOOL:
case LAMBDA:
case AS:
case NAME:
case DECNUMBER:
case HEXNUMBER:
case OCTNUMBER:
case FLOAT:
case COMPLEX:
case SINGLE_STRING:
case SINGLE_STRING2:
case TRIPLE_STRING:
case TRIPLE_STRING2:
case SINGLE_USTRING:
case SINGLE_USTRING2:
case TRIPLE_USTRING:
case TRIPLE_USTRING2:
case 135:
SmartTestList();
break;
default:
jj_la1[72] = jj_gen;
;
}
jj_consume_token(RPAREN);
break;
case LBRACKET:
SimpleNode jjtn002 = (SimpleNode)SimpleNode.jjtCreate(this, JJTLIST);
boolean jjtc002 = true;
jjtree.openNodeScope(jjtn002);
jjtreeOpenNodeScope(jjtn002);
try {
jj_consume_token(LBRACKET);
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case LPAREN:
case LBRACE:
case LBRACKET:
case PLUS:
case MINUS:
case NOT:
case NOT_BOOL:
case LAMBDA:
case AS:
case NAME:
case DECNUMBER:
case HEXNUMBER:
case OCTNUMBER:
case FLOAT:
case COMPLEX:
case SINGLE_STRING:
case SINGLE_STRING2:
case TRIPLE_STRING:
case TRIPLE_STRING2:
case SINGLE_USTRING:
case SINGLE_USTRING2:
case TRIPLE_USTRING:
case TRIPLE_USTRING2:
case 135:
listmaker();
break;
default:
jj_la1[73] = jj_gen;
;
}
jj_consume_token(RBRACKET);
} 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, true);
jjtreeCloseNodeScope(jjtn002);
}
}
break;
case LBRACE:
SimpleNode jjtn003 = (SimpleNode)SimpleNode.jjtCreate(this, JJTDICTIONARY);
boolean jjtc003 = true;
jjtree.openNodeScope(jjtn003);
jjtreeOpenNodeScope(jjtn003);
try {
jj_consume_token(LBRACE);
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case LPAREN:
case LBRACE:
case LBRACKET:
case PLUS:
case MINUS:
case NOT:
case NOT_BOOL:
case LAMBDA:
case AS:
case NAME:
case DECNUMBER:
case HEXNUMBER:
case OCTNUMBER:
case FLOAT:
case COMPLEX:
case SINGLE_STRING:
case SINGLE_STRING2:
case TRIPLE_STRING:
case TRIPLE_STRING2:
case SINGLE_USTRING:
case SINGLE_USTRING2:
case TRIPLE_USTRING:
case TRIPLE_USTRING2:
case 135:
dictmaker();
break;
default:
jj_la1[74] = jj_gen;
;
}
jj_consume_token(RBRACE);
} 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, true);
jjtreeCloseNodeScope(jjtn003);
}
}
break;
case 135:
jj_consume_token(135);
SmartTestList();
SimpleNode jjtn004 = (SimpleNode)SimpleNode.jjtCreate(this, JJTSTR_1OP);
boolean jjtc004 = true;
jjtree.openNodeScope(jjtn004);
jjtreeOpenNodeScope(jjtn004);
try {
jj_consume_token(135);
} finally {
if (jjtc004) {
jjtree.closeNodeScope(jjtn004, 1);
jjtreeCloseNodeScope(jjtn004);
}
}
break;
case AS:
case NAME:
Name();
break;
case DECNUMBER:
case HEXNUMBER:
case OCTNUMBER:
case FLOAT:
case COMPLEX:
Number();
break;
case SINGLE_STRING:
case SINGLE_STRING2:
case TRIPLE_STRING:
case TRIPLE_STRING2:
case SINGLE_USTRING:
case SINGLE_USTRING2:
case TRIPLE_USTRING:
case TRIPLE_USTRING2:
String();
label_30:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case SINGLE_STRING:
case SINGLE_STRING2:
case TRIPLE_STRING:
case TRIPLE_STRING2:
case SINGLE_USTRING:
case SINGLE_USTRING2:
case TRIPLE_USTRING:
case TRIPLE_USTRING2:
;
break;
default:
jj_la1[75] = jj_gen;
break label_30;
}
SimpleNode jjtn005 = (SimpleNode)SimpleNode.jjtCreate(this, JJTSTRJOIN);
boolean jjtc005 = true;
jjtree.openNodeScope(jjtn005);
jjtreeOpenNodeScope(jjtn005);
try {
String();
} 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;
default:
jj_la1[76] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
}
//lambdef: 'lambda' [varargslist] ':' test
final public void lambdef() throws ParseException {
/*@bgen(jjtree) lambdef */
SimpleNode jjtn000 = (SimpleNode)SimpleNode.jjtCreate(this, JJTLAMBDEF);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
jjtreeOpenNodeScope(jjtn000);
try {
jj_consume_token(LAMBDA);
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case LPAREN:
case MULTIPLY:
case POWER:
case AS:
case NAME:
varargslist();
break;
default:
jj_la1[77] = jj_gen;
;
}
jj_consume_token(COLON);
test();
} 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);
}
}
}
//subscriptlist: subscript (',' subscript)* [',']
final public void subscriptlist() throws ParseException {
SimpleNode jjtn001 = (SimpleNode)SimpleNode.jjtCreate(this, JJTSUBSCRIPTLIST);
boolean jjtc001 = true;
jjtree.openNodeScope(jjtn001);
jjtreeOpenNodeScope(jjtn001);
try {
subscript();
label_31:
while (true) {
if (jj_2_16(2)) {
;
} else {
break label_31;
}
jj_consume_token(COMMA);
subscript();
}
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case COMMA:
Comma();
break;
default:
jj_la1[78] = jj_gen;
;
}
} 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, jjtree.nodeArity() > 1);
jjtreeCloseNodeScope(jjtn001);
}
}
}
//subscript: '.' '.' '.' | test | [test] ':' [test] [sliceop]
final public void subscript() throws ParseException {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case DOT:
jj_consume_token(DOT);
jj_consume_token(DOT);
SimpleNode jjtn001 = (SimpleNode)SimpleNode.jjtCreate(this, JJTELLIPSES);
boolean jjtc001 = true;
jjtree.openNodeScope(jjtn001);
jjtreeOpenNodeScope(jjtn001);
try {
jj_consume_token(DOT);
} finally {
if (jjtc001) {
jjtree.closeNodeScope(jjtn001, true);
jjtreeCloseNodeScope(jjtn001);
}
}
break;
case LPAREN:
case LBRACE:
case LBRACKET:
case PLUS:
case MINUS:
case NOT:
case NOT_BOOL:
case LAMBDA:
case AS:
case NAME:
case DECNUMBER:
case HEXNUMBER:
case OCTNUMBER:
case FLOAT:
case COMPLEX:
case SINGLE_STRING:
case SINGLE_STRING2:
case TRIPLE_STRING:
case TRIPLE_STRING2:
case SINGLE_USTRING:
case SINGLE_USTRING2:
case TRIPLE_USTRING:
case TRIPLE_USTRING2:
case 135:
SimpleNode jjtn002 = (SimpleNode)SimpleNode.jjtCreate(this, JJTSLICE);
boolean jjtc002 = true;
jjtree.openNodeScope(jjtn002);
jjtreeOpenNodeScope(jjtn002);
try {
test();
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case COLON:
slice();
break;
default:
jj_la1[79] = jj_gen;
;
}
} 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, true);
jjtreeCloseNodeScope(jjtn002);
}
}
break;
case COLON:
SimpleNode jjtn003 = (SimpleNode)SimpleNode.jjtCreate(this, JJTSLICE);
boolean jjtc003 = true;
jjtree.openNodeScope(jjtn003);
jjtreeOpenNodeScope(jjtn003);
try {
slice();
} 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, jjtree.nodeArity() > 0);
jjtreeCloseNodeScope(jjtn003);
}
}
break;
default:
jj_la1[80] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
//sliceop: ':' [test]
final public void slice() throws ParseException {
Colon();
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case LPAREN:
case LBRACE:
case LBRACKET:
case PLUS:
case MINUS:
case NOT:
case NOT_BOOL:
case LAMBDA:
case AS:
case NAME:
case DECNUMBER:
case HEXNUMBER:
case OCTNUMBER:
case FLOAT:
case COMPLEX:
case SINGLE_STRING:
case SINGLE_STRING2:
case TRIPLE_STRING:
case TRIPLE_STRING2:
case SINGLE_USTRING:
case SINGLE_USTRING2:
case TRIPLE_USTRING:
case TRIPLE_USTRING2:
case 135:
test();
break;
default:
jj_la1[81] = jj_gen;
;
}
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case COLON:
Colon();
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case LPAREN:
case LBRACE:
case LBRACKET:
case PLUS:
case MINUS:
case NOT:
case NOT_BOOL:
case LAMBDA:
case AS:
case NAME:
case DECNUMBER:
case HEXNUMBER:
case OCTNUMBER:
case FLOAT:
case COMPLEX:
case SINGLE_STRING:
case SINGLE_STRING2:
case TRIPLE_STRING:
case TRIPLE_STRING2:
case SINGLE_USTRING:
case SINGLE_USTRING2:
case TRIPLE_USTRING:
case TRIPLE_USTRING2:
case 135:
test();
break;
default:
jj_la1[82] = jj_gen;
;
}
break;
default:
jj_la1[83] = jj_gen;
;
}
}
final public void Colon() throws ParseException {
/*@bgen(jjtree) Colon */
SimpleNode jjtn000 = (SimpleNode)SimpleNode.jjtCreate(this, JJTCOLON);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
jjtreeOpenNodeScope(jjtn000);
try {
jj_consume_token(COLON);
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
jjtreeCloseNodeScope(jjtn000);
}
}
}
final public void Comma() throws ParseException {
/*@bgen(jjtree) Comma */
SimpleNode jjtn000 = (SimpleNode)SimpleNode.jjtCreate(this, JJTCOMMA);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
jjtreeOpenNodeScope(jjtn000);
try {
jj_consume_token(COMMA);
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
jjtreeCloseNodeScope(jjtn000);
}
}
}
//exprlist: expr (',' expr)* [',']
final public void exprlist() throws ParseException {
SimpleNode jjtn001 = (SimpleNode)SimpleNode.jjtCreate(this, JJTTUPLE);
boolean jjtc001 = true;
jjtree.openNodeScope(jjtn001);
jjtreeOpenNodeScope(jjtn001);
try {
expr();
label_32:
while (true) {
if (jj_2_17(2)) {
;
} else {
break label_32;
}
jj_consume_token(COMMA);
expr();
}
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case COMMA:
Comma();
break;
default:
jj_la1[84] = jj_gen;
;
}
} 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, jjtree.nodeArity() > 1);
jjtreeCloseNodeScope(jjtn001);
}
}
}
//testlist: test (',' test)* [',']
final public void SmartTestList() throws ParseException {
SimpleNode jjtn001 = (SimpleNode)SimpleNode.jjtCreate(this, JJTTUPLE);
boolean jjtc001 = true;
jjtree.openNodeScope(jjtn001);
jjtreeOpenNodeScope(jjtn001);
try {
test();
label_33:
while (true) {
if (jj_2_18(2)) {
;
} else {
break label_33;
}
jj_consume_token(COMMA);
test();
}
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case COMMA:
Comma();
break;
default:
jj_la1[85] = jj_gen;
;
}
} 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, jjtree.nodeArity() > 1);
jjtreeCloseNodeScope(jjtn001);
}
}
}
//testlist: test (',' test)* [',']
final public void testlist() throws ParseException {
test();
label_34:
while (true) {
if (jj_2_19(2)) {
;
} else {
break label_34;
}
jj_consume_token(COMMA);
test();
}
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case COMMA:
jj_consume_token(COMMA);
break;
default:
jj_la1[86] = jj_gen;
;
}
}
//dictmaker: test ':' test (',' test ':' test)* [',']
final public void dictmaker() throws ParseException {
test();
jj_consume_token(COLON);
test();
label_35:
while (true) {
if (jj_2_20(2)) {
;
} else {
break label_35;
}
jj_consume_token(COMMA);
test();
jj_consume_token(COLON);
test();
}
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case COMMA:
jj_consume_token(COMMA);
break;
default:
jj_la1[87] = jj_gen;
;
}
}
//listmaker: test ( list_for | (',' test)* [','] )
final public void listmaker() throws ParseException {
test();
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case FOR:
label_36:
while (true) {
list_for();
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case FOR:
;
break;
default:
jj_la1[88] = jj_gen;
break label_36;
}
}
break;
default:
jj_la1[90] = jj_gen;
label_37:
while (true) {
if (jj_2_21(2)) {
;
} else {
break label_37;
}
jj_consume_token(COMMA);
test();
}
SimpleNode jjtn001 = (SimpleNode)SimpleNode.jjtCreate(this, JJTTUPLE);
boolean jjtc001 = true;
jjtree.openNodeScope(jjtn001);
jjtreeOpenNodeScope(jjtn001);
try {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case COMMA:
Comma();
break;
default:
jj_la1[89] = jj_gen;
;
}
} 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, jjtree.nodeArity() > 1);
jjtreeCloseNodeScope(jjtn001);
}
}
}
}
//list_iter: [list_for | list_if]
//void list_iter() #void: {}
//{ [ (list_for() | list_if()) ] }
//list_for: 'for' exprlist 'in' testlist list_iter
final public void list_for() throws ParseException {
/*@bgen(jjtree) list_for */
SimpleNode jjtn000 = (SimpleNode)SimpleNode.jjtCreate(this, JJTLIST_FOR);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
jjtreeOpenNodeScope(jjtn000);
try {
jj_consume_token(FOR);
exprlist();
jj_consume_token(IN);
SmartTestList();
label_38:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case IF:
;
break;
default:
jj_la1[91] = jj_gen;
break label_38;
}
list_if();
}
} 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);
}
}
}
//list_if: 'if' test list_iter
final public void list_if() throws ParseException {
jj_consume_token(IF);
test();
}
//classdef: 'class' NAME ['(' testlist ')'] ':' suite
final public void classdef() throws ParseException {
/*@bgen(jjtree) classdef */
SimpleNode jjtn000 = (SimpleNode)SimpleNode.jjtCreate(this, JJTCLASSDEF);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
jjtreeOpenNodeScope(jjtn000);
try {
jj_consume_token(CLASS);
Name();
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case LPAREN:
jj_consume_token(LPAREN);
testlist();
jj_consume_token(RPAREN);
break;
default:
jj_la1[92] = jj_gen;
;
}
jj_consume_token(COLON);
suite();
} 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);
}
}
}
//arglist: (argument ',')*
// (argument [',']| '*' test [',' '**' test] | '**' test)
final public void arglist() throws ParseException {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case LPAREN:
case LBRACE:
case LBRACKET:
case PLUS:
case MINUS:
case NOT:
case OR_BOOL:
case AND_BOOL:
case NOT_BOOL:
case IS:
case IN:
case LAMBDA:
case IF:
case ELSE:
case ELIF:
case WHILE:
case FOR:
case TRY:
case EXCEPT:
case DEF:
case CLASS:
case FINALLY:
case PRINT:
case PASS:
case BREAK:
case CONTINUE:
case RETURN:
case YIELD:
case IMPORT:
case FROM:
case DEL:
case RAISE:
case GLOBAL:
case EXEC:
case ASSERT:
case AS:
case NAME:
case DECNUMBER:
case HEXNUMBER:
case OCTNUMBER:
case FLOAT:
case COMPLEX:
case SINGLE_STRING:
case SINGLE_STRING2:
case TRIPLE_STRING:
case TRIPLE_STRING2:
case SINGLE_USTRING:
case SINGLE_USTRING2:
case TRIPLE_USTRING:
case TRIPLE_USTRING2:
case 135:
normalargs();
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case COMMA:
jj_consume_token(COMMA);
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case MULTIPLY:
case POWER:
if (jj_2_22(2)) {
ExtraArgValueList();
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case COMMA:
jj_consume_token(COMMA);
ExtraKeywordValueList();
break;
default:
jj_la1[93] = jj_gen;
;
}
} else {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case MULTIPLY:
case POWER:
ExtraKeywordValueList();
break;
default:
jj_la1[94] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
break;
default:
jj_la1[95] = jj_gen;
;
}
break;
default:
jj_la1[96] = jj_gen;
;
}
break;
default:
jj_la1[100] = jj_gen;
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case MULTIPLY:
case POWER:
if (jj_2_23(2)) {
ExtraArgValueList();
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case COMMA:
jj_consume_token(COMMA);
ExtraKeywordValueList();
break;
default:
jj_la1[97] = jj_gen;
;
}
} else {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case MULTIPLY:
case POWER:
ExtraKeywordValueList();
break;
default:
jj_la1[98] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
break;
default:
jj_la1[99] = jj_gen;
;
}
}
}
final public void normalargs() throws ParseException {
argument();
label_39:
while (true) {
if (jj_2_24(2)) {
;
} else {
break label_39;
}
jj_consume_token(COMMA);
argument();
}
}
final public void ExtraArgValueList() throws ParseException {
/*@bgen(jjtree) ExtraArgValueList */
SimpleNode jjtn000 = (SimpleNode)SimpleNode.jjtCreate(this, JJTEXTRAARGVALUELIST);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
jjtreeOpenNodeScope(jjtn000);
try {
jj_consume_token(MULTIPLY);
test();
} 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 ExtraKeywordValueList() throws ParseException {
/*@bgen(jjtree) ExtraKeywordValueList */
SimpleNode jjtn000 = (SimpleNode)SimpleNode.jjtCreate(this, JJTEXTRAKEYWORDVALUELIST);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
jjtreeOpenNodeScope(jjtn000);
try {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case POWER:
jj_consume_token(POWER);
break;
case MULTIPLY:
jj_consume_token(MULTIPLY);
jj_consume_token(MULTIPLY);
break;
default:
jj_la1[101] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
test();
} 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);
}
}
}
//argument: [test '='] test # Really [keyword '='] test
final public void argument() throws ParseException {
SimpleNode jjtn001 = (SimpleNode)SimpleNode.jjtCreate(this, JJTKEYWORD);
boolean jjtc001 = true;
jjtree.openNodeScope(jjtn001);
jjtreeOpenNodeScope(jjtn001);
try {
if (jj_2_25(2)) {
AnyName();
jj_consume_token(EQUAL);
} else {
;
}
test();
} 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, jjtree.nodeArity() > 1);
jjtreeCloseNodeScope(jjtn001);
}
}
}
final public void Number() throws ParseException {
/*@bgen(jjtree) Num */
SimpleNode jjtn000 = (SimpleNode)SimpleNode.jjtCreate(this, JJTNUM);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
jjtreeOpenNodeScope(jjtn000);Token t;
try {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case HEXNUMBER:
t = jj_consume_token(HEXNUMBER);
String s = t.image.substring(2, t.image.length());
jjtn000.setImage(makeInt(s, 16));
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtreeCloseNodeScope(jjtn000);
break;
case OCTNUMBER:
t = jj_consume_token(OCTNUMBER);
jjtn000.setImage(makeInt(t.image, 8));
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtreeCloseNodeScope(jjtn000);
break;
case DECNUMBER:
t = jj_consume_token(DECNUMBER);
jjtn000.setImage(makeInt(t.image, 10));
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtreeCloseNodeScope(jjtn000);
break;
case FLOAT:
t = jj_consume_token(FLOAT);
jjtn000.setImage(makeFloat(t.image));
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtreeCloseNodeScope(jjtn000);
break;
case COMPLEX:
t = jj_consume_token(COMPLEX);
jjtn000.setImage(makeComplex(t.image));
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtreeCloseNodeScope(jjtn000);
break;
default:
jj_la1[102] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
jjtreeCloseNodeScope(jjtn000);
}
}
}
final public void Complex() throws ParseException {
/*@bgen(jjtree) Complex */
SimpleNode jjtn000 = (SimpleNode)SimpleNode.jjtCreate(this, JJTCOMPLEX);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
jjtreeOpenNodeScope(jjtn000);
try {
jj_consume_token(FLOAT);
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
jjtreeCloseNodeScope(jjtn000);
}
}
}
final public void Name() throws ParseException {
/*@bgen(jjtree) Name */
SimpleNode jjtn000 = (SimpleNode)SimpleNode.jjtCreate(this, JJTNAME);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
jjtreeOpenNodeScope(jjtn000);Token t;
try {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case NAME:
t = jj_consume_token(NAME);
jjtn000.setImage(t.image);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtreeCloseNodeScope(jjtn000);
break;
case AS:
t = jj_consume_token(AS);
jjtn000.setImage(t.image);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtreeCloseNodeScope(jjtn000);
break;
default:
jj_la1[103] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
jjtreeCloseNodeScope(jjtn000);
}
}
}
final public void String() throws ParseException {
Token t;
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case SINGLE_STRING:
SimpleNode jjtn001 = (SimpleNode)SimpleNode.jjtCreate(this, JJTSTRING);
boolean jjtc001 = true;
jjtree.openNodeScope(jjtn001);
jjtreeOpenNodeScope(jjtn001);
try {
t = jj_consume_token(SINGLE_STRING);
jjtn001.setImage(makeString(t.image, 1));
jjtree.closeNodeScope(jjtn001, true);
jjtc001 = false;
jjtreeCloseNodeScope(jjtn001);
} finally {
if (jjtc001) {
jjtree.closeNodeScope(jjtn001, true);
jjtreeCloseNodeScope(jjtn001);
}
}
break;
case SINGLE_STRING2:
SimpleNode jjtn002 = (SimpleNode)SimpleNode.jjtCreate(this, JJTSTRING);
boolean jjtc002 = true;
jjtree.openNodeScope(jjtn002);
jjtreeOpenNodeScope(jjtn002);
try {
t = jj_consume_token(SINGLE_STRING2);
jjtn002.setImage(makeString(t.image, 1));
jjtree.closeNodeScope(jjtn002, true);
jjtc002 = false;
jjtreeCloseNodeScope(jjtn002);
} finally {
if (jjtc002) {
jjtree.closeNodeScope(jjtn002, true);
jjtreeCloseNodeScope(jjtn002);
}
}
break;
case TRIPLE_STRING:
SimpleNode jjtn003 = (SimpleNode)SimpleNode.jjtCreate(this, JJTSTRING);
boolean jjtc003 = true;
jjtree.openNodeScope(jjtn003);
jjtreeOpenNodeScope(jjtn003);
try {
t = jj_consume_token(TRIPLE_STRING);
jjtn003.setImage(makeString(t.image, 3));
jjtree.closeNodeScope(jjtn003, true);
jjtc003 = false;
jjtreeCloseNodeScope(jjtn003);
} finally {
if (jjtc003) {
jjtree.closeNodeScope(jjtn003, true);
jjtreeCloseNodeScope(jjtn003);
}
}
break;
case TRIPLE_STRING2:
SimpleNode jjtn004 = (SimpleNode)SimpleNode.jjtCreate(this, JJTSTRING);
boolean jjtc004 = true;
jjtree.openNodeScope(jjtn004);
jjtreeOpenNodeScope(jjtn004);
try {
t = jj_consume_token(TRIPLE_STRING2);
jjtn004.setImage(makeString(t.image, 3));
jjtree.closeNodeScope(jjtn004, true);
jjtc004 = false;
jjtreeCloseNodeScope(jjtn004);
} finally {
if (jjtc004) {
jjtree.closeNodeScope(jjtn004, true);
jjtreeCloseNodeScope(jjtn004);
}
}
break;
case SINGLE_USTRING:
SimpleNode jjtn005 = (SimpleNode)SimpleNode.jjtCreate(this, JJTUNICODE);
boolean jjtc005 = true;
jjtree.openNodeScope(jjtn005);
jjtreeOpenNodeScope(jjtn005);
try {
t = jj_consume_token(SINGLE_USTRING);
jjtn005.setImage(makeString(t.image, 1));
jjtree.closeNodeScope(jjtn005, true);
jjtc005 = false;
jjtreeCloseNodeScope(jjtn005);
} finally {
if (jjtc005) {
jjtree.closeNodeScope(jjtn005, true);
jjtreeCloseNodeScope(jjtn005);
}
}
break;
case SINGLE_USTRING2:
SimpleNode jjtn006 = (SimpleNode)SimpleNode.jjtCreate(this, JJTUNICODE);
boolean jjtc006 = true;
jjtree.openNodeScope(jjtn006);
jjtreeOpenNodeScope(jjtn006);
try {
t = jj_consume_token(SINGLE_USTRING2);
jjtn006.setImage(makeString(t.image, 1));
jjtree.closeNodeScope(jjtn006, true);
jjtc006 = false;
jjtreeCloseNodeScope(jjtn006);
} finally {
if (jjtc006) {
jjtree.closeNodeScope(jjtn006, true);
jjtreeCloseNodeScope(jjtn006);
}
}
break;
case TRIPLE_USTRING:
SimpleNode jjtn007 = (SimpleNode)SimpleNode.jjtCreate(this, JJTUNICODE);
boolean jjtc007 = true;
jjtree.openNodeScope(jjtn007);
jjtreeOpenNodeScope(jjtn007);
try {
t = jj_consume_token(TRIPLE_USTRING);
jjtn007.setImage(makeString(t.image, 3));
jjtree.closeNodeScope(jjtn007, true);
jjtc007 = false;
jjtreeCloseNodeScope(jjtn007);
} finally {
if (jjtc007) {
jjtree.closeNodeScope(jjtn007, true);
jjtreeCloseNodeScope(jjtn007);
}
}
break;
case TRIPLE_USTRING2:
SimpleNode jjtn008 = (SimpleNode)SimpleNode.jjtCreate(this, JJTUNICODE);
boolean jjtc008 = true;
jjtree.openNodeScope(jjtn008);
jjtreeOpenNodeScope(jjtn008);
try {
t = jj_consume_token(TRIPLE_USTRING2);
jjtn008.setImage(makeString(t.image, 3));
jjtree.closeNodeScope(jjtn008, true);
jjtc008 = false;
jjtreeCloseNodeScope(jjtn008);
} finally {
if (jjtc008) {
jjtree.closeNodeScope(jjtn008, true);
jjtreeCloseNodeScope(jjtn008);
}
}
break;
default:
jj_la1[104] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
final public Token AnyName() throws ParseException {
Token t;
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case NAME:
SimpleNode jjtn001 = (SimpleNode)SimpleNode.jjtCreate(this, JJTNAME);
boolean jjtc001 = true;
jjtree.openNodeScope(jjtn001);
jjtreeOpenNodeScope(jjtn001);
try {
t = jj_consume_token(NAME);
jjtn001.setImage(t.image); {if (true) return t;}
jjtree.closeNodeScope(jjtn001, true);
jjtc001 = false;
jjtreeCloseNodeScope(jjtn001);
} finally {
if (jjtc001) {
jjtree.closeNodeScope(jjtn001, true);
jjtreeCloseNodeScope(jjtn001);
}
}
break;
case OR_BOOL:
SimpleNode jjtn002 = (SimpleNode)SimpleNode.jjtCreate(this, JJTNAME);
boolean jjtc002 = true;
jjtree.openNodeScope(jjtn002);
jjtreeOpenNodeScope(jjtn002);
try {
t = jj_consume_token(OR_BOOL);
jjtn002.setImage(t.image); {if (true) return t;}
jjtree.closeNodeScope(jjtn002, true);
jjtc002 = false;
jjtreeCloseNodeScope(jjtn002);
} finally {
if (jjtc002) {
jjtree.closeNodeScope(jjtn002, true);
jjtreeCloseNodeScope(jjtn002);
}
}
break;
case AND_BOOL:
SimpleNode jjtn003 = (SimpleNode)SimpleNode.jjtCreate(this, JJTNAME);
boolean jjtc003 = true;
jjtree.openNodeScope(jjtn003);
jjtreeOpenNodeScope(jjtn003);
try {
t = jj_consume_token(AND_BOOL);
jjtn003.setImage(t.image); {if (true) return t;}
jjtree.closeNodeScope(jjtn003, true);
jjtc003 = false;
jjtreeCloseNodeScope(jjtn003);
} finally {
if (jjtc003) {
jjtree.closeNodeScope(jjtn003, true);
jjtreeCloseNodeScope(jjtn003);
}
}
break;
case NOT_BOOL:
SimpleNode jjtn004 = (SimpleNode)SimpleNode.jjtCreate(this, JJTNAME);
boolean jjtc004 = true;
jjtree.openNodeScope(jjtn004);
jjtreeOpenNodeScope(jjtn004);
try {
t = jj_consume_token(NOT_BOOL);
jjtn004.setImage(t.image); {if (true) return t;}
jjtree.closeNodeScope(jjtn004, true);
jjtc004 = false;
jjtreeCloseNodeScope(jjtn004);
} finally {
if (jjtc004) {
jjtree.closeNodeScope(jjtn004, true);
jjtreeCloseNodeScope(jjtn004);
}
}
break;
case IS:
SimpleNode jjtn005 = (SimpleNode)SimpleNode.jjtCreate(this, JJTNAME);
boolean jjtc005 = true;
jjtree.openNodeScope(jjtn005);
jjtreeOpenNodeScope(jjtn005);
try {
t = jj_consume_token(IS);
jjtn005.setImage(t.image); {if (true) return t;}
jjtree.closeNodeScope(jjtn005, true);
jjtc005 = false;
jjtreeCloseNodeScope(jjtn005);
} finally {
if (jjtc005) {
jjtree.closeNodeScope(jjtn005, true);
jjtreeCloseNodeScope(jjtn005);
}
}
break;
case IN:
SimpleNode jjtn006 = (SimpleNode)SimpleNode.jjtCreate(this, JJTNAME);
boolean jjtc006 = true;
jjtree.openNodeScope(jjtn006);
jjtreeOpenNodeScope(jjtn006);
try {
t = jj_consume_token(IN);
jjtn006.setImage(t.image); {if (true) return t;}
jjtree.closeNodeScope(jjtn006, true);
jjtc006 = false;
jjtreeCloseNodeScope(jjtn006);
} finally {
if (jjtc006) {
jjtree.closeNodeScope(jjtn006, true);
jjtreeCloseNodeScope(jjtn006);
}
}
break;
case LAMBDA:
SimpleNode jjtn007 = (SimpleNode)SimpleNode.jjtCreate(this, JJTNAME);
boolean jjtc007 = true;
jjtree.openNodeScope(jjtn007);
jjtreeOpenNodeScope(jjtn007);
try {
t = jj_consume_token(LAMBDA);
jjtn007.setImage(t.image); {if (true) return t;}
jjtree.closeNodeScope(jjtn007, true);
jjtc007 = false;
jjtreeCloseNodeScope(jjtn007);
} finally {
if (jjtc007) {
jjtree.closeNodeScope(jjtn007, true);
jjtreeCloseNodeScope(jjtn007);
}
}
break;
case IF:
SimpleNode jjtn008 = (SimpleNode)SimpleNode.jjtCreate(this, JJTNAME);
boolean jjtc008 = true;
jjtree.openNodeScope(jjtn008);
jjtreeOpenNodeScope(jjtn008);
try {
t = jj_consume_token(IF);
jjtn008.setImage(t.image); {if (true) return t;}
jjtree.closeNodeScope(jjtn008, true);
jjtc008 = false;
jjtreeCloseNodeScope(jjtn008);
} finally {
if (jjtc008) {
jjtree.closeNodeScope(jjtn008, true);
jjtreeCloseNodeScope(jjtn008);
}
}
break;
case ELSE:
SimpleNode jjtn009 = (SimpleNode)SimpleNode.jjtCreate(this, JJTNAME);
boolean jjtc009 = true;
jjtree.openNodeScope(jjtn009);
jjtreeOpenNodeScope(jjtn009);
try {
t = jj_consume_token(ELSE);
jjtn009.setImage(t.image); {if (true) return t;}
jjtree.closeNodeScope(jjtn009, true);
jjtc009 = false;
jjtreeCloseNodeScope(jjtn009);
} finally {
if (jjtc009) {
jjtree.closeNodeScope(jjtn009, true);
jjtreeCloseNodeScope(jjtn009);
}
}
break;
case ELIF:
SimpleNode jjtn010 = (SimpleNode)SimpleNode.jjtCreate(this, JJTNAME);
boolean jjtc010 = true;
jjtree.openNodeScope(jjtn010);
jjtreeOpenNodeScope(jjtn010);
try {
t = jj_consume_token(ELIF);
jjtn010.setImage(t.image); {if (true) return t;}
jjtree.closeNodeScope(jjtn010, true);
jjtc010 = false;
jjtreeCloseNodeScope(jjtn010);
} finally {
if (jjtc010) {
jjtree.closeNodeScope(jjtn010, true);
jjtreeCloseNodeScope(jjtn010);
}
}
break;
case WHILE:
SimpleNode jjtn011 = (SimpleNode)SimpleNode.jjtCreate(this, JJTNAME);
boolean jjtc011 = true;
jjtree.openNodeScope(jjtn011);
jjtreeOpenNodeScope(jjtn011);
try {
t = jj_consume_token(WHILE);
jjtn011.setImage(t.image); {if (true) return t;}
jjtree.closeNodeScope(jjtn011, true);
jjtc011 = false;
jjtreeCloseNodeScope(jjtn011);
} finally {
if (jjtc011) {
jjtree.closeNodeScope(jjtn011, true);
jjtreeCloseNodeScope(jjtn011);
}
}
break;
case FOR:
SimpleNode jjtn012 = (SimpleNode)SimpleNode.jjtCreate(this, JJTNAME);
boolean jjtc012 = true;
jjtree.openNodeScope(jjtn012);
jjtreeOpenNodeScope(jjtn012);
try {
t = jj_consume_token(FOR);
jjtn012.setImage(t.image); {if (true) return t;}
jjtree.closeNodeScope(jjtn012, true);
jjtc012 = false;
jjtreeCloseNodeScope(jjtn012);
} finally {
if (jjtc012) {
jjtree.closeNodeScope(jjtn012, true);
jjtreeCloseNodeScope(jjtn012);
}
}
break;
case TRY:
SimpleNode jjtn013 = (SimpleNode)SimpleNode.jjtCreate(this, JJTNAME);
boolean jjtc013 = true;
jjtree.openNodeScope(jjtn013);
jjtreeOpenNodeScope(jjtn013);
try {
t = jj_consume_token(TRY);
jjtn013.setImage(t.image); {if (true) return t;}
jjtree.closeNodeScope(jjtn013, true);
jjtc013 = false;
jjtreeCloseNodeScope(jjtn013);
} finally {
if (jjtc013) {
jjtree.closeNodeScope(jjtn013, true);
jjtreeCloseNodeScope(jjtn013);
}
}
break;
case EXCEPT:
SimpleNode jjtn014 = (SimpleNode)SimpleNode.jjtCreate(this, JJTNAME);
boolean jjtc014 = true;
jjtree.openNodeScope(jjtn014);
jjtreeOpenNodeScope(jjtn014);
try {
t = jj_consume_token(EXCEPT);
jjtn014.setImage(t.image); {if (true) return t;}
jjtree.closeNodeScope(jjtn014, true);
jjtc014 = false;
jjtreeCloseNodeScope(jjtn014);
} finally {
if (jjtc014) {
jjtree.closeNodeScope(jjtn014, true);
jjtreeCloseNodeScope(jjtn014);
}
}
break;
case DEF:
SimpleNode jjtn015 = (SimpleNode)SimpleNode.jjtCreate(this, JJTNAME);
boolean jjtc015 = true;
jjtree.openNodeScope(jjtn015);
jjtreeOpenNodeScope(jjtn015);
try {
t = jj_consume_token(DEF);
jjtn015.setImage(t.image); {if (true) return t;}
jjtree.closeNodeScope(jjtn015, true);
jjtc015 = false;
jjtreeCloseNodeScope(jjtn015);
} finally {
if (jjtc015) {
jjtree.closeNodeScope(jjtn015, true);
jjtreeCloseNodeScope(jjtn015);
}
}
break;
case CLASS:
SimpleNode jjtn016 = (SimpleNode)SimpleNode.jjtCreate(this, JJTNAME);
boolean jjtc016 = true;
jjtree.openNodeScope(jjtn016);
jjtreeOpenNodeScope(jjtn016);
try {
t = jj_consume_token(CLASS);
jjtn016.setImage(t.image); {if (true) return t;}
jjtree.closeNodeScope(jjtn016, true);
jjtc016 = false;
jjtreeCloseNodeScope(jjtn016);
} finally {
if (jjtc016) {
jjtree.closeNodeScope(jjtn016, true);
jjtreeCloseNodeScope(jjtn016);
}
}
break;
case FINALLY:
SimpleNode jjtn017 = (SimpleNode)SimpleNode.jjtCreate(this, JJTNAME);
boolean jjtc017 = true;
jjtree.openNodeScope(jjtn017);
jjtreeOpenNodeScope(jjtn017);
try {
t = jj_consume_token(FINALLY);
jjtn017.setImage(t.image); {if (true) return t;}
jjtree.closeNodeScope(jjtn017, true);
jjtc017 = false;
jjtreeCloseNodeScope(jjtn017);
} finally {
if (jjtc017) {
jjtree.closeNodeScope(jjtn017, true);
jjtreeCloseNodeScope(jjtn017);
}
}
break;
case PRINT:
SimpleNode jjtn018 = (SimpleNode)SimpleNode.jjtCreate(this, JJTNAME);
boolean jjtc018 = true;
jjtree.openNodeScope(jjtn018);
jjtreeOpenNodeScope(jjtn018);
try {
t = jj_consume_token(PRINT);
jjtn018.setImage(t.image); {if (true) return t;}
jjtree.closeNodeScope(jjtn018, true);
jjtc018 = false;
jjtreeCloseNodeScope(jjtn018);
} finally {
if (jjtc018) {
jjtree.closeNodeScope(jjtn018, true);
jjtreeCloseNodeScope(jjtn018);
}
}
break;
case PASS:
SimpleNode jjtn019 = (SimpleNode)SimpleNode.jjtCreate(this, JJTNAME);
boolean jjtc019 = true;
jjtree.openNodeScope(jjtn019);
jjtreeOpenNodeScope(jjtn019);
try {
t = jj_consume_token(PASS);
jjtn019.setImage(t.image); {if (true) return t;}
jjtree.closeNodeScope(jjtn019, true);
jjtc019 = false;
jjtreeCloseNodeScope(jjtn019);
} finally {
if (jjtc019) {
jjtree.closeNodeScope(jjtn019, true);
jjtreeCloseNodeScope(jjtn019);
}
}
break;
case BREAK:
SimpleNode jjtn020 = (SimpleNode)SimpleNode.jjtCreate(this, JJTNAME);
boolean jjtc020 = true;
jjtree.openNodeScope(jjtn020);
jjtreeOpenNodeScope(jjtn020);
try {
t = jj_consume_token(BREAK);
jjtn020.setImage(t.image); {if (true) return t;}
jjtree.closeNodeScope(jjtn020, true);
jjtc020 = false;
jjtreeCloseNodeScope(jjtn020);
} finally {
if (jjtc020) {
jjtree.closeNodeScope(jjtn020, true);
jjtreeCloseNodeScope(jjtn020);
}
}
break;
case CONTINUE:
SimpleNode jjtn021 = (SimpleNode)SimpleNode.jjtCreate(this, JJTNAME);
boolean jjtc021 = true;
jjtree.openNodeScope(jjtn021);
jjtreeOpenNodeScope(jjtn021);
try {
t = jj_consume_token(CONTINUE);
jjtn021.setImage(t.image); {if (true) return t;}
jjtree.closeNodeScope(jjtn021, true);
jjtc021 = false;
jjtreeCloseNodeScope(jjtn021);
} finally {
if (jjtc021) {
jjtree.closeNodeScope(jjtn021, true);
jjtreeCloseNodeScope(jjtn021);
}
}
break;
case RETURN:
SimpleNode jjtn022 = (SimpleNode)SimpleNode.jjtCreate(this, JJTNAME);
boolean jjtc022 = true;
jjtree.openNodeScope(jjtn022);
jjtreeOpenNodeScope(jjtn022);
try {
t = jj_consume_token(RETURN);
jjtn022.setImage(t.image); {if (true) return t;}
jjtree.closeNodeScope(jjtn022, true);
jjtc022 = false;
jjtreeCloseNodeScope(jjtn022);
} finally {
if (jjtc022) {
jjtree.closeNodeScope(jjtn022, true);
jjtreeCloseNodeScope(jjtn022);
}
}
break;
case YIELD:
SimpleNode jjtn023 = (SimpleNode)SimpleNode.jjtCreate(this, JJTNAME);
boolean jjtc023 = true;
jjtree.openNodeScope(jjtn023);
jjtreeOpenNodeScope(jjtn023);
try {
t = jj_consume_token(YIELD);
jjtn023.setImage(t.image); {if (true) return t;}
jjtree.closeNodeScope(jjtn023, true);
jjtc023 = false;
jjtreeCloseNodeScope(jjtn023);
} finally {
if (jjtc023) {
jjtree.closeNodeScope(jjtn023, true);
jjtreeCloseNodeScope(jjtn023);
}
}
break;
case IMPORT:
SimpleNode jjtn024 = (SimpleNode)SimpleNode.jjtCreate(this, JJTNAME);
boolean jjtc024 = true;
jjtree.openNodeScope(jjtn024);
jjtreeOpenNodeScope(jjtn024);
try {
t = jj_consume_token(IMPORT);
jjtn024.setImage(t.image); {if (true) return t;}
jjtree.closeNodeScope(jjtn024, true);
jjtc024 = false;
jjtreeCloseNodeScope(jjtn024);
} finally {
if (jjtc024) {
jjtree.closeNodeScope(jjtn024, true);
jjtreeCloseNodeScope(jjtn024);
}
}
break;
case FROM:
SimpleNode jjtn025 = (SimpleNode)SimpleNode.jjtCreate(this, JJTNAME);
boolean jjtc025 = true;
jjtree.openNodeScope(jjtn025);
jjtreeOpenNodeScope(jjtn025);
try {
t = jj_consume_token(FROM);
jjtn025.setImage(t.image); {if (true) return t;}
jjtree.closeNodeScope(jjtn025, true);
jjtc025 = false;
jjtreeCloseNodeScope(jjtn025);
} finally {
if (jjtc025) {
jjtree.closeNodeScope(jjtn025, true);
jjtreeCloseNodeScope(jjtn025);
}
}
break;
case DEL:
SimpleNode jjtn026 = (SimpleNode)SimpleNode.jjtCreate(this, JJTNAME);
boolean jjtc026 = true;
jjtree.openNodeScope(jjtn026);
jjtreeOpenNodeScope(jjtn026);
try {
t = jj_consume_token(DEL);
jjtn026.setImage(t.image); {if (true) return t;}
jjtree.closeNodeScope(jjtn026, true);
jjtc026 = false;
jjtreeCloseNodeScope(jjtn026);
} finally {
if (jjtc026) {
jjtree.closeNodeScope(jjtn026, true);
jjtreeCloseNodeScope(jjtn026);
}
}
break;
case RAISE:
SimpleNode jjtn027 = (SimpleNode)SimpleNode.jjtCreate(this, JJTNAME);
boolean jjtc027 = true;
jjtree.openNodeScope(jjtn027);
jjtreeOpenNodeScope(jjtn027);
try {
t = jj_consume_token(RAISE);
jjtn027.setImage(t.image); {if (true) return t;}
jjtree.closeNodeScope(jjtn027, true);
jjtc027 = false;
jjtreeCloseNodeScope(jjtn027);
} finally {
if (jjtc027) {
jjtree.closeNodeScope(jjtn027, true);
jjtreeCloseNodeScope(jjtn027);
}
}
break;
case GLOBAL:
SimpleNode jjtn028 = (SimpleNode)SimpleNode.jjtCreate(this, JJTNAME);
boolean jjtc028 = true;
jjtree.openNodeScope(jjtn028);
jjtreeOpenNodeScope(jjtn028);
try {
t = jj_consume_token(GLOBAL);
jjtn028.setImage(t.image); {if (true) return t;}
jjtree.closeNodeScope(jjtn028, true);
jjtc028 = false;
jjtreeCloseNodeScope(jjtn028);
} finally {
if (jjtc028) {
jjtree.closeNodeScope(jjtn028, true);
jjtreeCloseNodeScope(jjtn028);
}
}
break;
case EXEC:
SimpleNode jjtn029 = (SimpleNode)SimpleNode.jjtCreate(this, JJTNAME);
boolean jjtc029 = true;
jjtree.openNodeScope(jjtn029);
jjtreeOpenNodeScope(jjtn029);
try {
t = jj_consume_token(EXEC);
jjtn029.setImage(t.image); {if (true) return t;}
jjtree.closeNodeScope(jjtn029, true);
jjtc029 = false;
jjtreeCloseNodeScope(jjtn029);
} finally {
if (jjtc029) {
jjtree.closeNodeScope(jjtn029, true);
jjtreeCloseNodeScope(jjtn029);
}
}
break;
case ASSERT:
SimpleNode jjtn030 = (SimpleNode)SimpleNode.jjtCreate(this, JJTNAME);
boolean jjtc030 = true;
jjtree.openNodeScope(jjtn030);
jjtreeOpenNodeScope(jjtn030);
try {
t = jj_consume_token(ASSERT);
jjtn030.setImage(t.image); {if (true) return t;}
jjtree.closeNodeScope(jjtn030, true);
jjtc030 = false;
jjtreeCloseNodeScope(jjtn030);
} finally {
if (jjtc030) {
jjtree.closeNodeScope(jjtn030, true);
jjtreeCloseNodeScope(jjtn030);
}
}
break;
case AS:
SimpleNode jjtn031 = (SimpleNode)SimpleNode.jjtCreate(this, JJTNAME);
boolean jjtc031 = true;
jjtree.openNodeScope(jjtn031);
jjtreeOpenNodeScope(jjtn031);
try {
t = jj_consume_token(AS);
jjtn031.setImage(t.image); {if (true) return t;}
jjtree.closeNodeScope(jjtn031, true);
jjtc031 = false;
jjtreeCloseNodeScope(jjtn031);
} finally {
if (jjtc031) {
jjtree.closeNodeScope(jjtn031, true);
jjtreeCloseNodeScope(jjtn031);
}
}
break;
default:
jj_la1[105] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
throw new Error("Missing return statement in function");
}
final 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); }
}
final 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); }
}
final 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); }
}
final 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); }
}
final 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); }
}
final 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); }
}
final 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); }
}
final 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); }
}
final 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); }
}
final 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); }
}
final 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); }
}
final 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); }
}
final 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); }
}
final 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); }
}
final 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); }
}
final 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); }
}
final 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); }
}
final 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); }
}
final 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); }
}
final 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); }
}
final 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); }
}
final 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); }
}
final private boolean jj_2_23(int xla) {
jj_la = xla; jj_lastpos = jj_scanpos = token;
try { return !jj_3_23(); }
catch(LookaheadSuccess ls) { return true; }
finally { jj_save(22, xla); }
}
final private boolean jj_2_24(int xla) {
jj_la = xla; jj_lastpos = jj_scanpos = token;
try { return !jj_3_24(); }
catch(LookaheadSuccess ls) { return true; }
finally { jj_save(23, xla); }
}
final private boolean jj_2_25(int xla) {
jj_la = xla; jj_lastpos = jj_scanpos = token;
try { return !jj_3_25(); }
catch(LookaheadSuccess ls) { return true; }
finally { jj_save(24, xla); }
}
final private boolean jj_3R_130() {
if (jj_scan_token(FROM)) return true;
return false;
}
final private boolean jj_3R_113() {
Token xsp;
xsp = jj_scanpos;
if (jj_3R_129()) {
jj_scanpos = xsp;
if (jj_3R_130()) return true;
}
return false;
}
final private boolean jj_3R_129() {
if (jj_scan_token(IMPORT)) return true;
return false;
}
final private boolean jj_3R_137() {
if (jj_scan_token(RAISE)) return true;
return false;
}
final private boolean jj_3_9() {
if (jj_scan_token(COMMA)) return true;
if (jj_3R_45()) return true;
return false;
}
final private boolean jj_3R_136() {
if (jj_scan_token(YIELD)) return true;
return false;
}
final private boolean jj_3R_135() {
if (jj_scan_token(RETURN)) return true;
return false;
}
final private boolean jj_3R_128() {
if (jj_3R_137()) return true;
return false;
}
final private boolean jj_3R_127() {
if (jj_3R_136()) return true;
return false;
}
final private boolean jj_3R_125() {
if (jj_scan_token(CONTINUE)) return true;
return false;
}
final private boolean jj_3R_126() {
if (jj_3R_135()) return true;
return false;
}
final private boolean jj_3R_112() {
Token xsp;
xsp = jj_scanpos;
if (jj_3R_124()) {
jj_scanpos = xsp;
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()) return true;
}
}
}
}
return false;
}
final private boolean jj_3R_124() {
if (jj_scan_token(BREAK)) return true;
return false;
}
final private boolean jj_3R_105() {
if (jj_scan_token(AS)) return true;
return false;
}
final private boolean jj_3R_104() {
if (jj_scan_token(ASSERT)) return true;
return false;
}
final private boolean jj_3R_103() {
if (jj_scan_token(EXEC)) return true;
return false;
}
final private boolean jj_3R_102() {
if (jj_scan_token(GLOBAL)) return true;
return false;
}
final private boolean jj_3R_111() {
if (jj_scan_token(PASS)) return true;
return false;
}
final private boolean jj_3R_101() {
if (jj_scan_token(RAISE)) return true;
return false;
}
final private boolean jj_3R_100() {
if (jj_scan_token(DEL)) return true;
return false;
}
final private boolean jj_3R_99() {
if (jj_scan_token(FROM)) return true;
return false;
}
final private boolean jj_3R_98() {
if (jj_scan_token(IMPORT)) return true;
return false;
}
final private boolean jj_3R_110() {
if (jj_scan_token(DEL)) return true;
return false;
}
final private boolean jj_3R_97() {
if (jj_scan_token(YIELD)) return true;
return false;
}
final private boolean jj_3R_96() {
if (jj_scan_token(RETURN)) return true;
return false;
}
final private boolean jj_3_8() {
if (jj_scan_token(COMMA)) return true;
if (jj_3R_45()) return true;
return false;
}
final private boolean jj_3R_95() {
if (jj_scan_token(CONTINUE)) return true;
return false;
}
final private boolean jj_3R_94() {
if (jj_scan_token(BREAK)) return true;
return false;
}
final private boolean jj_3R_123() {
if (jj_scan_token(PRINT)) return true;
return false;
}
final private boolean jj_3R_93() {
if (jj_scan_token(PASS)) return true;
return false;
}
final private boolean jj_3R_92() {
if (jj_scan_token(PRINT)) return true;
return false;
}
final private boolean jj_3R_91() {
if (jj_scan_token(FINALLY)) return true;
return false;
}
final private boolean jj_3_11() {
if (jj_scan_token(PRINT)) return true;
if (jj_3R_45()) return true;
return false;
}
final private boolean jj_3R_90() {
if (jj_scan_token(CLASS)) return true;
return false;
}
final private boolean jj_3R_89() {
if (jj_scan_token(DEF)) return true;
return false;
}
final private boolean jj_3R_88() {
if (jj_scan_token(EXCEPT)) return true;
return false;
}
final private boolean jj_3_10() {
if (jj_scan_token(PRINT)) return true;
if (jj_scan_token(RSHIFT)) return true;
return false;
}
final private boolean jj_3R_109() {
Token xsp;
xsp = jj_scanpos;
if (jj_3_10()) {
jj_scanpos = xsp;
if (jj_3_11()) {
jj_scanpos = xsp;
if (jj_3R_123()) return true;
}
}
return false;
}
final private boolean jj_3R_87() {
if (jj_scan_token(TRY)) return true;
return false;
}
final private boolean jj_3R_86() {
if (jj_scan_token(FOR)) return true;
return false;
}
final private boolean jj_3R_85() {
if (jj_scan_token(WHILE)) return true;
return false;
}
final private boolean jj_3R_84() {
if (jj_scan_token(ELIF)) return true;
return false;
}
final private boolean jj_3R_83() {
if (jj_scan_token(ELSE)) return true;
return false;
}
final private boolean jj_3R_82() {
if (jj_scan_token(IF)) return true;
return false;
}
final private boolean jj_3R_81() {
if (jj_scan_token(LAMBDA)) return true;
return false;
}
final private boolean jj_3R_80() {
if (jj_scan_token(IN)) return true;
return false;
}
final private boolean jj_3R_79() {
if (jj_scan_token(IS)) return true;
return false;
}
final private boolean jj_3R_78() {
if (jj_scan_token(NOT_BOOL)) return true;
return false;
}
final private boolean jj_3R_77() {
if (jj_scan_token(AND_BOOL)) return true;
return false;
}
final private boolean jj_3R_76() {
if (jj_scan_token(OR_BOOL)) return true;
return false;
}
final private boolean jj_3R_75() {
if (jj_scan_token(NAME)) return true;
return false;
}
final private boolean jj_3R_51() {
Token xsp;
xsp = jj_scanpos;
if (jj_3R_75()) {
jj_scanpos = xsp;
if (jj_3R_76()) {
jj_scanpos = xsp;
if (jj_3R_77()) {
jj_scanpos = xsp;
if (jj_3R_78()) {
jj_scanpos = xsp;
if (jj_3R_79()) {
jj_scanpos = xsp;
if (jj_3R_80()) {
jj_scanpos = xsp;
if (jj_3R_81()) {
jj_scanpos = xsp;
if (jj_3R_82()) {
jj_scanpos = xsp;
if (jj_3R_83()) {
jj_scanpos = xsp;
if (jj_3R_84()) {
jj_scanpos = xsp;
if (jj_3R_85()) {
jj_scanpos = xsp;
if (jj_3R_86()) {
jj_scanpos = xsp;
if (jj_3R_87()) {
jj_scanpos = xsp;
if (jj_3R_88()) {
jj_scanpos = xsp;
if (jj_3R_89()) {
jj_scanpos = xsp;
if (jj_3R_90()) {
jj_scanpos = xsp;
if (jj_3R_91()) {
jj_scanpos = xsp;
if (jj_3R_92()) {
jj_scanpos = xsp;
if (jj_3R_93()) {
jj_scanpos = xsp;
if (jj_3R_94()) {
jj_scanpos = xsp;
if (jj_3R_95()) {
jj_scanpos = xsp;
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()) {
jj_scanpos = xsp;
if (jj_3R_102()) {
jj_scanpos = xsp;
if (jj_3R_103()) {
jj_scanpos = xsp;
if (jj_3R_104()) {
jj_scanpos = xsp;
if (jj_3R_105()) return true;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
return false;
}
final private boolean jj_3R_165() {
if (jj_scan_token(TRIPLE_USTRING2)) return true;
return false;
}
final private boolean jj_3R_108() {
if (jj_3R_122()) return true;
return false;
}
final private boolean jj_3R_164() {
if (jj_scan_token(TRIPLE_USTRING)) return true;
return false;
}
final private boolean jj_3R_163() {
if (jj_scan_token(SINGLE_USTRING2)) return true;
return false;
}
final private boolean jj_3R_162() {
if (jj_scan_token(SINGLE_USTRING)) return true;
return false;
}
final private boolean jj_3R_161() {
if (jj_scan_token(TRIPLE_STRING2)) return true;
return false;
}
final private boolean jj_3R_160() {
if (jj_scan_token(TRIPLE_STRING)) return true;
return false;
}
final private boolean jj_3R_159() {
if (jj_scan_token(SINGLE_STRING2)) return true;
return false;
}
final private boolean jj_3R_64() {
if (jj_3R_116()) return true;
return false;
}
final private boolean jj_3R_63() {
if (jj_3R_115()) return true;
return false;
}
final private boolean jj_3R_158() {
if (jj_scan_token(SINGLE_STRING)) return true;
return false;
}
final private boolean jj_3R_62() {
if (jj_3R_114()) return true;
return false;
}
final private boolean jj_3_7() {
if (jj_scan_token(SEMICOLON)) return true;
if (jj_3R_44()) return true;
return false;
}
final private boolean jj_3R_152() {
Token xsp;
xsp = jj_scanpos;
if (jj_3R_158()) {
jj_scanpos = xsp;
if (jj_3R_159()) {
jj_scanpos = xsp;
if (jj_3R_160()) {
jj_scanpos = xsp;
if (jj_3R_161()) {
jj_scanpos = xsp;
if (jj_3R_162()) {
jj_scanpos = xsp;
if (jj_3R_163()) {
jj_scanpos = xsp;
if (jj_3R_164()) {
jj_scanpos = xsp;
if (jj_3R_165()) return true;
}
}
}
}
}
}
}
return false;
}
final private boolean jj_3R_61() {
if (jj_3R_113()) return true;
return false;
}
final private boolean jj_3R_60() {
if (jj_3R_112()) return true;
return false;
}
final private boolean jj_3R_59() {
if (jj_3R_111()) return true;
return false;
}
final private boolean jj_3R_58() {
if (jj_3R_110()) return true;
return false;
}
final private boolean jj_3R_57() {
if (jj_3R_109()) return true;
return false;
}
final private boolean jj_3R_56() {
if (jj_3R_108()) return true;
return false;
}
final private boolean jj_3R_44() {
Token xsp;
xsp = jj_scanpos;
if (jj_3R_56()) {
jj_scanpos = xsp;
if (jj_3R_57()) {
jj_scanpos = xsp;
if (jj_3R_58()) {
jj_scanpos = xsp;
if (jj_3R_59()) {
jj_scanpos = xsp;
if (jj_3R_60()) {
jj_scanpos = xsp;
if (jj_3R_61()) {
jj_scanpos = xsp;
if (jj_3R_62()) {
jj_scanpos = xsp;
if (jj_3R_63()) {
jj_scanpos = xsp;
if (jj_3R_64()) return true;
}
}
}
}
}
}
}
}
return false;
}
final private boolean jj_3R_107() {
if (jj_scan_token(AS)) return true;
return false;
}
final private boolean jj_3R_52() {
Token xsp;
xsp = jj_scanpos;
if (jj_3R_106()) {
jj_scanpos = xsp;
if (jj_3R_107()) return true;
}
return false;
}
final private boolean jj_3R_106() {
if (jj_scan_token(NAME)) return true;
return false;
}
final private boolean jj_3_6() {
if (jj_scan_token(COMMA)) return true;
if (jj_3R_43()) return true;
return false;
}
final private boolean jj_3R_55() {
if (jj_scan_token(LPAREN)) return true;
return false;
}
final private boolean jj_3R_157() {
if (jj_scan_token(COMPLEX)) return true;
return false;
}
final private boolean jj_3R_53() {
if (jj_scan_token(MULTIPLY)) return true;
return false;
}
final private boolean jj_3R_156() {
if (jj_scan_token(FLOAT)) return true;
return false;
}
final private boolean jj_3R_54() {
if (jj_3R_52()) return true;
return false;
}
final private boolean jj_3R_43() {
Token xsp;
xsp = jj_scanpos;
if (jj_3R_54()) {
jj_scanpos = xsp;
if (jj_3R_55()) return true;
}
return false;
}
final private boolean jj_3R_155() {
if (jj_scan_token(DECNUMBER)) return true;
return false;
}
final private boolean jj_3R_40() {
if (jj_3R_43()) return true;
return false;
}
final private boolean jj_3_2() {
if (jj_scan_token(COMMA)) return true;
if (jj_3R_40()) return true;
return false;
}
final private boolean jj_3R_154() {
if (jj_scan_token(OCTNUMBER)) return true;
return false;
}
final private boolean jj_3R_42() {
Token xsp;
xsp = jj_scanpos;
if (jj_scan_token(33)) {
jj_scanpos = xsp;
if (jj_3R_53()) return true;
}
return false;
}
final private boolean jj_3R_41() {
if (jj_scan_token(MULTIPLY)) return true;
if (jj_3R_52()) return true;
return false;
}
final private boolean jj_3R_151() {
Token xsp;
xsp = jj_scanpos;
if (jj_3R_153()) {
jj_scanpos = xsp;
if (jj_3R_154()) {
jj_scanpos = xsp;
if (jj_3R_155()) {
jj_scanpos = xsp;
if (jj_3R_156()) {
jj_scanpos = xsp;
if (jj_3R_157()) return true;
}
}
}
}
return false;
}
final private boolean jj_3R_153() {
if (jj_scan_token(HEXNUMBER)) return true;
return false;
}
final private boolean jj_3_4() {
if (jj_scan_token(COMMA)) return true;
if (jj_3R_42()) return true;
return false;
}
final private boolean jj_3_3() {
if (jj_scan_token(COMMA)) return true;
if (jj_3R_41()) return true;
return false;
}
final private boolean jj_3_5() {
if (jj_3R_41()) return true;
return false;
}
final private boolean jj_3_25() {
if (jj_3R_51()) return true;
if (jj_scan_token(EQUAL)) return true;
return false;
}
final private boolean jj_3R_50() {
Token xsp;
xsp = jj_scanpos;
if (jj_3_25()) jj_scanpos = xsp;
if (jj_3R_45()) return true;
return false;
}
final private boolean jj_3_24() {
if (jj_scan_token(COMMA)) return true;
if (jj_3R_50()) return true;
return false;
}
final private boolean jj_3R_49() {
if (jj_scan_token(MULTIPLY)) return true;
if (jj_3R_45()) return true;
return false;
}
final private boolean jj_3_23() {
if (jj_3R_49()) return true;
return false;
}
final private boolean jj_3_22() {
if (jj_3R_49()) return true;
return false;
}
final private boolean jj_3_21() {
if (jj_scan_token(COMMA)) return true;
if (jj_3R_45()) return true;
return false;
}
final private boolean jj_3_20() {
if (jj_scan_token(COMMA)) return true;
if (jj_3R_45()) return true;
return false;
}
final private boolean jj_3_1() {
if (jj_scan_token(NEWLINE)) return true;
return false;
}
final private boolean jj_3_19() {
if (jj_scan_token(COMMA)) return true;
if (jj_3R_45()) return true;
return false;
}
final private boolean jj_3_18() {
if (jj_scan_token(COMMA)) return true;
if (jj_3R_45()) return true;
return false;
}
final private boolean jj_3R_133() {
if (jj_scan_token(COLON)) return true;
return false;
}
final private boolean jj_3_17() {
if (jj_scan_token(COMMA)) return true;
if (jj_3R_48()) return true;
return false;
}
final private boolean jj_3R_122() {
if (jj_3R_45()) return true;
return false;
}
final private boolean jj_3_16() {
if (jj_scan_token(COMMA)) return true;
if (jj_3R_47()) return true;
return false;
}
final private boolean jj_3R_120() {
if (jj_3R_133()) return true;
return false;
}
final private boolean jj_3R_73() {
if (jj_3R_120()) return true;
return false;
}
final private boolean jj_3R_72() {
if (jj_3R_45()) return true;
return false;
}
final private boolean jj_3R_71() {
if (jj_scan_token(DOT)) return true;
return false;
}
final private boolean jj_3R_47() {
Token xsp;
xsp = jj_scanpos;
if (jj_3R_71()) {
jj_scanpos = xsp;
if (jj_3R_72()) {
jj_scanpos = xsp;
if (jj_3R_73()) return true;
}
}
return false;
}
final private boolean jj_3R_117() {
if (jj_scan_token(LAMBDA)) return true;
return false;
}
final private boolean jj_3R_149() {
if (jj_3R_152()) return true;
return false;
}
final private boolean jj_3R_148() {
if (jj_3R_151()) return true;
return false;
}
final private boolean jj_3R_147() {
if (jj_3R_52()) return true;
return false;
}
final private boolean jj_3R_145() {
if (jj_scan_token(LBRACE)) return true;
return false;
}
final private boolean jj_3R_146() {
if (jj_scan_token(135)) return true;
return false;
}
final private boolean jj_3R_144() {
if (jj_scan_token(LBRACKET)) return true;
return false;
}
final private boolean jj_3R_143() {
if (jj_scan_token(LPAREN)) return true;
return false;
}
final private boolean jj_3_15() {
if (jj_scan_token(LPAREN)) return true;
if (jj_scan_token(RPAREN)) return true;
return false;
}
final private boolean jj_3R_140() {
Token xsp;
xsp = jj_scanpos;
if (jj_3_15()) {
jj_scanpos = xsp;
if (jj_3R_143()) {
jj_scanpos = xsp;
if (jj_3R_144()) {
jj_scanpos = xsp;
if (jj_3R_145()) {
jj_scanpos = xsp;
if (jj_3R_146()) {
jj_scanpos = xsp;
if (jj_3R_147()) {
jj_scanpos = xsp;
if (jj_3R_148()) {
jj_scanpos = xsp;
if (jj_3R_149()) return true;
}
}
}
}
}
}
}
return false;
}
final private boolean jj_3_14() {
if (jj_scan_token(LPAREN)) return true;
if (jj_scan_token(RPAREN)) return true;
return false;
}
final private boolean jj_3_13() {
if (jj_scan_token(POWER)) return true;
if (jj_3R_46()) return true;
return false;
}
final private boolean jj_3R_132() {
if (jj_3R_140()) return true;
return false;
}
final private boolean jj_3R_119() {
if (jj_3R_132()) return true;
return false;
}
final private boolean jj_3R_70() {
if (jj_3R_119()) return true;
return false;
}
final private boolean jj_3R_69() {
if (jj_scan_token(NOT)) return true;
return false;
}
final private boolean jj_3R_68() {
if (jj_scan_token(MINUS)) return true;
return false;
}
final private boolean jj_3R_67() {
if (jj_scan_token(PLUS)) return true;
return false;
}
final private boolean jj_3R_46() {
Token xsp;
xsp = jj_scanpos;
if (jj_3R_67()) {
jj_scanpos = xsp;
if (jj_3R_68()) {
jj_scanpos = xsp;
if (jj_3R_69()) {
jj_scanpos = xsp;
if (jj_3R_70()) return true;
}
}
}
return false;
}
final private boolean jj_3R_150() {
if (jj_3R_46()) return true;
return false;
}
final private boolean jj_3R_141() {
if (jj_3R_150()) return true;
return false;
}
final private boolean jj_3R_134() {
if (jj_3R_141()) return true;
return false;
}
final private boolean jj_3R_121() {
if (jj_3R_134()) return true;
return false;
}
final private boolean jj_3R_74() {
if (jj_3R_121()) return true;
return false;
}
final private boolean jj_3R_48() {
if (jj_3R_74()) return true;
return false;
}
final private boolean jj_3R_139() {
if (jj_3R_142()) return true;
return false;
}
final private boolean jj_3_12() {
if (jj_scan_token(IS)) return true;
if (jj_scan_token(NOT_BOOL)) return true;
return false;
}
final private boolean jj_3R_142() {
if (jj_3R_48()) return true;
return false;
}
final private boolean jj_3R_66() {
if (jj_3R_118()) return true;
return false;
}
final private boolean jj_3R_131() {
Token xsp;
xsp = jj_scanpos;
if (jj_3R_138()) {
jj_scanpos = xsp;
if (jj_3R_139()) return true;
}
return false;
}
final private boolean jj_3R_138() {
if (jj_scan_token(NOT_BOOL)) return true;
return false;
}
final private boolean jj_3R_118() {
if (jj_3R_131()) return true;
return false;
}
final private boolean jj_3R_45() {
Token xsp;
xsp = jj_scanpos;
if (jj_3R_65()) {
jj_scanpos = xsp;
if (jj_3R_66()) return true;
}
return false;
}
final private boolean jj_3R_65() {
if (jj_3R_117()) return true;
return false;
}
final private boolean jj_3R_116() {
if (jj_scan_token(ASSERT)) return true;
return false;
}
final private boolean jj_3R_115() {
if (jj_scan_token(EXEC)) return true;
return false;
}
final private boolean jj_3R_114() {
if (jj_scan_token(GLOBAL)) return true;
return false;
}
public PythonGrammarTokenManager token_source;
public Token token, jj_nt;
private int jj_ntk;
private Token jj_scanpos, jj_lastpos;
private int jj_la;
public boolean lookingAhead = false;
private boolean jj_semLA;
private int jj_gen;
final private int[] jj_la1 = new int[106];
static private int[] jj_la1_0;
static private int[] jj_la1_1;
static private int[] jj_la1_2;
static private int[] jj_la1_3;
static private int[] jj_la1_4;
static {
jj_la1_0();
jj_la1_1();
jj_la1_2();
jj_la1_3();
jj_la1_4();
}
private static void jj_la1_0() {
jj_la1_0 = new int[] {0x30540000,0x30540000,0x40,0x30540040,0x30540040,0x40,0x40,0x40040000,0x2000000,0x2000000,0x40000000,0x40040000,0x40000000,0x0,0x40000,0x2000000,0x30540000,0x1000000,0x30540000,0x0,0x0,0x2000000,0x2000000,0x2000000,0x0,0x0,0x30540000,0x2000000,0x2000000,0x30540000,0x0,0x2000000,0x2000000,0x40000000,0x0,0x4000000,0x0,0x2000000,0x2000000,0x0,0x2000000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x2000000,0x30540000,0x30540000,0x30540040,0x0,0x30540000,0x0,0x30540000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x30000000,0x30000000,0xc0000000,0xc0000000,0x30540000,0x4440000,0x4440000,0x30540000,0x30540000,0x30540000,0x0,0x540000,0x40040000,0x2000000,0x8000000,0x3c540000,0x30540000,0x30540000,0x8000000,0x2000000,0x2000000,0x2000000,0x2000000,0x0,0x2000000,0x0,0x0,0x40000,0x2000000,0x40000000,0x40000000,0x2000000,0x2000000,0x40000000,0x40000000,0x30540000,0x40000000,0x0,0x0,0x0,0x0,};
}
private static void jj_la1_1() {
jj_la1_1 = new int[] {0x80000020,0x80000020,0x0,0x80000020,0x80000020,0x0,0x0,0x2,0x0,0x0,0x2,0x2,0x2,0x200,0x0,0x0,0x80000020,0x0,0x80000020,0x200,0x1ffe0000,0x0,0x0,0x0,0x0,0x0,0x80000020,0x0,0x0,0x80000020,0x0,0x0,0x0,0xe0000000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x80000020,0x80000020,0x80000020,0x20000000,0x80000020,0x40000000,0x80000020,0x8001fc00,0x8001fc00,0x0,0x80,0x40,0x100,0xc,0xc,0x0,0x0,0x11,0x11,0x20,0x0,0x0,0x80000020,0x80000020,0x80000020,0x0,0x0,0x2,0x0,0x0,0x80000020,0x80000020,0x80000020,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x2,0x2,0x0,0x0,0x2,0x2,0xe0000020,0x2,0x0,0x0,0x0,0xe0000000,};
}
private static void jj_la1_2() {
jj_la1_2 = new int[] {0xefffedcc,0xefffedcc,0x0,0xefffedcc,0xefffedcc,0x0,0x0,0xc000000,0x0,0x0,0x0,0xc000000,0x0,0x0,0xc000000,0x0,0xefffedcc,0x0,0xefffe004,0x0,0x0,0x0,0x0,0x0,0x2000,0x478000,0xec000004,0x0,0x0,0xec000004,0x180000,0x0,0x0,0xfffffff,0x4000000,0x0,0x4000000,0x0,0x0,0x2,0x0,0xdc8,0x20,0x10,0x10,0x10,0x200,0x10,0x1200,0x0,0xec000004,0xefffedcc,0xefffe004,0x0,0xec000004,0x0,0xec000000,0x3,0x2,0x1,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xec000000,0x0,0x0,0xec000004,0xec000004,0xec000004,0x0,0xec000000,0xc000000,0x0,0x0,0xec000004,0xec000004,0xec000004,0x0,0x0,0x0,0x0,0x0,0x80,0x0,0x80,0x8,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xefffffff,0x0,0xe0000000,0xc000000,0x0,0xfffffff,};
}
private static void jj_la1_3() {
jj_la1_3 = new int[] {0xff003,0xff003,0x0,0xff003,0xff003,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff003,0x0,0xff003,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff003,0x0,0x0,0xff003,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff003,0xff003,0xff003,0x0,0xff003,0x0,0xff003,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff003,0x0,0x0,0xff003,0xff003,0xff003,0xff000,0xff003,0x0,0x0,0x0,0xff003,0xff003,0xff003,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff003,0x0,0x3,0x0,0xff000,0x0,};
}
private static void jj_la1_4() {
jj_la1_4 = new int[] {0x80,0x80,0x0,0x80,0x80,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x80,0x0,0x80,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x80,0x0,0x0,0x80,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x80,0x80,0x80,0x0,0x80,0x0,0x80,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x80,0x0,0x0,0x80,0x80,0x80,0x0,0x80,0x0,0x0,0x0,0x80,0x80,0x80,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x80,0x0,0x0,0x0,0x0,0x0,};
}
final private JJCalls[] jj_2_rtns = new JJCalls[25];
private boolean jj_rescan = false;
private int jj_gc = 0;
public PythonGrammar(CharStream stream) {
token_source = new PythonGrammarTokenManager(stream);
token = new Token();
jj_ntk = -1;
jj_gen = 0;
for (int i = 0; i < 106; i++) jj_la1[i] = -1;
for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
}
public void ReInit(CharStream stream) {
token_source.ReInit(stream);
token = new Token();
jj_ntk = -1;
jjtree.reset();
jj_gen = 0;
for (int i = 0; i < 106; i++) jj_la1[i] = -1;
for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
}
public PythonGrammar(PythonGrammarTokenManager tm) {
token_source = tm;
token = new Token();
jj_ntk = -1;
jj_gen = 0;
for (int i = 0; i < 106; i++) jj_la1[i] = -1;
for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
}
public void ReInit(PythonGrammarTokenManager tm) {
token_source = tm;
token = new Token();
jj_ntk = -1;
jjtree.reset();
jj_gen = 0;
for (int i = 0; i < 106; i++) jj_la1[i] = -1;
for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
}
final 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();
final 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;
}
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;
}
final public Token getToken(int index) {
Token t = lookingAhead ? jj_scanpos : token;
for (int i = 0; i < index; i++) {
if (t.next != null) t = t.next;
else t = t.next = token_source.getNextToken();
}
return t;
}
final 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.Vector jj_expentries = new java.util.Vector();
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];
}
boolean exists = false;
for (java.util.Enumeration e = jj_expentries.elements(); e.hasMoreElements();) {
int[] oldentry = (int[])(e.nextElement());
if (oldentry.length == jj_expentry.length) {
exists = true;
for (int i = 0; i < jj_expentry.length; i++) {
if (oldentry[i] != jj_expentry[i]) {
exists = false;
break;
}
}
if (exists) break;
}
}
if (!exists) jj_expentries.addElement(jj_expentry);
if (pos != 0) jj_lasttokens[(jj_endpos = pos) - 1] = kind;
}
}
public ParseException generateParseException() {
jj_expentries.removeAllElements();
boolean[] la1tokens = new boolean[136];
for (int i = 0; i < 136; i++) {
la1tokens[i] = false;
}
if (jj_kind >= 0) {
la1tokens[jj_kind] = true;
jj_kind = -1;
}
for (int i = 0; i < 106; 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;
case 22: jj_3_23(); break;
case 23: jj_3_24(); break;
case 24: jj_3_25(); break;
}
}
p = p.next;
} while (p != null);
}
jj_rescan = false;
}
final 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;
}
}