/* Generated By:JavaCC: Do not edit this line. Parser.java */ import edu.neu.ccs.demeter.dj.*; import java.util.*; import java.io.*; 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 Main _Main() throws ParseException { Main it = null; it=new Main(); {if (true) return it;} throw new Error("Missing return statement in function"); } final public Input _Input() throws ParseException { Input it = null; ClassGraphh _classgraphh; SyntaxEnhancement _syntaxenhancement; it=new Input(); _classgraphh = _ClassGraphh(); it.set_classgraphh(_classgraphh); _syntaxenhancement = _SyntaxEnhancement(); it.set_syntaxenhancement(_syntaxenhancement); {if (true) return it;} throw new Error("Missing return statement in function"); } final public ClassGraphh _ClassGraphh() throws ParseException { ClassGraphh it = null; Definition_DList _classes; it=new ClassGraphh(); _classes = _Definition_DList(); it.set_classes(_classes); {if (true) return it;} throw new Error("Missing return statement in function"); } final public Definition _Definition() throws ParseException { Definition it = null; it = _ClassDef(); {if (true) return it;} throw new Error("Missing return statement in function"); } final public void common_Definition(Definition it) throws ParseException { } final public ClassDef _ClassDef() throws ParseException { ClassDef it = null; ParamClassName _paramclassname; ClassParts _classparts; it=new ClassDef(); _paramclassname = _ParamClassName(); it.set_paramclassname(_paramclassname); _classparts = _ClassParts(); it.set_classparts(_classparts); jj_consume_token(1); common_Definition(it); {if (true) return it;} throw new Error("Missing return statement in function"); } final public ParamClassName _ParamClassName() throws ParseException { ParamClassName it = null; ClassName _classname; ClassName_Commalist _parameters; it=new ParamClassName(); _classname = _ClassName(); it.set_classname(_classname); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 2: jj_consume_token(2); _parameters = _ClassName_Commalist(); it.set_parameters(_parameters); jj_consume_token(3); break; default: jj_la1[0] = jj_gen; ; } {if (true) return it;} throw new Error("Missing return statement in function"); } final public ClassParts _ClassParts() throws ParseException { ClassParts it = null; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 8: case 9: it = _ConstOrAltClass(); break; case 11: it = _RepetitionClass(); 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_ClassParts(ClassParts it) throws ParseException { } final public ConstOrAltClass _ConstOrAltClass() throws ParseException { ConstOrAltClass it = null; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 8: it = _ConstructionClass(); break; case 9: it = _AlternationClass(); 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_ConstOrAltClass(ConstOrAltClass it) throws ParseException { ClassElementWithSyntax_List _parts; _parts = _ClassElementWithSyntax_List(); it.set_parts(_parts); common_ClassParts(it); } final public ClassElement _ClassElement() throws ParseException { ClassElement it = null; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 4: case IDENTIFIER: it = _Part(); break; case 6: it = _OptionalPart(); 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_ClassElement(ClassElement it) throws ParseException { common_ClassElementWithSyntax(it); } final public ClassElementWithSyntax _ClassElementWithSyntax() throws ParseException { ClassElementWithSyntax it = null; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 4: case 6: case IDENTIFIER: it = _ClassElement(); break; case 12: it = _SandwichedClassElement(); 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_ClassElementWithSyntax(ClassElementWithSyntax it) throws ParseException { } final public SandwichedClassElement _SandwichedClassElement() throws ParseException { SandwichedClassElement it = null; ClassElement_PSandwich _classelement_psandwich; it=new SandwichedClassElement(); _classelement_psandwich = _ClassElement_PSandwich(); it.set_classelement_psandwich(_classelement_psandwich); common_ClassElementWithSyntax(it); {if (true) return it;} throw new Error("Missing return statement in function"); } final public Part _Part() throws ParseException { Part it = null; PartName _partname; ClassSpec _classspec; it=new Part(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 4: jj_consume_token(4); _partname = _PartName(); it.set_partname(_partname); jj_consume_token(5); break; default: jj_la1[5] = jj_gen; ; } _classspec = _ClassSpec(); it.set_classspec(_classspec); common_ClassElement(it); {if (true) return it;} throw new Error("Missing return statement in function"); } final public OptionalPart _OptionalPart() throws ParseException { OptionalPart it = null; Part_Sandwich _part; it=new OptionalPart(); jj_consume_token(6); _part = _Part_Sandwich(); it.set_part(_part); jj_consume_token(7); common_ClassElement(it); {if (true) return it;} throw new Error("Missing return statement in function"); } final public ConstructionClass _ConstructionClass() throws ParseException { ConstructionClass it = null; it=new ConstructionClass(); jj_consume_token(8); common_ConstOrAltClass(it); {if (true) return it;} throw new Error("Missing return statement in function"); } final public AlternationClass _AlternationClass() throws ParseException { AlternationClass it = null; ClassSpec_Barlist _subclasses; it=new AlternationClass(); jj_consume_token(9); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case IDENTIFIER: _subclasses = _ClassSpec_Barlist(); it.set_subclasses(_subclasses); break; default: jj_la1[6] = jj_gen; ; } jj_consume_token(10); common_ConstOrAltClass(it); {if (true) return it;} throw new Error("Missing return statement in function"); } final public RepetitionClass _RepetitionClass() throws ParseException { RepetitionClass it = null; RepeatedPart_Sandwich _sandwiched; it=new RepetitionClass(); jj_consume_token(11); _sandwiched = _RepeatedPart_Sandwich(); it.set_sandwiched(_sandwiched); common_ClassParts(it); {if (true) return it;} throw new Error("Missing return statement in function"); } final public RepeatedPart _RepeatedPart() throws ParseException { RepeatedPart it = null; ClassSpec _nonempty; ClassSpec_Sandwich _repeated; it=new RepeatedPart(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case IDENTIFIER: _nonempty = _ClassSpec(); it.set_nonempty(_nonempty); break; default: jj_la1[7] = jj_gen; ; } jj_consume_token(12); _repeated = _ClassSpec_Sandwich(); it.set_repeated(_repeated); jj_consume_token(13); {if (true) return it;} throw new Error("Missing return statement in function"); } final public ClassSpec _ClassSpec() throws ParseException { ClassSpec it = null; ClassName _classname; ClassSpec_Commalist _actual_parameters; it=new ClassSpec(); _classname = _ClassName(); it.set_classname(_classname); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 2: jj_consume_token(2); _actual_parameters = _ClassSpec_Commalist(); it.set_actual_parameters(_actual_parameters); jj_consume_token(3); break; default: jj_la1[8] = jj_gen; ; } {if (true) return it;} throw new Error("Missing return statement in function"); } final public Syntax _Syntax() throws ParseException { Syntax it = null; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case STRING_LITERAL: it = _SyntaxToken(); break; case 14: case 15: case 16: case 17: it = _PrintCommand(); break; default: jj_la1[9] = 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_Syntax(Syntax it) throws ParseException { } final public SyntaxToken _SyntaxToken() throws ParseException { SyntaxToken it = null; String _string; it=new SyntaxToken(); _string = _String(); it.set_string(_string); common_Syntax(it); {if (true) return it;} throw new Error("Missing return statement in function"); } final public PrintCommand _PrintCommand() throws ParseException { PrintCommand it = null; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 14: it = _PrintIndent(); break; case 15: it = _PrintUnindent(); break; case 16: it = _PrintSkip(); break; case 17: it = _PrintSpace(); break; default: jj_la1[10] = 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_PrintCommand(PrintCommand it) throws ParseException { common_Syntax(it); } final public PrintIndent _PrintIndent() throws ParseException { PrintIndent it = null; it=new PrintIndent(); jj_consume_token(14); common_PrintCommand(it); {if (true) return it;} throw new Error("Missing return statement in function"); } final public PrintUnindent _PrintUnindent() throws ParseException { PrintUnindent it = null; it=new PrintUnindent(); jj_consume_token(15); common_PrintCommand(it); {if (true) return it;} throw new Error("Missing return statement in function"); } final public PrintSkip _PrintSkip() throws ParseException { PrintSkip it = null; it=new PrintSkip(); jj_consume_token(16); common_PrintCommand(it); {if (true) return it;} throw new Error("Missing return statement in function"); } final public PrintSpace _PrintSpace() throws ParseException { PrintSpace it = null; it=new PrintSpace(); jj_consume_token(17); common_PrintCommand(it); {if (true) return it;} throw new Error("Missing return statement in function"); } final public ClassName _ClassName() throws ParseException { ClassName it = null; Ident _ident; it=new ClassName(); _ident = _Ident(); it.set_ident(_ident); {if (true) return it;} throw new Error("Missing return statement in function"); } final public PartName _PartName() throws ParseException { PartName it = null; Ident _name; it=new PartName(); _name = _Ident(); it.set_name(_name); {if (true) return it;} throw new Error("Missing return statement in function"); } final public SyntaxEnhancement _SyntaxEnhancement() throws ParseException { SyntaxEnhancement it = null; Enhancement_List _enhancement_list; it=new SyntaxEnhancement(); _enhancement_list = _Enhancement_List(); it.set_enhancement_list(_enhancement_list); jj_consume_token(0); {if (true) return it;} throw new Error("Missing return statement in function"); } final public Enhancement _Enhancement() throws ParseException { Enhancement it = null; Where _where; EnhancementBody _enhancementbody; it=new Enhancement(); _where = _Where(); it.set_where(_where); _enhancementbody = _EnhancementBody(); it.set_enhancementbody(_enhancementbody); {if (true) return it;} throw new Error("Missing return statement in function"); } final public EnhancementBody _EnhancementBody() throws ParseException { EnhancementBody it = null; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 21: it = _ClassBody(); break; case 18: it = _PartCoordinate(); break; case 19: it = _OptionalPartCoordinate(); break; case 22: it = _CollectionCoordinate(); break; default: jj_la1[11] = 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_EnhancementBody(EnhancementBody it) throws ParseException { SyntaxToken _syntaxtoken; jj_consume_token(9); _syntaxtoken = _SyntaxToken(); it.set_syntaxtoken(_syntaxtoken); } final public PartCoordinate _PartCoordinate() throws ParseException { PartCoordinate it = null; SyntaxClassName _syntaxclassname; SyntaxPartName _syntaxpartname; it=new PartCoordinate(); jj_consume_token(18); _syntaxclassname = _SyntaxClassName(); it.set_syntaxclassname(_syntaxclassname); jj_consume_token(1); _syntaxpartname = _SyntaxPartName(); it.set_syntaxpartname(_syntaxpartname); common_EnhancementBody(it); {if (true) return it;} throw new Error("Missing return statement in function"); } final public OptionalPartCoordinate _OptionalPartCoordinate() throws ParseException { OptionalPartCoordinate it = null; SyntaxClassName _syntaxclassname; SyntaxPartName _syntaxpartname; it=new OptionalPartCoordinate(); jj_consume_token(19); jj_consume_token(20); jj_consume_token(18); _syntaxclassname = _SyntaxClassName(); it.set_syntaxclassname(_syntaxclassname); jj_consume_token(1); _syntaxpartname = _SyntaxPartName(); it.set_syntaxpartname(_syntaxpartname); common_EnhancementBody(it); {if (true) return it;} throw new Error("Missing return statement in function"); } final public ClassBody _ClassBody() throws ParseException { ClassBody it = null; SyntaxClassName _syntaxclassname; it=new ClassBody(); jj_consume_token(21); _syntaxclassname = _SyntaxClassName(); it.set_syntaxclassname(_syntaxclassname); common_EnhancementBody(it); {if (true) return it;} throw new Error("Missing return statement in function"); } final public CollectionCoordinate _CollectionCoordinate() throws ParseException { CollectionCoordinate it = null; SyntaxClassName _syntaxclassname; CurlyBracket _curlybracket; it=new CollectionCoordinate(); jj_consume_token(22); _syntaxclassname = _SyntaxClassName(); it.set_syntaxclassname(_syntaxclassname); _curlybracket = _CurlyBracket(); it.set_curlybracket(_curlybracket); common_EnhancementBody(it); {if (true) return it;} throw new Error("Missing return statement in function"); } final public CurlyBracket _CurlyBracket() throws ParseException { CurlyBracket it = null; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 12: it = _Left(); break; case 13: it = _Right(); break; default: jj_la1[12] = 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_CurlyBracket(CurlyBracket it) throws ParseException { } final public Left _Left() throws ParseException { Left it = null; it=new Left(); jj_consume_token(12); common_CurlyBracket(it); {if (true) return it;} throw new Error("Missing return statement in function"); } final public Right _Right() throws ParseException { Right it = null; it=new Right(); jj_consume_token(13); common_CurlyBracket(it); {if (true) return it;} throw new Error("Missing return statement in function"); } final public SyntaxClassName _SyntaxClassName() throws ParseException { SyntaxClassName it = null; Ident _ident; it=new SyntaxClassName(); _ident = _Ident(); it.set_ident(_ident); {if (true) return it;} throw new Error("Missing return statement in function"); } final public SyntaxPartName _SyntaxPartName() throws ParseException { SyntaxPartName it = null; Ident _ident; it=new SyntaxPartName(); _ident = _Ident(); it.set_ident(_ident); {if (true) return it;} throw new Error("Missing return statement in function"); } final public Where _Where() throws ParseException { Where it = null; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 23: it = _Before(); break; case 24: it = _After(); break; default: jj_la1[13] = 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_Where(Where it) throws ParseException { } final public Before _Before() throws ParseException { Before it = null; it=new Before(); jj_consume_token(23); common_Where(it); {if (true) return it;} throw new Error("Missing return statement in function"); } final public After _After() throws ParseException { After it = null; it=new After(); jj_consume_token(24); common_Where(it); {if (true) return it;} throw new Error("Missing return statement in function"); } final public ClassGraphVisitor _ClassGraphVisitor() throws ParseException { ClassGraphVisitor it = null; it=new ClassGraphVisitor(); {if (true) return it;} throw new Error("Missing return statement in function"); } final public CommandVisitor _CommandVisitor() throws ParseException { CommandVisitor it = null; it=new CommandVisitor(); {if (true) return it;} throw new Error("Missing return statement in function"); } final public ClassCommandVisitor _ClassCommandVisitor() throws ParseException { ClassCommandVisitor it = null; it=new ClassCommandVisitor(); {if (true) return it;} throw new Error("Missing return statement in function"); } final public CollectionCommandVisitor _CollectionCommandVisitor() throws ParseException { CollectionCommandVisitor it = null; it=new CollectionCommandVisitor(); {if (true) return it;} throw new Error("Missing return statement in function"); } final public PartCommandVisitor _PartCommandVisitor() throws ParseException { PartCommandVisitor it = null; it=new PartCommandVisitor(); {if (true) return it;} throw new Error("Missing return statement in function"); } final public Definition_DList _Definition_DList() throws ParseException { Definition_DList it = null; Nonempty_Definition_DList _first; it=new Definition_DList(); _first = _Nonempty_Definition_DList(); it.set_first(_first); {if (true) return it;} throw new Error("Missing return statement in function"); } final public ClassName_Commalist _ClassName_Commalist() throws ParseException { ClassName_Commalist it = null; Nonempty_ClassName_Commalist _first; it=new ClassName_Commalist(); _first = _Nonempty_ClassName_Commalist(); it.set_first(_first); {if (true) return it;} throw new Error("Missing return statement in function"); } final public ClassElementWithSyntax_List _ClassElementWithSyntax_List() throws ParseException { ClassElementWithSyntax_List it = null; Nonempty_ClassElementWithSyntax_List _first; it=new ClassElementWithSyntax_List(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 4: case 6: case 12: case IDENTIFIER: _first = _Nonempty_ClassElementWithSyntax_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 ClassElement_PSandwich _ClassElement_PSandwich() throws ParseException { ClassElement_PSandwich it = null; ClassElement_Sandwich _s; it=new ClassElement_PSandwich(); jj_consume_token(12); _s = _ClassElement_Sandwich(); it.set_s(_s); jj_consume_token(13); {if (true) return it;} throw new Error("Missing return statement in function"); } final public ClassElement_Sandwich _ClassElement_Sandwich() throws ParseException { ClassElement_Sandwich it = null; Syntax_List _first; ClassElement _inner; Syntax_List _second; it=new ClassElement_Sandwich(); _first = _Syntax_List(); it.set_first(_first); _inner = _ClassElement(); it.set_inner(_inner); _second = _Syntax_List(); it.set_second(_second); {if (true) return it;} throw new Error("Missing return statement in function"); } final public Part_Sandwich _Part_Sandwich() throws ParseException { Part_Sandwich it = null; Syntax_List _first; Part _inner; Syntax_List _second; it=new Part_Sandwich(); _first = _Syntax_List(); it.set_first(_first); _inner = _Part(); it.set_inner(_inner); _second = _Syntax_List(); it.set_second(_second); {if (true) return it;} throw new Error("Missing return statement in function"); } final public ClassSpec_Barlist _ClassSpec_Barlist() throws ParseException { ClassSpec_Barlist it = null; Nonempty_ClassSpec_Barlist _first; it=new ClassSpec_Barlist(); _first = _Nonempty_ClassSpec_Barlist(); it.set_first(_first); {if (true) return it;} throw new Error("Missing return statement in function"); } final public RepeatedPart_Sandwich _RepeatedPart_Sandwich() throws ParseException { RepeatedPart_Sandwich it = null; Syntax_List _first; RepeatedPart _inner; Syntax_List _second; it=new RepeatedPart_Sandwich(); _first = _Syntax_List(); it.set_first(_first); _inner = _RepeatedPart(); it.set_inner(_inner); _second = _Syntax_List(); it.set_second(_second); {if (true) return it;} throw new Error("Missing return statement in function"); } final public ClassSpec_Sandwich _ClassSpec_Sandwich() throws ParseException { ClassSpec_Sandwich it = null; Syntax_List _first; ClassSpec _inner; Syntax_List _second; it=new ClassSpec_Sandwich(); _first = _Syntax_List(); it.set_first(_first); _inner = _ClassSpec(); it.set_inner(_inner); _second = _Syntax_List(); it.set_second(_second); {if (true) return it;} throw new Error("Missing return statement in function"); } final public Syntax_List _Syntax_List() throws ParseException { Syntax_List it = null; Nonempty_Syntax_List _first; it=new Syntax_List(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 14: case 15: case 16: case 17: case STRING_LITERAL: _first = _Nonempty_Syntax_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 ClassSpec_Commalist _ClassSpec_Commalist() throws ParseException { ClassSpec_Commalist it = null; Nonempty_ClassSpec_Commalist _first; it=new ClassSpec_Commalist(); _first = _Nonempty_ClassSpec_Commalist(); it.set_first(_first); {if (true) return it;} throw new Error("Missing return statement in function"); } final public Enhancement_List _Enhancement_List() throws ParseException { Enhancement_List it = null; Nonempty_Enhancement_List _first; it=new Enhancement_List(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 23: case 24: _first = _Nonempty_Enhancement_List(); it.set_first(_first); break; default: jj_la1[16] = jj_gen; ; } {if (true) return it;} throw new Error("Missing return statement in function"); } final public Nonempty_Definition_DList _Nonempty_Definition_DList() throws ParseException { Nonempty_Definition_DList it = null; Definition _it; Nonempty_Definition_DList _next; it=new Nonempty_Definition_DList(); _it = _Definition(); it.set_it(_it); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case IDENTIFIER: _next = _Nonempty_Definition_DList(); 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_ClassName_Commalist _Nonempty_ClassName_Commalist() throws ParseException { Nonempty_ClassName_Commalist it = null; ClassName _it; Nonempty_ClassName_Commalist _next; it=new Nonempty_ClassName_Commalist(); _it = _ClassName(); it.set_it(_it); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 25: jj_consume_token(25); _next = _Nonempty_ClassName_Commalist(); 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_ClassElementWithSyntax_List _Nonempty_ClassElementWithSyntax_List() throws ParseException { Nonempty_ClassElementWithSyntax_List it = null; ClassElementWithSyntax _it; Nonempty_ClassElementWithSyntax_List _next; it=new Nonempty_ClassElementWithSyntax_List(); _it = _ClassElementWithSyntax(); it.set_it(_it); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 4: case 6: case 12: case IDENTIFIER: _next = _Nonempty_ClassElementWithSyntax_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_ClassSpec_Barlist _Nonempty_ClassSpec_Barlist() throws ParseException { Nonempty_ClassSpec_Barlist it = null; ClassSpec _it; Nonempty_ClassSpec_Barlist _next; it=new Nonempty_ClassSpec_Barlist(); _it = _ClassSpec(); it.set_it(_it); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 26: jj_consume_token(26); _next = _Nonempty_ClassSpec_Barlist(); 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_Syntax_List _Nonempty_Syntax_List() throws ParseException { Nonempty_Syntax_List it = null; Syntax _it; Nonempty_Syntax_List _next; it=new Nonempty_Syntax_List(); _it = _Syntax(); it.set_it(_it); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 14: case 15: case 16: case 17: case STRING_LITERAL: _next = _Nonempty_Syntax_List(); 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_ClassSpec_Commalist _Nonempty_ClassSpec_Commalist() throws ParseException { Nonempty_ClassSpec_Commalist it = null; ClassSpec _it; Nonempty_ClassSpec_Commalist _next; it=new Nonempty_ClassSpec_Commalist(); _it = _ClassSpec(); it.set_it(_it); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 25: jj_consume_token(25); _next = _Nonempty_ClassSpec_Commalist(); 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_Enhancement_List _Nonempty_Enhancement_List() throws ParseException { Nonempty_Enhancement_List it = null; Enhancement _it; Nonempty_Enhancement_List _next; it=new Nonempty_Enhancement_List(); _it = _Enhancement(); it.set_it(_it); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 23: case 24: _next = _Nonempty_Enhancement_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 = {0x4,0xb00,0x300,0x50,0x1050,0x10,0x0,0x0,0x4,0x3c000,0x3c000,0x6c0000,0x3000,0x1800000,0x1050,0x3c000,0x1800000,0x0,0x2000000,0x1050,0x4000000,0x3c000,0x2000000,0x1800000,0x0,0x0,0x0,0x0,}; final private int[] jj_la1_1 = {0x0,0x0,0x0,0x800,0x800,0x0,0x800,0x800,0x0,0x80,0x0,0x0,0x0,0x0,0x800,0x80,0x0,0x800,0x0,0x800,0x0,0x80,0x0,0x0,0x600,0x600,0xe,0x1e,}; 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[52]; for (int i = 0; i < 52; 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<