Package org.jostraca.comp.antlr

Examples of org.jostraca.comp.antlr.NoViableAltForCharException


            mARGNAME(true);
            theRetToken=_returnToken;
          }
        else {
          if (LA(1)==EOF_CHAR) {uponEOF(); _returnToken = makeToken(Token.EOF_TYPE);}
        else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
        }
        }
        if ( _returnToken==null ) continue tryAgain; // found SKIP token
        _ttype = _returnToken.getType();
        _ttype = testLiteralsTable(_ttype);
View Full Code Here


      match('\\');
      break;
    }
    default:
    {
      throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
    }
    }
    }
    if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
      _token = makeToken(_ttype);
View Full Code Here

      match('\\');
      break;
    }
    default:
    {
      throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
    }
    }
    }
    if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
      _token = makeToken(_ttype);
View Full Code Here

        {
          break;
        }
        default:
        {
          throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
        }
        }
        }
        mREFINEDID(false);
        mWS(false);
        }
      }
      catch (RecognitionException pe) {
        synPredMatched14 = false;
      }
      rewind(_m14);
      inputState.guessing--;
    }
    if ( synPredMatched14 ) {
      _saveIndex=text.length();
      match('@');
      text.setLength(_saveIndex);
      {
      switch ( LA(1)) {
      case '\t'case '\n'case '\r'case ' ':
      {
        _saveIndex=text.length();
        mWS(false);
        text.setLength(_saveIndex);
        break;
      }
      case '-'case '0'case '1'case '2':
      case '3'case '4'case '5'case '6':
      case '7'case '8'case '9'case 'A':
      case 'B'case 'C'case 'D'case 'E':
      case 'F'case 'G'case 'H'case 'I':
      case 'J'case 'K'case 'L'case 'M':
      case 'N'case 'O'case 'P'case 'Q':
      case 'R'case 'S'case 'T'case 'U':
      case 'V'case 'W'case 'X'case 'Y':
      case 'Z'case '_'case 'a'case 'b':
      case 'c'case 'd'case 'e'case 'f':
      case 'g'case 'h'case 'i'case 'j':
      case 'k'case 'l'case 'm'case 'n':
      case 'o'case 'p'case 'q'case 'r':
      case 's'case 't'case 'u'case 'v':
      case 'w'case 'x'case 'y'case 'z':
      {
        break;
      }
      default:
      {
        throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
      }
      }
      }
      mREFINEDID(false);
      _saveIndex=text.length();
      mWS(false);
      text.setLength(_saveIndex);
      if ( inputState.guessing==0 ) {
       
        if( iDirectiveNameSeen ) {
        String t = new String(text.getBuffer(),_begin,text.length()-_begin);
        setText( "@"+t );
        /* System.out.println( "dns t:"+iDirectiveNameSeen+": "+$getText ); */
        _ttype = DirectiveAntlrLexerTokenTypes.NONSPACE;
        }
        else {
        /* System.out.println( "dns f:"+iDirectiveNameSeen+": "+$getText ); */
        iDirectiveNameSeen = true;
        }
       
      }
    }
    else {
      boolean synPredMatched17 = false;
      if (((_tokenSet_4.member(LA(1))) && (_tokenSet_5.member(LA(2))))) {
        int _m17 = mark();
        synPredMatched17 = true;
        inputState.guessing++;
        try {
          {
          mID(false);
          match('=');
          }
        }
        catch (RecognitionException pe) {
          synPredMatched17 = false;
        }
        rewind(_m17);
        inputState.guessing--;
      }
      if ( synPredMatched17 ) {
        mID(false);
        _saveIndex=text.length();
        match('=');
        text.setLength(_saveIndex);
        if ( inputState.guessing==0 ) {
          _ttype = DirectiveAntlrLexerTokenTypes.ARGNAME; /* System.out.println( "dnan: "+$getText ); */
        }
      }
      else if ((_tokenSet_0.member(LA(1))) && (true)) {
        mNONSPACE(false);
        if ( inputState.guessing==0 ) {
          _ttype = DirectiveAntlrLexerTokenTypes.NONSPACE; /* System.out.println( "dnns: "+$getText ); */
        }
      }
      else {
        throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
      }
      }
      if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
        _token = makeToken(_ttype);
        _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
View Full Code Here

      match('\r');
      break;
    }
    default:
    {
      throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
    }
    }
    }
    if ( inputState.guessing==0 ) {
      _ttype = Token.SKIP;
View Full Code Here

      matchRange('0','9');
      break;
    }
    default:
    {
      throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
    }
    }
    }
    {
    _loop32:
View Full Code Here

        matchRange('0','9');
        break;
      }
      default:
      {
        if ( _cnt28>=1 ) { break _loop28; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
      }
      }
      _cnt28++;
    } while (true);
    }
View Full Code Here

      if ( inputState.guessing==0 ) {
        _ttype = DirectiveAntlrLexerTokenTypes.NONSPACE; /* System.out.println( "anns: "+$getText ); */
      }
    }
    else {
      throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
    }
   
    if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
      _token = makeToken(_ttype);
      _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
View Full Code Here

      match('1');
      break;
    }
    default:
    {
      throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
    }
    }
    if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
      _token = makeToken(_ttype);
      _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
View Full Code Here

      match('0');
      break;
    }
    default:
    {
      throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
    }
    }
    if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
      _token = makeToken(_ttype);
      _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
View Full Code Here

TOP

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

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.