use of org.eclipse.emf.ecore.EObject in project mechanoid by robotoworks.
the class InternalNetModelParser method ruleEnumMember.
// $ANTLR end "entryRuleEnumMember"
// $ANTLR start "ruleEnumMember"
// ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:1870:1: ruleEnumMember returns [EObject current=null] : ( ( (lv_name_0_0= RULE_ID ) ) ( ( (lv_assignment_1_0= '=' ) ) ( (lv_value_2_0= RULE_INT ) ) )? ) ;
public final EObject ruleEnumMember() throws RecognitionException {
EObject current = null;
Token lv_name_0_0 = null;
Token lv_assignment_1_0 = null;
Token lv_value_2_0 = null;
enterRule();
try {
// ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:1873:28: ( ( ( (lv_name_0_0= RULE_ID ) ) ( ( (lv_assignment_1_0= '=' ) ) ( (lv_value_2_0= RULE_INT ) ) )? ) )
// ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:1874:1: ( ( (lv_name_0_0= RULE_ID ) ) ( ( (lv_assignment_1_0= '=' ) ) ( (lv_value_2_0= RULE_INT ) ) )? )
{
// ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:1874:1: ( ( (lv_name_0_0= RULE_ID ) ) ( ( (lv_assignment_1_0= '=' ) ) ( (lv_value_2_0= RULE_INT ) ) )? )
// ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:1874:2: ( (lv_name_0_0= RULE_ID ) ) ( ( (lv_assignment_1_0= '=' ) ) ( (lv_value_2_0= RULE_INT ) ) )?
{
// ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:1874:2: ( (lv_name_0_0= RULE_ID ) )
// ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:1875:1: (lv_name_0_0= RULE_ID )
{
// ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:1875:1: (lv_name_0_0= RULE_ID )
// ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:1876:3: lv_name_0_0= RULE_ID
{
lv_name_0_0 = (Token) match(input, RULE_ID, FOLLOW_RULE_ID_in_ruleEnumMember4102);
newLeafNode(lv_name_0_0, grammarAccess.getEnumMemberAccess().getNameIDTerminalRuleCall_0_0());
if (current == null) {
current = createModelElement(grammarAccess.getEnumMemberRule());
}
setWithLastConsumed(current, "name", lv_name_0_0, "ID");
}
}
// ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:1892:2: ( ( (lv_assignment_1_0= '=' ) ) ( (lv_value_2_0= RULE_INT ) ) )?
int alt33 = 2;
int LA33_0 = input.LA(1);
if ((LA33_0 == 22)) {
alt33 = 1;
}
switch(alt33) {
case 1:
// ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:1892:3: ( (lv_assignment_1_0= '=' ) ) ( (lv_value_2_0= RULE_INT ) )
{
// ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:1892:3: ( (lv_assignment_1_0= '=' ) )
// ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:1893:1: (lv_assignment_1_0= '=' )
{
// ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:1893:1: (lv_assignment_1_0= '=' )
// ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:1894:3: lv_assignment_1_0= '='
{
lv_assignment_1_0 = (Token) match(input, 22, FOLLOW_22_in_ruleEnumMember4126);
newLeafNode(lv_assignment_1_0, grammarAccess.getEnumMemberAccess().getAssignmentEqualsSignKeyword_1_0_0());
if (current == null) {
current = createModelElement(grammarAccess.getEnumMemberRule());
}
setWithLastConsumed(current, "assignment", true, "=");
}
}
// ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:1907:2: ( (lv_value_2_0= RULE_INT ) )
// ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:1908:1: (lv_value_2_0= RULE_INT )
{
// ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:1908:1: (lv_value_2_0= RULE_INT )
// ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:1909:3: lv_value_2_0= RULE_INT
{
lv_value_2_0 = (Token) match(input, RULE_INT, FOLLOW_RULE_INT_in_ruleEnumMember4156);
newLeafNode(lv_value_2_0, grammarAccess.getEnumMemberAccess().getValueINTTerminalRuleCall_1_1_0());
if (current == null) {
current = createModelElement(grammarAccess.getEnumMemberRule());
}
setWithLastConsumed(current, "value", lv_value_2_0, "INT");
}
}
}
break;
}
}
}
leaveRule();
} catch (RecognitionException re) {
recover(input, re);
appendSkippedTokens();
} finally {
}
return current;
}
use of org.eclipse.emf.ecore.EObject in project mechanoid by robotoworks.
the class InternalNetModelParser method ruleBodyBlock.
// $ANTLR end "entryRuleBodyBlock"
// $ANTLR start "ruleBodyBlock"
// ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:987:1: ruleBodyBlock returns [EObject current=null] : (otherlv_0= 'body' ( (lv_type_1_0= ruleBlockType ) ) ) ;
public final EObject ruleBodyBlock() throws RecognitionException {
EObject current = null;
Token otherlv_0 = null;
EObject lv_type_1_0 = null;
enterRule();
try {
// ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:990:28: ( (otherlv_0= 'body' ( (lv_type_1_0= ruleBlockType ) ) ) )
// ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:991:1: (otherlv_0= 'body' ( (lv_type_1_0= ruleBlockType ) ) )
{
// ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:991:1: (otherlv_0= 'body' ( (lv_type_1_0= ruleBlockType ) ) )
// ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:991:3: otherlv_0= 'body' ( (lv_type_1_0= ruleBlockType ) )
{
otherlv_0 = (Token) match(input, 23, FOLLOW_23_in_ruleBodyBlock2120);
newLeafNode(otherlv_0, grammarAccess.getBodyBlockAccess().getBodyKeyword_0());
// ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:995:1: ( (lv_type_1_0= ruleBlockType ) )
// ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:996:1: (lv_type_1_0= ruleBlockType )
{
// ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:996:1: (lv_type_1_0= ruleBlockType )
// ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:997:3: lv_type_1_0= ruleBlockType
{
newCompositeNode(grammarAccess.getBodyBlockAccess().getTypeBlockTypeParserRuleCall_1_0());
pushFollow(FOLLOW_ruleBlockType_in_ruleBodyBlock2141);
lv_type_1_0 = ruleBlockType();
state._fsp--;
if (current == null) {
current = createModelElementForParent(grammarAccess.getBodyBlockRule());
}
set(current, "type", lv_type_1_0, "BlockType");
afterParserOrEnumRuleCall();
}
}
}
}
leaveRule();
} catch (RecognitionException re) {
recover(input, re);
appendSkippedTokens();
} finally {
}
return current;
}
use of org.eclipse.emf.ecore.EObject in project mechanoid by robotoworks.
the class InternalNetModelParser method ruleHeaderBlock.
// $ANTLR end "entryRuleHeaderBlock"
// $ANTLR start "ruleHeaderBlock"
// ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:315:1: ruleHeaderBlock returns [EObject current=null] : (otherlv_0= 'headers' ( (lv_headers_1_0= ruleHeader ) ) (otherlv_2= ',' ( (lv_headers_3_0= ruleHeader ) ) )* ) ;
public final EObject ruleHeaderBlock() throws RecognitionException {
EObject current = null;
Token otherlv_0 = null;
Token otherlv_2 = null;
EObject lv_headers_1_0 = null;
EObject lv_headers_3_0 = null;
enterRule();
try {
// ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:318:28: ( (otherlv_0= 'headers' ( (lv_headers_1_0= ruleHeader ) ) (otherlv_2= ',' ( (lv_headers_3_0= ruleHeader ) ) )* ) )
// ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:319:1: (otherlv_0= 'headers' ( (lv_headers_1_0= ruleHeader ) ) (otherlv_2= ',' ( (lv_headers_3_0= ruleHeader ) ) )* )
{
// ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:319:1: (otherlv_0= 'headers' ( (lv_headers_1_0= ruleHeader ) ) (otherlv_2= ',' ( (lv_headers_3_0= ruleHeader ) ) )* )
// ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:319:3: otherlv_0= 'headers' ( (lv_headers_1_0= ruleHeader ) ) (otherlv_2= ',' ( (lv_headers_3_0= ruleHeader ) ) )*
{
otherlv_0 = (Token) match(input, 16, FOLLOW_16_in_ruleHeaderBlock687);
newLeafNode(otherlv_0, grammarAccess.getHeaderBlockAccess().getHeadersKeyword_0());
// ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:323:1: ( (lv_headers_1_0= ruleHeader ) )
// ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:324:1: (lv_headers_1_0= ruleHeader )
{
// ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:324:1: (lv_headers_1_0= ruleHeader )
// ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:325:3: lv_headers_1_0= ruleHeader
{
newCompositeNode(grammarAccess.getHeaderBlockAccess().getHeadersHeaderParserRuleCall_1_0());
pushFollow(FOLLOW_ruleHeader_in_ruleHeaderBlock708);
lv_headers_1_0 = ruleHeader();
state._fsp--;
if (current == null) {
current = createModelElementForParent(grammarAccess.getHeaderBlockRule());
}
add(current, "headers", lv_headers_1_0, "Header");
afterParserOrEnumRuleCall();
}
}
// ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:341:2: (otherlv_2= ',' ( (lv_headers_3_0= ruleHeader ) ) )*
loop6: do {
int alt6 = 2;
int LA6_0 = input.LA(1);
if ((LA6_0 == 17)) {
alt6 = 1;
}
switch(alt6) {
case 1:
// ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:341:4: otherlv_2= ',' ( (lv_headers_3_0= ruleHeader ) )
{
otherlv_2 = (Token) match(input, 17, FOLLOW_17_in_ruleHeaderBlock721);
newLeafNode(otherlv_2, grammarAccess.getHeaderBlockAccess().getCommaKeyword_2_0());
// ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:345:1: ( (lv_headers_3_0= ruleHeader ) )
// ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:346:1: (lv_headers_3_0= ruleHeader )
{
// ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:346:1: (lv_headers_3_0= ruleHeader )
// ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:347:3: lv_headers_3_0= ruleHeader
{
newCompositeNode(grammarAccess.getHeaderBlockAccess().getHeadersHeaderParserRuleCall_2_1_0());
pushFollow(FOLLOW_ruleHeader_in_ruleHeaderBlock742);
lv_headers_3_0 = ruleHeader();
state._fsp--;
if (current == null) {
current = createModelElementForParent(grammarAccess.getHeaderBlockRule());
}
add(current, "headers", lv_headers_3_0, "Header");
afterParserOrEnumRuleCall();
}
}
}
break;
default:
break loop6;
}
} while (true);
}
}
leaveRule();
} catch (RecognitionException re) {
recover(input, re);
appendSkippedTokens();
} finally {
}
return current;
}
use of org.eclipse.emf.ecore.EObject in project mechanoid by robotoworks.
the class InternalNetModelParser method entryRuleParamsBlock.
// $ANTLR end "ruleArbitraryPathSegment"
// $ANTLR start "entryRuleParamsBlock"
// ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:751:1: entryRuleParamsBlock returns [EObject current=null] : iv_ruleParamsBlock= ruleParamsBlock EOF ;
public final EObject entryRuleParamsBlock() throws RecognitionException {
EObject current = null;
EObject iv_ruleParamsBlock = null;
try {
// ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:752:2: (iv_ruleParamsBlock= ruleParamsBlock EOF )
// ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:753:2: iv_ruleParamsBlock= ruleParamsBlock EOF
{
newCompositeNode(grammarAccess.getParamsBlockRule());
pushFollow(FOLLOW_ruleParamsBlock_in_entryRuleParamsBlock1616);
iv_ruleParamsBlock = ruleParamsBlock();
state._fsp--;
current = iv_ruleParamsBlock;
match(input, EOF, FOLLOW_EOF_in_entryRuleParamsBlock1626);
}
} catch (RecognitionException re) {
recover(input, re);
appendSkippedTokens();
} finally {
}
return current;
}
use of org.eclipse.emf.ecore.EObject in project mechanoid by robotoworks.
the class InternalNetModelParser method entryRuleHttpMethod.
// $ANTLR end "ruleHeader"
// $ANTLR start "entryRuleHttpMethod"
// ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:432:1: entryRuleHttpMethod returns [EObject current=null] : iv_ruleHttpMethod= ruleHttpMethod EOF ;
public final EObject entryRuleHttpMethod() throws RecognitionException {
EObject current = null;
EObject iv_ruleHttpMethod = null;
try {
// ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:433:2: (iv_ruleHttpMethod= ruleHttpMethod EOF )
// ../com.robotoworks.mechanoid.net/src-gen/com/robotoworks/mechanoid/net/parser/antlr/internal/InternalNetModel.g:434:2: iv_ruleHttpMethod= ruleHttpMethod EOF
{
newCompositeNode(grammarAccess.getHttpMethodRule());
pushFollow(FOLLOW_ruleHttpMethod_in_entryRuleHttpMethod907);
iv_ruleHttpMethod = ruleHttpMethod();
state._fsp--;
current = iv_ruleHttpMethod;
match(input, EOF, FOLLOW_EOF_in_entryRuleHttpMethod917);
}
} catch (RecognitionException re) {
recover(input, re);
appendSkippedTokens();
} finally {
}
return current;
}
Aggregations