Package antlr

Examples of antlr.NoViableAltException


                            {
                                break _loop454;
                            }
                            else
                            {
                                throw new NoViableAltException( _t );
                            }
                        }
                    }
                    _cnt454++;
                }
View Full Code Here


                    {
                        break;
                    }
                    default :
                    {
                        throw new NoViableAltException( _t );
                    }
                }
            }
            _t = __t456;
            _t = _t.getNextSibling();
View Full Code Here

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

                                            _t = _t.getNextSibling();
                                            break;
                                        }
                                        default :
                                        {
                                            throw new NoViableAltException( _t );
                                        }
                                    }
                                }
                                break;
                            }
                            case ARRAY_DECLARATOR :
                            {
                                AST __t519 = _t;
                                AST tmp148_AST_in = (AST) _t;
                                match( _t,
                                       ARRAY_DECLARATOR );
                                _t = _t.getFirstChild();
                                typeSpecArray( _t );
                                _t = _retTree;
                                _t = __t519;
                                _t = _t.getNextSibling();
                                break;
                            }
                            case LITERAL_void :
                            case LITERAL_boolean :
                            case LITERAL_byte :
                            case LITERAL_char :
                            case LITERAL_short :
                            case LITERAL_int :
                            case LITERAL_float :
                            case LITERAL_long :
                            case LITERAL_double :
                            {
                                builtInType( _t );
                                _t = _retTree;
                                {
                                    if ( _t == null ) _t = ASTNULL;
                                    switch ( _t.getType() )
                                    {
                                        case LITERAL_class :
                                        {
                                            AST tmp149_AST_in = (AST) _t;
                                            match( _t,
                                                   LITERAL_class );
                                            _t = _t.getNextSibling();
                                            break;
                                        }
                                        case 3 :
                                        {
                                            break;
                                        }
                                        default :
                                        {
                                            throw new NoViableAltException( _t );
                                        }
                                    }
                                }
                                break;
                            }
                            default :
                            {
                                throw new NoViableAltException( _t );
                            }
                        }
                    }
                    _t = __t515;
                    _t = _t.getNextSibling();
                    break;
                }
                case INDEX_OP :
                {
                    arrayIndex( _t );
                    _t = _retTree;
                    break;
                }
                case METHOD_CALL :
                {
                    AST __t521 = _t;
                    AST tmp150_AST_in = (AST) _t;
                    match( _t,
                           METHOD_CALL );
                    _t = _t.getFirstChild();
                    primaryExpression( _t );
                    _t = _retTree;
                    elist( _t );
                    _t = _retTree;
                    _t = __t521;
                    _t = _t.getNextSibling();
                    break;
                }
                case TYPECAST :
                {
                    AST __t522 = _t;
                    AST tmp151_AST_in = (AST) _t;
                    match( _t,
                           TYPECAST );
                    _t = _t.getFirstChild();
                    typeSpec( _t );
                    _t = _retTree;
                    expr( _t );
                    _t = _retTree;
                    _t = __t522;
                    _t = _t.getNextSibling();
                    break;
                }
                case LITERAL_new :
                {
                    newExpression( _t );
                    _t = _retTree;
                    break;
                }
                case NUM_INT :
                case CHAR_LITERAL :
                case STRING_LITERAL :
                case NUM_FLOAT :
                case NUM_LONG :
                case NUM_DOUBLE :
                {
                    constant( _t );
                    _t = _retTree;
                    break;
                }
                case LITERAL_super :
                {
                    AST tmp152_AST_in = (AST) _t;
                    match( _t,
                           LITERAL_super );
                    _t = _t.getNextSibling();
                    break;
                }
                case LITERAL_true :
                {
                    AST tmp153_AST_in = (AST) _t;
                    match( _t,
                           LITERAL_true );
                    _t = _t.getNextSibling();
                    break;
                }
                case LITERAL_false :
                {
                    AST tmp154_AST_in = (AST) _t;
                    match( _t,
                           LITERAL_false );
                    _t = _t.getNextSibling();
                    break;
                }
                case LITERAL_this :
                {
                    AST tmp155_AST_in = (AST) _t;
                    match( _t,
                           LITERAL_this );
                    _t = _t.getNextSibling();
                    break;
                }
                case LITERAL_null :
                {
                    AST tmp156_AST_in = (AST) _t;
                    match( _t,
                           LITERAL_null );
                    _t = _t.getNextSibling();
                    break;
                }
                case TYPE :
                {
                    typeSpec( _t );
                    _t = _retTree;
                    break;
                }
                default :
                {
                    throw new NoViableAltException( _t );
                }
            }
        }
        catch ( RecognitionException ex )
        {
View Full Code Here

                                {
                                    break;
                                }
                                default :
                                {
                                    throw new NoViableAltException( _t );
                                }
                            }
                        }
                        break;
                    }
                    case ELIST :
                    {
                        elist( _t );
                        _t = _retTree;
                        {
                            if ( _t == null ) _t = ASTNULL;
                            switch ( _t.getType() )
                            {
                                case OBJBLOCK :
                                {
                                    objBlock( _t );
                                    _t = _retTree;
                                    break;
                                }
                                case 3 :
                                {
                                    break;
                                }
                                default :
                                {
                                    throw new NoViableAltException( _t );
                                }
                            }
                        }
                        break;
                    }
                    default :
                    {
                        throw new NoViableAltException( _t );
                    }
                }
            }
            _t = __t531;
            _t = _t.getNextSibling();
View Full Code Here

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

                    {
                        break;
                    }
                    default :
                    {
                        throw new NoViableAltException( _t );
                    }
                }
            }
            {
                if ( _t == null ) _t = ASTNULL;
                switch ( _t.getType() )
                {
                    case EXPR :
                    {
                        expression( _t );
                        _t = _retTree;
                        break;
                    }
                    case 3 :
                    {
                        break;
                    }
                    default :
                    {
                        throw new NoViableAltException( _t );
                    }
                }
            }
            _t = __t536;
            _t = _t.getNextSibling();
View Full Code Here

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

                                                        returnAST );
                                break;
                            }
                            default :
                            {
                                throw new NoViableAltException( LT( 1 ),
                                                                getFilename() );
                            }
                        }
                    }
                    typeDefinition_AST = (AST) currentAST.root;
                    break;
                }
                case SEMI :
                {
                    match( SEMI );
                    typeDefinition_AST = (AST) currentAST.root;
                    break;
                }
                default :
                {
                    throw new NoViableAltException( LT( 1 ),
                                                    getFilename() );
                }
            }
        }
        catch ( RecognitionException ex )
View Full Code Here

                {
                    break;
                }
                default :
                {
                    throw new NoViableAltException( LT( 1 ),
                                                    getFilename() );
                }
            }
        }
        {
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.