Package org.eclipse.xtext.parser.antlr

Examples of org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken


    // $ANTLR start "entryRuleEString"
    // ../at.bestsolution.efxclipse.tooling.rrobot.dsl/src-gen/at/bestsolution/efxclipse/tooling/rrobot/dsl/parser/antlr/internal/InternalRTask.g:601:1: entryRuleEString returns [String current=null] : iv_ruleEString= ruleEString EOF ;
    public final String entryRuleEString() throws RecognitionException {
        String current = null;

        AntlrDatatypeRuleToken iv_ruleEString = null;


        try {
            // ../at.bestsolution.efxclipse.tooling.rrobot.dsl/src-gen/at/bestsolution/efxclipse/tooling/rrobot/dsl/parser/antlr/internal/InternalRTask.g:602:2: (iv_ruleEString= ruleEString EOF )
            // ../at.bestsolution.efxclipse.tooling.rrobot.dsl/src-gen/at/bestsolution/efxclipse/tooling/rrobot/dsl/parser/antlr/internal/InternalRTask.g:603:2: iv_ruleEString= ruleEString EOF
            {
             newCompositeNode(grammarAccess.getEStringRule());
            pushFollow(FollowSets000.FOLLOW_ruleEString_in_entryRuleEString1289);
            iv_ruleEString=ruleEString();

            state._fsp--;

             current =iv_ruleEString.getText();
            match(input,EOF,FollowSets000.FOLLOW_EOF_in_entryRuleEString1300);

            }

        }
View Full Code Here



    // $ANTLR start "ruleEString"
    // ../at.bestsolution.efxclipse.tooling.rrobot.dsl/src-gen/at/bestsolution/efxclipse/tooling/rrobot/dsl/parser/antlr/internal/InternalRTask.g:610:1: ruleEString returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_STRING_0= RULE_STRING | this_ID_1= RULE_ID ) ;
    public final AntlrDatatypeRuleToken ruleEString() throws RecognitionException {
        AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();

        Token this_STRING_0=null;
        Token this_ID_1=null;

         enterRule();
           
        try {
            // ../at.bestsolution.efxclipse.tooling.rrobot.dsl/src-gen/at/bestsolution/efxclipse/tooling/rrobot/dsl/parser/antlr/internal/InternalRTask.g:613:28: ( (this_STRING_0= RULE_STRING | this_ID_1= RULE_ID ) )
            // ../at.bestsolution.efxclipse.tooling.rrobot.dsl/src-gen/at/bestsolution/efxclipse/tooling/rrobot/dsl/parser/antlr/internal/InternalRTask.g:614:1: (this_STRING_0= RULE_STRING | this_ID_1= RULE_ID )
            {
            // ../at.bestsolution.efxclipse.tooling.rrobot.dsl/src-gen/at/bestsolution/efxclipse/tooling/rrobot/dsl/parser/antlr/internal/InternalRTask.g:614:1: (this_STRING_0= RULE_STRING | this_ID_1= RULE_ID )
            int alt11=2;
            int LA11_0 = input.LA(1);

            if ( (LA11_0==RULE_STRING) ) {
                alt11=1;
            }
            else if ( (LA11_0==RULE_ID) ) {
                alt11=2;
            }
            else {
                NoViableAltException nvae =
                    new NoViableAltException("", 11, 0, input);

                throw nvae;
            }
            switch (alt11) {
                case 1 :
                    // ../at.bestsolution.efxclipse.tooling.rrobot.dsl/src-gen/at/bestsolution/efxclipse/tooling/rrobot/dsl/parser/antlr/internal/InternalRTask.g:614:6: this_STRING_0= RULE_STRING
                    {
                    this_STRING_0=(Token)match(input,RULE_STRING,FollowSets000.FOLLOW_RULE_STRING_in_ruleEString1340);

                        current.merge(this_STRING_0);
                       
                    
                        newLeafNode(this_STRING_0, grammarAccess.getEStringAccess().getSTRINGTerminalRuleCall_0());
                       

                    }
                    break;
                case 2 :
                    // ../at.bestsolution.efxclipse.tooling.rrobot.dsl/src-gen/at/bestsolution/efxclipse/tooling/rrobot/dsl/parser/antlr/internal/InternalRTask.g:622:10: this_ID_1= RULE_ID
                    {
                    this_ID_1=(Token)match(input,RULE_ID,FollowSets000.FOLLOW_RULE_ID_in_ruleEString1366);

                        current.merge(this_ID_1);
                       
                    
                        newLeafNode(this_ID_1, grammarAccess.getEStringAccess().getIDTerminalRuleCall_1());
                       
View Full Code Here

        Token otherlv_5=null;
        Token otherlv_6=null;
        Token otherlv_8=null;
        Token otherlv_10=null;
        Token otherlv_11=null;
        AntlrDatatypeRuleToken lv_name_2_0 = null;

        EObject lv_children_7_0 = null;

        EObject lv_children_9_0 = null;
View Full Code Here

    // $ANTLR start "entryRuletype_precision"
    // ../at.bestsolution.efxclipse.tooling.decora/src-gen/at/bestsolution/efxclipse/tooling/decora/parser/antlr/internal/InternalDecoraDsl.g:2336:1: entryRuletype_precision returns [String current=null] : iv_ruletype_precision= ruletype_precision EOF ;
    public final String entryRuletype_precision() throws RecognitionException {
        String current = null;

        AntlrDatatypeRuleToken iv_ruletype_precision = null;


        try {
            // ../at.bestsolution.efxclipse.tooling.decora/src-gen/at/bestsolution/efxclipse/tooling/decora/parser/antlr/internal/InternalDecoraDsl.g:2337:2: (iv_ruletype_precision= ruletype_precision EOF )
            // ../at.bestsolution.efxclipse.tooling.decora/src-gen/at/bestsolution/efxclipse/tooling/decora/parser/antlr/internal/InternalDecoraDsl.g:2338:2: iv_ruletype_precision= ruletype_precision EOF
            {
            if ( state.backtracking==0 ) {
               newCompositeNode(grammarAccess.getType_precisionRule());
            }
            pushFollow(FOLLOW_ruletype_precision_in_entryRuletype_precision4608);
            iv_ruletype_precision=ruletype_precision();

            state._fsp--;
            if (state.failed) return current;
            if ( state.backtracking==0 ) {
               current =iv_ruletype_precision.getText();
            }
            match(input,EOF,FOLLOW_EOF_in_entryRuletype_precision4619); if (state.failed) return current;

            }
View Full Code Here


    // $ANTLR start "ruletype_precision"
    // ../at.bestsolution.efxclipse.tooling.decora/src-gen/at/bestsolution/efxclipse/tooling/decora/parser/antlr/internal/InternalDecoraDsl.g:2345:1: ruletype_precision returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= 'lowp' | kw= 'mediump' | kw= 'highp' ) ;
    public final AntlrDatatypeRuleToken ruletype_precision() throws RecognitionException {
        AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();

        Token kw=null;

         enterRule();
           
        try {
            // ../at.bestsolution.efxclipse.tooling.decora/src-gen/at/bestsolution/efxclipse/tooling/decora/parser/antlr/internal/InternalDecoraDsl.g:2348:28: ( (kw= 'lowp' | kw= 'mediump' | kw= 'highp' ) )
            // ../at.bestsolution.efxclipse.tooling.decora/src-gen/at/bestsolution/efxclipse/tooling/decora/parser/antlr/internal/InternalDecoraDsl.g:2349:1: (kw= 'lowp' | kw= 'mediump' | kw= 'highp' )
            {
            // ../at.bestsolution.efxclipse.tooling.decora/src-gen/at/bestsolution/efxclipse/tooling/decora/parser/antlr/internal/InternalDecoraDsl.g:2349:1: (kw= 'lowp' | kw= 'mediump' | kw= 'highp' )
            int alt27=3;
            switch ( input.LA(1) ) {
            case 67:
                {
                alt27=1;
                }
                break;
            case 68:
                {
                alt27=2;
                }
                break;
            case 69:
                {
                alt27=3;
                }
                break;
            default:
                if (state.backtracking>0) {state.failed=true; return current;}
                NoViableAltException nvae =
                    new NoViableAltException("", 27, 0, input);

                throw nvae;
            }

            switch (alt27) {
                case 1 :
                    // ../at.bestsolution.efxclipse.tooling.decora/src-gen/at/bestsolution/efxclipse/tooling/decora/parser/antlr/internal/InternalDecoraDsl.g:2350:2: kw= 'lowp'
                    {
                    kw=(Token)match(input,67,FOLLOW_67_in_ruletype_precision4657); if (state.failed) return current;
                    if ( state.backtracking==0 ) {

                              current.merge(kw);
                              newLeafNode(kw, grammarAccess.getType_precisionAccess().getLowpKeyword_0());
                         
                    }

                    }
                    break;
                case 2 :
                    // ../at.bestsolution.efxclipse.tooling.decora/src-gen/at/bestsolution/efxclipse/tooling/decora/parser/antlr/internal/InternalDecoraDsl.g:2357:2: kw= 'mediump'
                    {
                    kw=(Token)match(input,68,FOLLOW_68_in_ruletype_precision4676); if (state.failed) return current;
                    if ( state.backtracking==0 ) {

                              current.merge(kw);
                              newLeafNode(kw, grammarAccess.getType_precisionAccess().getMediumpKeyword_1());
                         
                    }

                    }
                    break;
                case 3 :
                    // ../at.bestsolution.efxclipse.tooling.decora/src-gen/at/bestsolution/efxclipse/tooling/decora/parser/antlr/internal/InternalDecoraDsl.g:2364:2: kw= 'highp'
                    {
                    kw=(Token)match(input,69,FOLLOW_69_in_ruletype_precision4695); if (state.failed) return current;
                    if ( state.backtracking==0 ) {

                              current.merge(kw);
                              newLeafNode(kw, grammarAccess.getType_precisionAccess().getHighpKeyword_2());
                         
                    }

                    }
View Full Code Here

    // $ANTLR start "entryRuletype_specifier_nonarray"
    // ../at.bestsolution.efxclipse.tooling.decora/src-gen/at/bestsolution/efxclipse/tooling/decora/parser/antlr/internal/InternalDecoraDsl.g:2471:1: entryRuletype_specifier_nonarray returns [String current=null] : iv_ruletype_specifier_nonarray= ruletype_specifier_nonarray EOF ;
    public final String entryRuletype_specifier_nonarray() throws RecognitionException {
        String current = null;

        AntlrDatatypeRuleToken iv_ruletype_specifier_nonarray = null;


        try {
            // ../at.bestsolution.efxclipse.tooling.decora/src-gen/at/bestsolution/efxclipse/tooling/decora/parser/antlr/internal/InternalDecoraDsl.g:2472:2: (iv_ruletype_specifier_nonarray= ruletype_specifier_nonarray EOF )
            // ../at.bestsolution.efxclipse.tooling.decora/src-gen/at/bestsolution/efxclipse/tooling/decora/parser/antlr/internal/InternalDecoraDsl.g:2473:2: iv_ruletype_specifier_nonarray= ruletype_specifier_nonarray EOF
            {
            if ( state.backtracking==0 ) {
               newCompositeNode(grammarAccess.getType_specifier_nonarrayRule());
            }
            pushFollow(FOLLOW_ruletype_specifier_nonarray_in_entryRuletype_specifier_nonarray4979);
            iv_ruletype_specifier_nonarray=ruletype_specifier_nonarray();

            state._fsp--;
            if (state.failed) return current;
            if ( state.backtracking==0 ) {
               current =iv_ruletype_specifier_nonarray.getText();
            }
            match(input,EOF,FOLLOW_EOF_in_entryRuletype_specifier_nonarray4990); if (state.failed) return current;

            }
View Full Code Here


    // $ANTLR start "ruletype_specifier_nonarray"
    // ../at.bestsolution.efxclipse.tooling.decora/src-gen/at/bestsolution/efxclipse/tooling/decora/parser/antlr/internal/InternalDecoraDsl.g:2480:1: ruletype_specifier_nonarray returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_TYPE_0= RULE_TYPE | this_VOID_1= RULE_VOID ) ;
    public final AntlrDatatypeRuleToken ruletype_specifier_nonarray() throws RecognitionException {
        AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();

        Token this_TYPE_0=null;
        Token this_VOID_1=null;

         enterRule();
           
        try {
            // ../at.bestsolution.efxclipse.tooling.decora/src-gen/at/bestsolution/efxclipse/tooling/decora/parser/antlr/internal/InternalDecoraDsl.g:2483:28: ( (this_TYPE_0= RULE_TYPE | this_VOID_1= RULE_VOID ) )
            // ../at.bestsolution.efxclipse.tooling.decora/src-gen/at/bestsolution/efxclipse/tooling/decora/parser/antlr/internal/InternalDecoraDsl.g:2484:1: (this_TYPE_0= RULE_TYPE | this_VOID_1= RULE_VOID )
            {
            // ../at.bestsolution.efxclipse.tooling.decora/src-gen/at/bestsolution/efxclipse/tooling/decora/parser/antlr/internal/InternalDecoraDsl.g:2484:1: (this_TYPE_0= RULE_TYPE | this_VOID_1= RULE_VOID )
            int alt29=2;
            int LA29_0 = input.LA(1);

            if ( (LA29_0==RULE_TYPE) ) {
                alt29=1;
            }
            else if ( (LA29_0==RULE_VOID) ) {
                alt29=2;
            }
            else {
                if (state.backtracking>0) {state.failed=true; return current;}
                NoViableAltException nvae =
                    new NoViableAltException("", 29, 0, input);

                throw nvae;
            }
            switch (alt29) {
                case 1 :
                    // ../at.bestsolution.efxclipse.tooling.decora/src-gen/at/bestsolution/efxclipse/tooling/decora/parser/antlr/internal/InternalDecoraDsl.g:2484:6: this_TYPE_0= RULE_TYPE
                    {
                    this_TYPE_0=(Token)match(input,RULE_TYPE,FOLLOW_RULE_TYPE_in_ruletype_specifier_nonarray5030); if (state.failed) return current;
                    if ( state.backtracking==0 ) {

                          current.merge(this_TYPE_0);
                         
                    }
                    if ( state.backtracking==0 ) {
                      
                          newLeafNode(this_TYPE_0, grammarAccess.getType_specifier_nonarrayAccess().getTYPETerminalRuleCall_0());
                         
                    }

                    }
                    break;
                case 2 :
                    // ../at.bestsolution.efxclipse.tooling.decora/src-gen/at/bestsolution/efxclipse/tooling/decora/parser/antlr/internal/InternalDecoraDsl.g:2492:10: this_VOID_1= RULE_VOID
                    {
                    this_VOID_1=(Token)match(input,RULE_VOID,FOLLOW_RULE_VOID_in_ruletype_specifier_nonarray5056); if (state.failed) return current;
                    if ( state.backtracking==0 ) {

                          current.merge(this_VOID_1);
                         
                    }
                    if ( state.backtracking==0 ) {
                      
                          newLeafNode(this_VOID_1, grammarAccess.getType_specifier_nonarrayAccess().getVOIDTerminalRuleCall_1());
View Full Code Here

    // $ANTLR start synpred35_InternalDecoraDsl
    public final void synpred35_InternalDecoraDsl_fragment() throws RecognitionException {  
        EObject lv_a_0_0 = null;

        AntlrDatatypeRuleToken lv_op_1_0 = null;

        EObject lv_b_2_0 = null;


        // ../at.bestsolution.efxclipse.tooling.decora/src-gen/at/bestsolution/efxclipse/tooling/decora/parser/antlr/internal/InternalDecoraDsl.g:1544:2: ( ( ( (lv_a_0_0= ruleunary_expression ) ) ( (lv_op_1_0= ruleassignment_operator ) ) ( (lv_b_2_0= ruleassignment_expression ) ) ) )
View Full Code Here

    public final EObject ruleassignment_expression() throws RecognitionException {
        EObject current = null;

        EObject lv_a_0_0 = null;

        AntlrDatatypeRuleToken lv_op_1_0 = null;

        EObject lv_b_2_0 = null;

        EObject lv_c_3_0 = null;
View Full Code Here

    // $ANTLR start "entryRuleassignment_operator"
    // ../at.bestsolution.efxclipse.tooling.decora/src-gen/at/bestsolution/efxclipse/tooling/decora/parser/antlr/internal/InternalDecoraDsl.g:1625:1: entryRuleassignment_operator returns [String current=null] : iv_ruleassignment_operator= ruleassignment_operator EOF ;
    public final String entryRuleassignment_operator() throws RecognitionException {
        String current = null;

        AntlrDatatypeRuleToken iv_ruleassignment_operator = null;


        try {
            // ../at.bestsolution.efxclipse.tooling.decora/src-gen/at/bestsolution/efxclipse/tooling/decora/parser/antlr/internal/InternalDecoraDsl.g:1626:2: (iv_ruleassignment_operator= ruleassignment_operator EOF )
            // ../at.bestsolution.efxclipse.tooling.decora/src-gen/at/bestsolution/efxclipse/tooling/decora/parser/antlr/internal/InternalDecoraDsl.g:1627:2: iv_ruleassignment_operator= ruleassignment_operator EOF
            {
            if ( state.backtracking==0 ) {
               newCompositeNode(grammarAccess.getAssignment_operatorRule());
            }
            pushFollow(FOLLOW_ruleassignment_operator_in_entryRuleassignment_operator3129);
            iv_ruleassignment_operator=ruleassignment_operator();

            state._fsp--;
            if (state.failed) return current;
            if ( state.backtracking==0 ) {
               current =iv_ruleassignment_operator.getText();
            }
            match(input,EOF,FOLLOW_EOF_in_entryRuleassignment_operator3140); if (state.failed) return current;

            }
View Full Code Here

TOP

Related Classes of org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken

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.