Package antlr.collections

Examples of antlr.collections.AST


    }

    public final void compilationUnit(AST _t) throws RecognitionException
    {

        AST compilationUnit_AST_in = (AST) _t;

        try
        { // for error handling
            {
                if ( _t == null ) _t = ASTNULL;
View Full Code Here


    }

    public final void packageDefinition(AST _t) throws RecognitionException
    {

        AST packageDefinition_AST_in = (AST) _t;

        try
        { // for error handling
            AST __t347 = _t;
            AST tmp1_AST_in = (AST) _t;
            match( _t,
                   PACKAGE_DEF );
            _t = _t.getFirstChild();
            identifier( _t );
            _t = _retTree;
View Full Code Here

    }

    public final void importDefinition(AST _t) throws RecognitionException
    {

        AST importDefinition_AST_in = (AST) _t;

        try
        { // for error handling
            AST __t349 = _t;
            AST tmp2_AST_in = (AST) _t;
            match( _t,
                   IMPORT );
            _t = _t.getFirstChild();
            identifierStar( _t );
            _t = _retTree;
View Full Code Here

    }

    public final void typeDefinition(AST _t) throws RecognitionException
    {

        AST typeDefinition_AST_in = (AST) _t;

        try
        { // for error handling
            if ( _t == null ) _t = ASTNULL;
            switch ( _t.getType() )
            {
                case CLASS_DEF :
                {
                    AST __t351 = _t;
                    AST tmp3_AST_in = (AST) _t;
                    match( _t,
                           CLASS_DEF );
                    _t = _t.getFirstChild();
                    modifiers( _t );
                    _t = _retTree;
                    AST tmp4_AST_in = (AST) _t;
                    match( _t,
                           IDENT );
                    _t = _t.getNextSibling();
                    extendsClause( _t );
                    _t = _retTree;
                    implementsClause( _t );
                    _t = _retTree;
                    objBlock( _t );
                    _t = _retTree;
                    _t = __t351;
                    _t = _t.getNextSibling();
                    break;
                }
                case INTERFACE_DEF :
                {
                    AST __t352 = _t;
                    AST tmp5_AST_in = (AST) _t;
                    match( _t,
                           INTERFACE_DEF );
                    _t = _t.getFirstChild();
                    modifiers( _t );
                    _t = _retTree;
                    AST tmp6_AST_in = (AST) _t;
                    match( _t,
                           IDENT );
                    _t = _t.getNextSibling();
                    extendsClause( _t );
                    _t = _retTree;
View Full Code Here

    }

    public final void ruleFile(AST _t) throws RecognitionException
    {

        AST ruleFile_AST_in = (AST) _t;

        try
        { // for error handling
            {
                _loop330 : do
View Full Code Here

    }

    public final void ruleSet(AST _t) throws RecognitionException
    {

        AST ruleSet_AST_in = (AST) _t;

        try
        { // for error handling
            AST __t332 = _t;
            AST tmp7_AST_in = (AST) _t;
            match( _t,
                   RULE_SET );
            _t = _t.getFirstChild();
            AST tmp8_AST_in = (AST) _t;
            match( _t,
                   IDENT );
            _t = _t.getNextSibling();
            {
                int _cnt334 = 0;
View Full Code Here

    }

    public final void rule(AST _t) throws RecognitionException
    {

        AST rule_AST_in = (AST) _t;

        try
        { // for error handling
            AST __t336 = _t;
            AST tmp9_AST_in = (AST) _t;
            match( _t,
                   RULE );
            _t = _t.getFirstChild();
            AST tmp10_AST_in = (AST) _t;
            match( _t,
                   IDENT );
            _t = _t.getNextSibling();
            AST __t337 = _t;
            AST tmp11_AST_in = (AST) _t;
            match( _t,
                   PARAMETERS );
            _t = _t.getFirstChild();
            {
                int _cnt340 = 0;
                _loop340 : do
                {
                    if ( _t == null ) _t = ASTNULL;
                    if ( (_t.getType() == PARAMETER_DEF) )
                    {
                        AST __t339 = _t;
                        AST tmp12_AST_in = (AST) _t;
                        match( _t,
                               PARAMETER_DEF );
                        _t = _t.getFirstChild();
                        typeSpec( _t );
                        _t = _retTree;
                        AST tmp13_AST_in = (AST) _t;
                        match( _t,
                               IDENT );
                        _t = _t.getNextSibling();
                        _t = __t339;
                        _t = _t.getNextSibling();
View Full Code Here

    }

    public final void typeSpec(AST _t) throws RecognitionException
    {

        AST typeSpec_AST_in = (AST) _t;

        try
        { // for error handling
            AST __t354 = _t;
            AST tmp14_AST_in = (AST) _t;
            match( _t,
                   TYPE );
            _t = _t.getFirstChild();
            typeSpecArray( _t );
            _t = _retTree;
View Full Code Here

    }

    public final void whenBlock(AST _t) throws RecognitionException
    {

        AST whenBlock_AST_in = (AST) _t;

        try
        { // for error handling
            AST __t342 = _t;
            AST tmp15_AST_in = (AST) _t;
            match( _t,
                   WHEN );
            _t = _t.getFirstChild();
            AST tmp16_AST_in = (AST) _t;
            if ( _t == null ) throw new MismatchedTokenException();
            _t = _t.getNextSibling();
            _t = __t342;
            _t = _t.getNextSibling();
        }
View Full Code Here

    }

    public final void thenBlock(AST _t) throws RecognitionException
    {

        AST thenBlock_AST_in = (AST) _t;

        try
        { // for error handling
            AST __t344 = _t;
            AST tmp17_AST_in = (AST) _t;
            match( _t,
                   THEN );
            _t = _t.getFirstChild();
            {
                if ( _t == null ) _t = ASTNULL;
View Full Code Here

TOP

Related Classes of antlr.collections.AST

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.