Package antlr

Examples of antlr.NoViableAltException


        mapping=dataMapping();
        break;
      }
      default:
      {
        throw new NoViableAltException(LT(1), getFilename());
      }
      }
      }
      match(Token.EOF_TYPE);
    }
View Full Code Here


      {
        break;
      }
      default:
      {
        throw new NoViableAltException(LT(1), getFilename());
      }
      }
      }
      mapping = new MemberMapping(member, prop);
    }
View Full Code Here

        formatted = true;
        break;
      }
      default:
      {
        throw new NoViableAltException(LT(1), getFilename());
      }
      }
      }
      {
      if ((LA(1)==LPAREN) && (_tokenSet_1.member(LA(2)))) {
        filter=memberFilter();
      }
      else if ((LA(1)==EOF||LA(1)==LPAREN) && (_tokenSet_2.member(LA(2)))) { //NOPMD
      }
      else {
        throw new NoViableAltException(LT(1), getFilename());
      }
     
      }
      {
      switch ( LA(1)) {
      case LPAREN:
      {
        positions=axisPositions();
        break;
      }
      case EOF:
      {
        break;
      }
      default:
      {
        throw new NoViableAltException(LT(1), getFilename());
      }
      }
      }
      }
      mapping = new DataMapping(formatted, filter, positions);
View Full Code Here

      {
        break;
      }
      default:
      {
        throw new NoViableAltException(LT(1), getFilename());
      }
      }
      }
      member = new Member(pos, depth);
    }
View Full Code Here

        }
        break;
      }
      default:
      {
        throw new NoViableAltException(LT(1), getFilename());
      }
      }
      }
      axis = new Axis(idx);
    }
View Full Code Here

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

        idx = mappingMeta.getTuplePosition(axis, tuple);
        break;
      }
      default:
      {
        throw new NoViableAltException(LT(1), getFilename());
      }
      }
      }
      pos = new AxisPosition(idx);
    }
View Full Code Here

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

          AST tmp2_AST_in = _t;
          if ( _t==null ) throw new MismatchedTokenException();
          _t = _t.getNextSibling();
        }
        else {
          throw new NoViableAltException(_t);
        }
       
        }
        _t = __t87;
        _t = _t.getNextSibling();
        ret = a && b;
        break;
      }
      case Or:
      {
        AST __t89 = _t;
        AST tmp3_AST_in = _t;
        match(_t,Or);
        _t = _t.getFirstChild();
        a=tSearchExpression(_t);
        _t = _retTree;
        {
        if (_t==null) _t=ASTNULL;
        if ((((_t.getType() >= And && _t.getType() <= ExpressionSearch)))&&(!a)) {
          b=tSearchExpression(_t);
          _t = _retTree;
        }
        else if (((_t.getType() >= LITERAL_and && _t.getType() <= ExpressionSearch))) {
          AST tmp4_AST_in = _t;
          if ( _t==null ) throw new MismatchedTokenException();
          _t = _t.getNextSibling();
        }
        else {
          throw new NoViableAltException(_t);
        }
       
        }
        _t = __t89;
        _t = _t.getNextSibling();
        ret = a || b;
        break;
      }
      case Not:
      {
        AST __t91 = _t;
        AST tmp5_AST_in = _t;
        match(_t,Not);
        _t = _t.getFirstChild();
        a=tSearchExpression(_t);
        _t = _retTree;
        _t = __t91;
        _t = _t.getNextSibling();
        ret = !a;
        break;
      }
      case ExpressionSearch:
      {
        ret=tExpressionSearch(_t);
        _t = _retTree;
        break;
      }
      default:
      {
        throw new NoViableAltException(_t);
      }
      }
    }
    catch (RecognitionException ex) {
      reportError(ex);
View Full Code Here

        matchType = MATCH_DOES_NOT_CONTAIN;
        break;
      }
      default:
      {
        throw new NoViableAltException(_t);
      }
      }
    }
    catch (RecognitionException ex) {
      reportError(ex);
View Full Code Here

TOP

Related Classes of 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.