Package org.antlr.runtime.tree

Examples of org.antlr.runtime.tree.RewriteRuleSubtreeStream


            // rule labels: retval
            // token list labels:
            // rule list labels:
            if ( backtracking==0 ) {
            retval.tree = root_0;
            RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,"token retval",retval!=null?retval.tree:null);

            root_0 = (Object)adaptor.nil();
            // 263:2: -> VT_ANY[$value]
            {
                adaptor.addChild(root_0, adaptor.create(VT_ANY, value));
View Full Code Here


        Object root_0 = null;

        statement_return statement1 = null;


        RewriteRuleSubtreeStream stream_statement=new RewriteRuleSubtreeStream(adaptor,"rule statement");
        try {
            // src/main/resources/org/drools/lang/dsl/DSLMap.g:87:4: ( ( statement )* -> ^( VT_DSL_GRAMMAR ( statement )* ) )
            // src/main/resources/org/drools/lang/dsl/DSLMap.g:87:4: ( statement )*
            {
            // src/main/resources/org/drools/lang/dsl/DSLMap.g:87:4: ( statement )*
            loop1:
            do {
                int alt1=2;
                int LA1_0 = input.LA(1);

                if ( ((LA1_0>=EOL && LA1_0<=LINE_COMMENT)||LA1_0==LEFT_SQUARE) ) {
                    alt1=1;
                }


                switch (alt1) {
              case 1 :
                  // src/main/resources/org/drools/lang/dsl/DSLMap.g:0:0: statement
                  {
                  pushFollow(FOLLOW_statement_in_mapping_file273);
                  statement1=statement();
                  _fsp--;
                  if (failed) return retval;
                  if ( backtracking==0 ) stream_statement.add(statement1.getTree());

                  }
                  break;

              default :
                  break loop1;
                }
            } while (true);


            // AST REWRITE
            // elements: statement
            // token labels:
            // rule labels: retval
            // token list labels:
            // rule list labels:
            if ( backtracking==0 ) {
            retval.tree = root_0;
            RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,"token retval",retval!=null?retval.tree:null);

            root_0 = (Object)adaptor.nil();
            // 88:2: -> ^( VT_DSL_GRAMMAR ( statement )* )
            {
                // src/main/resources/org/drools/lang/dsl/DSLMap.g:88:5: ^( VT_DSL_GRAMMAR ( statement )* )
 
View Full Code Here

            // rule labels: retval
            // token list labels:
            // rule list labels:
            if ( backtracking==0 ) {
            retval.tree = root_0;
            RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,"token retval",retval!=null?retval.tree:null);

            root_0 = (Object)adaptor.nil();
            // 100:2: -> ^( VT_COMMENT[$LINE_COMMENT, \"COMMENT\"] LINE_COMMENT )
            {
                // src/main/resources/org/drools/lang/dsl/DSLMap.g:100:5: ^( VT_COMMENT[$LINE_COMMENT, \"COMMENT\"] LINE_COMMENT )
View Full Code Here

        Object EOL11_tree=null;
        Object EOF12_tree=null;
        RewriteRuleTokenStream stream_EQUALS=new RewriteRuleTokenStream(adaptor,"token EQUALS");
        RewriteRuleTokenStream stream_EOF=new RewriteRuleTokenStream(adaptor,"token EOF");
        RewriteRuleTokenStream stream_EOL=new RewriteRuleTokenStream(adaptor,"token EOL");
        RewriteRuleSubtreeStream stream_key_section=new RewriteRuleSubtreeStream(adaptor,"rule key_section");
        RewriteRuleSubtreeStream stream_value_section=new RewriteRuleSubtreeStream(adaptor,"rule value_section");
        RewriteRuleSubtreeStream stream_scope_section=new RewriteRuleSubtreeStream(adaptor,"rule scope_section");
        RewriteRuleSubtreeStream stream_meta_section=new RewriteRuleSubtreeStream(adaptor,"rule meta_section");
        try {
            // src/main/resources/org/drools/lang/dsl/DSLMap.g:104:10: ( scope_section ( meta_section )? key_section EQUALS value_section ( EOL | EOF ) -> ^( VT_ENTRY scope_section ( meta_section )? key_section value_section ) )
            // src/main/resources/org/drools/lang/dsl/DSLMap.g:104:10: scope_section ( meta_section )? key_section EQUALS value_section ( EOL | EOF )
            {
            pushFollow(FOLLOW_scope_section_in_entry350);
            scope_section6=scope_section();
            _fsp--;
            if (failed) return retval;
            if ( backtracking==0 ) stream_scope_section.add(scope_section6.getTree());
            // src/main/resources/org/drools/lang/dsl/DSLMap.g:104:24: ( meta_section )?
            int alt3=2;
            int LA3_0 = input.LA(1);

            if ( (LA3_0==LEFT_SQUARE) ) {
                int LA3_1 = input.LA(2);

                if ( (LA3_1==LITERAL) ) {
                    int LA3_3 = input.LA(3);

                    if ( (LA3_3==RIGHT_SQUARE) ) {
                        int LA3_4 = input.LA(4);

                        if ( (synpred4()) ) {
                            alt3=1;
                        }
                    }
                }
                else if ( (LA3_1==RIGHT_SQUARE) ) {
                    int LA3_4 = input.LA(3);

                    if ( (synpred4()) ) {
                        alt3=1;
                    }
                }
            }
            switch (alt3) {
                case 1 :
                    // src/main/resources/org/drools/lang/dsl/DSLMap.g:0:0: meta_section
                    {
                    pushFollow(FOLLOW_meta_section_in_entry352);
                    meta_section7=meta_section();
                    _fsp--;
                    if (failed) return retval;
                    if ( backtracking==0 ) stream_meta_section.add(meta_section7.getTree());

                    }
                    break;

            }

            pushFollow(FOLLOW_key_section_in_entry355);
            key_section8=key_section();
            _fsp--;
            if (failed) return retval;
            if ( backtracking==0 ) stream_key_section.add(key_section8.getTree());
            EQUALS9=(Token)input.LT(1);
            match(input,EQUALS,FOLLOW_EQUALS_in_entry357); if (failed) return retval;
            if ( backtracking==0 ) stream_EQUALS.add(EQUALS9);

            pushFollow(FOLLOW_value_section_in_entry359);
            value_section10=value_section();
            _fsp--;
            if (failed) return retval;
            if ( backtracking==0 ) stream_value_section.add(value_section10.getTree());
            // src/main/resources/org/drools/lang/dsl/DSLMap.g:104:71: ( EOL | EOF )
            int alt4=2;
            int LA4_0 = input.LA(1);

            if ( (LA4_0==EOL) ) {
                alt4=1;
            }
            else if ( (LA4_0==EOF) ) {
                alt4=2;
            }
            else {
                if (backtracking>0) {failed=true; return retval;}
                NoViableAltException nvae =
                    new NoViableAltException("104:71: ( EOL | EOF )", 4, 0, input);

                throw nvae;
            }
            switch (alt4) {
                case 1 :
                    // src/main/resources/org/drools/lang/dsl/DSLMap.g:104:72: EOL
                    {
                    EOL11=(Token)input.LT(1);
                    match(input,EOL,FOLLOW_EOL_in_entry362); if (failed) return retval;
                    if ( backtracking==0 ) stream_EOL.add(EOL11);


                    }
                    break;
                case 2 :
                    // src/main/resources/org/drools/lang/dsl/DSLMap.g:104:76: EOF
                    {
                    EOF12=(Token)input.LT(1);
                    match(input,EOF,FOLLOW_EOF_in_entry364); if (failed) return retval;
                    if ( backtracking==0 ) stream_EOF.add(EOF12);


                    }
                    break;

            }


            // AST REWRITE
            // elements: key_section, value_section, meta_section, scope_section
            // token labels:
            // rule labels: retval
            // token list labels:
            // rule list labels:
            if ( backtracking==0 ) {
            retval.tree = root_0;
            RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,"token retval",retval!=null?retval.tree:null);

            root_0 = (Object)adaptor.nil();
            // 105:2: -> ^( VT_ENTRY scope_section ( meta_section )? key_section value_section )
            {
                // src/main/resources/org/drools/lang/dsl/DSLMap.g:105:5: ^( VT_ENTRY scope_section ( meta_section )? key_section value_section )
View Full Code Here

        Object LEFT_SQUARE13_tree=null;
        Object RIGHT_SQUARE14_tree=null;
        RewriteRuleTokenStream stream_LEFT_SQUARE=new RewriteRuleTokenStream(adaptor,"token LEFT_SQUARE");
        RewriteRuleTokenStream stream_RIGHT_SQUARE=new RewriteRuleTokenStream(adaptor,"token RIGHT_SQUARE");
        RewriteRuleSubtreeStream stream_condition_key=new RewriteRuleSubtreeStream(adaptor,"rule condition_key");
        RewriteRuleSubtreeStream stream_any_key=new RewriteRuleSubtreeStream(adaptor,"rule any_key");
        RewriteRuleSubtreeStream stream_keyword_key=new RewriteRuleSubtreeStream(adaptor,"rule keyword_key");
        RewriteRuleSubtreeStream stream_consequence_key=new RewriteRuleSubtreeStream(adaptor,"rule consequence_key");
        try {
            // src/main/resources/org/drools/lang/dsl/DSLMap.g:116:4: ( LEFT_SQUARE (value1= condition_key | value2= consequence_key | value3= keyword_key | value4= any_key ) RIGHT_SQUARE -> ^( VT_SCOPE[$LEFT_SQUARE, \"SCOPE SECTION\"] ( $value1)? ( $value2)? ( $value3)? ( $value4)? ) )
            // src/main/resources/org/drools/lang/dsl/DSLMap.g:116:4: LEFT_SQUARE (value1= condition_key | value2= consequence_key | value3= keyword_key | value4= any_key ) RIGHT_SQUARE
            {
            LEFT_SQUARE13=(Token)input.LT(1);
            match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_scope_section410); if (failed) return retval;
            if ( backtracking==0 ) stream_LEFT_SQUARE.add(LEFT_SQUARE13);

            // src/main/resources/org/drools/lang/dsl/DSLMap.g:117:3: (value1= condition_key | value2= consequence_key | value3= keyword_key | value4= any_key )
            int alt5=4;
            int LA5_0 = input.LA(1);

            if ( (LA5_0==LITERAL) ) {
                int LA5_1 = input.LA(2);

                if ( ((synpred6()&&validateIdentifierKey("condition")||validateIdentifierKey("when"))) ) {
                    alt5=1;
                }
                else if ( ((synpred7()&&validateIdentifierKey("consequence")||validateIdentifierKey("then"))) ) {
                    alt5=2;
                }
                else if ( ((synpred8()&&validateIdentifierKey("keyword"))) ) {
                    alt5=3;
                }
                else if ( (validateIdentifierKey("*")) ) {
                    alt5=4;
                }
                else {
                    if (backtracking>0) {failed=true; return retval;}
                    NoViableAltException nvae =
                        new NoViableAltException("117:3: (value1= condition_key | value2= consequence_key | value3= keyword_key | value4= any_key )", 5, 1, input);

                    throw nvae;
                }
            }
            else {
                if (backtracking>0) {failed=true; return retval;}
                NoViableAltException nvae =
                    new NoViableAltException("117:3: (value1= condition_key | value2= consequence_key | value3= keyword_key | value4= any_key )", 5, 0, input);

                throw nvae;
            }
            switch (alt5) {
                case 1 :
                    // src/main/resources/org/drools/lang/dsl/DSLMap.g:117:4: value1= condition_key
                    {
                    pushFollow(FOLLOW_condition_key_in_scope_section418);
                    value1=condition_key();
                    _fsp--;
                    if (failed) return retval;
                    if ( backtracking==0 ) stream_condition_key.add(value1.getTree());

                    }
                    break;
                case 2 :
                    // src/main/resources/org/drools/lang/dsl/DSLMap.g:118:5: value2= consequence_key
                    {
                    pushFollow(FOLLOW_consequence_key_in_scope_section427);
                    value2=consequence_key();
                    _fsp--;
                    if (failed) return retval;
                    if ( backtracking==0 ) stream_consequence_key.add(value2.getTree());

                    }
                    break;
                case 3 :
                    // src/main/resources/org/drools/lang/dsl/DSLMap.g:119:5: value3= keyword_key
                    {
                    pushFollow(FOLLOW_keyword_key_in_scope_section435);
                    value3=keyword_key();
                    _fsp--;
                    if (failed) return retval;
                    if ( backtracking==0 ) stream_keyword_key.add(value3.getTree());

                    }
                    break;
                case 4 :
                    // src/main/resources/org/drools/lang/dsl/DSLMap.g:120:5: value4= any_key
                    {
                    pushFollow(FOLLOW_any_key_in_scope_section443);
                    value4=any_key();
                    _fsp--;
                    if (failed) return retval;
                    if ( backtracking==0 ) stream_any_key.add(value4.getTree());

                    }
                    break;

            }

            RIGHT_SQUARE14=(Token)input.LT(1);
            match(input,RIGHT_SQUARE,FOLLOW_RIGHT_SQUARE_in_scope_section451); if (failed) return retval;
            if ( backtracking==0 ) stream_RIGHT_SQUARE.add(RIGHT_SQUARE14);


            // AST REWRITE
            // elements: value2, value3, value1, value4
            // token labels:
            // rule labels: value1, value4, value2, retval, value3
            // token list labels:
            // rule list labels:
            if ( backtracking==0 ) {
            retval.tree = root_0;
            RewriteRuleSubtreeStream stream_value1=new RewriteRuleSubtreeStream(adaptor,"token value1",value1!=null?value1.tree:null);
            RewriteRuleSubtreeStream stream_value4=new RewriteRuleSubtreeStream(adaptor,"token value4",value4!=null?value4.tree:null);
            RewriteRuleSubtreeStream stream_value2=new RewriteRuleSubtreeStream(adaptor,"token value2",value2!=null?value2.tree:null);
            RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,"token retval",retval!=null?retval.tree:null);
            RewriteRuleSubtreeStream stream_value3=new RewriteRuleSubtreeStream(adaptor,"token value3",value3!=null?value3.tree:null);

            root_0 = (Object)adaptor.nil();
            // 123:2: -> ^( VT_SCOPE[$LEFT_SQUARE, \"SCOPE SECTION\"] ( $value1)? ( $value2)? ( $value3)? ( $value4)? )
            {
                // src/main/resources/org/drools/lang/dsl/DSLMap.g:123:5: ^( VT_SCOPE[$LEFT_SQUARE, \"SCOPE SECTION\"] ( $value1)? ( $value2)? ( $value3)? ( $value4)? )
                {
                Object root_1 = (Object)adaptor.nil();
                root_1 = (Object)adaptor.becomeRoot(adaptor.create(VT_SCOPE, LEFT_SQUARE13,  "SCOPE SECTION"), root_1);

                // src/main/resources/org/drools/lang/dsl/DSLMap.g:123:47: ( $value1)?
                if ( stream_value1.hasNext() ) {
                    adaptor.addChild(root_1, stream_value1.next());

                }
                stream_value1.reset();
                // src/main/resources/org/drools/lang/dsl/DSLMap.g:123:56: ( $value2)?
                if ( stream_value2.hasNext() ) {
                    adaptor.addChild(root_1, stream_value2.next());

                }
                stream_value2.reset();
                // src/main/resources/org/drools/lang/dsl/DSLMap.g:123:65: ( $value3)?
                if ( stream_value3.hasNext() ) {
                    adaptor.addChild(root_1, stream_value3.next());

                }
                stream_value3.reset();
                // src/main/resources/org/drools/lang/dsl/DSLMap.g:123:74: ( $value4)?
                if ( stream_value4.hasNext() ) {
                    adaptor.addChild(root_1, stream_value4.next());

                }
View Full Code Here

            // rule labels: retval
            // token list labels:
            // rule list labels:
            if ( backtracking==0 ) {
            retval.tree = root_0;
            RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,"token retval",retval!=null?retval.tree:null);

            root_0 = (Object)adaptor.nil();
            // 131:2: -> ^( VT_META[$LEFT_SQUARE, \"META SECTION\"] ( LITERAL )? )
            {
                // src/main/resources/org/drools/lang/dsl/DSLMap.g:131:5: ^( VT_META[$LEFT_SQUARE, \"META SECTION\"] ( LITERAL )? )
View Full Code Here

        Object root_0 = null;

        key_sentence_return ks = null;


        RewriteRuleSubtreeStream stream_key_sentence=new RewriteRuleSubtreeStream(adaptor,"rule key_sentence");
        try {
            // src/main/resources/org/drools/lang/dsl/DSLMap.g:135:4: ( (ks= key_sentence )+ -> ^( VT_ENTRY_KEY ( key_sentence )+ ) )
            // src/main/resources/org/drools/lang/dsl/DSLMap.g:135:4: (ks= key_sentence )+
            {
            // src/main/resources/org/drools/lang/dsl/DSLMap.g:135:6: (ks= key_sentence )+
            int cnt7=0;
            loop7:
            do {
                int alt7=2;
                int LA7_0 = input.LA(1);

                if ( ((LA7_0>=LEFT_SQUARE && LA7_0<=LITERAL)||(LA7_0>=COLON && LA7_0<=LEFT_CURLY)) ) {
                    alt7=1;
                }


                switch (alt7) {
              case 1 :
                  // src/main/resources/org/drools/lang/dsl/DSLMap.g:0:0: ks= key_sentence
                  {
                  pushFollow(FOLLOW_key_sentence_in_key_section520);
                  ks=key_sentence();
                  _fsp--;
                  if (failed) return retval;
                  if ( backtracking==0 ) stream_key_sentence.add(ks.getTree());

                  }
                  break;

              default :
                  if ( cnt7 >= 1 ) break loop7;
                  if (backtracking>0) {failed=true; return retval;}
                        EarlyExitException eee =
                            new EarlyExitException(7, input);
                        throw eee;
                }
                cnt7++;
            } while (true);


            // AST REWRITE
            // elements: key_sentence
            // token labels:
            // rule labels: retval
            // token list labels:
            // rule list labels:
            if ( backtracking==0 ) {
            retval.tree = root_0;
            RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,"token retval",retval!=null?retval.tree:null);

            root_0 = (Object)adaptor.nil();
            // 136:2: -> ^( VT_ENTRY_KEY ( key_sentence )+ )
            {
                // src/main/resources/org/drools/lang/dsl/DSLMap.g:136:5: ^( VT_ENTRY_KEY ( key_sentence )+ )
View Full Code Here

                // rule labels: retval
                // token list labels:
                // rule list labels:
                // wildcard labels:
                retval.tree = root_0;
                RewriteRuleSubtreeStream stream_retval = new RewriteRuleSubtreeStream(adaptor, "rule retval", retval != null ? retval.tree : null);

                root_0 = (CommonTree) adaptor.nil();
                // 45:36: -> ^( IMPORT IDENT )
                {
                    // /home/langera/dev/freud/src/grammar/Css.g:45:39: ^( IMPORT IDENT )
View Full Code Here

        CommonTree char_literal9_tree = null;
        CommonTree char_literal12_tree = null;
        RewriteRuleTokenStream stream_30 = new RewriteRuleTokenStream(adaptor, "token 30");
        RewriteRuleTokenStream stream_28 = new RewriteRuleTokenStream(adaptor, "token 28");
        RewriteRuleTokenStream stream_29 = new RewriteRuleTokenStream(adaptor, "token 29");
        RewriteRuleSubtreeStream stream_nested = new RewriteRuleSubtreeStream(adaptor, "rule nested");
        RewriteRuleSubtreeStream stream_nest = new RewriteRuleSubtreeStream(adaptor, "rule nest");
        RewriteRuleSubtreeStream stream_properties = new RewriteRuleSubtreeStream(adaptor, "rule properties");
        try {
            // /home/langera/dev/freud/src/grammar/Css.g:49:3: ( '@' nest '{' ( properties )? ( nested )* '}' -> ^( NESTED nest ( properties )* ( nested )* ) )
            // /home/langera/dev/freud/src/grammar/Css.g:49:5: '@' nest '{' ( properties )? ( nested )* '}'
            {
                char_literal7 = (Token) match(input, 28, FOLLOW_28_in_nested183);
                stream_28.add(char_literal7);

                pushFollow(FOLLOW_nest_in_nested185);
                nest8 = nest();

                state._fsp--;

                stream_nest.add(nest8.getTree());
                char_literal9 = (Token) match(input, 29, FOLLOW_29_in_nested187);
                stream_29.add(char_literal9);

                // /home/langera/dev/freud/src/grammar/Css.g:49:18: ( properties )?
                int alt4 = 2;
                int LA4_0 = input.LA(1);

                if ((LA4_0 == IDENT)) {
                    alt4 = 1;
                }
                switch (alt4) {
                    case 1:
                        // /home/langera/dev/freud/src/grammar/Css.g:49:18: properties
                    {
                        pushFollow(FOLLOW_properties_in_nested189);
                        properties10 = properties();

                        state._fsp--;

                        stream_properties.add(properties10.getTree());

                    }
                    break;

                }

                // /home/langera/dev/freud/src/grammar/Css.g:49:30: ( nested )*
                loop5:
                do {
                    int alt5 = 2;
                    int LA5_0 = input.LA(1);

                    if ((LA5_0 == 28)) {
                        alt5 = 1;
                    }


                    switch (alt5) {
                        case 1:
                            // /home/langera/dev/freud/src/grammar/Css.g:49:30: nested
                        {
                            pushFollow(FOLLOW_nested_in_nested192);
                            nested11 = nested();

                            state._fsp--;

                            stream_nested.add(nested11.getTree());

                        }
                        break;

                        default:
                            break loop5;
                    }
                }
                while (true);

                char_literal12 = (Token) match(input, 30, FOLLOW_30_in_nested195);
                stream_30.add(char_literal12);


                // AST REWRITE
                // elements: nested, nest, properties
                // token labels:
                // rule labels: retval
                // token list labels:
                // rule list labels:
                // wildcard labels:
                retval.tree = root_0;
                RewriteRuleSubtreeStream stream_retval = new RewriteRuleSubtreeStream(adaptor, "rule retval", retval != null ? retval.tree : null);

                root_0 = (CommonTree) adaptor.nil();
                // 49:42: -> ^( NESTED nest ( properties )* ( nested )* )
                {
                    // /home/langera/dev/freud/src/grammar/Css.g:49:45: ^( NESTED nest ( properties )* ( nested )* )
 
View Full Code Here


        CommonTree IDENT13_tree = null;
        CommonTree IDENT14_tree = null;
        RewriteRuleTokenStream stream_IDENT = new RewriteRuleTokenStream(adaptor, "token IDENT");
        RewriteRuleSubtreeStream stream_pseudo = new RewriteRuleSubtreeStream(adaptor, "rule pseudo");
        try {
            // /home/langera/dev/freud/src/grammar/Css.g:53:2: ( IDENT ( IDENT )* ( pseudo )* -> ^( NEST IDENT ( IDENT )* ( pseudo )* ) )
            // /home/langera/dev/freud/src/grammar/Css.g:53:4: IDENT ( IDENT )* ( pseudo )*
            {
                IDENT13 = (Token) match(input, IDENT, FOLLOW_IDENT_in_nest222);
                stream_IDENT.add(IDENT13);

                // /home/langera/dev/freud/src/grammar/Css.g:53:10: ( IDENT )*
                loop6:
                do {
                    int alt6 = 2;
                    int LA6_0 = input.LA(1);

                    if ((LA6_0 == IDENT)) {
                        alt6 = 1;
                    }


                    switch (alt6) {
                        case 1:
                            // /home/langera/dev/freud/src/grammar/Css.g:53:10: IDENT
                        {
                            IDENT14 = (Token) match(input, IDENT, FOLLOW_IDENT_in_nest224);
                            stream_IDENT.add(IDENT14);


                        }
                        break;

                        default:
                            break loop6;
                    }
                }
                while (true);

                // /home/langera/dev/freud/src/grammar/Css.g:53:17: ( pseudo )*
                loop7:
                do {
                    int alt7 = 2;
                    int LA7_0 = input.LA(1);

                    if (((LA7_0 >= 38 && LA7_0 <= 39))) {
                        alt7 = 1;
                    }


                    switch (alt7) {
                        case 1:
                            // /home/langera/dev/freud/src/grammar/Css.g:53:17: pseudo
                        {
                            pushFollow(FOLLOW_pseudo_in_nest227);
                            pseudo15 = pseudo();

                            state._fsp--;

                            stream_pseudo.add(pseudo15.getTree());

                        }
                        break;

                        default:
                            break loop7;
                    }
                }
                while (true);


                // AST REWRITE
                // elements: pseudo, IDENT, IDENT
                // token labels:
                // rule labels: retval
                // token list labels:
                // rule list labels:
                // wildcard labels:
                retval.tree = root_0;
                RewriteRuleSubtreeStream stream_retval = new RewriteRuleSubtreeStream(adaptor, "rule retval", retval != null ? retval.tree : null);

                root_0 = (CommonTree) adaptor.nil();
                // 53:25: -> ^( NEST IDENT ( IDENT )* ( pseudo )* )
                {
                    // /home/langera/dev/freud/src/grammar/Css.g:53:28: ^( NEST IDENT ( IDENT )* ( pseudo )* )
 
View Full Code Here

TOP

Related Classes of org.antlr.runtime.tree.RewriteRuleSubtreeStream

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.