/* Generated By:JavaCC: Do not edit this line. Parser.java */ import java.lang.*; import java.io.*; import edu.neu.ccs.demeter.dj.*; import java.util.*; 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 Bank _Bank() throws ParseException { Bank it = null; BusinessUnit_List _businessunit_list; it=new Bank(); _businessunit_list = _BusinessUnit_List(); it.set_businessunit_list(_businessunit_list); {if (true) return it;} throw new Error("Missing return statement in function"); } final public BusinessUnit _BusinessUnit() throws ParseException { BusinessUnit it = null; Index _index; Country _country; Location _location; Party_List _party_list; it=new BusinessUnit(); _index = _Index(); it.set_index(_index); _country = _Country(); it.set_country(_country); _location = _Location(); it.set_location(_location); _party_list = _Party_List(); it.set_party_list(_party_list); {if (true) return it;} throw new Error("Missing return statement in function"); } final public Party _Party() throws ParseException { Party it = null; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 1: it = _Individual(); break; case 2: it = _CorporateBody(); 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_Party(Party it) throws ParseException { Agreement _agreement; PartyId _partyid; _agreement = _Agreement(); it.set_agreement(_agreement); _partyid = _PartyId(); it.set_partyid(_partyid); } final public Individual _Individual() throws ParseException { Individual it = null; FirstName _firstname; LastName _lastname; Date _birthdate; it=new Individual(); jj_consume_token(1); _firstname = _FirstName(); it.set_firstname(_firstname); _lastname = _LastName(); it.set_lastname(_lastname); _birthdate = _Date(); it.set_birthdate(_birthdate); common_Party(it); {if (true) return it;} throw new Error("Missing return statement in function"); } final public CorporateBody _CorporateBody() throws ParseException { CorporateBody it = null; CompanyName _companyname; Rating _rating; it=new CorporateBody(); jj_consume_token(2); _companyname = _CompanyName(); it.set_companyname(_companyname); _rating = _Rating(); it.set_rating(_rating); common_Party(it); {if (true) return it;} throw new Error("Missing return statement in function"); } final public Agreement _Agreement() throws ParseException { Agreement it = null; Contract_List _contract_list; Agr_Rule_List _agr_rule_list; Day _statement_ending; it=new Agreement(); _contract_list = _Contract_List(); it.set_contract_list(_contract_list); _agr_rule_list = _Agr_Rule_List(); it.set_agr_rule_list(_agr_rule_list); _statement_ending = _Day(); it.set_statement_ending(_statement_ending); {if (true) return it;} throw new Error("Missing return statement in function"); } final public FirstName _FirstName() throws ParseException { FirstName it = null; String _string; it=new FirstName(); _string = _String(); it.set_string(_string); {if (true) return it;} throw new Error("Missing return statement in function"); } final public LastName _LastName() throws ParseException { LastName it = null; String _string; it=new LastName(); _string = _String(); it.set_string(_string); {if (true) return it;} throw new Error("Missing return statement in function"); } final public CompanyName _CompanyName() throws ParseException { CompanyName it = null; String _string; it=new CompanyName(); _string = _String(); it.set_string(_string); {if (true) return it;} throw new Error("Missing return statement in function"); } final public PartyId _PartyId() throws ParseException { PartyId it = null; int _partyId; it=new PartyId(); _partyId = _int(); it.set_partyId(_partyId); {if (true) return it;} throw new Error("Missing return statement in function"); } final public Rating _Rating() throws ParseException { Rating it = null; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 10: it = _C0(); break; case 11: it = _C1(); break; case 12: it = _C9(); break; case 13: it = _D0(); break; case 14: it = _D1(); break; case 15: it = _D3(); break; case 16: it = _D4(); 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_Rating(Rating it) throws ParseException { } final public Contract _Contract() throws ParseException { Contract it = null; Index _index; Location _location; Portfolio_List _portfolios; it=new Contract(); _index = _Index(); it.set_index(_index); _location = _Location(); it.set_location(_location); _portfolios = _Portfolio_List(); it.set_portfolios(_portfolios); {if (true) return it;} throw new Error("Missing return statement in function"); } final public Agr_Rule _Agr_Rule() throws ParseException { Agr_Rule it = null; Rule _rule; Description _description; it=new Agr_Rule(); _rule = _Rule(); it.set_rule(_rule); _description = _Description(); it.set_description(_description); {if (true) return it;} throw new Error("Missing return statement in function"); } final public Rule _Rule() throws ParseException { Rule it = null; boolean _rule; it=new Rule(); _rule = _boolean(); it.set_rule(_rule); {if (true) return it;} throw new Error("Missing return statement in function"); } final public Portfolio _Portfolio() throws ParseException { Portfolio it = null; Index _index; Description _description; Account_List _accounts; it=new Portfolio(); _index = _Index(); it.set_index(_index); _description = _Description(); it.set_description(_description); _accounts = _Account_List(); it.set_accounts(_accounts); {if (true) return it;} throw new Error("Missing return statement in function"); } final public Account _Account() throws ParseException { Account it = null; Posting_List _postings; AccountID _accountid; AccountType _accounttype; Agreement _agreement; it=new Account(); _postings = _Posting_List(); it.set_postings(_postings); _accountid = _AccountID(); it.set_accountid(_accountid); _accounttype = _AccountType(); it.set_accounttype(_accounttype); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 17: _agreement = _Agreement(); it.set_agreement(_agreement); break; default: jj_la1[2] = jj_gen; ; } {if (true) return it;} throw new Error("Missing return statement in function"); } final public Posting _Posting() throws ParseException { Posting it = null; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 3: it = _Credit(); break; case 4: it = _Debit(); 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_Posting(Posting it) throws ParseException { Amount _amount; Date _date; _amount = _Amount(); it.set_amount(_amount); _date = _Date(); it.set_date(_date); } final public AccountID _AccountID() throws ParseException { AccountID it = null; int _account_id; it=new AccountID(); _account_id = _int(); it.set_account_id(_account_id); {if (true) return it;} throw new Error("Missing return statement in function"); } final public Amount _Amount() throws ParseException { Amount it = null; int _amount; it=new Amount(); _amount = _int(); it.set_amount(_amount); {if (true) return it;} throw new Error("Missing return statement in function"); } final public Credit _Credit() throws ParseException { Credit it = null; it=new Credit(); jj_consume_token(3); common_Posting(it); {if (true) return it;} throw new Error("Missing return statement in function"); } final public Debit _Debit() throws ParseException { Debit it = null; it=new Debit(); jj_consume_token(4); common_Posting(it); {if (true) return it;} throw new Error("Missing return statement in function"); } final public AccountType _AccountType() throws ParseException { AccountType it = null; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 5: it = _Savings(); break; case 6: it = _Checking(); break; case 7: it = _Overdraft(); break; case 8: it = _CD(); break; case 9: it = _Loan(); 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_AccountType(AccountType it) throws ParseException { } final public Savings _Savings() throws ParseException { Savings it = null; it=new Savings(); jj_consume_token(5); common_AccountType(it); {if (true) return it;} throw new Error("Missing return statement in function"); } final public Checking _Checking() throws ParseException { Checking it = null; it=new Checking(); jj_consume_token(6); common_AccountType(it); {if (true) return it;} throw new Error("Missing return statement in function"); } final public Overdraft _Overdraft() throws ParseException { Overdraft it = null; it=new Overdraft(); jj_consume_token(7); common_AccountType(it); {if (true) return it;} throw new Error("Missing return statement in function"); } final public CD _CD() throws ParseException { CD it = null; it=new CD(); jj_consume_token(8); common_AccountType(it); {if (true) return it;} throw new Error("Missing return statement in function"); } final public Loan _Loan() throws ParseException { Loan it = null; it=new Loan(); jj_consume_token(9); common_AccountType(it); {if (true) return it;} throw new Error("Missing return statement in function"); } final public Description _Description() throws ParseException { Description it = null; String _string; it=new Description(); _string = _String(); it.set_string(_string); {if (true) return it;} throw new Error("Missing return statement in function"); } final public Index _Index() throws ParseException { Index it = null; int _index; it=new Index(); _index = _int(); it.set_index(_index); {if (true) return it;} throw new Error("Missing return statement in function"); } final public Location _Location() throws ParseException { Location it = null; String _string; it=new Location(); _string = _String(); it.set_string(_string); {if (true) return it;} throw new Error("Missing return statement in function"); } final public Country _Country() throws ParseException { Country it = null; String _string; it=new Country(); _string = _String(); it.set_string(_string); {if (true) return it;} throw new Error("Missing return statement in function"); } final public Date _Date() throws ParseException { Date it = null; Month _month; Day _day; Year _year; it=new Date(); _month = _Month(); it.set_month(_month); _day = _Day(); it.set_day(_day); _year = _Year(); it.set_year(_year); {if (true) return it;} throw new Error("Missing return statement in function"); } final public Month _Month() throws ParseException { Month it = null; int _month; it=new Month(); _month = _int(); it.set_month(_month); {if (true) return it;} throw new Error("Missing return statement in function"); } final public Day _Day() throws ParseException { Day it = null; int _day; it=new Day(); _day = _int(); it.set_day(_day); {if (true) return it;} throw new Error("Missing return statement in function"); } final public Year _Year() throws ParseException { Year it = null; int _year; it=new Year(); _year = _int(); it.set_year(_year); {if (true) return it;} throw new Error("Missing return statement in function"); } final public C0 _C0() throws ParseException { C0 it = null; it=new C0(); jj_consume_token(10); common_Rating(it); {if (true) return it;} throw new Error("Missing return statement in function"); } final public C1 _C1() throws ParseException { C1 it = null; it=new C1(); jj_consume_token(11); common_Rating(it); {if (true) return it;} throw new Error("Missing return statement in function"); } final public C9 _C9() throws ParseException { C9 it = null; it=new C9(); jj_consume_token(12); common_Rating(it); {if (true) return it;} throw new Error("Missing return statement in function"); } final public D0 _D0() throws ParseException { D0 it = null; it=new D0(); jj_consume_token(13); common_Rating(it); {if (true) return it;} throw new Error("Missing return statement in function"); } final public D1 _D1() throws ParseException { D1 it = null; it=new D1(); jj_consume_token(14); common_Rating(it); {if (true) return it;} throw new Error("Missing return statement in function"); } final public D3 _D3() throws ParseException { D3 it = null; it=new D3(); jj_consume_token(15); common_Rating(it); {if (true) return it;} throw new Error("Missing return statement in function"); } final public D4 _D4() throws ParseException { D4 it = null; it=new D4(); jj_consume_token(16); common_Rating(it); {if (true) return it;} throw new Error("Missing return statement in function"); } final public Main _Main() throws ParseException { Main it = null; String _s; it=new Main(); _s = _String(); it.set_s(_s); {if (true) return it;} throw new Error("Missing return statement in function"); } final public BusinessUnit_List _BusinessUnit_List() throws ParseException { BusinessUnit_List it = null; Nonempty_BusinessUnit_List _first; it=new BusinessUnit_List(); jj_consume_token(17); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DECIMAL_LITERAL: case HEX_LITERAL: case OCTAL_LITERAL: case FLOATING_POINT_LITERAL: _first = _Nonempty_BusinessUnit_List(); it.set_first(_first); break; default: jj_la1[5] = jj_gen; ; } jj_consume_token(18); {if (true) return it;} throw new Error("Missing return statement in function"); } final public Party_List _Party_List() throws ParseException { Party_List it = null; Nonempty_Party_List _first; it=new Party_List(); jj_consume_token(17); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 1: case 2: _first = _Nonempty_Party_List(); it.set_first(_first); break; default: jj_la1[6] = jj_gen; ; } jj_consume_token(18); {if (true) return it;} throw new Error("Missing return statement in function"); } final public Contract_List _Contract_List() throws ParseException { Contract_List it = null; Nonempty_Contract_List _first; it=new Contract_List(); jj_consume_token(17); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DECIMAL_LITERAL: case HEX_LITERAL: case OCTAL_LITERAL: case FLOATING_POINT_LITERAL: _first = _Nonempty_Contract_List(); it.set_first(_first); break; default: jj_la1[7] = jj_gen; ; } jj_consume_token(18); {if (true) return it;} throw new Error("Missing return statement in function"); } final public Agr_Rule_List _Agr_Rule_List() throws ParseException { Agr_Rule_List it = null; Nonempty_Agr_Rule_List _first; it=new Agr_Rule_List(); jj_consume_token(17); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case TRUE: case FALSE: _first = _Nonempty_Agr_Rule_List(); it.set_first(_first); break; default: jj_la1[8] = jj_gen; ; } jj_consume_token(18); {if (true) return it;} throw new Error("Missing return statement in function"); } final public Portfolio_List _Portfolio_List() throws ParseException { Portfolio_List it = null; Nonempty_Portfolio_List _first; it=new Portfolio_List(); jj_consume_token(17); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DECIMAL_LITERAL: case HEX_LITERAL: case OCTAL_LITERAL: case FLOATING_POINT_LITERAL: _first = _Nonempty_Portfolio_List(); it.set_first(_first); break; default: jj_la1[9] = jj_gen; ; } jj_consume_token(18); {if (true) return it;} throw new Error("Missing return statement in function"); } final public Account_List _Account_List() throws ParseException { Account_List it = null; Nonempty_Account_List _first; it=new Account_List(); jj_consume_token(17); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 17: _first = _Nonempty_Account_List(); it.set_first(_first); break; default: jj_la1[10] = jj_gen; ; } jj_consume_token(18); {if (true) return it;} throw new Error("Missing return statement in function"); } final public Posting_List _Posting_List() throws ParseException { Posting_List it = null; Nonempty_Posting_List _first; it=new Posting_List(); jj_consume_token(17); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 3: case 4: _first = _Nonempty_Posting_List(); it.set_first(_first); break; default: jj_la1[11] = jj_gen; ; } jj_consume_token(18); {if (true) return it;} throw new Error("Missing return statement in function"); } final public Nonempty_BusinessUnit_List _Nonempty_BusinessUnit_List() throws ParseException { Nonempty_BusinessUnit_List it = null; BusinessUnit _it; Nonempty_BusinessUnit_List _next; it=new Nonempty_BusinessUnit_List(); _it = _BusinessUnit(); it.set_it(_it); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DECIMAL_LITERAL: case HEX_LITERAL: case OCTAL_LITERAL: case FLOATING_POINT_LITERAL: _next = _Nonempty_BusinessUnit_List(); it.set_next(_next); break; default: jj_la1[12] = jj_gen; ; } {if (true) return it;} throw new Error("Missing return statement in function"); } final public Nonempty_Party_List _Nonempty_Party_List() throws ParseException { Nonempty_Party_List it = null; Party _it; Nonempty_Party_List _next; it=new Nonempty_Party_List(); _it = _Party(); it.set_it(_it); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 1: case 2: _next = _Nonempty_Party_List(); it.set_next(_next); break; default: jj_la1[13] = jj_gen; ; } {if (true) return it;} throw new Error("Missing return statement in function"); } final public Nonempty_Contract_List _Nonempty_Contract_List() throws ParseException { Nonempty_Contract_List it = null; Contract _it; Nonempty_Contract_List _next; it=new Nonempty_Contract_List(); _it = _Contract(); it.set_it(_it); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DECIMAL_LITERAL: case HEX_LITERAL: case OCTAL_LITERAL: case FLOATING_POINT_LITERAL: _next = _Nonempty_Contract_List(); it.set_next(_next); break; default: jj_la1[14] = jj_gen; ; } {if (true) return it;} throw new Error("Missing return statement in function"); } final public Nonempty_Agr_Rule_List _Nonempty_Agr_Rule_List() throws ParseException { Nonempty_Agr_Rule_List it = null; Agr_Rule _it; Nonempty_Agr_Rule_List _next; it=new Nonempty_Agr_Rule_List(); _it = _Agr_Rule(); it.set_it(_it); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case TRUE: case FALSE: _next = _Nonempty_Agr_Rule_List(); it.set_next(_next); break; default: jj_la1[15] = jj_gen; ; } {if (true) return it;} throw new Error("Missing return statement in function"); } final public Nonempty_Portfolio_List _Nonempty_Portfolio_List() throws ParseException { Nonempty_Portfolio_List it = null; Portfolio _it; Nonempty_Portfolio_List _next; it=new Nonempty_Portfolio_List(); _it = _Portfolio(); it.set_it(_it); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DECIMAL_LITERAL: case HEX_LITERAL: case OCTAL_LITERAL: case FLOATING_POINT_LITERAL: _next = _Nonempty_Portfolio_List(); it.set_next(_next); break; default: jj_la1[16] = jj_gen; ; } {if (true) return it;} throw new Error("Missing return statement in function"); } final public Nonempty_Account_List _Nonempty_Account_List() throws ParseException { Nonempty_Account_List it = null; Account _it; Nonempty_Account_List _next; it=new Nonempty_Account_List(); _it = _Account(); it.set_it(_it); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 17: _next = _Nonempty_Account_List(); it.set_next(_next); break; default: jj_la1[17] = jj_gen; ; } {if (true) return it;} throw new Error("Missing return statement in function"); } final public Nonempty_Posting_List _Nonempty_Posting_List() throws ParseException { Nonempty_Posting_List it = null; Posting _it; Nonempty_Posting_List _next; it=new Nonempty_Posting_List(); _it = _Posting(); it.set_it(_it); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 3: case 4: _next = _Nonempty_Posting_List(); it.set_next(_next); break; default: jj_la1[18] = 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[19] = 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[20] = 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[21] = 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[22] = 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"); } public ParserTokenManager token_source; ASCII_UCodeESC_CharStream jj_input_stream; public Token token, jj_nt; private int jj_ntk; private int jj_gen; final private int[] jj_la1 = new int[23]; final private int[] jj_la1_0 = {0x6,0x1fc00,0x20000,0x18,0x3e0,0x1e000000,0x6,0x1e000000,0x0,0x1e000000,0x20000,0x18,0x1e000000,0x6,0x1e000000,0x0,0x1e000000,0x20000,0x18,0x0,0x0,0xe000000,0x1e000000,}; final private int[] jj_la1_1 = {0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x6,0x0,0x0,0x0,0x0,0x0,0x0,0x6,0x0,0x0,0x0,0x6,0x6,0x0,0x0,}; 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 < 23; i++) jj_la1[i] = -1; } 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 < 23; i++) jj_la1[i] = -1; } 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 < 23; i++) jj_la1[i] = -1; } 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 < 23; i++) jj_la1[i] = -1; } public Parser(ParserTokenManager tm) { token_source = tm; token = new Token(); jj_ntk = -1; jj_gen = 0; for (int i = 0; i < 23; i++) jj_la1[i] = -1; } public void ReInit(ParserTokenManager tm) { token_source = tm; token = new Token(); jj_ntk = -1; jj_gen = 0; for (int i = 0; i < 23; i++) jj_la1[i] = -1; } 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++; return token; } token = oldToken; jj_kind = kind; throw generateParseException(); } 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 = 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; final public ParseException generateParseException() { jj_expentries.removeAllElements(); boolean[] la1tokens = new boolean[44]; for (int i = 0; i < 44; i++) { la1tokens[i] = false; } if (jj_kind >= 0) { la1tokens[jj_kind] = true; jj_kind = -1; } for (int i = 0; i < 23; i++) { if (jj_la1[i] == jj_gen) { for (int j = 0; j < 32; j++) { if ((jj_la1_0[i] & (1<