Search in sources :

Example 6 with EObject

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

the class InternalSqliteModelParser method entryRuleDropIndexStatement.

// $ANTLR end "ruleCreateIndexStatement"
// $ANTLR start "entryRuleDropIndexStatement"
// ../com.robotoworks.mechanoid.db/src-gen/com/robotoworks/mechanoid/db/parser/antlr/internal/InternalSqliteModel.g:4785:1: entryRuleDropIndexStatement returns [EObject current=null] : iv_ruleDropIndexStatement= ruleDropIndexStatement EOF ;
public final EObject entryRuleDropIndexStatement() throws RecognitionException {
    EObject current = null;
    EObject iv_ruleDropIndexStatement = null;
    try {
        // ../com.robotoworks.mechanoid.db/src-gen/com/robotoworks/mechanoid/db/parser/antlr/internal/InternalSqliteModel.g:4786:2: (iv_ruleDropIndexStatement= ruleDropIndexStatement EOF )
        // ../com.robotoworks.mechanoid.db/src-gen/com/robotoworks/mechanoid/db/parser/antlr/internal/InternalSqliteModel.g:4787:2: iv_ruleDropIndexStatement= ruleDropIndexStatement EOF
        {
            if (state.backtracking == 0) {
                newCompositeNode(grammarAccess.getDropIndexStatementRule());
            }
            pushFollow(FOLLOW_ruleDropIndexStatement_in_entryRuleDropIndexStatement10387);
            iv_ruleDropIndexStatement = ruleDropIndexStatement();
            state._fsp--;
            if (state.failed)
                return current;
            if (state.backtracking == 0) {
                current = iv_ruleDropIndexStatement;
            }
            match(input, EOF, FOLLOW_EOF_in_entryRuleDropIndexStatement10397);
            if (state.failed)
                return current;
        }
    } catch (RecognitionException re) {
        recover(input, re);
        appendSkippedTokens();
    } finally {
    }
    return current;
}
Also used : EObject(org.eclipse.emf.ecore.EObject)

Example 7 with EObject

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

the class InternalSqliteModelParser method ruleUpdateColumnExpression.

// $ANTLR end "entryRuleUpdateColumnExpression"
// $ANTLR start "ruleUpdateColumnExpression"
// ../com.robotoworks.mechanoid.db/src-gen/com/robotoworks/mechanoid/db/parser/antlr/internal/InternalSqliteModel.g:6131:1: ruleUpdateColumnExpression returns [EObject current=null] : ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '=' ( (lv_expression_2_0= ruleSqlExpression ) ) ) ;
public final EObject ruleUpdateColumnExpression() throws RecognitionException {
    EObject current = null;
    Token otherlv_0 = null;
    Token otherlv_1 = null;
    EObject lv_expression_2_0 = null;
    enterRule();
    try {
        // ../com.robotoworks.mechanoid.db/src-gen/com/robotoworks/mechanoid/db/parser/antlr/internal/InternalSqliteModel.g:6134:28: ( ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '=' ( (lv_expression_2_0= ruleSqlExpression ) ) ) )
        // ../com.robotoworks.mechanoid.db/src-gen/com/robotoworks/mechanoid/db/parser/antlr/internal/InternalSqliteModel.g:6135:1: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '=' ( (lv_expression_2_0= ruleSqlExpression ) ) )
        {
            // ../com.robotoworks.mechanoid.db/src-gen/com/robotoworks/mechanoid/db/parser/antlr/internal/InternalSqliteModel.g:6135:1: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '=' ( (lv_expression_2_0= ruleSqlExpression ) ) )
            // ../com.robotoworks.mechanoid.db/src-gen/com/robotoworks/mechanoid/db/parser/antlr/internal/InternalSqliteModel.g:6135:2: ( (otherlv_0= RULE_ID ) ) otherlv_1= '=' ( (lv_expression_2_0= ruleSqlExpression ) )
            {
                // ../com.robotoworks.mechanoid.db/src-gen/com/robotoworks/mechanoid/db/parser/antlr/internal/InternalSqliteModel.g:6135:2: ( (otherlv_0= RULE_ID ) )
                // ../com.robotoworks.mechanoid.db/src-gen/com/robotoworks/mechanoid/db/parser/antlr/internal/InternalSqliteModel.g:6136:1: (otherlv_0= RULE_ID )
                {
                    // ../com.robotoworks.mechanoid.db/src-gen/com/robotoworks/mechanoid/db/parser/antlr/internal/InternalSqliteModel.g:6136:1: (otherlv_0= RULE_ID )
                    // ../com.robotoworks.mechanoid.db/src-gen/com/robotoworks/mechanoid/db/parser/antlr/internal/InternalSqliteModel.g:6137:3: otherlv_0= RULE_ID
                    {
                        if (state.backtracking == 0) {
                            if (current == null) {
                                current = createModelElement(grammarAccess.getUpdateColumnExpressionRule());
                            }
                        }
                        otherlv_0 = (Token) match(input, RULE_ID, FOLLOW_RULE_ID_in_ruleUpdateColumnExpression13373);
                        if (state.failed)
                            return current;
                        if (state.backtracking == 0) {
                            newLeafNode(otherlv_0, grammarAccess.getUpdateColumnExpressionAccess().getColumnNameColumnDefCrossReference_0_0());
                        }
                    }
                }
                otherlv_1 = (Token) match(input, 41, FOLLOW_41_in_ruleUpdateColumnExpression13385);
                if (state.failed)
                    return current;
                if (state.backtracking == 0) {
                    newLeafNode(otherlv_1, grammarAccess.getUpdateColumnExpressionAccess().getEqualsSignKeyword_1());
                }
                // ../com.robotoworks.mechanoid.db/src-gen/com/robotoworks/mechanoid/db/parser/antlr/internal/InternalSqliteModel.g:6152:1: ( (lv_expression_2_0= ruleSqlExpression ) )
                // ../com.robotoworks.mechanoid.db/src-gen/com/robotoworks/mechanoid/db/parser/antlr/internal/InternalSqliteModel.g:6153:1: (lv_expression_2_0= ruleSqlExpression )
                {
                    // ../com.robotoworks.mechanoid.db/src-gen/com/robotoworks/mechanoid/db/parser/antlr/internal/InternalSqliteModel.g:6153:1: (lv_expression_2_0= ruleSqlExpression )
                    // ../com.robotoworks.mechanoid.db/src-gen/com/robotoworks/mechanoid/db/parser/antlr/internal/InternalSqliteModel.g:6154:3: lv_expression_2_0= ruleSqlExpression
                    {
                        if (state.backtracking == 0) {
                            newCompositeNode(grammarAccess.getUpdateColumnExpressionAccess().getExpressionSqlExpressionParserRuleCall_2_0());
                        }
                        pushFollow(FOLLOW_ruleSqlExpression_in_ruleUpdateColumnExpression13406);
                        lv_expression_2_0 = ruleSqlExpression();
                        state._fsp--;
                        if (state.failed)
                            return current;
                        if (state.backtracking == 0) {
                            if (current == null) {
                                current = createModelElementForParent(grammarAccess.getUpdateColumnExpressionRule());
                            }
                            set(current, "expression", lv_expression_2_0, "SqlExpression");
                            afterParserOrEnumRuleCall();
                        }
                    }
                }
            }
        }
        if (state.backtracking == 0) {
            leaveRule();
        }
    } catch (RecognitionException re) {
        recover(input, re);
        appendSkippedTokens();
    } finally {
    }
    return current;
}
Also used : EObject(org.eclipse.emf.ecore.EObject) AntlrDatatypeRuleToken(org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken)

Example 8 with EObject

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

the class InternalSqliteModelParser method entryRuleSelectExpression.

// $ANTLR end "ruleSelectCore"
// $ANTLR start "entryRuleSelectExpression"
// ../com.robotoworks.mechanoid.db/src-gen/com/robotoworks/mechanoid/db/parser/antlr/internal/InternalSqliteModel.g:2586:1: entryRuleSelectExpression returns [EObject current=null] : iv_ruleSelectExpression= ruleSelectExpression EOF ;
public final EObject entryRuleSelectExpression() throws RecognitionException {
    EObject current = null;
    EObject iv_ruleSelectExpression = null;
    try {
        // ../com.robotoworks.mechanoid.db/src-gen/com/robotoworks/mechanoid/db/parser/antlr/internal/InternalSqliteModel.g:2587:2: (iv_ruleSelectExpression= ruleSelectExpression EOF )
        // ../com.robotoworks.mechanoid.db/src-gen/com/robotoworks/mechanoid/db/parser/antlr/internal/InternalSqliteModel.g:2588:2: iv_ruleSelectExpression= ruleSelectExpression EOF
        {
            if (state.backtracking == 0) {
                newCompositeNode(grammarAccess.getSelectExpressionRule());
            }
            pushFollow(FOLLOW_ruleSelectExpression_in_entryRuleSelectExpression5521);
            iv_ruleSelectExpression = ruleSelectExpression();
            state._fsp--;
            if (state.failed)
                return current;
            if (state.backtracking == 0) {
                current = iv_ruleSelectExpression;
            }
            match(input, EOF, FOLLOW_EOF_in_entryRuleSelectExpression5531);
            if (state.failed)
                return current;
        }
    } catch (RecognitionException re) {
        recover(input, re);
        appendSkippedTokens();
    } finally {
    }
    return current;
}
Also used : EObject(org.eclipse.emf.ecore.EObject)

Example 9 with EObject

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

the class InternalSqliteModelParser method entryRuleCreateViewStatement.

// $ANTLR end "ruleCreateTableStatement"
// $ANTLR start "entryRuleCreateViewStatement"
// ../com.robotoworks.mechanoid.db/src-gen/com/robotoworks/mechanoid/db/parser/antlr/internal/InternalSqliteModel.g:3962:1: entryRuleCreateViewStatement returns [EObject current=null] : iv_ruleCreateViewStatement= ruleCreateViewStatement EOF ;
public final EObject entryRuleCreateViewStatement() throws RecognitionException {
    EObject current = null;
    EObject iv_ruleCreateViewStatement = null;
    try {
        // ../com.robotoworks.mechanoid.db/src-gen/com/robotoworks/mechanoid/db/parser/antlr/internal/InternalSqliteModel.g:3963:2: (iv_ruleCreateViewStatement= ruleCreateViewStatement EOF )
        // ../com.robotoworks.mechanoid.db/src-gen/com/robotoworks/mechanoid/db/parser/antlr/internal/InternalSqliteModel.g:3964:2: iv_ruleCreateViewStatement= ruleCreateViewStatement EOF
        {
            if (state.backtracking == 0) {
                newCompositeNode(grammarAccess.getCreateViewStatementRule());
            }
            pushFollow(FOLLOW_ruleCreateViewStatement_in_entryRuleCreateViewStatement8564);
            iv_ruleCreateViewStatement = ruleCreateViewStatement();
            state._fsp--;
            if (state.failed)
                return current;
            if (state.backtracking == 0) {
                current = iv_ruleCreateViewStatement;
            }
            match(input, EOF, FOLLOW_EOF_in_entryRuleCreateViewStatement8574);
            if (state.failed)
                return current;
        }
    } catch (RecognitionException re) {
        recover(input, re);
        appendSkippedTokens();
    } finally {
    }
    return current;
}
Also used : EObject(org.eclipse.emf.ecore.EObject)

Example 10 with EObject

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

the class InternalSqliteModelParser method entryRuleAlterTableRenameStatement.

// $ANTLR end "ruleCreateTriggerStatement"
// $ANTLR start "entryRuleAlterTableRenameStatement"
// ../com.robotoworks.mechanoid.db/src-gen/com/robotoworks/mechanoid/db/parser/antlr/internal/InternalSqliteModel.g:4353:1: entryRuleAlterTableRenameStatement returns [EObject current=null] : iv_ruleAlterTableRenameStatement= ruleAlterTableRenameStatement EOF ;
public final EObject entryRuleAlterTableRenameStatement() throws RecognitionException {
    EObject current = null;
    EObject iv_ruleAlterTableRenameStatement = null;
    try {
        // ../com.robotoworks.mechanoid.db/src-gen/com/robotoworks/mechanoid/db/parser/antlr/internal/InternalSqliteModel.g:4354:2: (iv_ruleAlterTableRenameStatement= ruleAlterTableRenameStatement EOF )
        // ../com.robotoworks.mechanoid.db/src-gen/com/robotoworks/mechanoid/db/parser/antlr/internal/InternalSqliteModel.g:4355:2: iv_ruleAlterTableRenameStatement= ruleAlterTableRenameStatement EOF
        {
            if (state.backtracking == 0) {
                newCompositeNode(grammarAccess.getAlterTableRenameStatementRule());
            }
            pushFollow(FOLLOW_ruleAlterTableRenameStatement_in_entryRuleAlterTableRenameStatement9378);
            iv_ruleAlterTableRenameStatement = ruleAlterTableRenameStatement();
            state._fsp--;
            if (state.failed)
                return current;
            if (state.backtracking == 0) {
                current = iv_ruleAlterTableRenameStatement;
            }
            match(input, EOF, FOLLOW_EOF_in_entryRuleAlterTableRenameStatement9388);
            if (state.failed)
                return current;
        }
    } 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)416 AntlrDatatypeRuleToken (org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken)121 TableDefinition (com.robotoworks.mechanoid.db.sqliteModel.TableDefinition)16 Enumerator (org.eclipse.emf.common.util.Enumerator)16 Point (org.eclipse.draw2d.geometry.Point)14 IParser (org.eclipse.gmf.runtime.common.ui.services.parser.IParser)14 IParserEditStatus (org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus)14 EObjectAdapter (org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter)14 ISemanticParser (org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser)14 ICellEditorValidator (org.eclipse.jface.viewers.ICellEditorValidator)14 Resource (org.eclipse.emf.ecore.resource.Resource)9 DDLStatement (com.robotoworks.mechanoid.db.sqliteModel.DDLStatement)8 ArrayList (java.util.ArrayList)8 List (java.util.List)8 HashMap (java.util.HashMap)7 Iterator (java.util.Iterator)7 BusinessItem (org.talend.designer.business.model.business.BusinessItem)7 IOException (java.io.IOException)6 URI (org.eclipse.emf.common.util.URI)6 View (org.eclipse.gmf.runtime.notation.View)6