Package org.jostraca.comp.antlr

Examples of org.jostraca.comp.antlr.NoViableAltException


      {
        break;
      }
      default:
      {
        throw new NoViableAltException(LT(1), getFilename());
      }
      }
      }
      if ( inputState.guessing==0 ) {
        behavior.refCharRange(crLeft, crRight, label, autoGen, lastInRule());
      }
      break;
    }
    case STRING_LITERAL:
    case TOKEN_REF:
    {
      {
      switch ( LA(1)) {
      case TOKEN_REF:
      {
        t = LT(1);
        match(TOKEN_REF);
        if ( inputState.guessing==0 ) {
          trLeft=t;
        }
        break;
      }
      case STRING_LITERAL:
      {
        u = LT(1);
        match(STRING_LITERAL);
        if ( inputState.guessing==0 ) {
          trLeft=u;
        }
        break;
      }
      default:
      {
        throw new NoViableAltException(LT(1), getFilename());
      }
      }
      }
      match(RANGE);
      {
      switch ( LA(1)) {
      case TOKEN_REF:
      {
        v = LT(1);
        match(TOKEN_REF);
        if ( inputState.guessing==0 ) {
          trRight=v;
        }
        break;
      }
      case STRING_LITERAL:
      {
        w = LT(1);
        match(STRING_LITERAL);
        if ( inputState.guessing==0 ) {
          trRight=w;
        }
        break;
      }
      default:
      {
        throw new NoViableAltException(LT(1), getFilename());
      }
      }
      }
      autoGen=ast_type_spec();
      if ( inputState.guessing==0 ) {
        behavior.refTokenRange(trLeft, trRight, label, autoGen, lastInRule());
      }
      break;
    }
    default:
    {
      throw new NoViableAltException(LT(1), getFilename());
    }
    }
  }
View Full Code Here


      {
        break;
      }
      default:
      {
        throw new NoViableAltException(LT(1), getFilename());
      }
      }
      }
      if ( inputState.guessing==0 ) {
        behavior.refCharLiteral(cl, label, false, autoGen, lastInRule());
      }
      break;
    }
    case TOKEN_REF:
    {
      tr = LT(1);
      match(TOKEN_REF);
      autoGen=ast_type_spec();
      {
      switch ( LA(1)) {
      case ARG_ACTION:
      {
        aa = LT(1);
        match(ARG_ACTION);
        if ( inputState.guessing==0 ) {
          args=aa;
        }
        break;
      }
      case STRING_LITERAL:
      case ACTION:
      case SEMI:
      case CHAR_LITERAL:
      case OR:
      case TOKEN_REF:
      case OPEN_ELEMENT_OPTION:
      case LPAREN:
      case RPAREN:
      case LITERAL_exception:
      case RULE_REF:
      case NOT_OP:
      case SEMPRED:
      case TREE_BEGIN:
      case WILDCARD:
      {
        break;
      }
      default:
      {
        throw new NoViableAltException(LT(1), getFilename());
      }
      }
      }
      if ( inputState.guessing==0 ) {
        behavior.refToken(null, tr, label, args, false, autoGen, lastInRule());
      }
      break;
    }
    case STRING_LITERAL:
    {
      sl = LT(1);
      match(STRING_LITERAL);
      autoGen=ast_type_spec();
      if ( inputState.guessing==0 ) {
        behavior.refStringLiteral(sl, label, autoGen, lastInRule());
      }
      break;
    }
    case WILDCARD:
    {
      wi = LT(1);
      match(WILDCARD);
      autoGen=ast_type_spec();
      if ( inputState.guessing==0 ) {
        behavior.refWildcard(wi, label, autoGen);
      }
      break;
    }
    default:
    {
      throw new NoViableAltException(LT(1), getFilename());
    }
    }
  }
View Full Code Here

      {
        break;
      }
      default:
      {
        throw new NoViableAltException(LT(1), getFilename());
      }
      }
      }
      if ( inputState.guessing==0 ) {
        behavior.refCharLiteral(cl, label, true, autoGen, lastInRule());
      }
      break;
    }
    case TOKEN_REF:
    {
      tr = LT(1);
      match(TOKEN_REF);
      autoGen=ast_type_spec();
      if ( inputState.guessing==0 ) {
        behavior.refToken(null, tr, label, null, true, autoGen, lastInRule());
      }
      break;
    }
    default:
    {
      throw new NoViableAltException(LT(1), getFilename());
    }
    }
  }
View Full Code Here

      {
        break;
      }
      default:
      {
        throw new NoViableAltException(LT(1), getFilename());
      }
      }
      }
      match(COLON);
    }
    else if ((LA(1)==ACTION) && (LA(2)==COLON)) {
      ab = LT(1);
      match(ACTION);
      if ( inputState.guessing==0 ) {
        behavior.refInitAction(ab);
      }
      match(COLON);
    }
    else if ((_tokenSet_9.member(LA(1))) && (_tokenSet_10.member(LA(2)))) {
    }
    else {
      throw new NoViableAltException(LT(1), getFilename());
    }
   
    }
    block();
    match(RPAREN);
    {
    switch ( LA(1)) {
    case STRING_LITERAL:
    case ACTION:
    case SEMI:
    case CHAR_LITERAL:
    case OR:
    case TOKEN_REF:
    case OPEN_ELEMENT_OPTION:
    case LPAREN:
    case RPAREN:
    case BANG:
    case LITERAL_exception:
    case RULE_REF:
    case NOT_OP:
    case SEMPRED:
    case TREE_BEGIN:
    case QUESTION:
    case STAR:
    case PLUS:
    case WILDCARD:
    {
      {
      switch ( LA(1)) {
      case QUESTION:
      {
        match(QUESTION);
        if ( inputState.guessing==0 ) {
          behavior.optionalSubRule();
        }
        break;
      }
      case STAR:
      {
        match(STAR);
        if ( inputState.guessing==0 ) {
          behavior.zeroOrMoreSubRule();
        }
        break;
      }
      case PLUS:
      {
        match(PLUS);
        if ( inputState.guessing==0 ) {
          behavior.oneOrMoreSubRule();
        }
        break;
      }
      case STRING_LITERAL:
      case ACTION:
      case SEMI:
      case CHAR_LITERAL:
      case OR:
      case TOKEN_REF:
      case OPEN_ELEMENT_OPTION:
      case LPAREN:
      case RPAREN:
      case BANG:
      case LITERAL_exception:
      case RULE_REF:
      case NOT_OP:
      case SEMPRED:
      case TREE_BEGIN:
      case WILDCARD:
      {
        break;
      }
      default:
      {
        throw new NoViableAltException(LT(1), getFilename());
      }
      }
      }
      {
      switch ( LA(1)) {
      case BANG:
      {
        match(BANG);
        if ( inputState.guessing==0 ) {
          behavior.noASTSubRule();
        }
        break;
      }
      case STRING_LITERAL:
      case ACTION:
      case SEMI:
      case CHAR_LITERAL:
      case OR:
      case TOKEN_REF:
      case OPEN_ELEMENT_OPTION:
      case LPAREN:
      case RPAREN:
      case LITERAL_exception:
      case RULE_REF:
      case NOT_OP:
      case SEMPRED:
      case TREE_BEGIN:
      case WILDCARD:
      {
        break;
      }
      default:
      {
        throw new NoViableAltException(LT(1), getFilename());
      }
      }
      }
      break;
    }
    case IMPLIES:
    {
      match(IMPLIES);
      if ( inputState.guessing==0 ) {
        behavior.synPred();
      }
      break;
    }
    default:
    {
      throw new NoViableAltException(LT(1), getFilename());
    }
    }
    }
    if ( inputState.guessing==0 ) {
      behavior.endSubRule();
View Full Code Here

    do {
      if ((_tokenSet_2.member(LA(1)))) {
        element();
      }
      else {
        if ( _cnt122>=1 ) { break _loop122; } else {throw new NoViableAltException(LT(1), getFilename());}
      }
     
      _cnt122++;
    } while (true);
    }
View Full Code Here

      }
    }
    else if ((_tokenSet_7.member(LA(1))) && (_tokenSet_11.member(LA(2)))) {
    }
    else {
      throw new NoViableAltException(LT(1), getFilename());
    }
   
    }
    terminal(label);
  }
View Full Code Here

    {
      break;
    }
    default:
    {
      throw new NoViableAltException(LT(1), getFilename());
    }
    }
    }
    return autoGen ;
  }
View Full Code Here

        id2 = LT(1);
        match(ID);
        t=id2;
      }
      else {
        throw new NoViableAltException(LT(1), getFilename());
      }
     
      }
      match(ASSIGN);
      i = LT(1);
View Full Code Here

      {
        break;
      }
      default:
      {
        throw new NoViableAltException(LT(1), getFilename());
      }
      }
      }
      {
      _loop38:
View Full Code Here

        res=dqstring();
        break;
      }
      default:
      {
        throw new NoViableAltException(LT(1), getFilename());
      }
      }
    }
    catch (RecognitionException ex) {
      reportError(ex);
View Full Code Here

TOP

Related Classes of org.jostraca.comp.antlr.NoViableAltException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.