Examples of AntlrDatatypeRuleToken


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


    // $ANTLR start ruleaddop
    // ../org.vanb/src-gen/org/parser/antlr/internal/InternalVanb.g:896:1: ruleaddop returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '+' | kw= '-' ) ;
    public final AntlrDatatypeRuleToken ruleaddop() throws RecognitionException {
        AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();

        Token kw=null;

         setCurrentLookahead(); resetLookahead();
           
        try {
            // ../org.vanb/src-gen/org/parser/antlr/internal/InternalVanb.g:901:6: ( (kw= '+' | kw= '-' ) )
            // ../org.vanb/src-gen/org/parser/antlr/internal/InternalVanb.g:902:1: (kw= '+' | kw= '-' )
            {
            // ../org.vanb/src-gen/org/parser/antlr/internal/InternalVanb.g:902:1: (kw= '+' | kw= '-' )
            int alt20=2;
            int LA20_0 = input.LA(1);

            if ( (LA20_0==35) ) {
                alt20=1;
            }
            else if ( (LA20_0==36) ) {
                alt20=2;
            }
            else {
                NoViableAltException nvae =
                    new NoViableAltException("902:1: (kw= '+' | kw= '-' )", 20, 0, input);

                throw nvae;
            }
            switch (alt20) {
                case 1 :
                    // ../org.vanb/src-gen/org/parser/antlr/internal/InternalVanb.g:903:2: kw= '+'
                    {
                    kw=(Token)input.LT(1);
                    match(input,35,FOLLOW_35_in_ruleaddop1969);

                            current.merge(kw);
                            createLeafNode(grammarAccess.getAddopAccess().getPlusSignKeyword_0(), null);
                       

                    }
                    break;
                case 2 :
                    // ../org.vanb/src-gen/org/parser/antlr/internal/InternalVanb.g:910:2: kw= '-'
                    {
                    kw=(Token)input.LT(1);
                    match(input,36,FOLLOW_36_in_ruleaddop1988);

                            current.merge(kw);
                            createLeafNode(grammarAccess.getAddopAccess().getHyphenMinusKeyword_1(), null);
                       

                    }
                    break;
View Full Code Here

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

    // $ANTLR start entryRuleterm
    // ../org.vanb/src-gen/org/parser/antlr/internal/InternalVanb.g:923:1: entryRuleterm returns [String current=null] : iv_ruleterm= ruleterm EOF ;
    public final String entryRuleterm() throws RecognitionException {
        String current = null;

        AntlrDatatypeRuleToken iv_ruleterm = null;


        try {
            // ../org.vanb/src-gen/org/parser/antlr/internal/InternalVanb.g:924:2: (iv_ruleterm= ruleterm EOF )
            // ../org.vanb/src-gen/org/parser/antlr/internal/InternalVanb.g:925:2: iv_ruleterm= ruleterm EOF
            {
             currentNode = createCompositeNode(grammarAccess.getTermRule(), currentNode);
            pushFollow(FOLLOW_ruleterm_in_entryRuleterm2029);
            iv_ruleterm=ruleterm();
            _fsp--;

             current =iv_ruleterm.getText();
            match(input,EOF,FOLLOW_EOF_in_entryRuleterm2040);

            }

        }
View Full Code Here

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


    // $ANTLR start ruleterm
    // ../org.vanb/src-gen/org/parser/antlr/internal/InternalVanb.g:932:1: ruleterm returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_factor_0= rulefactor (this_multop_1= rulemultop this_factor_2= rulefactor )* ) ;
    public final AntlrDatatypeRuleToken ruleterm() throws RecognitionException {
        AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();

        AntlrDatatypeRuleToken this_factor_0 = null;

        AntlrDatatypeRuleToken this_multop_1 = null;

        AntlrDatatypeRuleToken this_factor_2 = null;


         setCurrentLookahead(); resetLookahead();
           
        try {
View Full Code Here

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

    // $ANTLR start entryRulemultop
    // ../org.vanb/src-gen/org/parser/antlr/internal/InternalVanb.g:979:1: entryRulemultop returns [String current=null] : iv_rulemultop= rulemultop EOF ;
    public final String entryRulemultop() throws RecognitionException {
        String current = null;

        AntlrDatatypeRuleToken iv_rulemultop = null;


        try {
            // ../org.vanb/src-gen/org/parser/antlr/internal/InternalVanb.g:980:2: (iv_rulemultop= rulemultop EOF )
            // ../org.vanb/src-gen/org/parser/antlr/internal/InternalVanb.g:981:2: iv_rulemultop= rulemultop EOF
            {
             currentNode = createCompositeNode(grammarAccess.getMultopRule(), currentNode);
            pushFollow(FOLLOW_rulemultop_in_entryRulemultop2190);
            iv_rulemultop=rulemultop();
            _fsp--;

             current =iv_rulemultop.getText();
            match(input,EOF,FOLLOW_EOF_in_entryRulemultop2201);

            }

        }
View Full Code Here

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


    // $ANTLR start rulemultop
    // ../org.vanb/src-gen/org/parser/antlr/internal/InternalVanb.g:988:1: rulemultop returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '*' | kw= '/' ) ;
    public final AntlrDatatypeRuleToken rulemultop() throws RecognitionException {
        AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();

        Token kw=null;

         setCurrentLookahead(); resetLookahead();
           
        try {
            // ../org.vanb/src-gen/org/parser/antlr/internal/InternalVanb.g:993:6: ( (kw= '*' | kw= '/' ) )
            // ../org.vanb/src-gen/org/parser/antlr/internal/InternalVanb.g:994:1: (kw= '*' | kw= '/' )
            {
            // ../org.vanb/src-gen/org/parser/antlr/internal/InternalVanb.g:994:1: (kw= '*' | kw= '/' )
            int alt22=2;
            int LA22_0 = input.LA(1);

            if ( (LA22_0==17) ) {
                alt22=1;
            }
            else if ( (LA22_0==37) ) {
                alt22=2;
            }
            else {
                NoViableAltException nvae =
                    new NoViableAltException("994:1: (kw= '*' | kw= '/' )", 22, 0, input);

                throw nvae;
            }
            switch (alt22) {
                case 1 :
                    // ../org.vanb/src-gen/org/parser/antlr/internal/InternalVanb.g:995:2: kw= '*'
                    {
                    kw=(Token)input.LT(1);
                    match(input,17,FOLLOW_17_in_rulemultop2239);

                            current.merge(kw);
                            createLeafNode(grammarAccess.getMultopAccess().getAsteriskKeyword_0(), null);
                       

                    }
                    break;
                case 2 :
                    // ../org.vanb/src-gen/org/parser/antlr/internal/InternalVanb.g:1002:2: kw= '/'
                    {
                    kw=(Token)input.LT(1);
                    match(input,37,FOLLOW_37_in_rulemultop2258);

                            current.merge(kw);
                            createLeafNode(grammarAccess.getMultopAccess().getSolidusKeyword_1(), null);
                       

                    }
                    break;
View Full Code Here

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

    // $ANTLR start entryRulefactor
    // ../org.vanb/src-gen/org/parser/antlr/internal/InternalVanb.g:1015:1: entryRulefactor returns [String current=null] : iv_rulefactor= rulefactor EOF ;
    public final String entryRulefactor() throws RecognitionException {
        String current = null;

        AntlrDatatypeRuleToken iv_rulefactor = null;


        try {
            // ../org.vanb/src-gen/org/parser/antlr/internal/InternalVanb.g:1016:2: (iv_rulefactor= rulefactor EOF )
            // ../org.vanb/src-gen/org/parser/antlr/internal/InternalVanb.g:1017:2: iv_rulefactor= rulefactor EOF
            {
             currentNode = createCompositeNode(grammarAccess.getFactorRule(), currentNode);
            pushFollow(FOLLOW_rulefactor_in_entryRulefactor2299);
            iv_rulefactor=rulefactor();
            _fsp--;

             current =iv_rulefactor.getText();
            match(input,EOF,FOLLOW_EOF_in_entryRulefactor2310);

            }

        }
View Full Code Here

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


    // $ANTLR start rulefactor
    // ../org.vanb/src-gen/org/parser/antlr/internal/InternalVanb.g:1024:1: rulefactor returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : ( (this_ID_0= RULE_ID (this_named_1= rulenamed )? ) | this_INT_2= RULE_INT | (kw= '(' this_expression_4= ruleexpression kw= ')' ) ) ;
    public final AntlrDatatypeRuleToken rulefactor() throws RecognitionException {
        AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();

        Token this_ID_0=null;
        Token this_INT_2=null;
        Token kw=null;
        AntlrDatatypeRuleToken this_named_1 = null;

        AntlrDatatypeRuleToken this_expression_4 = null;


         setCurrentLookahead(); resetLookahead();
           
        try {
View Full Code Here

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

    // $ANTLR start entryRulenamed
    // ../org.vanb/src-gen/org/parser/antlr/internal/InternalVanb.g:1088:1: entryRulenamed returns [String current=null] : iv_rulenamed= rulenamed EOF ;
    public final String entryRulenamed() throws RecognitionException {
        String current = null;

        AntlrDatatypeRuleToken iv_rulenamed = null;


        try {
            // ../org.vanb/src-gen/org/parser/antlr/internal/InternalVanb.g:1089:2: (iv_rulenamed= rulenamed EOF )
            // ../org.vanb/src-gen/org/parser/antlr/internal/InternalVanb.g:1090:2: iv_rulenamed= rulenamed EOF
            {
             currentNode = createCompositeNode(grammarAccess.getNamedRule(), currentNode);
            pushFollow(FOLLOW_rulenamed_in_entryRulenamed2515);
            iv_rulenamed=rulenamed();
            _fsp--;

             current =iv_rulenamed.getText();
            match(input,EOF,FOLLOW_EOF_in_entryRulenamed2526);

            }

        }
View Full Code Here

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


    // $ANTLR start rulenamed
    // ../org.vanb/src-gen/org/parser/antlr/internal/InternalVanb.g:1097:1: rulenamed returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '#' | (kw= '[' this_expression_2= ruleexpression kw= ']' ) | (kw= '(' this_expression_5= ruleexpression (kw= ',' this_expression_7= ruleexpression )* kw= ')' ) | kw= '$' ) ;
    public final AntlrDatatypeRuleToken rulenamed() throws RecognitionException {
        AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();

        Token kw=null;
        AntlrDatatypeRuleToken this_expression_2 = null;

        AntlrDatatypeRuleToken this_expression_5 = null;

        AntlrDatatypeRuleToken this_expression_7 = null;


         setCurrentLookahead(); resetLookahead();
           
        try {
View Full Code Here

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


    // $ANTLR start rulelonglong_type
    // ../org.csu.idl.xtext/src-gen/org/csu/idl/xtext/parser/antlr/internal/InternalIDL.g:4320:1: rulelonglong_type returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= 'long' kw= 'long' ) ;
    public final AntlrDatatypeRuleToken rulelonglong_type() throws RecognitionException {
        AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();

        Token kw=null;

         setCurrentLookahead(); resetLookahead();
           
        try {
            // ../org.csu.idl.xtext/src-gen/org/csu/idl/xtext/parser/antlr/internal/InternalIDL.g:4325:6: ( (kw= 'long' kw= 'long' ) )
            // ../org.csu.idl.xtext/src-gen/org/csu/idl/xtext/parser/antlr/internal/InternalIDL.g:4326:1: (kw= 'long' kw= 'long' )
            {
            // ../org.csu.idl.xtext/src-gen/org/csu/idl/xtext/parser/antlr/internal/InternalIDL.g:4326:1: (kw= 'long' kw= 'long' )
            // ../org.csu.idl.xtext/src-gen/org/csu/idl/xtext/parser/antlr/internal/InternalIDL.g:4327:2: kw= 'long' kw= 'long'
            {
            kw=(Token)input.LT(1);
            match(input,54,FollowSets000.FOLLOW_54_in_rulelonglong_type7773); if (failed) return current;
            if ( backtracking==0 ) {

                      current.merge(kw);
                      createLeafNode(grammarAccess.getLonglong_typeAccess().getLongKeyword_0(), null);
                 
            }
            kw=(Token)input.LT(1);
            match(input,54,FollowSets000.FOLLOW_54_in_rulelonglong_type7786); if (failed) return current;
            if ( backtracking==0 ) {

                      current.merge(kw);
                      createLeafNode(grammarAccess.getLonglong_typeAccess().getLongKeyword_1(), null);
                 
            }

            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.