/* Generated By:JavaCC: Do not edit this line. Parser.java */ import java.io.*; import java.util.*; import edu.neu.ccs.demeter.aplib.cd.*; import edu.neu.ccs.demeter.aplib.sg.*; import edu.neu.ccs.demeter.*; public class Parser implements ParserConstants { // oit is uugly. Why isn't there a Character.valueOf(String)? static char unescapifyChar(String s) { char c = s.charAt(0); if (c == '\\') { switch (s.charAt(1)) { case 'n': c = '\n'; break; case 't': c = '\t'; break; case 'b': c = '\b'; break; case 'r': c = '\r'; break; case 'f': c = '\f'; break; case '\\': c = '\\'; break; case '\'': c = '\''; break; case '\"': c = '\"'; break; default: c = (char) Integer.parseInt(s.substring(1, s.length()), 8); break; } } return c; } // Even uglier... static String unescapify(String s) { char str[] = new char[s.length()]; int i = 0, o = 0; while (i < s.length()) { char c = s.charAt(i++); if (c == '\\') { int j = i + 1; while (j < s.length() && Character.digit(s.charAt(j), 8) != -1) { j++; } c = unescapifyChar(s.substring(i-1, j)); i = j; } str[o++] = c; } return String.valueOf(str, 0, o); } final public XAspectLanguage3 _XAspectLanguage3() throws ParseException { XAspectLanguage3 it = null; AspectLanguage_List _aspectlanguage_list; it=new XAspectLanguage3(); _aspectlanguage_list = _AspectLanguage_List(); it.set_aspectlanguage_list(_aspectlanguage_list); jj_consume_token(0); {if (true) return it;} throw new Error("Missing return statement in function"); } final public AspectLanguage _AspectLanguage() throws ParseException { AspectLanguage it = null; if (jj_2_1(3)) { it = _ClassDictionaryL(); } else { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 1: it = _SelectorL(); break; default: jj_la1[0] = jj_gen; jj_consume_token(-1); throw new ParseException(); } } {if (true) return it;} throw new Error("Missing return statement in function"); } final public void common_AspectLanguage(AspectLanguage it) throws ParseException { } final public ClassDictionaryL _ClassDictionaryL() throws ParseException { ClassDictionaryL it = null; ClassDictionaryName _classdictionaryname; ClassDict _classdict; it=new ClassDictionaryL(); jj_consume_token(1); jj_consume_token(2); jj_consume_token(3); jj_consume_token(4); _classdictionaryname = _ClassDictionaryName(); it.set_classdictionaryname(_classdictionaryname); _classdict = _ClassDict(); it.set_classdict(_classdict); common_AspectLanguage(it); {if (true) return it;} throw new Error("Missing return statement in function"); } final public SelectorL _SelectorL() throws ParseException { SelectorL it = null; TraversalName _traversalname; StrategyDef_List _strategydef_list; NodeSubsetDef_List _nodesubsetdef_list; SelectorName _selectorname; ClassDictionaryName _classdictionaryname; it=new SelectorL(); jj_consume_token(1); jj_consume_token(2); jj_consume_token(5); jj_consume_token(4); _traversalname = _TraversalName(); it.set_traversalname(_traversalname); jj_consume_token(6); _strategydef_list = _StrategyDef_List(); it.set_strategydef_list(_strategydef_list); _nodesubsetdef_list = _NodeSubsetDef_List(); it.set_nodesubsetdef_list(_nodesubsetdef_list); if (jj_2_2(3)) { jj_consume_token(7); jj_consume_token(8); jj_consume_token(9); _selectorname = _SelectorName(); it.set_selectorname(_selectorname); jj_consume_token(10); } else { ; } if (jj_2_3(3)) { jj_consume_token(7); jj_consume_token(8); jj_consume_token(11); jj_consume_token(12); _classdictionaryname = _ClassDictionaryName(); it.set_classdictionaryname(_classdictionaryname); jj_consume_token(10); } else { ; } jj_consume_token(13); common_AspectLanguage(it); {if (true) return it;} throw new Error("Missing return statement in function"); } final public StrategyDef _StrategyDef() throws ParseException { StrategyDef it = null; StrategyName _strategyname; StrategyExpr _strategyexpr; it=new StrategyDef(); jj_consume_token(7); jj_consume_token(14); jj_consume_token(15); _strategyname = _StrategyName(); it.set_strategyname(_strategyname); jj_consume_token(15); _strategyexpr = _StrategyExpr(); it.set_strategyexpr(_strategyexpr); jj_consume_token(10); {if (true) return it;} throw new Error("Missing return statement in function"); } final public NodeSubsetDef _NodeSubsetDef() throws ParseException { NodeSubsetDef it = null; NodeSubsetName _nodesubsetname; NodeSubsetExpression _nodesubsetexpression; it=new NodeSubsetDef(); jj_consume_token(7); jj_consume_token(16); jj_consume_token(17); jj_consume_token(15); _nodesubsetname = _NodeSubsetName(); it.set_nodesubsetname(_nodesubsetname); jj_consume_token(15); _nodesubsetexpression = _NodeSubsetExpression(); it.set_nodesubsetexpression(_nodesubsetexpression); jj_consume_token(10); {if (true) return it;} throw new Error("Missing return statement in function"); } final public NodeSubsetExpression _NodeSubsetExpression() throws ParseException { NodeSubsetExpression it = null; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 6: case 18: case 19: case IDENTIFIER: it = _Simple(); break; case 21: case 22: it = _BCompound(); break; case 23: it = _UCompound(); break; default: jj_la1[1] = jj_gen; jj_consume_token(-1); throw new ParseException(); } {if (true) return it;} throw new Error("Missing return statement in function"); } final public void common_NodeSubsetExpression(NodeSubsetExpression it) throws ParseException { } final public Simple _Simple() throws ParseException { Simple it = null; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case IDENTIFIER: it = _NodeSubsetName(); break; case 6: it = _ClassNameSet(); break; case 18: it = _GraphNodes(); break; case 19: it = _GraphNodeRegExp(); break; default: jj_la1[2] = jj_gen; jj_consume_token(-1); throw new ParseException(); } {if (true) return it;} throw new Error("Missing return statement in function"); } final public void common_Simple(Simple it) throws ParseException { common_NodeSubsetExpression(it); } final public BCompound _BCompound() throws ParseException { BCompound it = null; BinaryOp _op; NodeSubsetExpression_PCList _args; it=new BCompound(); _op = _BinaryOp(); it.set_op(_op); _args = _NodeSubsetExpression_PCList(); it.set_args(_args); common_NodeSubsetExpression(it); {if (true) return it;} throw new Error("Missing return statement in function"); } final public UCompound _UCompound() throws ParseException { UCompound it = null; UnaryOp _op; NodeSubsetExpression _arg; it=new UCompound(); _op = _UnaryOp(); it.set_op(_op); _arg = _NodeSubsetExpression(); it.set_arg(_arg); common_NodeSubsetExpression(it); {if (true) return it;} throw new Error("Missing return statement in function"); } final public ClassNameSet _ClassNameSet() throws ParseException { ClassNameSet it = null; ClassName_BCList _classname_bclist; it=new ClassNameSet(); _classname_bclist = _ClassName_BCList(); it.set_classname_bclist(_classname_bclist); common_Simple(it); {if (true) return it;} throw new Error("Missing return statement in function"); } final public GraphNodes _GraphNodes() throws ParseException { GraphNodes it = null; StrategyName _strategyname; it=new GraphNodes(); jj_consume_token(18); _strategyname = _StrategyName(); it.set_strategyname(_strategyname); common_Simple(it); {if (true) return it;} throw new Error("Missing return statement in function"); } final public GraphNodeRegExp _GraphNodeRegExp() throws ParseException { GraphNodeRegExp it = null; ClassName _classname; WildCard _wildcard; it=new GraphNodeRegExp(); jj_consume_token(19); _classname = _ClassName(); it.set_classname(_classname); _wildcard = _WildCard(); it.set_wildcard(_wildcard); common_Simple(it); {if (true) return it;} throw new Error("Missing return statement in function"); } final public WildCard _WildCard() throws ParseException { WildCard it = null; it=new WildCard(); jj_consume_token(20); {if (true) return it;} throw new Error("Missing return statement in function"); } final public BinaryOp _BinaryOp() throws ParseException { BinaryOp it = null; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 21: it = _Union(); break; case 22: it = _Intersection(); break; default: jj_la1[3] = jj_gen; jj_consume_token(-1); throw new ParseException(); } {if (true) return it;} throw new Error("Missing return statement in function"); } final public void common_BinaryOp(BinaryOp it) throws ParseException { common_Operator(it); } final public UnaryOp _UnaryOp() throws ParseException { UnaryOp it = null; it = _Complement(); {if (true) return it;} throw new Error("Missing return statement in function"); } final public void common_UnaryOp(UnaryOp it) throws ParseException { common_Operator(it); } final public Union _Union() throws ParseException { Union it = null; it=new Union(); jj_consume_token(21); common_BinaryOp(it); {if (true) return it;} throw new Error("Missing return statement in function"); } final public Intersection _Intersection() throws ParseException { Intersection it = null; it=new Intersection(); jj_consume_token(22); common_BinaryOp(it); {if (true) return it;} throw new Error("Missing return statement in function"); } final public Complement _Complement() throws ParseException { Complement it = null; it=new Complement(); jj_consume_token(23); common_UnaryOp(it); {if (true) return it;} throw new Error("Missing return statement in function"); } final public ClassName _ClassName() throws ParseException { ClassName it = null; Name _name; it=new ClassName(); _name = _Name(); it.set_name(_name); {if (true) return it;} throw new Error("Missing return statement in function"); } final public Name _Name() throws ParseException { Name it = null; Nonempty_Name _first; it=new Name(); _first = _Nonempty_Name(); it.set_first(_first); {if (true) return it;} throw new Error("Missing return statement in function"); } final public ClassDict _ClassDict() throws ParseException { ClassDict it = null; ConstText _cdtext; it=new ClassDict(); _cdtext = _ConstText(); it.set_cdtext(_cdtext); {if (true) return it;} throw new Error("Missing return statement in function"); } final public StrategyExpr _StrategyExpr() throws ParseException { StrategyExpr it = null; String _strategyString; it=new StrategyExpr(); _strategyString = _String(); it.set_strategyString(_strategyString); {if (true) return it;} throw new Error("Missing return statement in function"); } final public SelectorName _SelectorName() throws ParseException { SelectorName it = null; ConstIdent _name; it=new SelectorName(); _name = _ConstIdent(); it.set_name(_name); {if (true) return it;} throw new Error("Missing return statement in function"); } final public TraversalName _TraversalName() throws ParseException { TraversalName it = null; ConstIdent _name; it=new TraversalName(); _name = _ConstIdent(); it.set_name(_name); {if (true) return it;} throw new Error("Missing return statement in function"); } final public StrategyName _StrategyName() throws ParseException { StrategyName it = null; ConstIdent _name; it=new StrategyName(); _name = _ConstIdent(); it.set_name(_name); {if (true) return it;} throw new Error("Missing return statement in function"); } final public NodeSubsetName _NodeSubsetName() throws ParseException { NodeSubsetName it = null; ConstIdent _name; it=new NodeSubsetName(); _name = _ConstIdent(); it.set_name(_name); common_Simple(it); {if (true) return it;} throw new Error("Missing return statement in function"); } final public ClassDictionaryName _ClassDictionaryName() throws ParseException { ClassDictionaryName it = null; ConstIdent _name; it=new ClassDictionaryName(); _name = _ConstIdent(); it.set_name(_name); {if (true) return it;} throw new Error("Missing return statement in function"); } final public Operator _Operator() throws ParseException { Operator it = null; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 21: case 22: it = _BinaryOp(); break; case 23: it = _UnaryOp(); break; default: jj_la1[4] = jj_gen; jj_consume_token(-1); throw new ParseException(); } {if (true) return it;} throw new Error("Missing return statement in function"); } final public void common_Operator(Operator it) throws ParseException { } final public ConstIdent _ConstIdent() throws ParseException { ConstIdent it = null; Ident _ident; it=new ConstIdent(); _ident = _Ident(); it.set_ident(_ident); {if (true) return it;} throw new Error("Missing return statement in function"); } final public ConstText _ConstText() throws ParseException { ConstText it = null; Text _text; it=new ConstText(); _text = _Text(); it.set_text(_text); {if (true) return it;} throw new Error("Missing return statement in function"); } final public Main _Main() throws ParseException { Main it = null; it=new Main(); {if (true) return it;} throw new Error("Missing return statement in function"); } final public AspectLanguage_List _AspectLanguage_List() throws ParseException { AspectLanguage_List it = null; Nonempty_AspectLanguage_List _first; it=new AspectLanguage_List(); if (jj_2_4(3)) { _first = _Nonempty_AspectLanguage_List(); it.set_first(_first); } else { ; } {if (true) return it;} throw new Error("Missing return statement in function"); } final public StrategyDef_List _StrategyDef_List() throws ParseException { StrategyDef_List it = null; Nonempty_StrategyDef_List _first; it=new StrategyDef_List(); if (jj_2_5(3)) { _first = _Nonempty_StrategyDef_List(); it.set_first(_first); } else { ; } {if (true) return it;} throw new Error("Missing return statement in function"); } final public NodeSubsetDef_List _NodeSubsetDef_List() throws ParseException { NodeSubsetDef_List it = null; Nonempty_NodeSubsetDef_List _first; it=new NodeSubsetDef_List(); if (jj_2_6(3)) { _first = _Nonempty_NodeSubsetDef_List(); it.set_first(_first); } else { ; } {if (true) return it;} throw new Error("Missing return statement in function"); } final public NodeSubsetExpression_PCList _NodeSubsetExpression_PCList() throws ParseException { NodeSubsetExpression_PCList it = null; Nonempty_NodeSubsetExpression_PCList _first; it=new NodeSubsetExpression_PCList(); jj_consume_token(2); _first = _Nonempty_NodeSubsetExpression_PCList(); it.set_first(_first); jj_consume_token(4); {if (true) return it;} throw new Error("Missing return statement in function"); } final public ClassName_BCList _ClassName_BCList() throws ParseException { ClassName_BCList it = null; Nonempty_ClassName_BCList _first; it=new ClassName_BCList(); jj_consume_token(6); _first = _Nonempty_ClassName_BCList(); it.set_first(_first); jj_consume_token(13); {if (true) return it;} throw new Error("Missing return statement in function"); } final public Nonempty_Name _Nonempty_Name() throws ParseException { Nonempty_Name it = null; ConstIdent _it; Nonempty_Name _next; it=new Nonempty_Name(); _it = _ConstIdent(); it.set_it(_it); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 24: jj_consume_token(24); _next = _Nonempty_Name(); it.set_next(_next); break; default: jj_la1[5] = jj_gen; ; } {if (true) return it;} throw new Error("Missing return statement in function"); } final public Nonempty_AspectLanguage_List _Nonempty_AspectLanguage_List() throws ParseException { Nonempty_AspectLanguage_List it = null; AspectLanguage _it; Nonempty_AspectLanguage_List _next; it=new Nonempty_AspectLanguage_List(); _it = _AspectLanguage(); it.set_it(_it); if (jj_2_7(3)) { _next = _Nonempty_AspectLanguage_List(); it.set_next(_next); } else { ; } {if (true) return it;} throw new Error("Missing return statement in function"); } final public Nonempty_StrategyDef_List _Nonempty_StrategyDef_List() throws ParseException { Nonempty_StrategyDef_List it = null; StrategyDef _it; Nonempty_StrategyDef_List _next; it=new Nonempty_StrategyDef_List(); _it = _StrategyDef(); it.set_it(_it); if (jj_2_8(3)) { _next = _Nonempty_StrategyDef_List(); it.set_next(_next); } else { ; } {if (true) return it;} throw new Error("Missing return statement in function"); } final public Nonempty_NodeSubsetDef_List _Nonempty_NodeSubsetDef_List() throws ParseException { Nonempty_NodeSubsetDef_List it = null; NodeSubsetDef _it; Nonempty_NodeSubsetDef_List _next; it=new Nonempty_NodeSubsetDef_List(); _it = _NodeSubsetDef(); it.set_it(_it); if (jj_2_9(3)) { _next = _Nonempty_NodeSubsetDef_List(); it.set_next(_next); } else { ; } {if (true) return it;} throw new Error("Missing return statement in function"); } final public Nonempty_NodeSubsetExpression_PCList _Nonempty_NodeSubsetExpression_PCList() throws ParseException { Nonempty_NodeSubsetExpression_PCList it = null; NodeSubsetExpression _it; Nonempty_NodeSubsetExpression_PCList _next; it=new Nonempty_NodeSubsetExpression_PCList(); _it = _NodeSubsetExpression(); it.set_it(_it); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 25: jj_consume_token(25); _next = _Nonempty_NodeSubsetExpression_PCList(); it.set_next(_next); break; default: jj_la1[6] = jj_gen; ; } {if (true) return it;} throw new Error("Missing return statement in function"); } final public Nonempty_ClassName_BCList _Nonempty_ClassName_BCList() throws ParseException { Nonempty_ClassName_BCList it = null; ClassName _it; Nonempty_ClassName_BCList _next; it=new Nonempty_ClassName_BCList(); _it = _ClassName(); it.set_it(_it); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 25: jj_consume_token(25); _next = _Nonempty_ClassName_BCList(); it.set_next(_next); break; default: jj_la1[7] = jj_gen; ; } {if (true) return it;} throw new Error("Missing return statement in function"); } final public boolean _boolean() throws ParseException { Token t; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case TRUE: t = jj_consume_token(TRUE); {if (true) return true;} break; case FALSE: t = jj_consume_token(FALSE); {if (true) return false;} break; default: jj_la1[8] = jj_gen; jj_consume_token(-1); throw new ParseException(); } throw new Error("Missing return statement in function"); } final public char _char() throws ParseException { Token t; t = jj_consume_token(CHARACTER_LITERAL); String s = t.image; {if (true) return unescapifyChar(s.substring(1, s.length()-1));} throw new Error("Missing return statement in function"); } final public byte _byte() throws ParseException { int i; i = _int(); {if (true) return (byte) i;} throw new Error("Missing return statement in function"); } final public short _short() throws ParseException { int i; i = _int(); {if (true) return (short) i;} throw new Error("Missing return statement in function"); } final public int _int() throws ParseException { Number num; num = _Number(); {if (true) return num.intValue();} throw new Error("Missing return statement in function"); } final public long _long() throws ParseException { Number num; num = _Number(); {if (true) return num.longValue();} throw new Error("Missing return statement in function"); } final public float _float() throws ParseException { Number num; num = _Number(); {if (true) return num.floatValue();} throw new Error("Missing return statement in function"); } final public double _double() throws ParseException { Number num; num = _Number(); {if (true) return num.doubleValue();} throw new Error("Missing return statement in function"); } final public Boolean _Boolean() throws ParseException { Token t; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case TRUE: t = jj_consume_token(TRUE); {if (true) return Boolean.TRUE;} break; case FALSE: t = jj_consume_token(FALSE); {if (true) return Boolean.FALSE;} break; default: jj_la1[9] = jj_gen; jj_consume_token(-1); throw new ParseException(); } throw new Error("Missing return statement in function"); } final public Character _Character() throws ParseException { char c; c = _char(); {if (true) return new Character(c);} throw new Error("Missing return statement in function"); } final public Integer _Integer() throws ParseException { int i; i = _int(); {if (true) return new Integer(i);} throw new Error("Missing return statement in function"); } final public Long _Long() throws ParseException { long l; l = _long(); {if (true) return new Long(l);} throw new Error("Missing return statement in function"); } final public Float _Float() throws ParseException { float f; f = _float(); {if (true) return new Float(f);} throw new Error("Missing return statement in function"); } final public Double _Double() throws ParseException { double d; d = _double(); {if (true) return new Double(d);} throw new Error("Missing return statement in function"); } final public Number _Number() throws ParseException { Token t; String s = null; int radix = 0; Number num = null; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DECIMAL_LITERAL: case HEX_LITERAL: case OCTAL_LITERAL: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DECIMAL_LITERAL: t = jj_consume_token(DECIMAL_LITERAL); s = t.image; radix = 10; break; case HEX_LITERAL: t = jj_consume_token(HEX_LITERAL); // Strip off the "0x". s = t.image.substring(2, t.image.length()); radix = 16; break; case OCTAL_LITERAL: t = jj_consume_token(OCTAL_LITERAL); s = t.image; radix = 8; break; default: jj_la1[10] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch (s.charAt(s.length()-1)) { case 'l': case 'L': s = s.substring(0, s.length()-1); num = new Long(new java.math.BigInteger(s, radix).longValue()); break; default: num = new Integer(new java.math.BigInteger(s, radix).intValue()); break; } break; case FLOATING_POINT_LITERAL: t = jj_consume_token(FLOATING_POINT_LITERAL); s = t.image; switch (s.charAt(s.length()-1)) { case 'd': case 'D': num = Double.valueOf(s.substring(0, s.length()-1)); break; case 'f': case 'F': num = Float.valueOf(s.substring(0, s.length()-1)); break; default: num = Float.valueOf(s); break; } break; default: jj_la1[11] = jj_gen; jj_consume_token(-1); throw new ParseException(); } {if (true) return num;} throw new Error("Missing return statement in function"); } final public String _String() throws ParseException { Token t; t = jj_consume_token(STRING_LITERAL); String s = t.image; {if (true) return unescapify(s.substring(1, s.length()-1));} throw new Error("Missing return statement in function"); } final public StringBuffer _StringBuffer() throws ParseException { String s; s = _String(); {if (true) return new StringBuffer(s);} throw new Error("Missing return statement in function"); } final public Ident _Ident() throws ParseException { Token t; t = jj_consume_token(IDENTIFIER); {if (true) return new Ident(t.image);} throw new Error("Missing return statement in function"); } final public Text _Text() throws ParseException { Token t; t = jj_consume_token(TEXT_LITERAL); String s = t.image; {if (true) return new Text(s.substring(2, s.length()-2));} throw new Error("Missing return statement in function"); } final public Line _Line() throws ParseException { Token t; token_source.SwitchTo(1); t = jj_consume_token(LINE); {if (true) return new Line(t.image);} throw new Error("Missing return statement in function"); } final public Word _Word() throws ParseException { Token t; token_source.SwitchTo(2); t = jj_consume_token(WORD); {if (true) return new Word(t.image);} throw new Error("Missing return statement in function"); } final private boolean jj_2_1(int xla) { jj_la = xla; jj_lastpos = jj_scanpos = token; boolean retval = !jj_3_1(); jj_save(0, xla); return retval; } final private boolean jj_2_2(int xla) { jj_la = xla; jj_lastpos = jj_scanpos = token; boolean retval = !jj_3_2(); jj_save(1, xla); return retval; } final private boolean jj_2_3(int xla) { jj_la = xla; jj_lastpos = jj_scanpos = token; boolean retval = !jj_3_3(); jj_save(2, xla); return retval; } final private boolean jj_2_4(int xla) { jj_la = xla; jj_lastpos = jj_scanpos = token; boolean retval = !jj_3_4(); jj_save(3, xla); return retval; } final private boolean jj_2_5(int xla) { jj_la = xla; jj_lastpos = jj_scanpos = token; boolean retval = !jj_3_5(); jj_save(4, xla); return retval; } final private boolean jj_2_6(int xla) { jj_la = xla; jj_lastpos = jj_scanpos = token; boolean retval = !jj_3_6(); jj_save(5, xla); return retval; } final private boolean jj_2_7(int xla) { jj_la = xla; jj_lastpos = jj_scanpos = token; boolean retval = !jj_3_7(); jj_save(6, xla); return retval; } final private boolean jj_2_8(int xla) { jj_la = xla; jj_lastpos = jj_scanpos = token; boolean retval = !jj_3_8(); jj_save(7, xla); return retval; } final private boolean jj_2_9(int xla) { jj_la = xla; jj_lastpos = jj_scanpos = token; boolean retval = !jj_3_9(); jj_save(8, xla); return retval; } final private boolean jj_3_8() { if (jj_3R_3()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } final private boolean jj_3_6() { if (jj_3R_4()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } final private boolean jj_3R_3() { if (jj_3R_6()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } final private boolean jj_3R_1() { if (jj_scan_token(1)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(2)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(3)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } final private boolean jj_3R_7() { if (jj_scan_token(7)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(16)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(17)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } final private boolean jj_3_7() { if (jj_3R_2()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } final private boolean jj_3_5() { if (jj_3R_3()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } final private boolean jj_3_1() { if (jj_3R_1()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } final private boolean jj_3R_2() { if (jj_3R_5()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } final private boolean jj_3R_5() { Token xsp; xsp = jj_scanpos; if (jj_3_1()) { jj_scanpos = xsp; if (jj_3R_8()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } final private boolean jj_3R_6() { if (jj_scan_token(7)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(14)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(15)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } final private boolean jj_3R_8() { if (jj_3R_9()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } final private boolean jj_3_4() { if (jj_3R_2()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } final private boolean jj_3_3() { if (jj_scan_token(7)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(8)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(11)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } final private boolean jj_3_2() { if (jj_scan_token(7)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(8)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(9)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } final private boolean jj_3R_9() { if (jj_scan_token(1)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(2)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(5)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } final private boolean jj_3_9() { if (jj_3R_4()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } final private boolean jj_3R_4() { if (jj_3R_7()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } public ParserTokenManager token_source; ASCII_UCodeESC_CharStream jj_input_stream; 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[12]; final private int[] jj_la1_0 = {0x2,0xec0040,0xc0040,0x600000,0xe00000,0x1000000,0x2000000,0x2000000,0x0,0x0,0x0,0x0,}; final private int[] jj_la1_1 = {0x0,0x400,0x400,0x0,0x0,0x0,0x0,0x0,0x300,0x300,0x7,0xf,}; final private JJCalls[] jj_2_rtns = new JJCalls[9]; private boolean jj_rescan = false; private int jj_gc = 0; public Parser(java.io.InputStream stream) { jj_input_stream = new ASCII_UCodeESC_CharStream(stream, 1, 1); token_source = new ParserTokenManager(jj_input_stream); token = new Token(); jj_ntk = -1; jj_gen = 0; for (int i = 0; i < 12; i++) jj_la1[i] = -1; for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls(); } public void ReInit(java.io.InputStream stream) { jj_input_stream.ReInit(stream, 1, 1); token_source.ReInit(jj_input_stream); token = new Token(); jj_ntk = -1; jj_gen = 0; for (int i = 0; i < 12; i++) jj_la1[i] = -1; for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls(); } public Parser(java.io.Reader stream) { jj_input_stream = new ASCII_UCodeESC_CharStream(stream, 1, 1); token_source = new ParserTokenManager(jj_input_stream); token = new Token(); jj_ntk = -1; jj_gen = 0; for (int i = 0; i < 12; i++) jj_la1[i] = -1; for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls(); } public void ReInit(java.io.Reader stream) { jj_input_stream.ReInit(stream, 1, 1); token_source.ReInit(jj_input_stream); token = new Token(); jj_ntk = -1; jj_gen = 0; for (int i = 0; i < 12; i++) jj_la1[i] = -1; for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls(); } public Parser(ParserTokenManager tm) { token_source = tm; token = new Token(); jj_ntk = -1; jj_gen = 0; for (int i = 0; i < 12; i++) jj_la1[i] = -1; for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls(); } public void ReInit(ParserTokenManager tm) { token_source = tm; token = new Token(); jj_ntk = -1; jj_gen = 0; for (int i = 0; i < 12; 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(); } 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); } return (jj_scanpos.kind != kind); } 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 enum = jj_expentries.elements(); enum.hasMoreElements();) { int[] oldentry = (int[])(enum.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; } } final public ParseException generateParseException() { jj_expentries.removeAllElements(); boolean[] la1tokens = new boolean[51]; for (int i = 0; i < 51; i++) { la1tokens[i] = false; } if (jj_kind >= 0) { la1tokens[jj_kind] = true; jj_kind = -1; } for (int i = 0; i < 12; 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; } } 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; } }