/* 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 DAJ _DAJ() throws ParseException {
  DAJ it = null;
  TraversalAspect_List _traversalaspect_list;
    it=new DAJ();
    _traversalaspect_list = _TraversalAspect_List();
                                                  it.set_traversalaspect_list(_traversalaspect_list);
    {if (true) return it;}
    throw new Error("Missing return statement in function");
  }

  final public TraversalAspect _TraversalAspect() throws ParseException {
  TraversalAspect it = null;
  AspectName _aspectname;
  Definition_CurlyList _decls;
    it=new TraversalAspect();
    jj_consume_token(1);
    _aspectname = _AspectName();
                                        it.set_aspectname(_aspectname);
    _decls = _Definition_CurlyList();
                                   it.set_decls(_decls);
    {if (true) return it;}
    throw new Error("Missing return statement in function");
  }

  final public Definition _Definition() throws ParseException {
  Definition it = null;
  DefinitionBody _definitionbody;
    it=new Definition();
    jj_consume_token(2);
    _definitionbody = _DefinitionBody();
                                                 it.set_definitionbody(_definitionbody);
    jj_consume_token(3);
         {if (true) return it;}
    throw new Error("Missing return statement in function");
  }

  final public DefinitionBody _DefinitionBody() throws ParseException {
  DefinitionBody it = null;
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case 4:
      it = _CG();
      break;
    case 5:
      it = _Strategy();
      break;
    case 10:
      it = _AdaptiveMethod();
      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_DefinitionBody(DefinitionBody it) throws ParseException {

  }

  final public CG _CG() throws ParseException {
  CG it = null;
  ClassGraphName _classgraphname;
    it=new CG();
    jj_consume_token(4);
    _classgraphname = _ClassGraphName();
                                                    it.set_classgraphname(_classgraphname);
    common_DefinitionBody(it);
    {if (true) return it;}
    throw new Error("Missing return statement in function");
  }

  final public Strategy _Strategy() throws ParseException {
  Strategy it = null;
  StrategyName _strategyname;
  StrategyExpression _strategyexpression;
    it=new Strategy();
    jj_consume_token(5);
    _strategyname = _StrategyName();
                                              it.set_strategyname(_strategyname);
    jj_consume_token(6);
    _strategyexpression = _StrategyExpression();
                                                   it.set_strategyexpression(_strategyexpression);
    common_DefinitionBody(it);
    {if (true) return it;}
    throw new Error("Missing return statement in function");
  }

  final public StrategyExpression _StrategyExpression() throws ParseException {
  StrategyExpression it = null;
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case STRING_LITERAL:
    case IDENTIFIER:
      it = _Simple();
      break;
    case 7:
      it = _Compound();
      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_StrategyExpression(StrategyExpression it) throws ParseException {

  }

  final public Simple _Simple() throws ParseException {
  Simple it = null;
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case IDENTIFIER:
      it = _StrategyName();
      break;
    case STRING_LITERAL:
      it = _StrategyString();
      break;
    default:
      jj_la1[2] = jj_gen;
      jj_consume_token(-1);
      throw new ParseException();
    }
    {if (true) return it;}
    throw new Error("Missing return statement in function");
  }

  final public void common_Simple(Simple it) throws ParseException {
    common_StrategyExpression(it);

  }

  final public StrategyString _StrategyString() throws ParseException {
  StrategyString it = null;
  String _string;
    it=new StrategyString();
    _string = _String();
                      it.set_string(_string);
    common_Simple(it);
    {if (true) return it;}
    throw new Error("Missing return statement in function");
  }

  final public Compound _Compound() throws ParseException {
  Compound it = null;
  Op _op;
  StrategyExpression_List _strategyexpression_list;
    it=new Compound();
    jj_consume_token(7);
    _op = _Op();
                   it.set_op(_op);
    _strategyexpression_list = _StrategyExpression_List();
                                                        it.set_strategyexpression_list(_strategyexpression_list);
    jj_consume_token(8);
    common_StrategyExpression(it);
    {if (true) return it;}
    throw new Error("Missing return statement in function");
  }

  final public Op _Op() throws ParseException {
  Op it = null;
    it = _And();
    {if (true) return it;}
    throw new Error("Missing return statement in function");
  }

  final public void common_Op(Op it) throws ParseException {

  }

  final public And _And() throws ParseException {
  And it = null;
    it=new And();
    jj_consume_token(9);
    common_Op(it);
    {if (true) return it;}
    throw new Error("Missing return statement in function");
  }

  final public AdaptiveMethod _AdaptiveMethod() throws ParseException {
  AdaptiveMethod it = null;
  MethodSignature _methodsignature;
  MethodBody _methodbody;
    it=new AdaptiveMethod();
    jj_consume_token(10);
    _methodsignature = _MethodSignature();
                                                  it.set_methodsignature(_methodsignature);
    _methodbody = _MethodBody();
                              it.set_methodbody(_methodbody);
    common_DefinitionBody(it);
    {if (true) return it;}
    throw new Error("Missing return statement in function");
  }

  final public MethodSignature _MethodSignature() throws ParseException {
  MethodSignature it = null;
  MethodKeyword_List _keywords;
  JavaType _returnType;
  MethodName _name;
  MethodParm_Commalist _parms;
  Throws _throwsclause;
    it=new MethodSignature();
    _keywords = _MethodKeyword_List();
                                    it.set_keywords(_keywords);
    _returnType = _JavaType();
                            it.set_returnType(_returnType);
    _name = _MethodName();
                        it.set_name(_name);
    jj_consume_token(7);
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case IDENTIFIER:
      _parms = _MethodParm_Commalist();
                                           it.set_parms(_parms);
      break;
    default:
      jj_la1[3] = jj_gen;
      ;
    }
    jj_consume_token(8);
    _throwsclause = _Throws();
                                 it.set_throwsclause(_throwsclause);
    {if (true) return it;}
    throw new Error("Missing return statement in function");
  }

  final public MethodKeyword _MethodKeyword() throws ParseException {
  MethodKeyword it = null;
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case 11:
      it = _PublicMethod();
      break;
    case 12:
      it = _ProtectedMethod();
      break;
    case 13:
      it = _PrivateMethod();
      break;
    case 14:
      it = _StaticMethod();
      break;
    case 15:
      it = _FinalMethod();
      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_MethodKeyword(MethodKeyword it) throws ParseException {

  }

  final public PublicMethod _PublicMethod() throws ParseException {
  PublicMethod it = null;
    it=new PublicMethod();
    jj_consume_token(11);
    common_MethodKeyword(it);
    {if (true) return it;}
    throw new Error("Missing return statement in function");
  }

  final public ProtectedMethod _ProtectedMethod() throws ParseException {
  ProtectedMethod it = null;
    it=new ProtectedMethod();
    jj_consume_token(12);
    common_MethodKeyword(it);
    {if (true) return it;}
    throw new Error("Missing return statement in function");
  }

  final public PrivateMethod _PrivateMethod() throws ParseException {
  PrivateMethod it = null;
    it=new PrivateMethod();
    jj_consume_token(13);
    common_MethodKeyword(it);
    {if (true) return it;}
    throw new Error("Missing return statement in function");
  }

  final public StaticMethod _StaticMethod() throws ParseException {
  StaticMethod it = null;
    it=new StaticMethod();
    jj_consume_token(14);
    common_MethodKeyword(it);
    {if (true) return it;}
    throw new Error("Missing return statement in function");
  }

  final public FinalMethod _FinalMethod() throws ParseException {
  FinalMethod it = null;
    it=new FinalMethod();
    jj_consume_token(15);
    common_MethodKeyword(it);
    {if (true) return it;}
    throw new Error("Missing return statement in function");
  }

  final public MethodParm _MethodParm() throws ParseException {
  MethodParm it = null;
  JavaType _type;
  ParmName _name;
  ArraySpec_List _array;
    it=new MethodParm();
    _type = _JavaType();
                      it.set_type(_type);
    _name = _ParmName();
                      it.set_name(_name);
    _array = _ArraySpec_List();
                             it.set_array(_array);
    {if (true) return it;}
    throw new Error("Missing return statement in function");
  }

  final public Throws _Throws() throws ParseException {
  Throws it = null;
  ClassName_Commalist _exceptions;
    it=new Throws();
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case 16:
      jj_consume_token(16);
      _exceptions = _ClassName_Commalist();
                                                    it.set_exceptions(_exceptions);
      break;
    default:
      jj_la1[5] = jj_gen;
      ;
    }
    {if (true) return it;}
    throw new Error("Missing return statement in function");
  }

  final public MethodBody _MethodBody() throws ParseException {
  MethodBody it = null;
  StrategyExpression _trv;
  VisitorRef _vis;
    it=new MethodBody();
    _trv = _StrategyExpression();
                               it.set_trv(_trv);
    _vis = _VisitorRef();
                       it.set_vis(_vis);
    {if (true) return it;}
    throw new Error("Missing return statement in function");
  }

  final public VisitorRef _VisitorRef() throws ParseException {
  VisitorRef it = null;
  ClassName_Commalist _visitorClasses;
    it=new VisitorRef();
    jj_consume_token(7);
    _visitorClasses = _ClassName_Commalist();
                                                it.set_visitorClasses(_visitorClasses);
    jj_consume_token(8);
         {if (true) return it;}
    throw new Error("Missing return statement in function");
  }

  final public JavaType _JavaType() throws ParseException {
  JavaType it = null;
  Name _type;
  ArraySpec_List _array;
    it=new JavaType();
    _type = _Name();
                  it.set_type(_type);
    _array = _ArraySpec_List();
                             it.set_array(_array);
    {if (true) return it;}
    throw new Error("Missing return statement in function");
  }

  final public ArraySpec _ArraySpec() throws ParseException {
  ArraySpec it = null;
    it=new ArraySpec();
    jj_consume_token(17);
    jj_consume_token(18);
              {if (true) return it;}
    throw new Error("Missing return statement in function");
  }

  final public Name _Name() throws ParseException {
  Name it = null;
  Nonempty_Name _first;
    it=new Name();
    _first = _Nonempty_Name();
                            it.set_first(_first);
    {if (true) return it;}
    throw new Error("Missing return statement in function");
  }

  final public ClassGraphName _ClassGraphName() throws ParseException {
  ClassGraphName it = null;
  Ident _ident;
    it=new ClassGraphName();
    _ident = _Ident();
                    it.set_ident(_ident);
    {if (true) return it;}
    throw new Error("Missing return statement in function");
  }

  final public StrategyName _StrategyName() throws ParseException {
  StrategyName it = null;
  Ident _ident;
    it=new StrategyName();
    _ident = _Ident();
                    it.set_ident(_ident);
    common_Simple(it);
    {if (true) return it;}
    throw new Error("Missing return statement in function");
  }

  final public MethodName _MethodName() throws ParseException {
  MethodName it = null;
  Ident _ident;
    it=new MethodName();
    _ident = _Ident();
                    it.set_ident(_ident);
    {if (true) return it;}
    throw new Error("Missing return statement in function");
  }

  final public ClassName _ClassName() throws ParseException {
  ClassName it = null;
  Name _name;
    it=new ClassName();
    _name = _Name();
                  it.set_name(_name);
    {if (true) return it;}
    throw new Error("Missing return statement in function");
  }

  final public ParmName _ParmName() throws ParseException {
  ParmName it = null;
  Ident _name;
    it=new ParmName();
    _name = _Ident();
                   it.set_name(_name);
    {if (true) return it;}
    throw new Error("Missing return statement in function");
  }

  final public AspectName _AspectName() throws ParseException {
  AspectName it = null;
  Name _name;
    it=new AspectName();
    _name = _Name();
                  it.set_name(_name);
    {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 TraversalAspect_List _TraversalAspect_List() throws ParseException {
  TraversalAspect_List it = null;
  Nonempty_TraversalAspect_List _first;
    it=new TraversalAspect_List();
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case 1:
      _first = _Nonempty_TraversalAspect_List();
                                               it.set_first(_first);
      break;
    default:
      jj_la1[6] = jj_gen;
      ;
    }
    {if (true) return it;}
    throw new Error("Missing return statement in function");
  }

  final public Definition_CurlyList _Definition_CurlyList() throws ParseException {
  Definition_CurlyList it = null;
  Nonempty_Definition_CurlyList _first;
    it=new Definition_CurlyList();
    jj_consume_token(19);
    _first = _Nonempty_Definition_CurlyList();
                                                 it.set_first(_first);
    jj_consume_token(20);
         {if (true) return it;}
    throw new Error("Missing return statement in function");
  }

  final public StrategyExpression_List _StrategyExpression_List() throws ParseException {
  StrategyExpression_List it = null;
  Nonempty_StrategyExpression_List _first;
    it=new StrategyExpression_List();
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case 7:
    case STRING_LITERAL:
    case IDENTIFIER:
      _first = _Nonempty_StrategyExpression_List();
                                                  it.set_first(_first);
      break;
    default:
      jj_la1[7] = jj_gen;
      ;
    }
    {if (true) return it;}
    throw new Error("Missing return statement in function");
  }

  final public MethodKeyword_List _MethodKeyword_List() throws ParseException {
  MethodKeyword_List it = null;
  Nonempty_MethodKeyword_List _first;
    it=new MethodKeyword_List();
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case 11:
    case 12:
    case 13:
    case 14:
    case 15:
      _first = _Nonempty_MethodKeyword_List();
                                             it.set_first(_first);
      break;
    default:
      jj_la1[8] = jj_gen;
      ;
    }
    {if (true) return it;}
    throw new Error("Missing return statement in function");
  }

  final public MethodParm_Commalist _MethodParm_Commalist() throws ParseException {
  MethodParm_Commalist it = null;
  Nonempty_MethodParm_Commalist _first;
    it=new MethodParm_Commalist();
    _first = _Nonempty_MethodParm_Commalist();
                                            it.set_first(_first);
    {if (true) return it;}
    throw new Error("Missing return statement in function");
  }

  final public ArraySpec_List _ArraySpec_List() throws ParseException {
  ArraySpec_List it = null;
  Nonempty_ArraySpec_List _first;
    it=new ArraySpec_List();
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case 17:
      _first = _Nonempty_ArraySpec_List();
                                         it.set_first(_first);
      break;
    default:
      jj_la1[9] = jj_gen;
      ;
    }
    {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 Nonempty_Name _Nonempty_Name() throws ParseException {
  Nonempty_Name it = null;
  Ident _it;
  Nonempty_Name _next;
    it=new Nonempty_Name();
    _it = _Ident();
                 it.set_it(_it);
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case 21:
      jj_consume_token(21);
      _next = _Nonempty_Name();
                                   it.set_next(_next);
      break;
    default:
      jj_la1[10] = jj_gen;
      ;
    }
    {if (true) return it;}
    throw new Error("Missing return statement in function");
  }

  final public Nonempty_TraversalAspect_List _Nonempty_TraversalAspect_List() throws ParseException {
  Nonempty_TraversalAspect_List it = null;
  TraversalAspect _it;
  Nonempty_TraversalAspect_List _next;
    it=new Nonempty_TraversalAspect_List();
    _it = _TraversalAspect();
                           it.set_it(_it);
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case 1:
      _next = _Nonempty_TraversalAspect_List();
                                              it.set_next(_next);
      break;
    default:
      jj_la1[11] = jj_gen;
      ;
    }
    {if (true) return it;}
    throw new Error("Missing return statement in function");
  }

  final public Nonempty_Definition_CurlyList _Nonempty_Definition_CurlyList() throws ParseException {
  Nonempty_Definition_CurlyList it = null;
  Definition _it;
  Nonempty_Definition_CurlyList _next;
    it=new Nonempty_Definition_CurlyList();
    _it = _Definition();
                      it.set_it(_it);
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case 2:
      _next = _Nonempty_Definition_CurlyList();
                                              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_StrategyExpression_List _Nonempty_StrategyExpression_List() throws ParseException {
  Nonempty_StrategyExpression_List it = null;
  StrategyExpression _it;
  Nonempty_StrategyExpression_List _next;
    it=new Nonempty_StrategyExpression_List();
    _it = _StrategyExpression();
                              it.set_it(_it);
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case 7:
    case STRING_LITERAL:
    case IDENTIFIER:
      _next = _Nonempty_StrategyExpression_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_MethodKeyword_List _Nonempty_MethodKeyword_List() throws ParseException {
  Nonempty_MethodKeyword_List it = null;
  MethodKeyword _it;
  Nonempty_MethodKeyword_List _next;
    it=new Nonempty_MethodKeyword_List();
    _it = _MethodKeyword();
                         it.set_it(_it);
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case 11:
    case 12:
    case 13:
    case 14:
    case 15:
      _next = _Nonempty_MethodKeyword_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_MethodParm_Commalist _Nonempty_MethodParm_Commalist() throws ParseException {
  Nonempty_MethodParm_Commalist it = null;
  MethodParm _it;
  Nonempty_MethodParm_Commalist _next;
    it=new Nonempty_MethodParm_Commalist();
    _it = _MethodParm();
                      it.set_it(_it);
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case 22:
      jj_consume_token(22);
      _next = _Nonempty_MethodParm_Commalist();
                                                   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_ArraySpec_List _Nonempty_ArraySpec_List() throws ParseException {
  Nonempty_ArraySpec_List it = null;
  ArraySpec _it;
  Nonempty_ArraySpec_List _next;
    it=new Nonempty_ArraySpec_List();
    _it = _ArraySpec();
                     it.set_it(_it);
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case 17:
      _next = _Nonempty_ArraySpec_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_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 22:
      jj_consume_token(22);
      _next = _Nonempty_ClassName_Commalist();
                                                  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 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[18] = 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[19] = 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[20] = 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[21] = 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[22];
  final private int[] jj_la1_0 = {0x430,0x80,0x0,0x0,0xf800,0x10000,0x2,0x80,0xf800,0x20000,0x200000,0x2,0x4,0x80,0xf800,0x400000,0x20000,0x400000,0x0,0x0,0xe0000000,0xe0000000,};
  final private int[] jj_la1_1 = {0x0,0x88,0x88,0x80,0x0,0x0,0x0,0x88,0x0,0x0,0x0,0x0,0x0,0x88,0x0,0x0,0x0,0x0,0x60,0x60,0x0,0x1,};

  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 < 22; 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 < 22; 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 < 22; 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 < 22; 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 < 22; 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 < 22; 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[48];
    for (int i = 0; i < 48; i++) {
      la1tokens[i] = false;
    }
    if (jj_kind >= 0) {
      la1tokens[jj_kind] = true;
      jj_kind = -1;
    }
    for (int i = 0; i < 22; i++) {
      if (jj_la1[i] == jj_gen) {
        for (int j = 0; j < 32; j++) {
          if ((jj_la1_0[i] & (1<<j)) != 0) {
            la1tokens[j] = true;
          }
          if ((jj_la1_1[i] & (1<<j)) != 0) {
            la1tokens[32+j] = true;
          }
        }
      }
    }
    for (int i = 0; i < 48; i++) {
      if (la1tokens[i]) {
        jj_expentry = new int[1];
        jj_expentry[0] = i;
        jj_expentries.addElement(jj_expentry);
      }
    }
    int[][] exptokseq = new int[jj_expentries.size()][];
    for (int i = 0; i < jj_expentries.size(); i++) {
      exptokseq[i] = (int[])jj_expentries.elementAt(i);
    }
    return new ParseException(token, exptokseq, tokenImage);
  }

  final public void enable_tracing() {
  }

  final public void disable_tracing() {
  }

}

