/* Generated By:JavaCC: Do not edit this line. Parser.java */ 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 Instance _Instance() throws ParseException { Instance it = null; PresentationXMLElement _presentation; DomainsXMLElement _domains; VariablesXMLElement _variables; RelationsXMLElement _relations; ConstraintsXMLElement _constraints; it=new Instance(); jj_consume_token(1); jj_consume_token(2); jj_consume_token(3); _presentation = _PresentationXMLElement(); it.set_presentation(_presentation); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 17: _domains = _DomainsXMLElement(); it.set_domains(_domains); break; default: jj_la1[0] = jj_gen; ; } _variables = _VariablesXMLElement(); it.set_variables(_variables); _relations = _RelationsXMLElement(); it.set_relations(_relations); _constraints = _ConstraintsXMLElement(); it.set_constraints(_constraints); jj_consume_token(1); jj_consume_token(4); jj_consume_token(2); jj_consume_token(3); jj_consume_token(0); {if (true) return it;} throw new Error("Missing return statement in function"); } final public PresentationXMLAttribute _PresentationXMLAttribute() throws ParseException { PresentationXMLAttribute it = null; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 5: it = _PresentationNameAttribute(); break; case 7: it = _PresentationMaxConstraintArityAttribute(); break; case 8: it = _PresentationNbSolutionAttribute(); break; case 9: it = _PresentationSolutionAttribute(); break; case 10: it = _PresentationMaxSatisfiableConstraintsAttribute(); break; case 11: it = _PresentationFormatAttribute(); 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_PresentationXMLAttribute(PresentationXMLAttribute it) throws ParseException { } final public PresentationNameAttribute _PresentationNameAttribute() throws ParseException { PresentationNameAttribute it = null; String _name; it=new PresentationNameAttribute(); jj_consume_token(5); jj_consume_token(6); _name = _String(); it.set_name(_name); common_PresentationXMLAttribute(it); {if (true) return it;} throw new Error("Missing return statement in function"); } final public PresentationMaxConstraintArityAttribute _PresentationMaxConstraintArityAttribute() throws ParseException { PresentationMaxConstraintArityAttribute it = null; String _maxConstraintArity; it=new PresentationMaxConstraintArityAttribute(); jj_consume_token(7); jj_consume_token(6); _maxConstraintArity = _String(); it.set_maxConstraintArity(_maxConstraintArity); common_PresentationXMLAttribute(it); {if (true) return it;} throw new Error("Missing return statement in function"); } final public PresentationNbSolutionAttribute _PresentationNbSolutionAttribute() throws ParseException { PresentationNbSolutionAttribute it = null; String _nbSolutions; it=new PresentationNbSolutionAttribute(); jj_consume_token(8); jj_consume_token(6); _nbSolutions = _String(); it.set_nbSolutions(_nbSolutions); common_PresentationXMLAttribute(it); {if (true) return it;} throw new Error("Missing return statement in function"); } final public PresentationSolutionAttribute _PresentationSolutionAttribute() throws ParseException { PresentationSolutionAttribute it = null; String _solution; it=new PresentationSolutionAttribute(); jj_consume_token(9); jj_consume_token(6); _solution = _String(); it.set_solution(_solution); common_PresentationXMLAttribute(it); {if (true) return it;} throw new Error("Missing return statement in function"); } final public PresentationMaxSatisfiableConstraintsAttribute _PresentationMaxSatisfiableConstraintsAttribute() throws ParseException { PresentationMaxSatisfiableConstraintsAttribute it = null; String _maxSatisfiableConstraints; it=new PresentationMaxSatisfiableConstraintsAttribute(); jj_consume_token(10); jj_consume_token(6); _maxSatisfiableConstraints = _String(); it.set_maxSatisfiableConstraints(_maxSatisfiableConstraints); common_PresentationXMLAttribute(it); {if (true) return it;} throw new Error("Missing return statement in function"); } final public PresentationFormatAttribute _PresentationFormatAttribute() throws ParseException { PresentationFormatAttribute it = null; String _format; it=new PresentationFormatAttribute(); jj_consume_token(11); jj_consume_token(6); _format = _String(); it.set_format(_format); common_PresentationXMLAttribute(it); {if (true) return it;} throw new Error("Missing return statement in function"); } final public PresentationXMLAttributeList _PresentationXMLAttributeList() throws ParseException { PresentationXMLAttributeList it = null; PresentationXMLAttribute_List _presentationxmlattribute_list; it=new PresentationXMLAttributeList(); _presentationxmlattribute_list = _PresentationXMLAttribute_List(); it.set_presentationxmlattribute_list(_presentationxmlattribute_list); {if (true) return it;} throw new Error("Missing return statement in function"); } final public PresentationXMLElement _PresentationXMLElement() throws ParseException { PresentationXMLElement it = null; PresentationXMLAttributeList _presentationxmlattributelist; it=new PresentationXMLElement(); jj_consume_token(1); jj_consume_token(12); _presentationxmlattributelist = _PresentationXMLAttributeList(); it.set_presentationxmlattributelist(_presentationxmlattributelist); jj_consume_token(4); jj_consume_token(3); {if (true) return it;} throw new Error("Missing return statement in function"); } final public DomainNameAttribute _DomainNameAttribute() throws ParseException { DomainNameAttribute it = null; String _name; it=new DomainNameAttribute(); jj_consume_token(5); jj_consume_token(6); _name = _String(); it.set_name(_name); {if (true) return it;} throw new Error("Missing return statement in function"); } final public DomainNbValuesAttribute _DomainNbValuesAttribute() throws ParseException { DomainNbValuesAttribute it = null; String _nbValues; it=new DomainNbValuesAttribute(); jj_consume_token(13); jj_consume_token(6); _nbValues = _String(); it.set_nbValues(_nbValues); {if (true) return it;} throw new Error("Missing return statement in function"); } final public DomainExp _DomainExp() throws ParseException { DomainExp it = null; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DECIMAL_LITERAL: case HEX_LITERAL: case OCTAL_LITERAL: case FLOATING_POINT_LITERAL: it = _Num(); break; case 14: it = _Dot(); 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_DomainExp(DomainExp it) throws ParseException { } final public Num _Num() throws ParseException { Num it = null; int _v; it=new Num(); _v = _int(); it.set_v(_v); common_DomainExp(it); {if (true) return it;} throw new Error("Missing return statement in function"); } final public Dot _Dot() throws ParseException { Dot it = null; it=new Dot(); jj_consume_token(14); common_DomainExp(it); {if (true) return it;} throw new Error("Missing return statement in function"); } final public DomainXMLElement _DomainXMLElement() throws ParseException { DomainXMLElement it = null; DomainNameAttribute _domainnameattribute; DomainNbValuesAttribute _domainnbvaluesattribute; DomainExp_List _domainexp_list; it=new DomainXMLElement(); jj_consume_token(15); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 5: _domainnameattribute = _DomainNameAttribute(); it.set_domainnameattribute(_domainnameattribute); break; default: jj_la1[3] = jj_gen; ; } _domainnbvaluesattribute = _DomainNbValuesAttribute(); it.set_domainnbvaluesattribute(_domainnbvaluesattribute); jj_consume_token(3); _domainexp_list = _DomainExp_List(); it.set_domainexp_list(_domainexp_list); jj_consume_token(1); jj_consume_token(4); jj_consume_token(15); jj_consume_token(3); jj_consume_token(1); {if (true) return it;} throw new Error("Missing return statement in function"); } final public DomainsNbDomainsAttribute _DomainsNbDomainsAttribute() throws ParseException { DomainsNbDomainsAttribute it = null; String _nbDomains; it=new DomainsNbDomainsAttribute(); jj_consume_token(16); jj_consume_token(6); _nbDomains = _String(); it.set_nbDomains(_nbDomains); {if (true) return it;} throw new Error("Missing return statement in function"); } final public DomainsXMLElement _DomainsXMLElement() throws ParseException { DomainsXMLElement it = null; DomainsNbDomainsAttribute _domainsnbdomainsattribute; DomainXMLElement_List _domainxmlelement_list; it=new DomainsXMLElement(); jj_consume_token(17); _domainsnbdomainsattribute = _DomainsNbDomainsAttribute(); it.set_domainsnbdomainsattribute(_domainsnbdomainsattribute); jj_consume_token(3); jj_consume_token(1); _domainxmlelement_list = _DomainXMLElement_List(); it.set_domainxmlelement_list(_domainxmlelement_list); jj_consume_token(4); jj_consume_token(18); jj_consume_token(3); {if (true) return it;} throw new Error("Missing return statement in function"); } final public variableNameAttribute _variableNameAttribute() throws ParseException { variableNameAttribute it = null; String _name; it=new variableNameAttribute(); jj_consume_token(5); jj_consume_token(6); _name = _String(); it.set_name(_name); {if (true) return it;} throw new Error("Missing return statement in function"); } final public variableDomainAttribute _variableDomainAttribute() throws ParseException { variableDomainAttribute it = null; String _domain; it=new variableDomainAttribute(); jj_consume_token(15); jj_consume_token(6); _domain = _String(); it.set_domain(_domain); {if (true) return it;} throw new Error("Missing return statement in function"); } final public VariableXMLElement _VariableXMLElement() throws ParseException { VariableXMLElement it = null; variableNameAttribute _variablenameattribute; variableDomainAttribute _variabledomainattribute; it=new VariableXMLElement(); jj_consume_token(19); _variablenameattribute = _variableNameAttribute(); it.set_variablenameattribute(_variablenameattribute); _variabledomainattribute = _variableDomainAttribute(); it.set_variabledomainattribute(_variabledomainattribute); jj_consume_token(4); jj_consume_token(3); jj_consume_token(1); {if (true) return it;} throw new Error("Missing return statement in function"); } final public VariablesNbVariablesAttribute _VariablesNbVariablesAttribute() throws ParseException { VariablesNbVariablesAttribute it = null; String _nbVariables; it=new VariablesNbVariablesAttribute(); jj_consume_token(20); jj_consume_token(6); _nbVariables = _String(); it.set_nbVariables(_nbVariables); {if (true) return it;} throw new Error("Missing return statement in function"); } final public VariablesXMLElement _VariablesXMLElement() throws ParseException { VariablesXMLElement it = null; VariablesNbVariablesAttribute _variablesnbvariablesattribute; VariableXMLElement_List _variablexmlelement_list; it=new VariablesXMLElement(); jj_consume_token(1); jj_consume_token(21); _variablesnbvariablesattribute = _VariablesNbVariablesAttribute(); it.set_variablesnbvariablesattribute(_variablesnbvariablesattribute); jj_consume_token(3); jj_consume_token(1); _variablexmlelement_list = _VariableXMLElement_List(); it.set_variablexmlelement_list(_variablexmlelement_list); jj_consume_token(4); jj_consume_token(21); jj_consume_token(3); {if (true) return it;} throw new Error("Missing return statement in function"); } final public RelationNameAttribute _RelationNameAttribute() throws ParseException { RelationNameAttribute it = null; String _name; it=new RelationNameAttribute(); jj_consume_token(5); jj_consume_token(6); _name = _String(); it.set_name(_name); {if (true) return it;} throw new Error("Missing return statement in function"); } final public RelationNumberAttribute _RelationNumberAttribute() throws ParseException { RelationNumberAttribute it = null; String _number; it=new RelationNumberAttribute(); jj_consume_token(22); jj_consume_token(6); _number = _String(); it.set_number(_number); {if (true) return it;} throw new Error("Missing return statement in function"); } final public RelationArityAttribute _RelationArityAttribute() throws ParseException { RelationArityAttribute it = null; String _arity; it=new RelationArityAttribute(); jj_consume_token(23); jj_consume_token(6); _arity = _String(); it.set_arity(_arity); {if (true) return it;} throw new Error("Missing return statement in function"); } final public RelationNbTuplesAttribute _RelationNbTuplesAttribute() throws ParseException { RelationNbTuplesAttribute it = null; String _nbTuples; it=new RelationNbTuplesAttribute(); jj_consume_token(24); jj_consume_token(6); _nbTuples = _String(); it.set_nbTuples(_nbTuples); {if (true) return it;} throw new Error("Missing return statement in function"); } final public RelationSemanticsAttribute _RelationSemanticsAttribute() throws ParseException { RelationSemanticsAttribute it = null; String _semantics; it=new RelationSemanticsAttribute(); jj_consume_token(25); jj_consume_token(6); _semantics = _String(); it.set_semantics(_semantics); {if (true) return it;} throw new Error("Missing return statement in function"); } final public RelationXMLElement _RelationXMLElement() throws ParseException { RelationXMLElement it = null; RelationNameAttribute _relationnameattribute; RelationNumberAttribute _relationnumberattribute; RelationArityAttribute _relationarityattribute; RelationNbTuplesAttribute _relationnbtuplesattribute; RelationSemanticsAttribute _relationsemanticsattribute; Tuple_PipeList _tuples; it=new RelationXMLElement(); jj_consume_token(26); _relationnameattribute = _RelationNameAttribute(); it.set_relationnameattribute(_relationnameattribute); _relationnumberattribute = _RelationNumberAttribute(); it.set_relationnumberattribute(_relationnumberattribute); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 23: _relationarityattribute = _RelationArityAttribute(); it.set_relationarityattribute(_relationarityattribute); break; default: jj_la1[4] = jj_gen; ; } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 24: _relationnbtuplesattribute = _RelationNbTuplesAttribute(); it.set_relationnbtuplesattribute(_relationnbtuplesattribute); break; default: jj_la1[5] = jj_gen; ; } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 25: _relationsemanticsattribute = _RelationSemanticsAttribute(); it.set_relationsemanticsattribute(_relationsemanticsattribute); break; default: jj_la1[6] = jj_gen; ; } jj_consume_token(3); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DECIMAL_LITERAL: case HEX_LITERAL: case OCTAL_LITERAL: case FLOATING_POINT_LITERAL: _tuples = _Tuple_PipeList(); it.set_tuples(_tuples); break; default: jj_la1[7] = jj_gen; ; } jj_consume_token(1); jj_consume_token(4); jj_consume_token(26); jj_consume_token(3); jj_consume_token(1); {if (true) return it;} throw new Error("Missing return statement in function"); } final public Tuple _Tuple() throws ParseException { Tuple it = null; Digit_NList _digit_nlist; it=new Tuple(); _digit_nlist = _Digit_NList(); it.set_digit_nlist(_digit_nlist); {if (true) return it;} throw new Error("Missing return statement in function"); } final public Digit _Digit() throws ParseException { Digit it = null; int _v; it=new Digit(); _v = _int(); it.set_v(_v); {if (true) return it;} throw new Error("Missing return statement in function"); } final public RelationsNbRelationsAttribute _RelationsNbRelationsAttribute() throws ParseException { RelationsNbRelationsAttribute it = null; String _nbRelations; it=new RelationsNbRelationsAttribute(); jj_consume_token(27); jj_consume_token(6); _nbRelations = _String(); it.set_nbRelations(_nbRelations); {if (true) return it;} throw new Error("Missing return statement in function"); } final public RelationsXMLElement _RelationsXMLElement() throws ParseException { RelationsXMLElement it = null; RelationsNbRelationsAttribute _relationsnbrelationsattribute; RelationXMLElement_List _relationxmlelement_list; it=new RelationsXMLElement(); jj_consume_token(1); jj_consume_token(28); _relationsnbrelationsattribute = _RelationsNbRelationsAttribute(); it.set_relationsnbrelationsattribute(_relationsnbrelationsattribute); jj_consume_token(3); jj_consume_token(1); _relationxmlelement_list = _RelationXMLElement_List(); it.set_relationxmlelement_list(_relationxmlelement_list); jj_consume_token(4); jj_consume_token(28); jj_consume_token(3); {if (true) return it;} throw new Error("Missing return statement in function"); } final public ConstraintNameAttribute _ConstraintNameAttribute() throws ParseException { ConstraintNameAttribute it = null; String _name; it=new ConstraintNameAttribute(); jj_consume_token(5); jj_consume_token(6); _name = _String(); it.set_name(_name); {if (true) return it;} throw new Error("Missing return statement in function"); } final public ConstraintArityAttribute _ConstraintArityAttribute() throws ParseException { ConstraintArityAttribute it = null; String _arity; it=new ConstraintArityAttribute(); jj_consume_token(23); jj_consume_token(6); _arity = _String(); it.set_arity(_arity); {if (true) return it;} throw new Error("Missing return statement in function"); } final public ConstraintXMLAttributes _ConstraintXMLAttributes() throws ParseException { ConstraintXMLAttributes it = null; ConstraintNameAttribute _constraintnameattribute; ConstraintArityAttribute _constraintarityattribute; ScopeAttribute _scopeattribute; ReferencesAttribute _referencesattribute; it=new ConstraintXMLAttributes(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 5: _constraintnameattribute = _ConstraintNameAttribute(); it.set_constraintnameattribute(_constraintnameattribute); break; default: jj_la1[8] = jj_gen; ; } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 23: _constraintarityattribute = _ConstraintArityAttribute(); it.set_constraintarityattribute(_constraintarityattribute); break; default: jj_la1[9] = jj_gen; ; } _scopeattribute = _ScopeAttribute(); it.set_scopeattribute(_scopeattribute); _referencesattribute = _ReferencesAttribute(); it.set_referencesattribute(_referencesattribute); {if (true) return it;} throw new Error("Missing return statement in function"); } final public ScopeAttribute _ScopeAttribute() throws ParseException { ScopeAttribute it = null; String _scope; it=new ScopeAttribute(); jj_consume_token(29); jj_consume_token(6); _scope = _String(); it.set_scope(_scope); {if (true) return it;} throw new Error("Missing return statement in function"); } final public ReferencesAttribute _ReferencesAttribute() throws ParseException { ReferencesAttribute it = null; String _references; it=new ReferencesAttribute(); jj_consume_token(30); jj_consume_token(6); _references = _String(); it.set_references(_references); {if (true) return it;} throw new Error("Missing return statement in function"); } final public ConstraintXMLElement _ConstraintXMLElement() throws ParseException { ConstraintXMLElement it = null; ConstraintXMLAttributes _constraintxmlattributes; it=new ConstraintXMLElement(); jj_consume_token(31); _constraintxmlattributes = _ConstraintXMLAttributes(); it.set_constraintxmlattributes(_constraintxmlattributes); jj_consume_token(4); jj_consume_token(3); jj_consume_token(1); {if (true) return it;} throw new Error("Missing return statement in function"); } final public ConstraintsXMLAttributes _ConstraintsXMLAttributes() throws ParseException { ConstraintsXMLAttributes it = null; String _nbConstraints; it=new ConstraintsXMLAttributes(); jj_consume_token(32); jj_consume_token(6); _nbConstraints = _String(); it.set_nbConstraints(_nbConstraints); {if (true) return it;} throw new Error("Missing return statement in function"); } final public ConstraintsXMLElement _ConstraintsXMLElement() throws ParseException { ConstraintsXMLElement it = null; ConstraintsXMLAttributes _constraintsxmlattributes; ConstraintXMLElement_List _constraintxmlelement_list; it=new ConstraintsXMLElement(); jj_consume_token(1); jj_consume_token(33); _constraintsxmlattributes = _ConstraintsXMLAttributes(); it.set_constraintsxmlattributes(_constraintsxmlattributes); jj_consume_token(3); jj_consume_token(1); _constraintxmlelement_list = _ConstraintXMLElement_List(); it.set_constraintxmlelement_list(_constraintxmlelement_list); jj_consume_token(4); jj_consume_token(33); jj_consume_token(3); {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 PresentationXMLAttribute_List _PresentationXMLAttribute_List() throws ParseException { PresentationXMLAttribute_List it = null; Nonempty_PresentationXMLAttribute_List _first; it=new PresentationXMLAttribute_List(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 5: case 7: case 8: case 9: case 10: case 11: _first = _Nonempty_PresentationXMLAttribute_List(); it.set_first(_first); break; default: jj_la1[10] = jj_gen; ; } {if (true) return it;} throw new Error("Missing return statement in function"); } final public DomainExp_List _DomainExp_List() throws ParseException { DomainExp_List it = null; Nonempty_DomainExp_List _first; it=new DomainExp_List(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 14: case DECIMAL_LITERAL: case HEX_LITERAL: case OCTAL_LITERAL: case FLOATING_POINT_LITERAL: _first = _Nonempty_DomainExp_List(); it.set_first(_first); break; default: jj_la1[11] = jj_gen; ; } {if (true) return it;} throw new Error("Missing return statement in function"); } final public DomainXMLElement_List _DomainXMLElement_List() throws ParseException { DomainXMLElement_List it = null; Nonempty_DomainXMLElement_List _first; it=new DomainXMLElement_List(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 15: _first = _Nonempty_DomainXMLElement_List(); it.set_first(_first); break; default: jj_la1[12] = jj_gen; ; } {if (true) return it;} throw new Error("Missing return statement in function"); } final public VariableXMLElement_List _VariableXMLElement_List() throws ParseException { VariableXMLElement_List it = null; Nonempty_VariableXMLElement_List _first; it=new VariableXMLElement_List(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 19: _first = _Nonempty_VariableXMLElement_List(); it.set_first(_first); break; default: jj_la1[13] = jj_gen; ; } {if (true) return it;} throw new Error("Missing return statement in function"); } final public Tuple_PipeList _Tuple_PipeList() throws ParseException { Tuple_PipeList it = null; Nonempty_Tuple_PipeList _first; it=new Tuple_PipeList(); _first = _Nonempty_Tuple_PipeList(); it.set_first(_first); {if (true) return it;} throw new Error("Missing return statement in function"); } final public Digit_NList _Digit_NList() throws ParseException { Digit_NList it = null; Nonempty_Digit_NList _first; it=new Digit_NList(); _first = _Nonempty_Digit_NList(); it.set_first(_first); {if (true) return it;} throw new Error("Missing return statement in function"); } final public RelationXMLElement_List _RelationXMLElement_List() throws ParseException { RelationXMLElement_List it = null; Nonempty_RelationXMLElement_List _first; it=new RelationXMLElement_List(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 26: _first = _Nonempty_RelationXMLElement_List(); it.set_first(_first); break; default: jj_la1[14] = jj_gen; ; } {if (true) return it;} throw new Error("Missing return statement in function"); } final public ConstraintXMLElement_List _ConstraintXMLElement_List() throws ParseException { ConstraintXMLElement_List it = null; Nonempty_ConstraintXMLElement_List _first; it=new ConstraintXMLElement_List(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 31: _first = _Nonempty_ConstraintXMLElement_List(); it.set_first(_first); break; default: jj_la1[15] = jj_gen; ; } {if (true) return it;} throw new Error("Missing return statement in function"); } final public Nonempty_PresentationXMLAttribute_List _Nonempty_PresentationXMLAttribute_List() throws ParseException { Nonempty_PresentationXMLAttribute_List it = null; PresentationXMLAttribute _it; Nonempty_PresentationXMLAttribute_List _next; it=new Nonempty_PresentationXMLAttribute_List(); _it = _PresentationXMLAttribute(); it.set_it(_it); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 5: case 7: case 8: case 9: case 10: case 11: _next = _Nonempty_PresentationXMLAttribute_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_DomainExp_List _Nonempty_DomainExp_List() throws ParseException { Nonempty_DomainExp_List it = null; DomainExp _it; Nonempty_DomainExp_List _next; it=new Nonempty_DomainExp_List(); _it = _DomainExp(); it.set_it(_it); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 14: case DECIMAL_LITERAL: case HEX_LITERAL: case OCTAL_LITERAL: case FLOATING_POINT_LITERAL: _next = _Nonempty_DomainExp_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_DomainXMLElement_List _Nonempty_DomainXMLElement_List() throws ParseException { Nonempty_DomainXMLElement_List it = null; DomainXMLElement _it; Nonempty_DomainXMLElement_List _next; it=new Nonempty_DomainXMLElement_List(); _it = _DomainXMLElement(); it.set_it(_it); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 15: _next = _Nonempty_DomainXMLElement_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 Nonempty_VariableXMLElement_List _Nonempty_VariableXMLElement_List() throws ParseException { Nonempty_VariableXMLElement_List it = null; VariableXMLElement _it; Nonempty_VariableXMLElement_List _next; it=new Nonempty_VariableXMLElement_List(); _it = _VariableXMLElement(); it.set_it(_it); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 19: _next = _Nonempty_VariableXMLElement_List(); it.set_next(_next); break; default: jj_la1[19] = jj_gen; ; } {if (true) return it;} throw new Error("Missing return statement in function"); } final public Nonempty_Tuple_PipeList _Nonempty_Tuple_PipeList() throws ParseException { Nonempty_Tuple_PipeList it = null; Tuple _it; Nonempty_Tuple_PipeList _next; it=new Nonempty_Tuple_PipeList(); _it = _Tuple(); it.set_it(_it); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 34: jj_consume_token(34); _next = _Nonempty_Tuple_PipeList(); it.set_next(_next); break; default: jj_la1[20] = jj_gen; ; } {if (true) return it;} throw new Error("Missing return statement in function"); } final public Nonempty_Digit_NList _Nonempty_Digit_NList() throws ParseException { Nonempty_Digit_NList it = null; Digit _it; Nonempty_Digit_NList _next; it=new Nonempty_Digit_NList(); _it = _Digit(); 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_Digit_NList(); it.set_next(_next); break; default: jj_la1[21] = jj_gen; ; } {if (true) return it;} throw new Error("Missing return statement in function"); } final public Nonempty_RelationXMLElement_List _Nonempty_RelationXMLElement_List() throws ParseException { Nonempty_RelationXMLElement_List it = null; RelationXMLElement _it; Nonempty_RelationXMLElement_List _next; it=new Nonempty_RelationXMLElement_List(); _it = _RelationXMLElement(); it.set_it(_it); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 26: _next = _Nonempty_RelationXMLElement_List(); it.set_next(_next); break; default: jj_la1[22] = jj_gen; ; } {if (true) return it;} throw new Error("Missing return statement in function"); } final public Nonempty_ConstraintXMLElement_List _Nonempty_ConstraintXMLElement_List() throws ParseException { Nonempty_ConstraintXMLElement_List it = null; ConstraintXMLElement _it; Nonempty_ConstraintXMLElement_List _next; it=new Nonempty_ConstraintXMLElement_List(); _it = _ConstraintXMLElement(); it.set_it(_it); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 31: _next = _Nonempty_ConstraintXMLElement_List(); it.set_next(_next); break; default: jj_la1[23] = 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[24] = 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[25] = 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[26] = 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[27] = 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[28]; final private int[] jj_la1_0 = {0x20000,0xfa0,0x4000,0x20,0x800000,0x1000000,0x2000000,0x0,0x20,0x800000,0xfa0,0x4000,0x8000,0x80000,0x4000000,0x80000000,0xfa0,0x4000,0x8000,0x80000,0x0,0x0,0x4000000,0x80000000,0x0,0x0,0x0,0x0,}; final private int[] jj_la1_1 = {0x0,0x0,0x1e00,0x0,0x0,0x0,0x0,0x1e00,0x0,0x0,0x0,0x1e00,0x0,0x0,0x0,0x0,0x0,0x1e00,0x0,0x0,0x4,0x1e00,0x0,0x0,0x60000,0x60000,0xe00,0x1e00,}; 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 < 28; 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 < 28; 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 < 28; 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 < 28; 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 < 28; 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 < 28; 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[60]; for (int i = 0; i < 60; i++) { la1tokens[i] = false; } if (jj_kind >= 0) { la1tokens[jj_kind] = true; jj_kind = -1; } for (int i = 0; i < 28; i++) { if (jj_la1[i] == jj_gen) { for (int j = 0; j < 32; j++) { if ((jj_la1_0[i] & (1<