Search in sources :

Example 36 with EObject

use of org.eclipse.emf.ecore.EObject in project mechanoid by robotoworks.

the class InternalNetModelParser method entryRuleNumericType.

// $ANTLR end "ruleBooleanType"
// $ANTLR start "entryRuleNumericType"
// ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:2124:1: entryRuleNumericType returns [EObject current=null] : iv_ruleNumericType= ruleNumericType EOF ;
public final EObject entryRuleNumericType() throws RecognitionException {
    EObject current = null;
    EObject iv_ruleNumericType = null;
    try {
        // ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:2125:2: (iv_ruleNumericType= ruleNumericType EOF )
        // ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:2126:2: iv_ruleNumericType= ruleNumericType EOF
        {
            newCompositeNode(grammarAccess.getNumericTypeRule());
            pushFollow(FOLLOW_ruleNumericType_in_entryRuleNumericType4697);
            iv_ruleNumericType = ruleNumericType();
            state._fsp--;
            current = iv_ruleNumericType;
            match(input, EOF, FOLLOW_EOF_in_entryRuleNumericType4707);
        }
    } catch (RecognitionException re) {
        recover(input, re);
        appendSkippedTokens();
    } finally {
    }
    return current;
}
Also used : EObject(org.eclipse.emf.ecore.EObject)

Example 37 with EObject

use of org.eclipse.emf.ecore.EObject in project mechanoid by robotoworks.

the class InternalNetModelParser method entryRuleBodyBlock.

// $ANTLR end "ruleLiteral"
// $ANTLR start "entryRuleBodyBlock"
// ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:978:1: entryRuleBodyBlock returns [EObject current=null] : iv_ruleBodyBlock= ruleBodyBlock EOF ;
public final EObject entryRuleBodyBlock() throws RecognitionException {
    EObject current = null;
    EObject iv_ruleBodyBlock = null;
    try {
        // ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:979:2: (iv_ruleBodyBlock= ruleBodyBlock EOF )
        // ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:980:2: iv_ruleBodyBlock= ruleBodyBlock EOF
        {
            newCompositeNode(grammarAccess.getBodyBlockRule());
            pushFollow(FOLLOW_ruleBodyBlock_in_entryRuleBodyBlock2073);
            iv_ruleBodyBlock = ruleBodyBlock();
            state._fsp--;
            current = iv_ruleBodyBlock;
            match(input, EOF, FOLLOW_EOF_in_entryRuleBodyBlock2083);
        }
    } catch (RecognitionException re) {
        recover(input, re);
        appendSkippedTokens();
    } finally {
    }
    return current;
}
Also used : EObject(org.eclipse.emf.ecore.EObject)

Example 38 with EObject

use of org.eclipse.emf.ecore.EObject in project mechanoid by robotoworks.

the class InternalNetModelParser method entryRuleType.

// $ANTLR end "ruleSimpleMember"
// $ANTLR start "entryRuleType"
// ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:1400:1: entryRuleType returns [EObject current=null] : iv_ruleType= ruleType EOF ;
public final EObject entryRuleType() throws RecognitionException {
    EObject current = null;
    EObject iv_ruleType = null;
    try {
        // ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:1401:2: (iv_ruleType= ruleType EOF )
        // ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:1402:2: iv_ruleType= ruleType EOF
        {
            newCompositeNode(grammarAccess.getTypeRule());
            pushFollow(FOLLOW_ruleType_in_entryRuleType3005);
            iv_ruleType = ruleType();
            state._fsp--;
            current = iv_ruleType;
            match(input, EOF, FOLLOW_EOF_in_entryRuleType3015);
        }
    } catch (RecognitionException re) {
        recover(input, re);
        appendSkippedTokens();
    } finally {
    }
    return current;
}
Also used : EObject(org.eclipse.emf.ecore.EObject)

Example 39 with EObject

use of org.eclipse.emf.ecore.EObject in project mechanoid by robotoworks.

the class InternalNetModelParser method ruleMember.

// $ANTLR end "entryRuleMember"
// $ANTLR start "ruleMember"
// ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:1136:1: ruleMember returns [EObject current=null] : (this_TypedMember_0= ruleTypedMember | this_SkipMember_1= ruleSkipMember ) ;
public final EObject ruleMember() throws RecognitionException {
    EObject current = null;
    EObject this_TypedMember_0 = null;
    EObject this_SkipMember_1 = null;
    enterRule();
    try {
        // ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:1139:28: ( (this_TypedMember_0= ruleTypedMember | this_SkipMember_1= ruleSkipMember ) )
        // ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:1140:1: (this_TypedMember_0= ruleTypedMember | this_SkipMember_1= ruleSkipMember )
        {
            // ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:1140:1: (this_TypedMember_0= ruleTypedMember | this_SkipMember_1= ruleSkipMember )
            int alt20 = 2;
            int LA20_0 = input.LA(1);
            if ((LA20_0 == RULE_ID)) {
                int LA20_1 = input.LA(2);
                if ((LA20_1 == 18)) {
                    alt20 = 1;
                } else if ((LA20_1 == 14)) {
                    alt20 = 2;
                } else {
                    NoViableAltException nvae = new NoViableAltException("", 20, 1, input);
                    throw nvae;
                }
            } else if ((LA20_0 == RULE_STRING)) {
                int LA20_2 = input.LA(2);
                if ((LA20_2 == 14)) {
                    alt20 = 2;
                } else if ((LA20_2 == 18)) {
                    alt20 = 1;
                } else {
                    NoViableAltException nvae = new NoViableAltException("", 20, 2, input);
                    throw nvae;
                }
            } else {
                NoViableAltException nvae = new NoViableAltException("", 20, 0, input);
                throw nvae;
            }
            switch(alt20) {
                case 1:
                    // ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:1141:5: this_TypedMember_0= ruleTypedMember
                    {
                        newCompositeNode(grammarAccess.getMemberAccess().getTypedMemberParserRuleCall_0());
                        pushFollow(FOLLOW_ruleTypedMember_in_ruleMember2502);
                        this_TypedMember_0 = ruleTypedMember();
                        state._fsp--;
                        current = this_TypedMember_0;
                        afterParserOrEnumRuleCall();
                    }
                    break;
                case 2:
                    // ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:1151:5: this_SkipMember_1= ruleSkipMember
                    {
                        newCompositeNode(grammarAccess.getMemberAccess().getSkipMemberParserRuleCall_1());
                        pushFollow(FOLLOW_ruleSkipMember_in_ruleMember2529);
                        this_SkipMember_1 = ruleSkipMember();
                        state._fsp--;
                        current = this_SkipMember_1;
                        afterParserOrEnumRuleCall();
                    }
                    break;
            }
        }
        leaveRule();
    } catch (RecognitionException re) {
        recover(input, re);
        appendSkippedTokens();
    } finally {
    }
    return current;
}
Also used : EObject(org.eclipse.emf.ecore.EObject)

Example 40 with EObject

use of org.eclipse.emf.ecore.EObject in project mechanoid by robotoworks.

the class InternalNetModelParser method entryRuleGenericListType.

// $ANTLR end "ruleType"
// $ANTLR start "entryRuleGenericListType"
// ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:1450:1: entryRuleGenericListType returns [EObject current=null] : iv_ruleGenericListType= ruleGenericListType EOF ;
public final EObject entryRuleGenericListType() throws RecognitionException {
    EObject current = null;
    EObject iv_ruleGenericListType = null;
    try {
        // ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:1451:2: (iv_ruleGenericListType= ruleGenericListType EOF )
        // ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:1452:2: iv_ruleGenericListType= ruleGenericListType EOF
        {
            newCompositeNode(grammarAccess.getGenericListTypeRule());
            pushFollow(FOLLOW_ruleGenericListType_in_entryRuleGenericListType3151);
            iv_ruleGenericListType = ruleGenericListType();
            state._fsp--;
            current = iv_ruleGenericListType;
            match(input, EOF, FOLLOW_EOF_in_entryRuleGenericListType3161);
        }
    } catch (RecognitionException re) {
        recover(input, re);
        appendSkippedTokens();
    } finally {
    }
    return current;
}
Also used : EObject(org.eclipse.emf.ecore.EObject)

Aggregations

EObject (org.eclipse.emf.ecore.EObject)3043 AntlrDatatypeRuleToken (org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken)974 Test (org.junit.Test)231 Resource (org.eclipse.emf.ecore.resource.Resource)108 XtextResource (org.eclipse.xtext.resource.XtextResource)101 StringConcatenation (org.eclipse.xtend2.lib.StringConcatenation)89 InternalEObject (org.eclipse.emf.ecore.InternalEObject)80 Grammar (org.eclipse.xtext.Grammar)70 List (java.util.List)63 AbstractRule (org.eclipse.xtext.AbstractRule)57 URI (org.eclipse.emf.common.util.URI)53 INode (org.eclipse.xtext.nodemodel.INode)51 XtendFile (org.eclipse.xtend.core.xtend.XtendFile)49 ICompositeNode (org.eclipse.xtext.nodemodel.ICompositeNode)43 EStructuralFeature (org.eclipse.emf.ecore.EStructuralFeature)39 AbstractElement (org.eclipse.xtext.AbstractElement)38 IEObjectDescription (org.eclipse.xtext.resource.IEObjectDescription)38 EReference (org.eclipse.emf.ecore.EReference)37 ArrayList (java.util.ArrayList)33 XtendTypeDeclaration (org.eclipse.xtend.core.xtend.XtendTypeDeclaration)33