Skip to content

Commit

Permalink
eclipse-archived#190 POC: Added parameter set feature
Browse files Browse the repository at this point in the history
  • Loading branch information
rtotaro committed Dec 20, 2016
1 parent f90940b commit 9b4e4ff
Show file tree
Hide file tree
Showing 35 changed files with 1,162 additions and 820 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ protected String getRuleName(AbstractElement element) {
put(grammarAccess.getInsertAccess().getNameAssignment_2_1(), "rule__Insert__NameAssignment_2_1");
put(grammarAccess.getInsertAccess().getParametersAssignment_3_1(), "rule__Insert__ParametersAssignment_3_1");
put(grammarAccess.getInsertAccess().getParametersAssignment_3_2_1(), "rule__Insert__ParametersAssignment_3_2_1");
put(grammarAccess.getParameterAccess().getIdAssignment_0(), "rule__Parameter__IdAssignment_0");
put(grammarAccess.getParameterAccess().getValueAssignment_2(), "rule__Parameter__ValueAssignment_2");
put(grammarAccess.getNamedObjAccess().getNameAssignment(), "rule__NamedObj__NameAssignment");
put(grammarAccess.getConnectAccess().getFromAssignment_1(), "rule__Connect__FromAssignment_1");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1104,9 +1104,9 @@ rule__Parameter__Group__0__Impl
}
:
(
{ before(grammarAccess.getParameterAccess().getNamedObjParserRuleCall_0()); }
ruleNamedObj
{ after(grammarAccess.getParameterAccess().getNamedObjParserRuleCall_0()); }
{ before(grammarAccess.getParameterAccess().getIdAssignment_0()); }
(rule__Parameter__IdAssignment_0)
{ after(grammarAccess.getParameterAccess().getIdAssignment_0()); }
)
;
finally {
Expand Down Expand Up @@ -3213,6 +3213,21 @@ finally {
restoreStackSize(stackSize);
}

rule__Parameter__IdAssignment_0
@init {
int stackSize = keepStackSize();
}
:
(
{ before(grammarAccess.getParameterAccess().getIdNamedObjParserRuleCall_0_0()); }
ruleNamedObj
{ after(grammarAccess.getParameterAccess().getIdNamedObjParserRuleCall_0_0()); }
)
;
finally {
restoreStackSize(stackSize);
}

rule__Parameter__ValueAssignment_2
@init {
int stackSize = keepStackSize();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -563,10 +563,10 @@ public final void mRULE_ID() throws RecognitionException {
try {
int _type = RULE_ID;
int _channel = DEFAULT_TOKEN_CHANNEL;
// InternalTqcl.g:3664:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '$' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '$' | '_' | '0' .. '9' )* )
// InternalTqcl.g:3664:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '$' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '$' | '_' | '0' .. '9' )*
// InternalTqcl.g:3679:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '$' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '$' | '_' | '0' .. '9' )* )
// InternalTqcl.g:3679:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '$' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '$' | '_' | '0' .. '9' )*
{
// InternalTqcl.g:3664:11: ( '^' )?
// InternalTqcl.g:3679:11: ( '^' )?
int alt1=2;
int LA1_0 = input.LA(1);

Expand All @@ -575,7 +575,7 @@ public final void mRULE_ID() throws RecognitionException {
}
switch (alt1) {
case 1 :
// InternalTqcl.g:3664:11: '^'
// InternalTqcl.g:3679:11: '^'
{
match('^');

Expand All @@ -593,7 +593,7 @@ public final void mRULE_ID() throws RecognitionException {
recover(mse);
throw mse;}

// InternalTqcl.g:3664:44: ( 'a' .. 'z' | 'A' .. 'Z' | '$' | '_' | '0' .. '9' )*
// InternalTqcl.g:3679:44: ( 'a' .. 'z' | 'A' .. 'Z' | '$' | '_' | '0' .. '9' )*
loop2:
do {
int alt2=2;
Expand Down Expand Up @@ -642,10 +642,10 @@ public final void mRULE_STRING() throws RecognitionException {
try {
int _type = RULE_STRING;
int _channel = DEFAULT_TOKEN_CHANNEL;
// InternalTqcl.g:3666:13: ( ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* ( '\"' )? | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* ( '\\'' )? ) )
// InternalTqcl.g:3666:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* ( '\"' )? | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* ( '\\'' )? )
// InternalTqcl.g:3681:13: ( ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* ( '\"' )? | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* ( '\\'' )? ) )
// InternalTqcl.g:3681:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* ( '\"' )? | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* ( '\\'' )? )
{
// InternalTqcl.g:3666:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* ( '\"' )? | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* ( '\\'' )? )
// InternalTqcl.g:3681:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* ( '\"' )? | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* ( '\\'' )? )
int alt7=2;
int LA7_0 = input.LA(1);

Expand All @@ -663,10 +663,10 @@ else if ( (LA7_0=='\'') ) {
}
switch (alt7) {
case 1 :
// InternalTqcl.g:3666:16: '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* ( '\"' )?
// InternalTqcl.g:3681:16: '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* ( '\"' )?
{
match('\"');
// InternalTqcl.g:3666:20: ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )*
// InternalTqcl.g:3681:20: ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )*
loop3:
do {
int alt3=3;
Expand All @@ -682,15 +682,15 @@ else if ( ((LA3_0>='\u0000' && LA3_0<='!')||(LA3_0>='#' && LA3_0<='[')||(LA3_0>=

switch (alt3) {
case 1 :
// InternalTqcl.g:3666:21: '\\\\' .
// InternalTqcl.g:3681:21: '\\\\' .
{
match('\\');
matchAny();

}
break;
case 2 :
// InternalTqcl.g:3666:28: ~ ( ( '\\\\' | '\"' ) )
// InternalTqcl.g:3681:28: ~ ( ( '\\\\' | '\"' ) )
{
if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) {
input.consume();
Expand All @@ -710,7 +710,7 @@ else if ( ((LA3_0>='\u0000' && LA3_0<='!')||(LA3_0>='#' && LA3_0<='[')||(LA3_0>=
}
} while (true);

// InternalTqcl.g:3666:44: ( '\"' )?
// InternalTqcl.g:3681:44: ( '\"' )?
int alt4=2;
int LA4_0 = input.LA(1);

Expand All @@ -719,7 +719,7 @@ else if ( ((LA3_0>='\u0000' && LA3_0<='!')||(LA3_0>='#' && LA3_0<='[')||(LA3_0>=
}
switch (alt4) {
case 1 :
// InternalTqcl.g:3666:44: '\"'
// InternalTqcl.g:3681:44: '\"'
{
match('\"');

Expand All @@ -732,10 +732,10 @@ else if ( ((LA3_0>='\u0000' && LA3_0<='!')||(LA3_0>='#' && LA3_0<='[')||(LA3_0>=
}
break;
case 2 :
// InternalTqcl.g:3666:49: '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* ( '\\'' )?
// InternalTqcl.g:3681:49: '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* ( '\\'' )?
{
match('\'');
// InternalTqcl.g:3666:54: ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )*
// InternalTqcl.g:3681:54: ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )*
loop5:
do {
int alt5=3;
Expand All @@ -751,15 +751,15 @@ else if ( ((LA5_0>='\u0000' && LA5_0<='&')||(LA5_0>='(' && LA5_0<='[')||(LA5_0>=

switch (alt5) {
case 1 :
// InternalTqcl.g:3666:55: '\\\\' .
// InternalTqcl.g:3681:55: '\\\\' .
{
match('\\');
matchAny();

}
break;
case 2 :
// InternalTqcl.g:3666:62: ~ ( ( '\\\\' | '\\'' ) )
// InternalTqcl.g:3681:62: ~ ( ( '\\\\' | '\\'' ) )
{
if ( (input.LA(1)>='\u0000' && input.LA(1)<='&')||(input.LA(1)>='(' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) {
input.consume();
Expand All @@ -779,7 +779,7 @@ else if ( ((LA5_0>='\u0000' && LA5_0<='&')||(LA5_0>='(' && LA5_0<='[')||(LA5_0>=
}
} while (true);

// InternalTqcl.g:3666:79: ( '\\'' )?
// InternalTqcl.g:3681:79: ( '\\'' )?
int alt6=2;
int LA6_0 = input.LA(1);

Expand All @@ -788,7 +788,7 @@ else if ( ((LA5_0>='\u0000' && LA5_0<='&')||(LA5_0>='(' && LA5_0<='[')||(LA5_0>=
}
switch (alt6) {
case 1 :
// InternalTqcl.g:3666:79: '\\''
// InternalTqcl.g:3681:79: '\\''
{
match('\'');

Expand Down Expand Up @@ -819,12 +819,12 @@ public final void mRULE_ML_COMMENT() throws RecognitionException {
try {
int _type = RULE_ML_COMMENT;
int _channel = DEFAULT_TOKEN_CHANNEL;
// InternalTqcl.g:3668:17: ( '/*' ( options {greedy=false; } : . )* '*/' )
// InternalTqcl.g:3668:19: '/*' ( options {greedy=false; } : . )* '*/'
// InternalTqcl.g:3683:17: ( '/*' ( options {greedy=false; } : . )* '*/' )
// InternalTqcl.g:3683:19: '/*' ( options {greedy=false; } : . )* '*/'
{
match("/*");

// InternalTqcl.g:3668:24: ( options {greedy=false; } : . )*
// InternalTqcl.g:3683:24: ( options {greedy=false; } : . )*
loop8:
do {
int alt8=2;
Expand All @@ -849,7 +849,7 @@ else if ( ((LA8_0>='\u0000' && LA8_0<=')')||(LA8_0>='+' && LA8_0<='\uFFFF')) ) {

switch (alt8) {
case 1 :
// InternalTqcl.g:3668:52: .
// InternalTqcl.g:3683:52: .
{
matchAny();

Expand Down Expand Up @@ -879,12 +879,12 @@ public final void mRULE_SL_COMMENT() throws RecognitionException {
try {
int _type = RULE_SL_COMMENT;
int _channel = DEFAULT_TOKEN_CHANNEL;
// InternalTqcl.g:3670:17: ( '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
// InternalTqcl.g:3670:19: '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
// InternalTqcl.g:3685:17: ( '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
// InternalTqcl.g:3685:19: '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
{
match("//");

// InternalTqcl.g:3670:24: (~ ( ( '\\n' | '\\r' ) ) )*
// InternalTqcl.g:3685:24: (~ ( ( '\\n' | '\\r' ) ) )*
loop9:
do {
int alt9=2;
Expand All @@ -897,7 +897,7 @@ public final void mRULE_SL_COMMENT() throws RecognitionException {

switch (alt9) {
case 1 :
// InternalTqcl.g:3670:24: ~ ( ( '\\n' | '\\r' ) )
// InternalTqcl.g:3685:24: ~ ( ( '\\n' | '\\r' ) )
{
if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) {
input.consume();
Expand All @@ -917,7 +917,7 @@ public final void mRULE_SL_COMMENT() throws RecognitionException {
}
} while (true);

// InternalTqcl.g:3670:40: ( ( '\\r' )? '\\n' )?
// InternalTqcl.g:3685:40: ( ( '\\r' )? '\\n' )?
int alt11=2;
int LA11_0 = input.LA(1);

Expand All @@ -926,9 +926,9 @@ public final void mRULE_SL_COMMENT() throws RecognitionException {
}
switch (alt11) {
case 1 :
// InternalTqcl.g:3670:41: ( '\\r' )? '\\n'
// InternalTqcl.g:3685:41: ( '\\r' )? '\\n'
{
// InternalTqcl.g:3670:41: ( '\\r' )?
// InternalTqcl.g:3685:41: ( '\\r' )?
int alt10=2;
int LA10_0 = input.LA(1);

Expand All @@ -937,7 +937,7 @@ public final void mRULE_SL_COMMENT() throws RecognitionException {
}
switch (alt10) {
case 1 :
// InternalTqcl.g:3670:41: '\\r'
// InternalTqcl.g:3685:41: '\\r'
{
match('\r');

Expand Down Expand Up @@ -969,10 +969,10 @@ public final void mRULE_WS() throws RecognitionException {
try {
int _type = RULE_WS;
int _channel = DEFAULT_TOKEN_CHANNEL;
// InternalTqcl.g:3672:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ )
// InternalTqcl.g:3672:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
// InternalTqcl.g:3687:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ )
// InternalTqcl.g:3687:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
{
// InternalTqcl.g:3672:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
// InternalTqcl.g:3687:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
int cnt12=0;
loop12:
do {
Expand Down Expand Up @@ -1026,8 +1026,8 @@ public final void mRULE_ANY_OTHER() throws RecognitionException {
try {
int _type = RULE_ANY_OTHER;
int _channel = DEFAULT_TOKEN_CHANNEL;
// InternalTqcl.g:3674:16: ( . )
// InternalTqcl.g:3674:18: .
// InternalTqcl.g:3689:16: ( . )
// InternalTqcl.g:3689:18: .
{
matchAny();

Expand Down
Loading

0 comments on commit 9b4e4ff

Please sign in to comment.