Search in sources :

Example 11 with ValueConverterException

use of org.eclipse.xtext.conversion.ValueConverterException in project applause by applause.

the class InternalApplauseDslParser method ruleParameter.

// $ANTLR end entryRuleParameter
// $ANTLR start ruleParameter
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:312:1: ruleParameter returns [EObject current=null] : ( ( (lv_description_0_0= ruleTypeDescription ) ) ( (lv_name_1_0= RULE_ID ) ) ) ;
public final EObject ruleParameter() throws RecognitionException {
    EObject current = null;
    Token lv_name_1_0 = null;
    EObject lv_description_0_0 = null;
    EObject temp = null;
    setCurrentLookahead();
    resetLookahead();
    try {
        // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:317:6: ( ( ( (lv_description_0_0= ruleTypeDescription ) ) ( (lv_name_1_0= RULE_ID ) ) ) )
        // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:318:1: ( ( (lv_description_0_0= ruleTypeDescription ) ) ( (lv_name_1_0= RULE_ID ) ) )
        {
            // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:318:1: ( ( (lv_description_0_0= ruleTypeDescription ) ) ( (lv_name_1_0= RULE_ID ) ) )
            // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:318:2: ( (lv_description_0_0= ruleTypeDescription ) ) ( (lv_name_1_0= RULE_ID ) )
            {
                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:318:2: ( (lv_description_0_0= ruleTypeDescription ) )
                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:319:1: (lv_description_0_0= ruleTypeDescription )
                {
                    // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:319:1: (lv_description_0_0= ruleTypeDescription )
                    // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:320:3: lv_description_0_0= ruleTypeDescription
                    {
                        currentNode = createCompositeNode(grammarAccess.getParameterAccess().getDescriptionTypeDescriptionParserRuleCall_0_0(), currentNode);
                        pushFollow(FOLLOW_ruleTypeDescription_in_ruleParameter631);
                        lv_description_0_0 = ruleTypeDescription();
                        _fsp--;
                        if (current == null) {
                            current = factory.create(grammarAccess.getParameterRule().getType().getClassifier());
                            associateNodeWithAstElement(currentNode.getParent(), current);
                        }
                        try {
                            set(current, "description", lv_description_0_0, "TypeDescription", currentNode);
                        } catch (ValueConverterException vce) {
                            handleValueConverterException(vce);
                        }
                        currentNode = currentNode.getParent();
                    }
                }
                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:342:2: ( (lv_name_1_0= RULE_ID ) )
                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:343:1: (lv_name_1_0= RULE_ID )
                {
                    // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:343:1: (lv_name_1_0= RULE_ID )
                    // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:344:3: lv_name_1_0= RULE_ID
                    {
                        lv_name_1_0 = (Token) input.LT(1);
                        match(input, RULE_ID, FOLLOW_RULE_ID_in_ruleParameter648);
                        createLeafNode(grammarAccess.getParameterAccess().getNameIDTerminalRuleCall_1_0(), "name");
                        if (current == null) {
                            current = factory.create(grammarAccess.getParameterRule().getType().getClassifier());
                            associateNodeWithAstElement(currentNode, current);
                        }
                        try {
                            set(current, "name", lv_name_1_0, "ID", lastConsumedNode);
                        } catch (ValueConverterException vce) {
                            handleValueConverterException(vce);
                        }
                    }
                }
            }
        }
        resetLookahead();
        lastConsumedNode = currentNode;
    } 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) ValueConverterException(org.eclipse.xtext.conversion.ValueConverterException)

Example 12 with ValueConverterException

use of org.eclipse.xtext.conversion.ValueConverterException in project applause by applause.

the class InternalApplauseDslParser method ruleTableView.

// $ANTLR end entryRuleTableView
// $ANTLR start ruleTableView
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2162:1: ruleTableView returns [EObject current=null] : ( 'tableview' ( (lv_name_1_0= RULE_ID ) ) ( '(' ( (lv_content_3_0= ruleParameter ) ) ')' )? '{' 'title=' ( (lv_title_7_0= ruleScalarExpression ) ) ( (lv_sections_8_0= ruleViewSection ) )* '}' ) ;
public final EObject ruleTableView() throws RecognitionException {
    EObject current = null;
    Token lv_name_1_0 = null;
    EObject lv_content_3_0 = null;
    EObject lv_title_7_0 = null;
    EObject lv_sections_8_0 = null;
    EObject temp = null;
    setCurrentLookahead();
    resetLookahead();
    try {
        // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2167:6: ( ( 'tableview' ( (lv_name_1_0= RULE_ID ) ) ( '(' ( (lv_content_3_0= ruleParameter ) ) ')' )? '{' 'title=' ( (lv_title_7_0= ruleScalarExpression ) ) ( (lv_sections_8_0= ruleViewSection ) )* '}' ) )
        // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2168:1: ( 'tableview' ( (lv_name_1_0= RULE_ID ) ) ( '(' ( (lv_content_3_0= ruleParameter ) ) ')' )? '{' 'title=' ( (lv_title_7_0= ruleScalarExpression ) ) ( (lv_sections_8_0= ruleViewSection ) )* '}' )
        {
            // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2168:1: ( 'tableview' ( (lv_name_1_0= RULE_ID ) ) ( '(' ( (lv_content_3_0= ruleParameter ) ) ')' )? '{' 'title=' ( (lv_title_7_0= ruleScalarExpression ) ) ( (lv_sections_8_0= ruleViewSection ) )* '}' )
            // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2168:3: 'tableview' ( (lv_name_1_0= RULE_ID ) ) ( '(' ( (lv_content_3_0= ruleParameter ) ) ')' )? '{' 'title=' ( (lv_title_7_0= ruleScalarExpression ) ) ( (lv_sections_8_0= ruleViewSection ) )* '}'
            {
                match(input, 43, FOLLOW_43_in_ruleTableView3996);
                createLeafNode(grammarAccess.getTableViewAccess().getTableviewKeyword_0(), null);
                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2172:1: ( (lv_name_1_0= RULE_ID ) )
                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2173:1: (lv_name_1_0= RULE_ID )
                {
                    // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2173:1: (lv_name_1_0= RULE_ID )
                    // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2174:3: lv_name_1_0= RULE_ID
                    {
                        lv_name_1_0 = (Token) input.LT(1);
                        match(input, RULE_ID, FOLLOW_RULE_ID_in_ruleTableView4013);
                        createLeafNode(grammarAccess.getTableViewAccess().getNameIDTerminalRuleCall_1_0(), "name");
                        if (current == null) {
                            current = factory.create(grammarAccess.getTableViewRule().getType().getClassifier());
                            associateNodeWithAstElement(currentNode, current);
                        }
                        try {
                            set(current, "name", lv_name_1_0, "ID", lastConsumedNode);
                        } catch (ValueConverterException vce) {
                            handleValueConverterException(vce);
                        }
                    }
                }
                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2196:2: ( '(' ( (lv_content_3_0= ruleParameter ) ) ')' )?
                int alt26 = 2;
                int LA26_0 = input.LA(1);
                if ((LA26_0 == 13)) {
                    alt26 = 1;
                }
                switch(alt26) {
                    case 1:
                        // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2196:4: '(' ( (lv_content_3_0= ruleParameter ) ) ')'
                        {
                            match(input, 13, FOLLOW_13_in_ruleTableView4029);
                            createLeafNode(grammarAccess.getTableViewAccess().getLeftParenthesisKeyword_2_0(), null);
                            // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2200:1: ( (lv_content_3_0= ruleParameter ) )
                            // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2201:1: (lv_content_3_0= ruleParameter )
                            {
                                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2201:1: (lv_content_3_0= ruleParameter )
                                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2202:3: lv_content_3_0= ruleParameter
                                {
                                    currentNode = createCompositeNode(grammarAccess.getTableViewAccess().getContentParameterParserRuleCall_2_1_0(), currentNode);
                                    pushFollow(FOLLOW_ruleParameter_in_ruleTableView4050);
                                    lv_content_3_0 = ruleParameter();
                                    _fsp--;
                                    if (current == null) {
                                        current = factory.create(grammarAccess.getTableViewRule().getType().getClassifier());
                                        associateNodeWithAstElement(currentNode.getParent(), current);
                                    }
                                    try {
                                        set(current, "content", lv_content_3_0, "Parameter", currentNode);
                                    } catch (ValueConverterException vce) {
                                        handleValueConverterException(vce);
                                    }
                                    currentNode = currentNode.getParent();
                                }
                            }
                            match(input, 14, FOLLOW_14_in_ruleTableView4060);
                            createLeafNode(grammarAccess.getTableViewAccess().getRightParenthesisKeyword_2_2(), null);
                        }
                        break;
                }
                match(input, 23, FOLLOW_23_in_ruleTableView4072);
                createLeafNode(grammarAccess.getTableViewAccess().getLeftCurlyBracketKeyword_3(), null);
                match(input, 27, FOLLOW_27_in_ruleTableView4082);
                createLeafNode(grammarAccess.getTableViewAccess().getTitleKeyword_4(), null);
                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2236:1: ( (lv_title_7_0= ruleScalarExpression ) )
                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2237:1: (lv_title_7_0= ruleScalarExpression )
                {
                    // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2237:1: (lv_title_7_0= ruleScalarExpression )
                    // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2238:3: lv_title_7_0= ruleScalarExpression
                    {
                        currentNode = createCompositeNode(grammarAccess.getTableViewAccess().getTitleScalarExpressionParserRuleCall_5_0(), currentNode);
                        pushFollow(FOLLOW_ruleScalarExpression_in_ruleTableView4103);
                        lv_title_7_0 = ruleScalarExpression();
                        _fsp--;
                        if (current == null) {
                            current = factory.create(grammarAccess.getTableViewRule().getType().getClassifier());
                            associateNodeWithAstElement(currentNode.getParent(), current);
                        }
                        try {
                            set(current, "title", lv_title_7_0, "ScalarExpression", currentNode);
                        } catch (ValueConverterException vce) {
                            handleValueConverterException(vce);
                        }
                        currentNode = currentNode.getParent();
                    }
                }
                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2260:2: ( (lv_sections_8_0= ruleViewSection ) )*
                loop27: do {
                    int alt27 = 2;
                    int LA27_0 = input.LA(1);
                    if ((LA27_0 == 51)) {
                        alt27 = 1;
                    }
                    switch(alt27) {
                        case 1:
                            // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2261:1: (lv_sections_8_0= ruleViewSection )
                            {
                                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2261:1: (lv_sections_8_0= ruleViewSection )
                                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2262:3: lv_sections_8_0= ruleViewSection
                                {
                                    currentNode = createCompositeNode(grammarAccess.getTableViewAccess().getSectionsViewSectionParserRuleCall_6_0(), currentNode);
                                    pushFollow(FOLLOW_ruleViewSection_in_ruleTableView4124);
                                    lv_sections_8_0 = ruleViewSection();
                                    _fsp--;
                                    if (current == null) {
                                        current = factory.create(grammarAccess.getTableViewRule().getType().getClassifier());
                                        associateNodeWithAstElement(currentNode.getParent(), current);
                                    }
                                    try {
                                        add(current, "sections", lv_sections_8_0, "ViewSection", currentNode);
                                    } catch (ValueConverterException vce) {
                                        handleValueConverterException(vce);
                                    }
                                    currentNode = currentNode.getParent();
                                }
                            }
                            break;
                        default:
                            break loop27;
                    }
                } while (true);
                match(input, 25, FOLLOW_25_in_ruleTableView4135);
                createLeafNode(grammarAccess.getTableViewAccess().getRightCurlyBracketKeyword_7(), null);
            }
        }
        resetLookahead();
        lastConsumedNode = currentNode;
    } 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) ValueConverterException(org.eclipse.xtext.conversion.ValueConverterException)

Example 13 with ValueConverterException

use of org.eclipse.xtext.conversion.ValueConverterException in project applause by applause.

the class InternalApplauseDslParser method ruleSectionCell.

// $ANTLR end entryRuleSectionCell
// $ANTLR start ruleSectionCell
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2828:1: ruleSectionCell returns [EObject current=null] : ( 'cell' ( (lv_type_1_0= ruleCellType ) ) ( 'foreach' ( (lv_iterator_3_0= ruleCollectionIterator ) ) )? '{' ( 'text=' ( (lv_text_6_0= ruleScalarExpression ) ) )? ( 'details=' ( (lv_details_8_0= ruleScalarExpression ) ) )? ( 'image=' ( (lv_image_10_0= ruleScalarExpression ) ) )? ( 'query=' ( (lv_query_12_0= ruleScalarExpression ) ) )? ( 'action=' ( (lv_action_14_0= ruleViewAction ) ) )? '}' ) ;
public final EObject ruleSectionCell() throws RecognitionException {
    EObject current = null;
    Enumerator lv_type_1_0 = null;
    EObject lv_iterator_3_0 = null;
    EObject lv_text_6_0 = null;
    EObject lv_details_8_0 = null;
    EObject lv_image_10_0 = null;
    EObject lv_query_12_0 = null;
    EObject lv_action_14_0 = null;
    EObject temp = null;
    setCurrentLookahead();
    resetLookahead();
    try {
        // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2833:6: ( ( 'cell' ( (lv_type_1_0= ruleCellType ) ) ( 'foreach' ( (lv_iterator_3_0= ruleCollectionIterator ) ) )? '{' ( 'text=' ( (lv_text_6_0= ruleScalarExpression ) ) )? ( 'details=' ( (lv_details_8_0= ruleScalarExpression ) ) )? ( 'image=' ( (lv_image_10_0= ruleScalarExpression ) ) )? ( 'query=' ( (lv_query_12_0= ruleScalarExpression ) ) )? ( 'action=' ( (lv_action_14_0= ruleViewAction ) ) )? '}' ) )
        // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2834:1: ( 'cell' ( (lv_type_1_0= ruleCellType ) ) ( 'foreach' ( (lv_iterator_3_0= ruleCollectionIterator ) ) )? '{' ( 'text=' ( (lv_text_6_0= ruleScalarExpression ) ) )? ( 'details=' ( (lv_details_8_0= ruleScalarExpression ) ) )? ( 'image=' ( (lv_image_10_0= ruleScalarExpression ) ) )? ( 'query=' ( (lv_query_12_0= ruleScalarExpression ) ) )? ( 'action=' ( (lv_action_14_0= ruleViewAction ) ) )? '}' )
        {
            // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2834:1: ( 'cell' ( (lv_type_1_0= ruleCellType ) ) ( 'foreach' ( (lv_iterator_3_0= ruleCollectionIterator ) ) )? '{' ( 'text=' ( (lv_text_6_0= ruleScalarExpression ) ) )? ( 'details=' ( (lv_details_8_0= ruleScalarExpression ) ) )? ( 'image=' ( (lv_image_10_0= ruleScalarExpression ) ) )? ( 'query=' ( (lv_query_12_0= ruleScalarExpression ) ) )? ( 'action=' ( (lv_action_14_0= ruleViewAction ) ) )? '}' )
            // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2834:3: 'cell' ( (lv_type_1_0= ruleCellType ) ) ( 'foreach' ( (lv_iterator_3_0= ruleCollectionIterator ) ) )? '{' ( 'text=' ( (lv_text_6_0= ruleScalarExpression ) ) )? ( 'details=' ( (lv_details_8_0= ruleScalarExpression ) ) )? ( 'image=' ( (lv_image_10_0= ruleScalarExpression ) ) )? ( 'query=' ( (lv_query_12_0= ruleScalarExpression ) ) )? ( 'action=' ( (lv_action_14_0= ruleViewAction ) ) )? '}'
            {
                match(input, 52, FOLLOW_52_in_ruleSectionCell5040);
                createLeafNode(grammarAccess.getSectionCellAccess().getCellKeyword_0(), null);
                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2838:1: ( (lv_type_1_0= ruleCellType ) )
                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2839:1: (lv_type_1_0= ruleCellType )
                {
                    // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2839:1: (lv_type_1_0= ruleCellType )
                    // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2840:3: lv_type_1_0= ruleCellType
                    {
                        currentNode = createCompositeNode(grammarAccess.getSectionCellAccess().getTypeCellTypeEnumRuleCall_1_0(), currentNode);
                        pushFollow(FOLLOW_ruleCellType_in_ruleSectionCell5061);
                        lv_type_1_0 = ruleCellType();
                        _fsp--;
                        if (current == null) {
                            current = factory.create(grammarAccess.getSectionCellRule().getType().getClassifier());
                            associateNodeWithAstElement(currentNode.getParent(), current);
                        }
                        try {
                            set(current, "type", lv_type_1_0, "CellType", currentNode);
                        } catch (ValueConverterException vce) {
                            handleValueConverterException(vce);
                        }
                        currentNode = currentNode.getParent();
                    }
                }
                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2862:2: ( 'foreach' ( (lv_iterator_3_0= ruleCollectionIterator ) ) )?
                int alt38 = 2;
                int LA38_0 = input.LA(1);
                if ((LA38_0 == 53)) {
                    alt38 = 1;
                }
                switch(alt38) {
                    case 1:
                        // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2862:4: 'foreach' ( (lv_iterator_3_0= ruleCollectionIterator ) )
                        {
                            match(input, 53, FOLLOW_53_in_ruleSectionCell5072);
                            createLeafNode(grammarAccess.getSectionCellAccess().getForeachKeyword_2_0(), null);
                            // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2866:1: ( (lv_iterator_3_0= ruleCollectionIterator ) )
                            // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2867:1: (lv_iterator_3_0= ruleCollectionIterator )
                            {
                                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2867:1: (lv_iterator_3_0= ruleCollectionIterator )
                                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2868:3: lv_iterator_3_0= ruleCollectionIterator
                                {
                                    currentNode = createCompositeNode(grammarAccess.getSectionCellAccess().getIteratorCollectionIteratorParserRuleCall_2_1_0(), currentNode);
                                    pushFollow(FOLLOW_ruleCollectionIterator_in_ruleSectionCell5093);
                                    lv_iterator_3_0 = ruleCollectionIterator();
                                    _fsp--;
                                    if (current == null) {
                                        current = factory.create(grammarAccess.getSectionCellRule().getType().getClassifier());
                                        associateNodeWithAstElement(currentNode.getParent(), current);
                                    }
                                    try {
                                        set(current, "iterator", lv_iterator_3_0, "CollectionIterator", currentNode);
                                    } catch (ValueConverterException vce) {
                                        handleValueConverterException(vce);
                                    }
                                    currentNode = currentNode.getParent();
                                }
                            }
                        }
                        break;
                }
                match(input, 23, FOLLOW_23_in_ruleSectionCell5105);
                createLeafNode(grammarAccess.getSectionCellAccess().getLeftCurlyBracketKeyword_3(), null);
                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2894:1: ( 'text=' ( (lv_text_6_0= ruleScalarExpression ) ) )?
                int alt39 = 2;
                int LA39_0 = input.LA(1);
                if ((LA39_0 == 54)) {
                    alt39 = 1;
                }
                switch(alt39) {
                    case 1:
                        // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2894:3: 'text=' ( (lv_text_6_0= ruleScalarExpression ) )
                        {
                            match(input, 54, FOLLOW_54_in_ruleSectionCell5116);
                            createLeafNode(grammarAccess.getSectionCellAccess().getTextKeyword_4_0(), null);
                            // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2898:1: ( (lv_text_6_0= ruleScalarExpression ) )
                            // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2899:1: (lv_text_6_0= ruleScalarExpression )
                            {
                                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2899:1: (lv_text_6_0= ruleScalarExpression )
                                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2900:3: lv_text_6_0= ruleScalarExpression
                                {
                                    currentNode = createCompositeNode(grammarAccess.getSectionCellAccess().getTextScalarExpressionParserRuleCall_4_1_0(), currentNode);
                                    pushFollow(FOLLOW_ruleScalarExpression_in_ruleSectionCell5137);
                                    lv_text_6_0 = ruleScalarExpression();
                                    _fsp--;
                                    if (current == null) {
                                        current = factory.create(grammarAccess.getSectionCellRule().getType().getClassifier());
                                        associateNodeWithAstElement(currentNode.getParent(), current);
                                    }
                                    try {
                                        set(current, "text", lv_text_6_0, "ScalarExpression", currentNode);
                                    } catch (ValueConverterException vce) {
                                        handleValueConverterException(vce);
                                    }
                                    currentNode = currentNode.getParent();
                                }
                            }
                        }
                        break;
                }
                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2922:4: ( 'details=' ( (lv_details_8_0= ruleScalarExpression ) ) )?
                int alt40 = 2;
                int LA40_0 = input.LA(1);
                if ((LA40_0 == 49)) {
                    alt40 = 1;
                }
                switch(alt40) {
                    case 1:
                        // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2922:6: 'details=' ( (lv_details_8_0= ruleScalarExpression ) )
                        {
                            match(input, 49, FOLLOW_49_in_ruleSectionCell5150);
                            createLeafNode(grammarAccess.getSectionCellAccess().getDetailsKeyword_5_0(), null);
                            // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2926:1: ( (lv_details_8_0= ruleScalarExpression ) )
                            // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2927:1: (lv_details_8_0= ruleScalarExpression )
                            {
                                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2927:1: (lv_details_8_0= ruleScalarExpression )
                                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2928:3: lv_details_8_0= ruleScalarExpression
                                {
                                    currentNode = createCompositeNode(grammarAccess.getSectionCellAccess().getDetailsScalarExpressionParserRuleCall_5_1_0(), currentNode);
                                    pushFollow(FOLLOW_ruleScalarExpression_in_ruleSectionCell5171);
                                    lv_details_8_0 = ruleScalarExpression();
                                    _fsp--;
                                    if (current == null) {
                                        current = factory.create(grammarAccess.getSectionCellRule().getType().getClassifier());
                                        associateNodeWithAstElement(currentNode.getParent(), current);
                                    }
                                    try {
                                        set(current, "details", lv_details_8_0, "ScalarExpression", currentNode);
                                    } catch (ValueConverterException vce) {
                                        handleValueConverterException(vce);
                                    }
                                    currentNode = currentNode.getParent();
                                }
                            }
                        }
                        break;
                }
                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2950:4: ( 'image=' ( (lv_image_10_0= ruleScalarExpression ) ) )?
                int alt41 = 2;
                int LA41_0 = input.LA(1);
                if ((LA41_0 == 50)) {
                    alt41 = 1;
                }
                switch(alt41) {
                    case 1:
                        // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2950:6: 'image=' ( (lv_image_10_0= ruleScalarExpression ) )
                        {
                            match(input, 50, FOLLOW_50_in_ruleSectionCell5184);
                            createLeafNode(grammarAccess.getSectionCellAccess().getImageKeyword_6_0(), null);
                            // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2954:1: ( (lv_image_10_0= ruleScalarExpression ) )
                            // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2955:1: (lv_image_10_0= ruleScalarExpression )
                            {
                                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2955:1: (lv_image_10_0= ruleScalarExpression )
                                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2956:3: lv_image_10_0= ruleScalarExpression
                                {
                                    currentNode = createCompositeNode(grammarAccess.getSectionCellAccess().getImageScalarExpressionParserRuleCall_6_1_0(), currentNode);
                                    pushFollow(FOLLOW_ruleScalarExpression_in_ruleSectionCell5205);
                                    lv_image_10_0 = ruleScalarExpression();
                                    _fsp--;
                                    if (current == null) {
                                        current = factory.create(grammarAccess.getSectionCellRule().getType().getClassifier());
                                        associateNodeWithAstElement(currentNode.getParent(), current);
                                    }
                                    try {
                                        set(current, "image", lv_image_10_0, "ScalarExpression", currentNode);
                                    } catch (ValueConverterException vce) {
                                        handleValueConverterException(vce);
                                    }
                                    currentNode = currentNode.getParent();
                                }
                            }
                        }
                        break;
                }
                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2978:4: ( 'query=' ( (lv_query_12_0= ruleScalarExpression ) ) )?
                int alt42 = 2;
                int LA42_0 = input.LA(1);
                if ((LA42_0 == 55)) {
                    alt42 = 1;
                }
                switch(alt42) {
                    case 1:
                        // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2978:6: 'query=' ( (lv_query_12_0= ruleScalarExpression ) )
                        {
                            match(input, 55, FOLLOW_55_in_ruleSectionCell5218);
                            createLeafNode(grammarAccess.getSectionCellAccess().getQueryKeyword_7_0(), null);
                            // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2982:1: ( (lv_query_12_0= ruleScalarExpression ) )
                            // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2983:1: (lv_query_12_0= ruleScalarExpression )
                            {
                                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2983:1: (lv_query_12_0= ruleScalarExpression )
                                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2984:3: lv_query_12_0= ruleScalarExpression
                                {
                                    currentNode = createCompositeNode(grammarAccess.getSectionCellAccess().getQueryScalarExpressionParserRuleCall_7_1_0(), currentNode);
                                    pushFollow(FOLLOW_ruleScalarExpression_in_ruleSectionCell5239);
                                    lv_query_12_0 = ruleScalarExpression();
                                    _fsp--;
                                    if (current == null) {
                                        current = factory.create(grammarAccess.getSectionCellRule().getType().getClassifier());
                                        associateNodeWithAstElement(currentNode.getParent(), current);
                                    }
                                    try {
                                        set(current, "query", lv_query_12_0, "ScalarExpression", currentNode);
                                    } catch (ValueConverterException vce) {
                                        handleValueConverterException(vce);
                                    }
                                    currentNode = currentNode.getParent();
                                }
                            }
                        }
                        break;
                }
                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:3006:4: ( 'action=' ( (lv_action_14_0= ruleViewAction ) ) )?
                int alt43 = 2;
                int LA43_0 = input.LA(1);
                if ((LA43_0 == 56)) {
                    alt43 = 1;
                }
                switch(alt43) {
                    case 1:
                        // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:3006:6: 'action=' ( (lv_action_14_0= ruleViewAction ) )
                        {
                            match(input, 56, FOLLOW_56_in_ruleSectionCell5252);
                            createLeafNode(grammarAccess.getSectionCellAccess().getActionKeyword_8_0(), null);
                            // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:3010:1: ( (lv_action_14_0= ruleViewAction ) )
                            // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:3011:1: (lv_action_14_0= ruleViewAction )
                            {
                                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:3011:1: (lv_action_14_0= ruleViewAction )
                                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:3012:3: lv_action_14_0= ruleViewAction
                                {
                                    currentNode = createCompositeNode(grammarAccess.getSectionCellAccess().getActionViewActionParserRuleCall_8_1_0(), currentNode);
                                    pushFollow(FOLLOW_ruleViewAction_in_ruleSectionCell5273);
                                    lv_action_14_0 = ruleViewAction();
                                    _fsp--;
                                    if (current == null) {
                                        current = factory.create(grammarAccess.getSectionCellRule().getType().getClassifier());
                                        associateNodeWithAstElement(currentNode.getParent(), current);
                                    }
                                    try {
                                        set(current, "action", lv_action_14_0, "ViewAction", currentNode);
                                    } catch (ValueConverterException vce) {
                                        handleValueConverterException(vce);
                                    }
                                    currentNode = currentNode.getParent();
                                }
                            }
                        }
                        break;
                }
                match(input, 25, FOLLOW_25_in_ruleSectionCell5285);
                createLeafNode(grammarAccess.getSectionCellAccess().getRightCurlyBracketKeyword_9(), null);
            }
        }
        resetLookahead();
        lastConsumedNode = currentNode;
    } catch (RecognitionException re) {
        recover(input, re);
        appendSkippedTokens();
    } finally {
    }
    return current;
}
Also used : Enumerator(org.eclipse.emf.common.util.Enumerator) EObject(org.eclipse.emf.ecore.EObject) ValueConverterException(org.eclipse.xtext.conversion.ValueConverterException)

Example 14 with ValueConverterException

use of org.eclipse.xtext.conversion.ValueConverterException in project applause by applause.

the class InternalApplauseDslParser method ruleEntity.

// $ANTLR end entryRuleEntity
// $ANTLR start ruleEntity
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1561:1: ruleEntity returns [EObject current=null] : ( 'entity' ( (lv_name_1_0= RULE_ID ) ) ( 'extends' ( ( RULE_ID ) ) )? '{' ( (lv_properties_5_0= ruleProperty ) )* '}' ) ;
public final EObject ruleEntity() throws RecognitionException {
    EObject current = null;
    Token lv_name_1_0 = null;
    EObject lv_properties_5_0 = null;
    EObject temp = null;
    setCurrentLookahead();
    resetLookahead();
    try {
        // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1566:6: ( ( 'entity' ( (lv_name_1_0= RULE_ID ) ) ( 'extends' ( ( RULE_ID ) ) )? '{' ( (lv_properties_5_0= ruleProperty ) )* '}' ) )
        // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1567:1: ( 'entity' ( (lv_name_1_0= RULE_ID ) ) ( 'extends' ( ( RULE_ID ) ) )? '{' ( (lv_properties_5_0= ruleProperty ) )* '}' )
        {
            // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1567:1: ( 'entity' ( (lv_name_1_0= RULE_ID ) ) ( 'extends' ( ( RULE_ID ) ) )? '{' ( (lv_properties_5_0= ruleProperty ) )* '}' )
            // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1567:3: 'entity' ( (lv_name_1_0= RULE_ID ) ) ( 'extends' ( ( RULE_ID ) ) )? '{' ( (lv_properties_5_0= ruleProperty ) )* '}'
            {
                match(input, 33, FOLLOW_33_in_ruleEntity2928);
                createLeafNode(grammarAccess.getEntityAccess().getEntityKeyword_0(), null);
                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1571:1: ( (lv_name_1_0= RULE_ID ) )
                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1572:1: (lv_name_1_0= RULE_ID )
                {
                    // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1572:1: (lv_name_1_0= RULE_ID )
                    // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1573:3: lv_name_1_0= RULE_ID
                    {
                        lv_name_1_0 = (Token) input.LT(1);
                        match(input, RULE_ID, FOLLOW_RULE_ID_in_ruleEntity2945);
                        createLeafNode(grammarAccess.getEntityAccess().getNameIDTerminalRuleCall_1_0(), "name");
                        if (current == null) {
                            current = factory.create(grammarAccess.getEntityRule().getType().getClassifier());
                            associateNodeWithAstElement(currentNode, current);
                        }
                        try {
                            set(current, "name", lv_name_1_0, "ID", lastConsumedNode);
                        } catch (ValueConverterException vce) {
                            handleValueConverterException(vce);
                        }
                    }
                }
                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1595:2: ( 'extends' ( ( RULE_ID ) ) )?
                int alt16 = 2;
                int LA16_0 = input.LA(1);
                if ((LA16_0 == 34)) {
                    alt16 = 1;
                }
                switch(alt16) {
                    case 1:
                        // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1595:4: 'extends' ( ( RULE_ID ) )
                        {
                            match(input, 34, FOLLOW_34_in_ruleEntity2961);
                            createLeafNode(grammarAccess.getEntityAccess().getExtendsKeyword_2_0(), null);
                            // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1599:1: ( ( RULE_ID ) )
                            // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1600:1: ( RULE_ID )
                            {
                                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1600:1: ( RULE_ID )
                                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1601:3: RULE_ID
                                {
                                    if (current == null) {
                                        current = factory.create(grammarAccess.getEntityRule().getType().getClassifier());
                                        associateNodeWithAstElement(currentNode, current);
                                    }
                                    match(input, RULE_ID, FOLLOW_RULE_ID_in_ruleEntity2979);
                                    createLeafNode(grammarAccess.getEntityAccess().getExtendsEntityCrossReference_2_1_0(), "extends");
                                }
                            }
                        }
                        break;
                }
                match(input, 23, FOLLOW_23_in_ruleEntity2991);
                createLeafNode(grammarAccess.getEntityAccess().getLeftCurlyBracketKeyword_3(), null);
                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1617:1: ( (lv_properties_5_0= ruleProperty ) )*
                loop17: do {
                    int alt17 = 2;
                    int LA17_0 = input.LA(1);
                    if ((LA17_0 == RULE_ID || LA17_0 == 35)) {
                        alt17 = 1;
                    }
                    switch(alt17) {
                        case 1:
                            // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1618:1: (lv_properties_5_0= ruleProperty )
                            {
                                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1618:1: (lv_properties_5_0= ruleProperty )
                                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1619:3: lv_properties_5_0= ruleProperty
                                {
                                    currentNode = createCompositeNode(grammarAccess.getEntityAccess().getPropertiesPropertyParserRuleCall_4_0(), currentNode);
                                    pushFollow(FOLLOW_ruleProperty_in_ruleEntity3012);
                                    lv_properties_5_0 = ruleProperty();
                                    _fsp--;
                                    if (current == null) {
                                        current = factory.create(grammarAccess.getEntityRule().getType().getClassifier());
                                        associateNodeWithAstElement(currentNode.getParent(), current);
                                    }
                                    try {
                                        add(current, "properties", lv_properties_5_0, "Property", currentNode);
                                    } catch (ValueConverterException vce) {
                                        handleValueConverterException(vce);
                                    }
                                    currentNode = currentNode.getParent();
                                }
                            }
                            break;
                        default:
                            break loop17;
                    }
                } while (true);
                match(input, 25, FOLLOW_25_in_ruleEntity3023);
                createLeafNode(grammarAccess.getEntityAccess().getRightCurlyBracketKeyword_5(), null);
            }
        }
        resetLookahead();
        lastConsumedNode = currentNode;
    } 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) ValueConverterException(org.eclipse.xtext.conversion.ValueConverterException)

Example 15 with ValueConverterException

use of org.eclipse.xtext.conversion.ValueConverterException in project applause by applause.

the class InternalApplauseDslParser method ruleConstant.

// $ANTLR end entryRuleConstant
// $ANTLR start ruleConstant
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1354:1: ruleConstant returns [EObject current=null] : ( () 'const' ( (lv_name_2_0= RULE_ID ) ) ( (lv_value_3_0= ruleScalarExpression ) ) ) ;
public final EObject ruleConstant() throws RecognitionException {
    EObject current = null;
    Token lv_name_2_0 = null;
    EObject lv_value_3_0 = null;
    EObject temp = null;
    setCurrentLookahead();
    resetLookahead();
    try {
        // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1359:6: ( ( () 'const' ( (lv_name_2_0= RULE_ID ) ) ( (lv_value_3_0= ruleScalarExpression ) ) ) )
        // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1360:1: ( () 'const' ( (lv_name_2_0= RULE_ID ) ) ( (lv_value_3_0= ruleScalarExpression ) ) )
        {
            // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1360:1: ( () 'const' ( (lv_name_2_0= RULE_ID ) ) ( (lv_value_3_0= ruleScalarExpression ) ) )
            // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1360:2: () 'const' ( (lv_name_2_0= RULE_ID ) ) ( (lv_value_3_0= ruleScalarExpression ) )
            {
                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1360:2: ()
                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1361:5:
                {
                    temp = factory.create(grammarAccess.getConstantAccess().getConstantAction_0().getType().getClassifier());
                    current = temp;
                    temp = null;
                    CompositeNode newNode = createCompositeNode(grammarAccess.getConstantAccess().getConstantAction_0(), currentNode.getParent());
                    newNode.getChildren().add(currentNode);
                    moveLookaheadInfo(currentNode, newNode);
                    currentNode = newNode;
                    associateNodeWithAstElement(currentNode, current);
                }
                match(input, 30, FOLLOW_30_in_ruleConstant2550);
                createLeafNode(grammarAccess.getConstantAccess().getConstKeyword_1(), null);
                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1375:1: ( (lv_name_2_0= RULE_ID ) )
                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1376:1: (lv_name_2_0= RULE_ID )
                {
                    // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1376:1: (lv_name_2_0= RULE_ID )
                    // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1377:3: lv_name_2_0= RULE_ID
                    {
                        lv_name_2_0 = (Token) input.LT(1);
                        match(input, RULE_ID, FOLLOW_RULE_ID_in_ruleConstant2567);
                        createLeafNode(grammarAccess.getConstantAccess().getNameIDTerminalRuleCall_2_0(), "name");
                        if (current == null) {
                            current = factory.create(grammarAccess.getConstantRule().getType().getClassifier());
                            associateNodeWithAstElement(currentNode, current);
                        }
                        try {
                            set(current, "name", lv_name_2_0, "ID", lastConsumedNode);
                        } catch (ValueConverterException vce) {
                            handleValueConverterException(vce);
                        }
                    }
                }
                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1399:2: ( (lv_value_3_0= ruleScalarExpression ) )
                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1400:1: (lv_value_3_0= ruleScalarExpression )
                {
                    // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1400:1: (lv_value_3_0= ruleScalarExpression )
                    // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1401:3: lv_value_3_0= ruleScalarExpression
                    {
                        currentNode = createCompositeNode(grammarAccess.getConstantAccess().getValueScalarExpressionParserRuleCall_3_0(), currentNode);
                        pushFollow(FOLLOW_ruleScalarExpression_in_ruleConstant2593);
                        lv_value_3_0 = ruleScalarExpression();
                        _fsp--;
                        if (current == null) {
                            current = factory.create(grammarAccess.getConstantRule().getType().getClassifier());
                            associateNodeWithAstElement(currentNode.getParent(), current);
                        }
                        try {
                            set(current, "value", lv_value_3_0, "ScalarExpression", currentNode);
                        } catch (ValueConverterException vce) {
                            handleValueConverterException(vce);
                        }
                        currentNode = currentNode.getParent();
                    }
                }
            }
        }
        resetLookahead();
        lastConsumedNode = currentNode;
    } 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) ValueConverterException(org.eclipse.xtext.conversion.ValueConverterException)

Aggregations

ValueConverterException (org.eclipse.xtext.conversion.ValueConverterException)54 EObject (org.eclipse.emf.ecore.EObject)37 AntlrDatatypeRuleToken (org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken)13 ValueConverterWithValueException (org.eclipse.xtext.conversion.ValueConverterWithValueException)4 Test (org.junit.Test)4 URI (org.eclipse.emf.common.util.URI)3 EStructuralFeature (org.eclipse.emf.ecore.EStructuralFeature)3 Resource (org.eclipse.emf.ecore.resource.Resource)3 ClasspathUriResolutionException (org.eclipse.xtext.resource.ClasspathUriResolutionException)3 IEObjectDescription (org.eclipse.xtext.resource.IEObjectDescription)3 XtextResource (org.eclipse.xtext.resource.XtextResource)3 InvocationTargetException (java.lang.reflect.InvocationTargetException)2 FailedPredicateException (org.antlr.runtime.FailedPredicateException)2 MismatchedTokenException (org.antlr.runtime.MismatchedTokenException)2 MissingTokenException (org.antlr.runtime.MissingTokenException)2 RecognitionException (org.antlr.runtime.RecognitionException)2 UnwantedTokenException (org.antlr.runtime.UnwantedTokenException)2 WrappedException (org.eclipse.emf.common.util.WrappedException)2 EClass (org.eclipse.emf.ecore.EClass)2 EReference (org.eclipse.emf.ecore.EReference)2