use of org.eclipse.emf.ecore.EObject in project applause by applause.
the class InternalApplauseDslParser method ruleScreen.
// $ANTLR end "entryRuleScreen"
// $ANTLR start "ruleScreen"
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1436:1: ruleScreen returns [EObject current=null] : (otherlv_0= 'screen' ( (lv_kind_1_0= ruleScreenKind ) ) ( (lv_name_2_0= RULE_ID ) ) (otherlv_3= '(' ( (lv_inputParameter_4_0= ruleParameter ) ) otherlv_5= ')' )? otherlv_6= '{' (otherlv_7= 'title' otherlv_8= '=' ( (lv_title_9_0= RULE_STRING ) ) )? (otherlv_10= 'datasource' otherlv_11= '=' ( (lv_datasource_12_0= ruleDataSourceCall ) ) )? otherlv_13= 'sections' otherlv_14= '{' ( (lv_sections_15_0= ruleScreenSection ) )* otherlv_16= '}' (otherlv_17= 'actions' otherlv_18= '{' ( (lv_actions_19_0= ruleUIAction ) )* otherlv_20= '}' )? otherlv_21= '}' ) ;
public final EObject ruleScreen() throws RecognitionException {
EObject current = null;
Token otherlv_0 = null;
Token lv_name_2_0 = null;
Token otherlv_3 = null;
Token otherlv_5 = null;
Token otherlv_6 = null;
Token otherlv_7 = null;
Token otherlv_8 = null;
Token lv_title_9_0 = null;
Token otherlv_10 = null;
Token otherlv_11 = null;
Token otherlv_13 = null;
Token otherlv_14 = null;
Token otherlv_16 = null;
Token otherlv_17 = null;
Token otherlv_18 = null;
Token otherlv_20 = null;
Token otherlv_21 = null;
Enumerator lv_kind_1_0 = null;
EObject lv_inputParameter_4_0 = null;
EObject lv_datasource_12_0 = null;
EObject lv_sections_15_0 = null;
EObject lv_actions_19_0 = null;
enterRule();
try {
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1439:28: ( (otherlv_0= 'screen' ( (lv_kind_1_0= ruleScreenKind ) ) ( (lv_name_2_0= RULE_ID ) ) (otherlv_3= '(' ( (lv_inputParameter_4_0= ruleParameter ) ) otherlv_5= ')' )? otherlv_6= '{' (otherlv_7= 'title' otherlv_8= '=' ( (lv_title_9_0= RULE_STRING ) ) )? (otherlv_10= 'datasource' otherlv_11= '=' ( (lv_datasource_12_0= ruleDataSourceCall ) ) )? otherlv_13= 'sections' otherlv_14= '{' ( (lv_sections_15_0= ruleScreenSection ) )* otherlv_16= '}' (otherlv_17= 'actions' otherlv_18= '{' ( (lv_actions_19_0= ruleUIAction ) )* otherlv_20= '}' )? otherlv_21= '}' ) )
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1440:1: (otherlv_0= 'screen' ( (lv_kind_1_0= ruleScreenKind ) ) ( (lv_name_2_0= RULE_ID ) ) (otherlv_3= '(' ( (lv_inputParameter_4_0= ruleParameter ) ) otherlv_5= ')' )? otherlv_6= '{' (otherlv_7= 'title' otherlv_8= '=' ( (lv_title_9_0= RULE_STRING ) ) )? (otherlv_10= 'datasource' otherlv_11= '=' ( (lv_datasource_12_0= ruleDataSourceCall ) ) )? otherlv_13= 'sections' otherlv_14= '{' ( (lv_sections_15_0= ruleScreenSection ) )* otherlv_16= '}' (otherlv_17= 'actions' otherlv_18= '{' ( (lv_actions_19_0= ruleUIAction ) )* otherlv_20= '}' )? otherlv_21= '}' )
{
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1440:1: (otherlv_0= 'screen' ( (lv_kind_1_0= ruleScreenKind ) ) ( (lv_name_2_0= RULE_ID ) ) (otherlv_3= '(' ( (lv_inputParameter_4_0= ruleParameter ) ) otherlv_5= ')' )? otherlv_6= '{' (otherlv_7= 'title' otherlv_8= '=' ( (lv_title_9_0= RULE_STRING ) ) )? (otherlv_10= 'datasource' otherlv_11= '=' ( (lv_datasource_12_0= ruleDataSourceCall ) ) )? otherlv_13= 'sections' otherlv_14= '{' ( (lv_sections_15_0= ruleScreenSection ) )* otherlv_16= '}' (otherlv_17= 'actions' otherlv_18= '{' ( (lv_actions_19_0= ruleUIAction ) )* otherlv_20= '}' )? otherlv_21= '}' )
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1440:3: otherlv_0= 'screen' ( (lv_kind_1_0= ruleScreenKind ) ) ( (lv_name_2_0= RULE_ID ) ) (otherlv_3= '(' ( (lv_inputParameter_4_0= ruleParameter ) ) otherlv_5= ')' )? otherlv_6= '{' (otherlv_7= 'title' otherlv_8= '=' ( (lv_title_9_0= RULE_STRING ) ) )? (otherlv_10= 'datasource' otherlv_11= '=' ( (lv_datasource_12_0= ruleDataSourceCall ) ) )? otherlv_13= 'sections' otherlv_14= '{' ( (lv_sections_15_0= ruleScreenSection ) )* otherlv_16= '}' (otherlv_17= 'actions' otherlv_18= '{' ( (lv_actions_19_0= ruleUIAction ) )* otherlv_20= '}' )? otherlv_21= '}'
{
otherlv_0 = (Token) match(input, 33, FOLLOW_33_in_ruleScreen3325);
newLeafNode(otherlv_0, grammarAccess.getScreenAccess().getScreenKeyword_0());
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1444:1: ( (lv_kind_1_0= ruleScreenKind ) )
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1445:1: (lv_kind_1_0= ruleScreenKind )
{
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1445:1: (lv_kind_1_0= ruleScreenKind )
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1446:3: lv_kind_1_0= ruleScreenKind
{
newCompositeNode(grammarAccess.getScreenAccess().getKindScreenKindEnumRuleCall_1_0());
pushFollow(FOLLOW_ruleScreenKind_in_ruleScreen3346);
lv_kind_1_0 = ruleScreenKind();
state._fsp--;
if (current == null) {
current = createModelElementForParent(grammarAccess.getScreenRule());
}
set(current, "kind", lv_kind_1_0, "ScreenKind");
afterParserOrEnumRuleCall();
}
}
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1462:2: ( (lv_name_2_0= RULE_ID ) )
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1463:1: (lv_name_2_0= RULE_ID )
{
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1463:1: (lv_name_2_0= RULE_ID )
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1464:3: lv_name_2_0= RULE_ID
{
lv_name_2_0 = (Token) match(input, RULE_ID, FOLLOW_RULE_ID_in_ruleScreen3363);
newLeafNode(lv_name_2_0, grammarAccess.getScreenAccess().getNameIDTerminalRuleCall_2_0());
if (current == null) {
current = createModelElement(grammarAccess.getScreenRule());
}
setWithLastConsumed(current, "name", lv_name_2_0, "ID");
}
}
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1480:2: (otherlv_3= '(' ( (lv_inputParameter_4_0= ruleParameter ) ) otherlv_5= ')' )?
int alt21 = 2;
int LA21_0 = input.LA(1);
if ((LA21_0 == 27)) {
alt21 = 1;
}
switch(alt21) {
case 1:
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1480:4: otherlv_3= '(' ( (lv_inputParameter_4_0= ruleParameter ) ) otherlv_5= ')'
{
otherlv_3 = (Token) match(input, 27, FOLLOW_27_in_ruleScreen3381);
newLeafNode(otherlv_3, grammarAccess.getScreenAccess().getLeftParenthesisKeyword_3_0());
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1484:1: ( (lv_inputParameter_4_0= ruleParameter ) )
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1485:1: (lv_inputParameter_4_0= ruleParameter )
{
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1485:1: (lv_inputParameter_4_0= ruleParameter )
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1486:3: lv_inputParameter_4_0= ruleParameter
{
newCompositeNode(grammarAccess.getScreenAccess().getInputParameterParameterParserRuleCall_3_1_0());
pushFollow(FOLLOW_ruleParameter_in_ruleScreen3402);
lv_inputParameter_4_0 = ruleParameter();
state._fsp--;
if (current == null) {
current = createModelElementForParent(grammarAccess.getScreenRule());
}
set(current, "inputParameter", lv_inputParameter_4_0, "Parameter");
afterParserOrEnumRuleCall();
}
}
otherlv_5 = (Token) match(input, 29, FOLLOW_29_in_ruleScreen3414);
newLeafNode(otherlv_5, grammarAccess.getScreenAccess().getRightParenthesisKeyword_3_2());
}
break;
}
otherlv_6 = (Token) match(input, 19, FOLLOW_19_in_ruleScreen3428);
newLeafNode(otherlv_6, grammarAccess.getScreenAccess().getLeftCurlyBracketKeyword_4());
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1510:1: (otherlv_7= 'title' otherlv_8= '=' ( (lv_title_9_0= RULE_STRING ) ) )?
int alt22 = 2;
int LA22_0 = input.LA(1);
if ((LA22_0 == 11)) {
alt22 = 1;
}
switch(alt22) {
case 1:
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1510:3: otherlv_7= 'title' otherlv_8= '=' ( (lv_title_9_0= RULE_STRING ) )
{
otherlv_7 = (Token) match(input, 11, FOLLOW_11_in_ruleScreen3441);
newLeafNode(otherlv_7, grammarAccess.getScreenAccess().getTitleKeyword_5_0());
otherlv_8 = (Token) match(input, 34, FOLLOW_34_in_ruleScreen3453);
newLeafNode(otherlv_8, grammarAccess.getScreenAccess().getEqualsSignKeyword_5_1());
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1518:1: ( (lv_title_9_0= RULE_STRING ) )
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1519:1: (lv_title_9_0= RULE_STRING )
{
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1519:1: (lv_title_9_0= RULE_STRING )
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1520:3: lv_title_9_0= RULE_STRING
{
lv_title_9_0 = (Token) match(input, RULE_STRING, FOLLOW_RULE_STRING_in_ruleScreen3470);
newLeafNode(lv_title_9_0, grammarAccess.getScreenAccess().getTitleSTRINGTerminalRuleCall_5_2_0());
if (current == null) {
current = createModelElement(grammarAccess.getScreenRule());
}
setWithLastConsumed(current, "title", lv_title_9_0, "STRING");
}
}
}
break;
}
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1536:4: (otherlv_10= 'datasource' otherlv_11= '=' ( (lv_datasource_12_0= ruleDataSourceCall ) ) )?
int alt23 = 2;
int LA23_0 = input.LA(1);
if ((LA23_0 == 24)) {
alt23 = 1;
}
switch(alt23) {
case 1:
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1536:6: otherlv_10= 'datasource' otherlv_11= '=' ( (lv_datasource_12_0= ruleDataSourceCall ) )
{
otherlv_10 = (Token) match(input, 24, FOLLOW_24_in_ruleScreen3490);
newLeafNode(otherlv_10, grammarAccess.getScreenAccess().getDatasourceKeyword_6_0());
otherlv_11 = (Token) match(input, 34, FOLLOW_34_in_ruleScreen3502);
newLeafNode(otherlv_11, grammarAccess.getScreenAccess().getEqualsSignKeyword_6_1());
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1544:1: ( (lv_datasource_12_0= ruleDataSourceCall ) )
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1545:1: (lv_datasource_12_0= ruleDataSourceCall )
{
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1545:1: (lv_datasource_12_0= ruleDataSourceCall )
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1546:3: lv_datasource_12_0= ruleDataSourceCall
{
newCompositeNode(grammarAccess.getScreenAccess().getDatasourceDataSourceCallParserRuleCall_6_2_0());
pushFollow(FOLLOW_ruleDataSourceCall_in_ruleScreen3523);
lv_datasource_12_0 = ruleDataSourceCall();
state._fsp--;
if (current == null) {
current = createModelElementForParent(grammarAccess.getScreenRule());
}
set(current, "datasource", lv_datasource_12_0, "DataSourceCall");
afterParserOrEnumRuleCall();
}
}
}
break;
}
otherlv_13 = (Token) match(input, 35, FOLLOW_35_in_ruleScreen3537);
newLeafNode(otherlv_13, grammarAccess.getScreenAccess().getSectionsKeyword_7());
otherlv_14 = (Token) match(input, 19, FOLLOW_19_in_ruleScreen3549);
newLeafNode(otherlv_14, grammarAccess.getScreenAccess().getLeftCurlyBracketKeyword_8());
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1570:1: ( (lv_sections_15_0= ruleScreenSection ) )*
loop24: do {
int alt24 = 2;
int LA24_0 = input.LA(1);
if ((LA24_0 == 14)) {
alt24 = 1;
}
switch(alt24) {
case 1:
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1571:1: (lv_sections_15_0= ruleScreenSection )
{
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1571:1: (lv_sections_15_0= ruleScreenSection )
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1572:3: lv_sections_15_0= ruleScreenSection
{
newCompositeNode(grammarAccess.getScreenAccess().getSectionsScreenSectionParserRuleCall_9_0());
pushFollow(FOLLOW_ruleScreenSection_in_ruleScreen3570);
lv_sections_15_0 = ruleScreenSection();
state._fsp--;
if (current == null) {
current = createModelElementForParent(grammarAccess.getScreenRule());
}
add(current, "sections", lv_sections_15_0, "ScreenSection");
afterParserOrEnumRuleCall();
}
}
break;
default:
break loop24;
}
} while (true);
otherlv_16 = (Token) match(input, 20, FOLLOW_20_in_ruleScreen3583);
newLeafNode(otherlv_16, grammarAccess.getScreenAccess().getRightCurlyBracketKeyword_10());
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1592:1: (otherlv_17= 'actions' otherlv_18= '{' ( (lv_actions_19_0= ruleUIAction ) )* otherlv_20= '}' )?
int alt26 = 2;
int LA26_0 = input.LA(1);
if ((LA26_0 == 36)) {
alt26 = 1;
}
switch(alt26) {
case 1:
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1592:3: otherlv_17= 'actions' otherlv_18= '{' ( (lv_actions_19_0= ruleUIAction ) )* otherlv_20= '}'
{
otherlv_17 = (Token) match(input, 36, FOLLOW_36_in_ruleScreen3596);
newLeafNode(otherlv_17, grammarAccess.getScreenAccess().getActionsKeyword_11_0());
otherlv_18 = (Token) match(input, 19, FOLLOW_19_in_ruleScreen3608);
newLeafNode(otherlv_18, grammarAccess.getScreenAccess().getLeftCurlyBracketKeyword_11_1());
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1600:1: ( (lv_actions_19_0= ruleUIAction ) )*
loop25: do {
int alt25 = 2;
int LA25_0 = input.LA(1);
if ((LA25_0 == 41)) {
alt25 = 1;
}
switch(alt25) {
case 1:
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1601:1: (lv_actions_19_0= ruleUIAction )
{
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1601:1: (lv_actions_19_0= ruleUIAction )
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1602:3: lv_actions_19_0= ruleUIAction
{
newCompositeNode(grammarAccess.getScreenAccess().getActionsUIActionParserRuleCall_11_2_0());
pushFollow(FOLLOW_ruleUIAction_in_ruleScreen3629);
lv_actions_19_0 = ruleUIAction();
state._fsp--;
if (current == null) {
current = createModelElementForParent(grammarAccess.getScreenRule());
}
add(current, "actions", lv_actions_19_0, "UIAction");
afterParserOrEnumRuleCall();
}
}
break;
default:
break loop25;
}
} while (true);
otherlv_20 = (Token) match(input, 20, FOLLOW_20_in_ruleScreen3642);
newLeafNode(otherlv_20, grammarAccess.getScreenAccess().getRightCurlyBracketKeyword_11_3());
}
break;
}
otherlv_21 = (Token) match(input, 20, FOLLOW_20_in_ruleScreen3656);
newLeafNode(otherlv_21, grammarAccess.getScreenAccess().getRightCurlyBracketKeyword_12());
}
}
leaveRule();
} catch (RecognitionException re) {
recover(input, re);
appendSkippedTokens();
} finally {
}
return current;
}
use of org.eclipse.emf.ecore.EObject in project applause by applause.
the class InternalApplauseDslParser method ruleUIActionDeleteAction.
// $ANTLR end "entryRuleUIActionDeleteAction"
// $ANTLR start "ruleUIActionDeleteAction"
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2268:1: ruleUIActionDeleteAction returns [EObject current=null] : ( () otherlv_1= 'delete' ) ;
public final EObject ruleUIActionDeleteAction() throws RecognitionException {
EObject current = null;
Token otherlv_1 = null;
enterRule();
try {
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2271:28: ( ( () otherlv_1= 'delete' ) )
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2272:1: ( () otherlv_1= 'delete' )
{
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2272:1: ( () otherlv_1= 'delete' )
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2272:2: () otherlv_1= 'delete'
{
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2272:2: ()
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2273:5:
{
current = forceCreateModelElement(grammarAccess.getUIActionDeleteActionAccess().getUIActionDeleteActionAction_0(), current);
}
otherlv_1 = (Token) match(input, 45, FOLLOW_45_in_ruleUIActionDeleteAction5127);
newLeafNode(otherlv_1, grammarAccess.getUIActionDeleteActionAccess().getDeleteKeyword_1());
}
}
leaveRule();
} catch (RecognitionException re) {
recover(input, re);
appendSkippedTokens();
} finally {
}
return current;
}
use of org.eclipse.emf.ecore.EObject in project applause by applause.
the class InternalApplauseDslParser method entryRuleRESTURL.
// $ANTLR end "ruleParameter"
// $ANTLR start "entryRuleRESTURL"
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1065:1: entryRuleRESTURL returns [EObject current=null] : iv_ruleRESTURL= ruleRESTURL EOF ;
public final EObject entryRuleRESTURL() throws RecognitionException {
EObject current = null;
EObject iv_ruleRESTURL = null;
try {
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1066:2: (iv_ruleRESTURL= ruleRESTURL EOF )
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1067:2: iv_ruleRESTURL= ruleRESTURL EOF
{
newCompositeNode(grammarAccess.getRESTURLRule());
pushFollow(FOLLOW_ruleRESTURL_in_entryRuleRESTURL2379);
iv_ruleRESTURL = ruleRESTURL();
state._fsp--;
current = iv_ruleRESTURL;
match(input, EOF, FOLLOW_EOF_in_entryRuleRESTURL2389);
}
} catch (RecognitionException re) {
recover(input, re);
appendSkippedTokens();
} finally {
}
return current;
}
use of org.eclipse.emf.ecore.EObject in project applause by applause.
the class InternalApplauseDslParser method ruleNamedElement.
// $ANTLR end "entryRuleNamedElement"
// $ANTLR start "ruleNamedElement"
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:116:1: ruleNamedElement returns [EObject current=null] : (this_Type_0= ruleType | this_Platform_1= rulePlatform | this_DataSource_2= ruleDataSource | this_Screen_3= ruleScreen | this_UIComponentDeclaration_4= ruleUIComponentDeclaration | this_ListItemCellDeclaration_5= ruleListItemCellDeclaration ) ;
public final EObject ruleNamedElement() throws RecognitionException {
EObject current = null;
EObject this_Type_0 = null;
EObject this_Platform_1 = null;
EObject this_DataSource_2 = null;
EObject this_Screen_3 = null;
EObject this_UIComponentDeclaration_4 = null;
EObject this_ListItemCellDeclaration_5 = null;
enterRule();
try {
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:119:28: ( (this_Type_0= ruleType | this_Platform_1= rulePlatform | this_DataSource_2= ruleDataSource | this_Screen_3= ruleScreen | this_UIComponentDeclaration_4= ruleUIComponentDeclaration | this_ListItemCellDeclaration_5= ruleListItemCellDeclaration ) )
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:120:1: (this_Type_0= ruleType | this_Platform_1= rulePlatform | this_DataSource_2= ruleDataSource | this_Screen_3= ruleScreen | this_UIComponentDeclaration_4= ruleUIComponentDeclaration | this_ListItemCellDeclaration_5= ruleListItemCellDeclaration )
{
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:120:1: (this_Type_0= ruleType | this_Platform_1= rulePlatform | this_DataSource_2= ruleDataSource | this_Screen_3= ruleScreen | this_UIComponentDeclaration_4= ruleUIComponentDeclaration | this_ListItemCellDeclaration_5= ruleListItemCellDeclaration )
int alt2 = 6;
switch(input.LA(1)) {
case 15:
case 16:
case 17:
{
alt2 = 1;
}
break;
case 12:
{
alt2 = 2;
}
break;
case 24:
{
alt2 = 3;
}
break;
case 33:
{
alt2 = 4;
}
break;
case 47:
{
alt2 = 5;
}
break;
case 46:
{
alt2 = 6;
}
break;
default:
NoViableAltException nvae = new NoViableAltException("", 2, 0, input);
throw nvae;
}
switch(alt2) {
case 1:
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:121:5: this_Type_0= ruleType
{
newCompositeNode(grammarAccess.getNamedElementAccess().getTypeParserRuleCall_0());
pushFollow(FOLLOW_ruleType_in_ruleNamedElement223);
this_Type_0 = ruleType();
state._fsp--;
current = this_Type_0;
afterParserOrEnumRuleCall();
}
break;
case 2:
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:131:5: this_Platform_1= rulePlatform
{
newCompositeNode(grammarAccess.getNamedElementAccess().getPlatformParserRuleCall_1());
pushFollow(FOLLOW_rulePlatform_in_ruleNamedElement250);
this_Platform_1 = rulePlatform();
state._fsp--;
current = this_Platform_1;
afterParserOrEnumRuleCall();
}
break;
case 3:
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:141:5: this_DataSource_2= ruleDataSource
{
newCompositeNode(grammarAccess.getNamedElementAccess().getDataSourceParserRuleCall_2());
pushFollow(FOLLOW_ruleDataSource_in_ruleNamedElement277);
this_DataSource_2 = ruleDataSource();
state._fsp--;
current = this_DataSource_2;
afterParserOrEnumRuleCall();
}
break;
case 4:
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:151:5: this_Screen_3= ruleScreen
{
newCompositeNode(grammarAccess.getNamedElementAccess().getScreenParserRuleCall_3());
pushFollow(FOLLOW_ruleScreen_in_ruleNamedElement304);
this_Screen_3 = ruleScreen();
state._fsp--;
current = this_Screen_3;
afterParserOrEnumRuleCall();
}
break;
case 5:
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:161:5: this_UIComponentDeclaration_4= ruleUIComponentDeclaration
{
newCompositeNode(grammarAccess.getNamedElementAccess().getUIComponentDeclarationParserRuleCall_4());
pushFollow(FOLLOW_ruleUIComponentDeclaration_in_ruleNamedElement331);
this_UIComponentDeclaration_4 = ruleUIComponentDeclaration();
state._fsp--;
current = this_UIComponentDeclaration_4;
afterParserOrEnumRuleCall();
}
break;
case 6:
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:171:5: this_ListItemCellDeclaration_5= ruleListItemCellDeclaration
{
newCompositeNode(grammarAccess.getNamedElementAccess().getListItemCellDeclarationParserRuleCall_5());
pushFollow(FOLLOW_ruleListItemCellDeclaration_in_ruleNamedElement358);
this_ListItemCellDeclaration_5 = ruleListItemCellDeclaration();
state._fsp--;
current = this_ListItemCellDeclaration_5;
afterParserOrEnumRuleCall();
}
break;
}
}
leaveRule();
} catch (RecognitionException re) {
recover(input, re);
appendSkippedTokens();
} finally {
}
return current;
}
use of org.eclipse.emf.ecore.EObject in project applause by applause.
the class InternalApplauseDslParser method entryRulePlatformMapping.
// $ANTLR end "rulePlatform"
// $ANTLR start "entryRulePlatformMapping"
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:570:1: entryRulePlatformMapping returns [EObject current=null] : iv_rulePlatformMapping= rulePlatformMapping EOF ;
public final EObject entryRulePlatformMapping() throws RecognitionException {
EObject current = null;
EObject iv_rulePlatformMapping = null;
try {
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:571:2: (iv_rulePlatformMapping= rulePlatformMapping EOF )
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:572:2: iv_rulePlatformMapping= rulePlatformMapping EOF
{
newCompositeNode(grammarAccess.getPlatformMappingRule());
pushFollow(FOLLOW_rulePlatformMapping_in_entryRulePlatformMapping1321);
iv_rulePlatformMapping = rulePlatformMapping();
state._fsp--;
current = iv_rulePlatformMapping;
match(input, EOF, FOLLOW_EOF_in_entryRulePlatformMapping1331);
}
} catch (RecognitionException re) {
recover(input, re);
appendSkippedTokens();
} finally {
}
return current;
}
Aggregations