summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordhubner2009-01-15 10:54:05 (EST)
committer dhubner2009-01-15 10:54:05 (EST)
commitdfca913eafdb2ffdaa574fcc945bf2be62716f1a (patch)
treec109f137033491721d65fa6a093478952938b1c4
parent3307069f5b8e5b28a0bd3f4e929dc83b57684456 (diff)
downloadorg.eclipse.mwe-dfca913eafdb2ffdaa574fcc945bf2be62716f1a.zip
org.eclipse.mwe-dfca913eafdb2ffdaa574fcc945bf2be62716f1a.tar.gz
org.eclipse.mwe-dfca913eafdb2ffdaa574fcc945bf2be62716f1a.tar.bz2
regeneration due to template changes
-rw-r--r--plugins/org.eclipse.emf.mwe.di.ui/src-gen/org/eclipse/emf/mwe/di/GenMWEUiConfig.java2
-rw-r--r--plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWELexer.java78
-rw-r--r--plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWEParser.java116
-rw-r--r--plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/MWEDelimiters.java27
-rw-r--r--plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/MWEParserConfiguration.java75
-rw-r--r--plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEAssignableConsumer.java48
-rw-r--r--plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEAssignmentConsumer.java168
-rw-r--r--plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEComplexValueConsumer.java235
-rw-r--r--plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEFileConsumer.java104
-rw-r--r--plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEGenericImportConsumer.java114
-rw-r--r--plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEIdRefConsumer.java29
-rw-r--r--plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEImportConsumer.java48
-rw-r--r--plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEJavaImportConsumer.java188
-rw-r--r--plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWELocalVariableConsumer.java188
-rw-r--r--plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEPropertiesFileImportConsumer.java147
-rw-r--r--plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEPropertyConsumer.java36
-rw-r--r--plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEQualifiedNameConsumer.java133
-rw-r--r--plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWESimpleValueConsumer.java29
-rw-r--r--plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEValueConsumer.java90
-rw-r--r--plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEWorkflowRefConsumer.java188
20 files changed, 1176 insertions, 867 deletions
diff --git a/plugins/org.eclipse.emf.mwe.di.ui/src-gen/org/eclipse/emf/mwe/di/GenMWEUiConfig.java b/plugins/org.eclipse.emf.mwe.di.ui/src-gen/org/eclipse/emf/mwe/di/GenMWEUiConfig.java
index 411e4af..cae3c98 100644
--- a/plugins/org.eclipse.emf.mwe.di.ui/src-gen/org/eclipse/emf/mwe/di/GenMWEUiConfig.java
+++ b/plugins/org.eclipse.emf.mwe.di.ui/src-gen/org/eclipse/emf/mwe/di/GenMWEUiConfig.java
@@ -15,9 +15,7 @@ public class GenMWEUiConfig extends AbstractServiceRegistrationFactory {
public Set<IServiceRegistration> registrations() {
return scope(org.eclipse.emf.mwe.di.IMWE.SCOPE)
.with(org.eclipse.xtext.ui.common.editor.contentassist.IProposalProvider.class, org.eclipse.emf.mwe.di.MWEGenProposalProvider.class)
- .with(org.eclipse.jface.text.contentassist.IContentAssistant.class, org.eclipse.jface.text.contentassist.ContentAssistant.class)
.with(org.eclipse.jface.text.contentassist.IContentAssistProcessor.class, org.eclipse.xtext.ui.common.editor.contentassist.impl.DefaultContentAssistProcessor.class)
- .with(org.eclipse.xtext.ui.common.editor.contentassist.ILinkingCandidatesService.class, org.eclipse.xtext.ui.common.editor.contentassist.impl.DefaultLinkingCandidatesService.class)
.registrations();
}
diff --git a/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWELexer.java b/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWELexer.java
index 52e92ee..857f379 100644
--- a/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWELexer.java
+++ b/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWELexer.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g 2009-01-13 09:51:31
+// $ANTLR 3.0 ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g 2009-01-15 16:52:07
package org.eclipse.emf.mwe.di.parser.antlr.internal;
@@ -40,10 +40,10 @@ public class InternalMWELexer extends Lexer {
public String getGrammarFileName() { return "./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g"; }
// $ANTLR start T11
- public final void mT11() throws RecognitionException {
+ public void mT11() throws RecognitionException {
try {
int _type = T11;
- // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:10:5: ( 'import' )
+ // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:10:7: ( 'import' )
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:10:7: 'import'
{
match("import");
@@ -59,10 +59,10 @@ public class InternalMWELexer extends Lexer {
// $ANTLR end T11
// $ANTLR start T12
- public final void mT12() throws RecognitionException {
+ public void mT12() throws RecognitionException {
try {
int _type = T12;
- // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:11:5: ( '.' )
+ // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:11:7: ( '.' )
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:11:7: '.'
{
match('.');
@@ -77,10 +77,10 @@ public class InternalMWELexer extends Lexer {
// $ANTLR end T12
// $ANTLR start T13
- public final void mT13() throws RecognitionException {
+ public void mT13() throws RecognitionException {
try {
int _type = T13;
- // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:12:5: ( '*' )
+ // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:12:7: ( '*' )
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:12:7: '*'
{
match('*');
@@ -95,10 +95,10 @@ public class InternalMWELexer extends Lexer {
// $ANTLR end T13
// $ANTLR start T14
- public final void mT14() throws RecognitionException {
+ public void mT14() throws RecognitionException {
try {
int _type = T14;
- // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:13:5: ( ';' )
+ // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:13:7: ( ';' )
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:13:7: ';'
{
match(';');
@@ -113,10 +113,10 @@ public class InternalMWELexer extends Lexer {
// $ANTLR end T14
// $ANTLR start T15
- public final void mT15() throws RecognitionException {
+ public void mT15() throws RecognitionException {
try {
int _type = T15;
- // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:14:5: ( 'var' )
+ // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:14:7: ( 'var' )
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:14:7: 'var'
{
match("var");
@@ -132,10 +132,10 @@ public class InternalMWELexer extends Lexer {
// $ANTLR end T15
// $ANTLR start T16
- public final void mT16() throws RecognitionException {
+ public void mT16() throws RecognitionException {
try {
int _type = T16;
- // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:15:5: ( '=' )
+ // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:15:7: ( '=' )
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:15:7: '='
{
match('=');
@@ -150,10 +150,10 @@ public class InternalMWELexer extends Lexer {
// $ANTLR end T16
// $ANTLR start T17
- public final void mT17() throws RecognitionException {
+ public void mT17() throws RecognitionException {
try {
int _type = T17;
- // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:16:5: ( 'file' )
+ // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:16:7: ( 'file' )
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:16:7: 'file'
{
match("file");
@@ -169,10 +169,10 @@ public class InternalMWELexer extends Lexer {
// $ANTLR end T17
// $ANTLR start T18
- public final void mT18() throws RecognitionException {
+ public void mT18() throws RecognitionException {
try {
int _type = T18;
- // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:17:5: ( ':' )
+ // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:17:7: ( ':' )
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:17:7: ':'
{
match(':');
@@ -187,10 +187,10 @@ public class InternalMWELexer extends Lexer {
// $ANTLR end T18
// $ANTLR start T19
- public final void mT19() throws RecognitionException {
+ public void mT19() throws RecognitionException {
try {
int _type = T19;
- // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:18:5: ( '{' )
+ // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:18:7: ( '{' )
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:18:7: '{'
{
match('{');
@@ -205,10 +205,10 @@ public class InternalMWELexer extends Lexer {
// $ANTLR end T19
// $ANTLR start T20
- public final void mT20() throws RecognitionException {
+ public void mT20() throws RecognitionException {
try {
int _type = T20;
- // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:19:5: ( '}' )
+ // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:19:7: ( '}' )
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:19:7: '}'
{
match('}');
@@ -223,10 +223,10 @@ public class InternalMWELexer extends Lexer {
// $ANTLR end T20
// $ANTLR start T21
- public final void mT21() throws RecognitionException {
+ public void mT21() throws RecognitionException {
try {
int _type = T21;
- // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:20:5: ( '+=' )
+ // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:20:7: ( '+=' )
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:20:7: '+='
{
match("+=");
@@ -242,10 +242,10 @@ public class InternalMWELexer extends Lexer {
// $ANTLR end T21
// $ANTLR start RULE_ID
- public final void mRULE_ID() throws RecognitionException {
+ public void mRULE_ID() throws RecognitionException {
try {
int _type = RULE_ID;
- // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:938:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )
+ // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:938:11: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:938:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
{
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:938:11: ( '^' )?
@@ -321,10 +321,10 @@ public class InternalMWELexer extends Lexer {
// $ANTLR end RULE_ID
// $ANTLR start RULE_INT
- public final void mRULE_INT() throws RecognitionException {
+ public void mRULE_INT() throws RecognitionException {
try {
int _type = RULE_INT;
- // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:940:10: ( ( '0' .. '9' )+ )
+ // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:940:12: ( ( '0' .. '9' )+ )
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:940:12: ( '0' .. '9' )+
{
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:940:12: ( '0' .. '9' )+
@@ -368,10 +368,10 @@ public class InternalMWELexer extends Lexer {
// $ANTLR end RULE_INT
// $ANTLR start RULE_STRING
- public final void mRULE_STRING() throws RecognitionException {
+ public void mRULE_STRING() throws RecognitionException {
try {
int _type = RULE_STRING;
- // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:942:13: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | ~ ( '\\\\' | '\"' ) )* '\"' | '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | ~ ( '\\\\' | '\\'' ) )* '\\'' )
+ // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:942:15: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | ~ ( '\\\\' | '\"' ) )* '\"' | '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | ~ ( '\\\\' | '\\'' ) )* '\\'' )
int alt6=2;
int LA6_0 = input.LA(1);
@@ -522,10 +522,10 @@ public class InternalMWELexer extends Lexer {
// $ANTLR end RULE_STRING
// $ANTLR start RULE_ML_COMMENT
- public final void mRULE_ML_COMMENT() throws RecognitionException {
+ public void mRULE_ML_COMMENT() throws RecognitionException {
try {
int _type = RULE_ML_COMMENT;
- // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:944:17: ( '/*' ( options {greedy=false; } : . )* '*/' )
+ // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:944:19: ( '/*' ( options {greedy=false; } : . )* '*/' )
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:944:19: '/*' ( options {greedy=false; } : . )* '*/'
{
match("/*");
@@ -581,10 +581,10 @@ public class InternalMWELexer extends Lexer {
// $ANTLR end RULE_ML_COMMENT
// $ANTLR start RULE_SL_COMMENT
- public final void mRULE_SL_COMMENT() throws RecognitionException {
+ public void mRULE_SL_COMMENT() throws RecognitionException {
try {
int _type = RULE_SL_COMMENT;
- // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:946:17: ( '//' (~ ( '\\n' | '\\r' ) )* ( ( '\\r' )? '\\n' )? )
+ // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:946:19: ( '//' (~ ( '\\n' | '\\r' ) )* ( ( '\\r' )? '\\n' )? )
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:946:19: '//' (~ ( '\\n' | '\\r' ) )* ( ( '\\r' )? '\\n' )?
{
match("//");
@@ -671,10 +671,10 @@ public class InternalMWELexer extends Lexer {
// $ANTLR end RULE_SL_COMMENT
// $ANTLR start RULE_WS
- public final void mRULE_WS() throws RecognitionException {
+ public void mRULE_WS() throws RecognitionException {
try {
int _type = RULE_WS;
- // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:948:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ )
+ // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:948:11: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ )
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:948:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
{
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:948:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
@@ -728,10 +728,10 @@ public class InternalMWELexer extends Lexer {
// $ANTLR end RULE_WS
// $ANTLR start RULE_ANY_OTHER
- public final void mRULE_ANY_OTHER() throws RecognitionException {
+ public void mRULE_ANY_OTHER() throws RecognitionException {
try {
int _type = RULE_ANY_OTHER;
- // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:950:16: ( . )
+ // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:950:18: ( . )
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:950:18: .
{
matchAny();
@@ -746,7 +746,7 @@ public class InternalMWELexer extends Lexer {
// $ANTLR end RULE_ANY_OTHER
public void mTokens() throws RecognitionException {
- // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:1:8: ( T11 | T12 | T13 | T14 | T15 | T16 | T17 | T18 | T19 | T20 | T21 | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER )
+ // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:1:10: ( T11 | T12 | T13 | T14 | T15 | T16 | T17 | T18 | T19 | T20 | T21 | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER )
int alt12=18;
int LA12_0 = input.LA(1);
@@ -1063,4 +1063,4 @@ public class InternalMWELexer extends Lexer {
-}
+} \ No newline at end of file
diff --git a/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWEParser.java b/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWEParser.java
index c09d1fe..70a4844 100644
--- a/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWEParser.java
+++ b/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWEParser.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g 2009-01-13 09:51:31
+// $ANTLR 3.0 ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g 2009-01-15 16:52:06
package org.eclipse.emf.mwe.di.parser.antlr.internal;
@@ -65,14 +65,14 @@ public class InternalMWEParser extends AbstractInternalAntlrParser {
// $ANTLR start entryRuleFile
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:66:1: entryRuleFile returns [EObject current=null] : iv_ruleFile= ruleFile EOF ;
- public final EObject entryRuleFile() throws RecognitionException {
+ public EObject entryRuleFile() throws RecognitionException {
EObject current = null;
EObject iv_ruleFile = null;
try {
- // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:66:46: (iv_ruleFile= ruleFile EOF )
+ // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:67:2: (iv_ruleFile= ruleFile EOF )
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:67:2: iv_ruleFile= ruleFile EOF
{
currentNode = createCompositeNode("classpath:/org/eclipse/emf/mwe/di/MWE.xmi#//@rules.0" /* xtext::ParserRule */, currentNode);
@@ -100,7 +100,7 @@ public class InternalMWEParser extends AbstractInternalAntlrParser {
// $ANTLR start ruleFile
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:74:1: ruleFile returns [EObject current=null] : ( ( (lv_imports= ruleImport )* (lv_properties= ruleProperty )* ) (lv_value= ruleComplexValue ) ) ;
- public final EObject ruleFile() throws RecognitionException {
+ public EObject ruleFile() throws RecognitionException {
EObject current = null;
EObject lv_imports = null;
@@ -112,7 +112,7 @@ public class InternalMWEParser extends AbstractInternalAntlrParser {
EObject temp=null; setCurrentLookahead(); resetLookahead();
try {
- // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:76:33: ( ( ( (lv_imports= ruleImport )* (lv_properties= ruleProperty )* ) (lv_value= ruleComplexValue ) ) )
+ // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:77:1: ( ( ( (lv_imports= ruleImport )* (lv_properties= ruleProperty )* ) (lv_value= ruleComplexValue ) ) )
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:77:1: ( ( (lv_imports= ruleImport )* (lv_properties= ruleProperty )* ) (lv_value= ruleComplexValue ) )
{
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:77:1: ( ( (lv_imports= ruleImport )* (lv_properties= ruleProperty )* ) (lv_value= ruleComplexValue ) )
@@ -260,14 +260,14 @@ public class InternalMWEParser extends AbstractInternalAntlrParser {
// $ANTLR start entryRuleImport
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:147:1: entryRuleImport returns [EObject current=null] : iv_ruleImport= ruleImport EOF ;
- public final EObject entryRuleImport() throws RecognitionException {
+ public EObject entryRuleImport() throws RecognitionException {
EObject current = null;
EObject iv_ruleImport = null;
try {
- // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:147:48: (iv_ruleImport= ruleImport EOF )
+ // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:148:2: (iv_ruleImport= ruleImport EOF )
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:148:2: iv_ruleImport= ruleImport EOF
{
currentNode = createCompositeNode("classpath:/org/eclipse/emf/mwe/di/MWE.xmi#//@rules.1" /* xtext::ParserRule */, currentNode);
@@ -295,7 +295,7 @@ public class InternalMWEParser extends AbstractInternalAntlrParser {
// $ANTLR start ruleImport
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:155:1: ruleImport returns [EObject current=null] : (this_JavaImport= ruleJavaImport | this_GenericImport= ruleGenericImport ) ;
- public final EObject ruleImport() throws RecognitionException {
+ public EObject ruleImport() throws RecognitionException {
EObject current = null;
EObject this_JavaImport = null;
@@ -305,7 +305,7 @@ public class InternalMWEParser extends AbstractInternalAntlrParser {
EObject temp=null; setCurrentLookahead(); resetLookahead();
try {
- // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:157:33: ( (this_JavaImport= ruleJavaImport | this_GenericImport= ruleGenericImport ) )
+ // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:158:1: ( (this_JavaImport= ruleJavaImport | this_GenericImport= ruleGenericImport ) )
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:158:1: (this_JavaImport= ruleJavaImport | this_GenericImport= ruleGenericImport )
{
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:158:1: (this_JavaImport= ruleJavaImport | this_GenericImport= ruleGenericImport )
@@ -391,14 +391,14 @@ public class InternalMWEParser extends AbstractInternalAntlrParser {
// $ANTLR start entryRuleJavaImport
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:184:1: entryRuleJavaImport returns [EObject current=null] : iv_ruleJavaImport= ruleJavaImport EOF ;
- public final EObject entryRuleJavaImport() throws RecognitionException {
+ public EObject entryRuleJavaImport() throws RecognitionException {
EObject current = null;
EObject iv_ruleJavaImport = null;
try {
- // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:184:52: (iv_ruleJavaImport= ruleJavaImport EOF )
+ // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:185:2: (iv_ruleJavaImport= ruleJavaImport EOF )
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:185:2: iv_ruleJavaImport= ruleJavaImport EOF
{
currentNode = createCompositeNode("classpath:/org/eclipse/emf/mwe/di/MWE.xmi#//@rules.2" /* xtext::ParserRule */, currentNode);
@@ -426,7 +426,7 @@ public class InternalMWEParser extends AbstractInternalAntlrParser {
// $ANTLR start ruleJavaImport
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:192:1: ruleJavaImport returns [EObject current=null] : ( ( ( 'import' (lv_javaImport= ruleQualifiedName ) ) ( '.' (lv_wildcard= '*' ) )? ) ';' ) ;
- public final EObject ruleJavaImport() throws RecognitionException {
+ public EObject ruleJavaImport() throws RecognitionException {
EObject current = null;
Token lv_wildcard=null;
@@ -435,7 +435,7 @@ public class InternalMWEParser extends AbstractInternalAntlrParser {
EObject temp=null; setCurrentLookahead(); resetLookahead();
try {
- // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:194:33: ( ( ( ( 'import' (lv_javaImport= ruleQualifiedName ) ) ( '.' (lv_wildcard= '*' ) )? ) ';' ) )
+ // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:195:1: ( ( ( ( 'import' (lv_javaImport= ruleQualifiedName ) ) ( '.' (lv_wildcard= '*' ) )? ) ';' ) )
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:195:1: ( ( ( 'import' (lv_javaImport= ruleQualifiedName ) ) ( '.' (lv_wildcard= '*' ) )? ) ';' )
{
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:195:1: ( ( ( 'import' (lv_javaImport= ruleQualifiedName ) ) ( '.' (lv_wildcard= '*' ) )? ) ';' )
@@ -553,14 +553,14 @@ public class InternalMWEParser extends AbstractInternalAntlrParser {
// $ANTLR start entryRuleGenericImport
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:255:1: entryRuleGenericImport returns [EObject current=null] : iv_ruleGenericImport= ruleGenericImport EOF ;
- public final EObject entryRuleGenericImport() throws RecognitionException {
+ public EObject entryRuleGenericImport() throws RecognitionException {
EObject current = null;
EObject iv_ruleGenericImport = null;
try {
- // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:255:55: (iv_ruleGenericImport= ruleGenericImport EOF )
+ // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:256:2: (iv_ruleGenericImport= ruleGenericImport EOF )
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:256:2: iv_ruleGenericImport= ruleGenericImport EOF
{
currentNode = createCompositeNode("classpath:/org/eclipse/emf/mwe/di/MWE.xmi#//@rules.3" /* xtext::ParserRule */, currentNode);
@@ -588,14 +588,14 @@ public class InternalMWEParser extends AbstractInternalAntlrParser {
// $ANTLR start ruleGenericImport
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:263:1: ruleGenericImport returns [EObject current=null] : ( ( 'import' (lv_value= RULE_STRING ) ) ( ';' )? ) ;
- public final EObject ruleGenericImport() throws RecognitionException {
+ public EObject ruleGenericImport() throws RecognitionException {
EObject current = null;
Token lv_value=null;
EObject temp=null; setCurrentLookahead(); resetLookahead();
try {
- // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:265:33: ( ( ( 'import' (lv_value= RULE_STRING ) ) ( ';' )? ) )
+ // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:266:1: ( ( ( 'import' (lv_value= RULE_STRING ) ) ( ';' )? ) )
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:266:1: ( ( 'import' (lv_value= RULE_STRING ) ) ( ';' )? )
{
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:266:1: ( ( 'import' (lv_value= RULE_STRING ) ) ( ';' )? )
@@ -677,14 +677,14 @@ public class InternalMWEParser extends AbstractInternalAntlrParser {
// $ANTLR start entryRuleProperty
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:301:1: entryRuleProperty returns [EObject current=null] : iv_ruleProperty= ruleProperty EOF ;
- public final EObject entryRuleProperty() throws RecognitionException {
+ public EObject entryRuleProperty() throws RecognitionException {
EObject current = null;
EObject iv_ruleProperty = null;
try {
- // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:301:50: (iv_ruleProperty= ruleProperty EOF )
+ // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:302:2: (iv_ruleProperty= ruleProperty EOF )
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:302:2: iv_ruleProperty= ruleProperty EOF
{
currentNode = createCompositeNode("classpath:/org/eclipse/emf/mwe/di/MWE.xmi#//@rules.4" /* xtext::ParserRule */, currentNode);
@@ -712,7 +712,7 @@ public class InternalMWEParser extends AbstractInternalAntlrParser {
// $ANTLR start ruleProperty
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:309:1: ruleProperty returns [EObject current=null] : (this_LocalVariable= ruleLocalVariable | this_PropertiesFileImport= rulePropertiesFileImport ) ;
- public final EObject ruleProperty() throws RecognitionException {
+ public EObject ruleProperty() throws RecognitionException {
EObject current = null;
EObject this_LocalVariable = null;
@@ -722,7 +722,7 @@ public class InternalMWEParser extends AbstractInternalAntlrParser {
EObject temp=null; setCurrentLookahead(); resetLookahead();
try {
- // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:311:33: ( (this_LocalVariable= ruleLocalVariable | this_PropertiesFileImport= rulePropertiesFileImport ) )
+ // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:312:1: ( (this_LocalVariable= ruleLocalVariable | this_PropertiesFileImport= rulePropertiesFileImport ) )
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:312:1: (this_LocalVariable= ruleLocalVariable | this_PropertiesFileImport= rulePropertiesFileImport )
{
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:312:1: (this_LocalVariable= ruleLocalVariable | this_PropertiesFileImport= rulePropertiesFileImport )
@@ -808,14 +808,14 @@ public class InternalMWEParser extends AbstractInternalAntlrParser {
// $ANTLR start entryRuleLocalVariable
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:338:1: entryRuleLocalVariable returns [EObject current=null] : iv_ruleLocalVariable= ruleLocalVariable EOF ;
- public final EObject entryRuleLocalVariable() throws RecognitionException {
+ public EObject entryRuleLocalVariable() throws RecognitionException {
EObject current = null;
EObject iv_ruleLocalVariable = null;
try {
- // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:338:55: (iv_ruleLocalVariable= ruleLocalVariable EOF )
+ // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:339:2: (iv_ruleLocalVariable= ruleLocalVariable EOF )
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:339:2: iv_ruleLocalVariable= ruleLocalVariable EOF
{
currentNode = createCompositeNode("classpath:/org/eclipse/emf/mwe/di/MWE.xmi#//@rules.5" /* xtext::ParserRule */, currentNode);
@@ -843,7 +843,7 @@ public class InternalMWEParser extends AbstractInternalAntlrParser {
// $ANTLR start ruleLocalVariable
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:346:1: ruleLocalVariable returns [EObject current=null] : ( ( ( 'var' (lv_name= RULE_ID ) ) ( '=' (lv_value= ruleValue ) )? ) ';' ) ;
- public final EObject ruleLocalVariable() throws RecognitionException {
+ public EObject ruleLocalVariable() throws RecognitionException {
EObject current = null;
Token lv_name=null;
@@ -852,7 +852,7 @@ public class InternalMWEParser extends AbstractInternalAntlrParser {
EObject temp=null; setCurrentLookahead(); resetLookahead();
try {
- // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:348:33: ( ( ( ( 'var' (lv_name= RULE_ID ) ) ( '=' (lv_value= ruleValue ) )? ) ';' ) )
+ // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:349:1: ( ( ( ( 'var' (lv_name= RULE_ID ) ) ( '=' (lv_value= ruleValue ) )? ) ';' ) )
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:349:1: ( ( ( 'var' (lv_name= RULE_ID ) ) ( '=' (lv_value= ruleValue ) )? ) ';' )
{
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:349:1: ( ( ( 'var' (lv_name= RULE_ID ) ) ( '=' (lv_value= ruleValue ) )? ) ';' )
@@ -970,14 +970,14 @@ public class InternalMWEParser extends AbstractInternalAntlrParser {
// $ANTLR start entryRulePropertiesFileImport
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:409:1: entryRulePropertiesFileImport returns [EObject current=null] : iv_rulePropertiesFileImport= rulePropertiesFileImport EOF ;
- public final EObject entryRulePropertiesFileImport() throws RecognitionException {
+ public EObject entryRulePropertiesFileImport() throws RecognitionException {
EObject current = null;
EObject iv_rulePropertiesFileImport = null;
try {
- // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:409:62: (iv_rulePropertiesFileImport= rulePropertiesFileImport EOF )
+ // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:410:2: (iv_rulePropertiesFileImport= rulePropertiesFileImport EOF )
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:410:2: iv_rulePropertiesFileImport= rulePropertiesFileImport EOF
{
currentNode = createCompositeNode("classpath:/org/eclipse/emf/mwe/di/MWE.xmi#//@rules.6" /* xtext::ParserRule */, currentNode);
@@ -1005,14 +1005,14 @@ public class InternalMWEParser extends AbstractInternalAntlrParser {
// $ANTLR start rulePropertiesFileImport
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:417:1: rulePropertiesFileImport returns [EObject current=null] : ( ( ( 'var' 'file' ) (lv_file= RULE_STRING ) ) ';' ) ;
- public final EObject rulePropertiesFileImport() throws RecognitionException {
+ public EObject rulePropertiesFileImport() throws RecognitionException {
EObject current = null;
Token lv_file=null;
EObject temp=null; setCurrentLookahead(); resetLookahead();
try {
- // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:419:33: ( ( ( ( 'var' 'file' ) (lv_file= RULE_STRING ) ) ';' ) )
+ // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:420:1: ( ( ( ( 'var' 'file' ) (lv_file= RULE_STRING ) ) ';' ) )
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:420:1: ( ( ( 'var' 'file' ) (lv_file= RULE_STRING ) ) ';' )
{
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:420:1: ( ( ( 'var' 'file' ) (lv_file= RULE_STRING ) ) ';' )
@@ -1087,14 +1087,14 @@ public class InternalMWEParser extends AbstractInternalAntlrParser {
// $ANTLR start entryRuleValue
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:459:1: entryRuleValue returns [EObject current=null] : iv_ruleValue= ruleValue EOF ;
- public final EObject entryRuleValue() throws RecognitionException {
+ public EObject entryRuleValue() throws RecognitionException {
EObject current = null;
EObject iv_ruleValue = null;
try {
- // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:459:47: (iv_ruleValue= ruleValue EOF )
+ // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:460:2: (iv_ruleValue= ruleValue EOF )
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:460:2: iv_ruleValue= ruleValue EOF
{
currentNode = createCompositeNode("classpath:/org/eclipse/emf/mwe/di/MWE.xmi#//@rules.7" /* xtext::ParserRule */, currentNode);
@@ -1122,7 +1122,7 @@ public class InternalMWEParser extends AbstractInternalAntlrParser {
// $ANTLR start ruleValue
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:467:1: ruleValue returns [EObject current=null] : ( ( (this_SimpleValue= ruleSimpleValue | this_ComplexValue= ruleComplexValue ) | this_IdRef= ruleIdRef ) | this_WorkflowRef= ruleWorkflowRef ) ;
- public final EObject ruleValue() throws RecognitionException {
+ public EObject ruleValue() throws RecognitionException {
EObject current = null;
EObject this_SimpleValue = null;
@@ -1136,7 +1136,7 @@ public class InternalMWEParser extends AbstractInternalAntlrParser {
EObject temp=null; setCurrentLookahead(); resetLookahead();
try {
- // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:469:33: ( ( ( (this_SimpleValue= ruleSimpleValue | this_ComplexValue= ruleComplexValue ) | this_IdRef= ruleIdRef ) | this_WorkflowRef= ruleWorkflowRef ) )
+ // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:470:1: ( ( ( (this_SimpleValue= ruleSimpleValue | this_ComplexValue= ruleComplexValue ) | this_IdRef= ruleIdRef ) | this_WorkflowRef= ruleWorkflowRef ) )
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:470:1: ( ( (this_SimpleValue= ruleSimpleValue | this_ComplexValue= ruleComplexValue ) | this_IdRef= ruleIdRef ) | this_WorkflowRef= ruleWorkflowRef )
{
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:470:1: ( ( (this_SimpleValue= ruleSimpleValue | this_ComplexValue= ruleComplexValue ) | this_IdRef= ruleIdRef ) | this_WorkflowRef= ruleWorkflowRef )
@@ -1311,14 +1311,14 @@ public class InternalMWEParser extends AbstractInternalAntlrParser {
// $ANTLR start entryRuleSimpleValue
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:516:1: entryRuleSimpleValue returns [EObject current=null] : iv_ruleSimpleValue= ruleSimpleValue EOF ;
- public final EObject entryRuleSimpleValue() throws RecognitionException {
+ public EObject entryRuleSimpleValue() throws RecognitionException {
EObject current = null;
EObject iv_ruleSimpleValue = null;
try {
- // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:516:53: (iv_ruleSimpleValue= ruleSimpleValue EOF )
+ // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:517:2: (iv_ruleSimpleValue= ruleSimpleValue EOF )
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:517:2: iv_ruleSimpleValue= ruleSimpleValue EOF
{
currentNode = createCompositeNode("classpath:/org/eclipse/emf/mwe/di/MWE.xmi#//@rules.8" /* xtext::ParserRule */, currentNode);
@@ -1346,14 +1346,14 @@ public class InternalMWEParser extends AbstractInternalAntlrParser {
// $ANTLR start ruleSimpleValue
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:524:1: ruleSimpleValue returns [EObject current=null] : (lv_value= RULE_STRING ) ;
- public final EObject ruleSimpleValue() throws RecognitionException {
+ public EObject ruleSimpleValue() throws RecognitionException {
EObject current = null;
Token lv_value=null;
EObject temp=null; setCurrentLookahead(); resetLookahead();
try {
- // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:526:33: ( (lv_value= RULE_STRING ) )
+ // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:527:1: ( (lv_value= RULE_STRING ) )
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:527:1: (lv_value= RULE_STRING )
{
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:527:1: (lv_value= RULE_STRING )
@@ -1398,14 +1398,14 @@ public class InternalMWEParser extends AbstractInternalAntlrParser {
// $ANTLR start entryRuleComplexValue
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:556:1: entryRuleComplexValue returns [EObject current=null] : iv_ruleComplexValue= ruleComplexValue EOF ;
- public final EObject entryRuleComplexValue() throws RecognitionException {
+ public EObject entryRuleComplexValue() throws RecognitionException {
EObject current = null;
EObject iv_ruleComplexValue = null;
try {
- // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:556:54: (iv_ruleComplexValue= ruleComplexValue EOF )
+ // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:557:2: (iv_ruleComplexValue= ruleComplexValue EOF )
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:557:2: iv_ruleComplexValue= ruleComplexValue EOF
{
currentNode = createCompositeNode("classpath:/org/eclipse/emf/mwe/di/MWE.xmi#//@rules.10" /* xtext::ParserRule */, currentNode);
@@ -1433,7 +1433,7 @@ public class InternalMWEParser extends AbstractInternalAntlrParser {
// $ANTLR start ruleComplexValue
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:564:1: ruleComplexValue returns [EObject current=null] : ( ( ( ( (lv_className= ruleQualifiedName )? ( ':' (lv_id= RULE_ID ) )? ) (lv_fooBar= '{' ) ) (lv_assignments= ruleAssignment )* ) '}' ) ;
- public final EObject ruleComplexValue() throws RecognitionException {
+ public EObject ruleComplexValue() throws RecognitionException {
EObject current = null;
Token lv_id=null;
@@ -1445,7 +1445,7 @@ public class InternalMWEParser extends AbstractInternalAntlrParser {
EObject temp=null; setCurrentLookahead(); resetLookahead();
try {
- // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:566:33: ( ( ( ( ( (lv_className= ruleQualifiedName )? ( ':' (lv_id= RULE_ID ) )? ) (lv_fooBar= '{' ) ) (lv_assignments= ruleAssignment )* ) '}' ) )
+ // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:567:1: ( ( ( ( ( (lv_className= ruleQualifiedName )? ( ':' (lv_id= RULE_ID ) )? ) (lv_fooBar= '{' ) ) (lv_assignments= ruleAssignment )* ) '}' ) )
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:567:1: ( ( ( ( (lv_className= ruleQualifiedName )? ( ':' (lv_id= RULE_ID ) )? ) (lv_fooBar= '{' ) ) (lv_assignments= ruleAssignment )* ) '}' )
{
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:567:1: ( ( ( ( (lv_className= ruleQualifiedName )? ( ':' (lv_id= RULE_ID ) )? ) (lv_fooBar= '{' ) ) (lv_assignments= ruleAssignment )* ) '}' )
@@ -1643,14 +1643,14 @@ public class InternalMWEParser extends AbstractInternalAntlrParser {
// $ANTLR start entryRuleWorkflowRef
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:664:1: entryRuleWorkflowRef returns [EObject current=null] : iv_ruleWorkflowRef= ruleWorkflowRef EOF ;
- public final EObject entryRuleWorkflowRef() throws RecognitionException {
+ public EObject entryRuleWorkflowRef() throws RecognitionException {
EObject current = null;
EObject iv_ruleWorkflowRef = null;
try {
- // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:664:53: (iv_ruleWorkflowRef= ruleWorkflowRef EOF )
+ // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:665:2: (iv_ruleWorkflowRef= ruleWorkflowRef EOF )
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:665:2: iv_ruleWorkflowRef= ruleWorkflowRef EOF
{
currentNode = createCompositeNode("classpath:/org/eclipse/emf/mwe/di/MWE.xmi#//@rules.11" /* xtext::ParserRule */, currentNode);
@@ -1678,7 +1678,7 @@ public class InternalMWEParser extends AbstractInternalAntlrParser {
// $ANTLR start ruleWorkflowRef
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:672:1: ruleWorkflowRef returns [EObject current=null] : ( ( ( ( 'file' (lv_uri= RULE_STRING ) ) '{' ) (lv_assignments= ruleAssignment )* ) '}' ) ;
- public final EObject ruleWorkflowRef() throws RecognitionException {
+ public EObject ruleWorkflowRef() throws RecognitionException {
EObject current = null;
Token lv_uri=null;
@@ -1687,7 +1687,7 @@ public class InternalMWEParser extends AbstractInternalAntlrParser {
EObject temp=null; setCurrentLookahead(); resetLookahead();
try {
- // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:674:33: ( ( ( ( ( 'file' (lv_uri= RULE_STRING ) ) '{' ) (lv_assignments= ruleAssignment )* ) '}' ) )
+ // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:675:1: ( ( ( ( ( 'file' (lv_uri= RULE_STRING ) ) '{' ) (lv_assignments= ruleAssignment )* ) '}' ) )
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:675:1: ( ( ( ( 'file' (lv_uri= RULE_STRING ) ) '{' ) (lv_assignments= ruleAssignment )* ) '}' )
{
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:675:1: ( ( ( ( 'file' (lv_uri= RULE_STRING ) ) '{' ) (lv_assignments= ruleAssignment )* ) '}' )
@@ -1812,14 +1812,14 @@ public class InternalMWEParser extends AbstractInternalAntlrParser {
// $ANTLR start entryRuleIdRef
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:735:1: entryRuleIdRef returns [EObject current=null] : iv_ruleIdRef= ruleIdRef EOF ;
- public final EObject entryRuleIdRef() throws RecognitionException {
+ public EObject entryRuleIdRef() throws RecognitionException {
EObject current = null;
EObject iv_ruleIdRef = null;
try {
- // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:735:47: (iv_ruleIdRef= ruleIdRef EOF )
+ // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:736:2: (iv_ruleIdRef= ruleIdRef EOF )
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:736:2: iv_ruleIdRef= ruleIdRef EOF
{
currentNode = createCompositeNode("classpath:/org/eclipse/emf/mwe/di/MWE.xmi#//@rules.12" /* xtext::ParserRule */, currentNode);
@@ -1847,14 +1847,14 @@ public class InternalMWEParser extends AbstractInternalAntlrParser {
// $ANTLR start ruleIdRef
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:743:1: ruleIdRef returns [EObject current=null] : (lv_id= RULE_ID ) ;
- public final EObject ruleIdRef() throws RecognitionException {
+ public EObject ruleIdRef() throws RecognitionException {
EObject current = null;
Token lv_id=null;
EObject temp=null; setCurrentLookahead(); resetLookahead();
try {
- // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:745:33: ( (lv_id= RULE_ID ) )
+ // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:746:1: ( (lv_id= RULE_ID ) )
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:746:1: (lv_id= RULE_ID )
{
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:746:1: (lv_id= RULE_ID )
@@ -1899,14 +1899,14 @@ public class InternalMWEParser extends AbstractInternalAntlrParser {
// $ANTLR start entryRuleAssignment
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:773:1: entryRuleAssignment returns [EObject current=null] : iv_ruleAssignment= ruleAssignment EOF ;
- public final EObject entryRuleAssignment() throws RecognitionException {
+ public EObject entryRuleAssignment() throws RecognitionException {
EObject current = null;
EObject iv_ruleAssignment = null;
try {
- // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:773:52: (iv_ruleAssignment= ruleAssignment EOF )
+ // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:774:2: (iv_ruleAssignment= ruleAssignment EOF )
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:774:2: iv_ruleAssignment= ruleAssignment EOF
{
currentNode = createCompositeNode("classpath:/org/eclipse/emf/mwe/di/MWE.xmi#//@rules.13" /* xtext::ParserRule */, currentNode);
@@ -1934,7 +1934,7 @@ public class InternalMWEParser extends AbstractInternalAntlrParser {
// $ANTLR start ruleAssignment
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:781:1: ruleAssignment returns [EObject current=null] : ( ( ( (lv_feature= RULE_ID )? (lv_operator= ( '=' | '+=' ) ) ) (lv_value= ruleValue ) ) ( ';' )? ) ;
- public final EObject ruleAssignment() throws RecognitionException {
+ public EObject ruleAssignment() throws RecognitionException {
EObject current = null;
Token lv_feature=null;
@@ -1944,7 +1944,7 @@ public class InternalMWEParser extends AbstractInternalAntlrParser {
EObject temp=null; setCurrentLookahead(); resetLookahead();
try {
- // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:783:33: ( ( ( ( (lv_feature= RULE_ID )? (lv_operator= ( '=' | '+=' ) ) ) (lv_value= ruleValue ) ) ( ';' )? ) )
+ // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:784:1: ( ( ( ( (lv_feature= RULE_ID )? (lv_operator= ( '=' | '+=' ) ) ) (lv_value= ruleValue ) ) ( ';' )? ) )
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:784:1: ( ( ( (lv_feature= RULE_ID )? (lv_operator= ( '=' | '+=' ) ) ) (lv_value= ruleValue ) ) ( ';' )? )
{
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:784:1: ( ( ( (lv_feature= RULE_ID )? (lv_operator= ( '=' | '+=' ) ) ) (lv_value= ruleValue ) ) ( ';' )? )
@@ -2123,14 +2123,14 @@ public class InternalMWEParser extends AbstractInternalAntlrParser {
// $ANTLR start entryRuleQualifiedName
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:861:1: entryRuleQualifiedName returns [EObject current=null] : iv_ruleQualifiedName= ruleQualifiedName EOF ;
- public final EObject entryRuleQualifiedName() throws RecognitionException {
+ public EObject entryRuleQualifiedName() throws RecognitionException {
EObject current = null;
EObject iv_ruleQualifiedName = null;
try {
- // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:861:55: (iv_ruleQualifiedName= ruleQualifiedName EOF )
+ // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:862:2: (iv_ruleQualifiedName= ruleQualifiedName EOF )
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:862:2: iv_ruleQualifiedName= ruleQualifiedName EOF
{
currentNode = createCompositeNode("classpath:/org/eclipse/emf/mwe/di/MWE.xmi#//@rules.14" /* xtext::ParserRule */, currentNode);
@@ -2158,14 +2158,14 @@ public class InternalMWEParser extends AbstractInternalAntlrParser {
// $ANTLR start ruleQualifiedName
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:869:1: ruleQualifiedName returns [EObject current=null] : ( (lv_parts= RULE_ID ) ( (lv_parts= '.' ) (lv_parts= RULE_ID ) )* ) ;
- public final EObject ruleQualifiedName() throws RecognitionException {
+ public EObject ruleQualifiedName() throws RecognitionException {
EObject current = null;
Token lv_parts=null;
EObject temp=null; setCurrentLookahead(); resetLookahead();
try {
- // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:871:33: ( ( (lv_parts= RULE_ID ) ( (lv_parts= '.' ) (lv_parts= RULE_ID ) )* ) )
+ // ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:872:1: ( ( (lv_parts= RULE_ID ) ( (lv_parts= '.' ) (lv_parts= RULE_ID ) )* ) )
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:872:1: ( (lv_parts= RULE_ID ) ( (lv_parts= '.' ) (lv_parts= RULE_ID ) )* )
{
// ./src-gen/org/eclipse/emf/mwe/di/parser/antlr/internal/InternalMWE.g:872:1: ( (lv_parts= RULE_ID ) ( (lv_parts= '.' ) (lv_parts= RULE_ID ) )* )
@@ -2370,4 +2370,4 @@ public class InternalMWEParser extends AbstractInternalAntlrParser {
public static final BitSet FOLLOW_12_in_ruleQualifiedName2164 = new BitSet(new long[]{0x0000000000000020L});
public static final BitSet FOLLOW_RULE_ID_in_ruleQualifiedName2197 = new BitSet(new long[]{0x0000000000001002L});
-}
+} \ No newline at end of file
diff --git a/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/MWEDelimiters.java b/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/MWEDelimiters.java
new file mode 100644
index 0000000..79016a1
--- /dev/null
+++ b/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/MWEDelimiters.java
@@ -0,0 +1,27 @@
+/*
+Generated with Xtext
+*/
+package org.eclipse.emf.mwe.di.parser.packrat;
+
+import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
+import org.eclipse.xtext.parser.packrat.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
+import org.eclipse.xtext.parser.packrat.matching.SetBasedKeywordMatcher;
+
+public final class MWEDelimiters {
+
+ private MWEDelimiters() {
+ throw new UnsupportedOperationException("Utility classes may not be initialized");
+ }
+
+ public static ICharacterClass keyword$25$Delimiter = ICharacterClass.Factory.nullClass();
+
+ // TODO do not use IDConsumer internals
+ public static ICharacterClass keyword$21$Delimiter = XtextBuiltinIDConsumer.IDConsumer$$2;
+
+ public static ISequenceMatcher ruleCall$35$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+
+ public static ISequenceMatcher ruleCall$49$Delimiter = new SetBasedKeywordMatcher(
+ "import", "var", "file");
+
+}
diff --git a/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/MWEParserConfiguration.java b/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/MWEParserConfiguration.java
index fb40989..38f3ea1 100644
--- a/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/MWEParserConfiguration.java
+++ b/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/MWEParserConfiguration.java
@@ -123,12 +123,12 @@ public class MWEParserConfiguration extends AbstractParserConfiguration {
}
public void configureConsumers() {
- getFileConsumer().setImportConsumer(getImportConsumer());
getFileConsumer().setComplexValueConsumer(getComplexValueConsumer());
+ getFileConsumer().setImportConsumer(getImportConsumer());
getFileConsumer().setPropertyConsumer(getPropertyConsumer());
- getImportConsumer().setJavaImportConsumer(getJavaImportConsumer());
getImportConsumer().setGenericImportConsumer(getGenericImportConsumer());
+ getImportConsumer().setJavaImportConsumer(getJavaImportConsumer());
getJavaImportConsumer().setQualifiedNameConsumer(getQualifiedNameConsumer());
@@ -142,22 +142,22 @@ public class MWEParserConfiguration extends AbstractParserConfiguration {
getPropertiesFileImportConsumer().setStringConsumer(getStringConsumer());
- getValueConsumer().setSimpleValueConsumer(getSimpleValueConsumer());
+ getValueConsumer().setComplexValueConsumer(getComplexValueConsumer());
getValueConsumer().setIdRefConsumer(getIdRefConsumer());
+ getValueConsumer().setSimpleValueConsumer(getSimpleValueConsumer());
getValueConsumer().setWorkflowRefConsumer(getWorkflowRefConsumer());
- getValueConsumer().setComplexValueConsumer(getComplexValueConsumer());
getSimpleValueConsumer().setStringConsumer(getStringConsumer());
- getAssignableConsumer().setWorkflowRefConsumer(getWorkflowRefConsumer());
getAssignableConsumer().setComplexValueConsumer(getComplexValueConsumer());
+ getAssignableConsumer().setWorkflowRefConsumer(getWorkflowRefConsumer());
+ getComplexValueConsumer().setAssignmentConsumer(getAssignmentConsumer());
getComplexValueConsumer().setIdConsumer(getIdConsumer());
getComplexValueConsumer().setQualifiedNameConsumer(getQualifiedNameConsumer());
- getComplexValueConsumer().setAssignmentConsumer(getAssignmentConsumer());
- getWorkflowRefConsumer().setStringConsumer(getStringConsumer());
getWorkflowRefConsumer().setAssignmentConsumer(getAssignmentConsumer());
+ getWorkflowRefConsumer().setStringConsumer(getStringConsumer());
getIdRefConsumer().setIdConsumer(getIdConsumer());
@@ -166,12 +166,51 @@ public class MWEParserConfiguration extends AbstractParserConfiguration {
getQualifiedNameConsumer().setIdConsumer(getIdConsumer());
+ getJavaImportConsumer().setKeyword$8$Delimiter(MWEDelimiters.keyword$25$Delimiter);
+ getJavaImportConsumer().setKeyword$11$Delimiter(MWEDelimiters.keyword$25$Delimiter);
+ getJavaImportConsumer().setKeyword$4$Delimiter(MWEDelimiters.keyword$21$Delimiter);
+ getJavaImportConsumer().setKeyword$10$Delimiter(MWEDelimiters.keyword$25$Delimiter);
+ getGenericImportConsumer().setRuleCall$5$Delimiter(MWEDelimiters.ruleCall$35$Delimiter);
+ getGenericImportConsumer().setKeyword$6$Delimiter(MWEDelimiters.keyword$25$Delimiter);
+ getGenericImportConsumer().setKeyword$3$Delimiter(MWEDelimiters.keyword$21$Delimiter);
+ getLocalVariableConsumer().setRuleCall$6$Delimiter(MWEDelimiters.ruleCall$49$Delimiter);
+ getLocalVariableConsumer().setKeyword$11$Delimiter(MWEDelimiters.keyword$25$Delimiter);
+ getLocalVariableConsumer().setKeyword$4$Delimiter(MWEDelimiters.keyword$21$Delimiter);
+ getLocalVariableConsumer().setKeyword$8$Delimiter(MWEDelimiters.keyword$25$Delimiter);
+ getPropertiesFileImportConsumer().setRuleCall$7$Delimiter(MWEDelimiters.ruleCall$35$Delimiter);
+ getPropertiesFileImportConsumer().setKeyword$4$Delimiter(MWEDelimiters.keyword$21$Delimiter);
+ getPropertiesFileImportConsumer().setKeyword$8$Delimiter(MWEDelimiters.keyword$25$Delimiter);
+ getPropertiesFileImportConsumer().setKeyword$5$Delimiter(MWEDelimiters.keyword$21$Delimiter);
+ getSimpleValueConsumer().setRuleCall$2$Delimiter(MWEDelimiters.ruleCall$35$Delimiter);
+ getComplexValueConsumer().setRuleCall$10$Delimiter(MWEDelimiters.ruleCall$49$Delimiter);
+ getComplexValueConsumer().setKeyword$15$Delimiter(MWEDelimiters.keyword$25$Delimiter);
+ getComplexValueConsumer().setKeyword$12$Delimiter(MWEDelimiters.keyword$25$Delimiter);
+ getComplexValueConsumer().setKeyword$8$Delimiter(MWEDelimiters.keyword$25$Delimiter);
+ getWorkflowRefConsumer().setRuleCall$7$Delimiter(MWEDelimiters.ruleCall$35$Delimiter);
+ getWorkflowRefConsumer().setKeyword$11$Delimiter(MWEDelimiters.keyword$25$Delimiter);
+ getWorkflowRefConsumer().setKeyword$8$Delimiter(MWEDelimiters.keyword$25$Delimiter);
+ getWorkflowRefConsumer().setKeyword$5$Delimiter(MWEDelimiters.keyword$21$Delimiter);
+ getIdRefConsumer().setRuleCall$2$Delimiter(MWEDelimiters.ruleCall$49$Delimiter);
+ getAssignmentConsumer().setKeyword$8$Delimiter(MWEDelimiters.keyword$25$Delimiter);
+ getAssignmentConsumer().setKeyword$9$Delimiter(MWEDelimiters.keyword$25$Delimiter);
+ getAssignmentConsumer().setKeyword$12$Delimiter(MWEDelimiters.keyword$25$Delimiter);
+ getAssignmentConsumer().setRuleCall$5$Delimiter(MWEDelimiters.ruleCall$49$Delimiter);
+ getQualifiedNameConsumer().setRuleCall$3$Delimiter(MWEDelimiters.ruleCall$49$Delimiter);
+ getQualifiedNameConsumer().setRuleCall$8$Delimiter(MWEDelimiters.ruleCall$49$Delimiter);
+ getQualifiedNameConsumer().setKeyword$6$Delimiter(MWEDelimiters.keyword$25$Delimiter);
+ // TODO remove workaround
getIdConsumer().initFields(this);
+ // TODO remove workaround
getIntConsumer().initFields(this);
+ // TODO remove workaround
getStringConsumer().initFields(this);
+ // TODO remove workaround
getMlCommentConsumer().initFields(this);
+ // TODO remove workaround
getSlCommentConsumer().initFields(this);
+ // TODO remove workaround
getWsConsumer().initFields(this);
+ // TODO remove workaround
getAnyOtherConsumer().initFields(this);
}
@@ -184,111 +223,89 @@ public class MWEParserConfiguration extends AbstractParserConfiguration {
return fileConsumer;
}
-
public MWEImportConsumer getImportConsumer() {
return importConsumer;
}
-
public MWEJavaImportConsumer getJavaImportConsumer() {
return javaImportConsumer;
}
-
public MWEGenericImportConsumer getGenericImportConsumer() {
return genericImportConsumer;
}
-
public MWEPropertyConsumer getPropertyConsumer() {
return propertyConsumer;
}
-
public MWELocalVariableConsumer getLocalVariableConsumer() {
return localVariableConsumer;
}
-
public MWEPropertiesFileImportConsumer getPropertiesFileImportConsumer() {
return propertiesFileImportConsumer;
}
-
public MWEValueConsumer getValueConsumer() {
return valueConsumer;
}
-
public MWESimpleValueConsumer getSimpleValueConsumer() {
return simpleValueConsumer;
}
-
public MWEAssignableConsumer getAssignableConsumer() {
return assignableConsumer;
}
-
public MWEComplexValueConsumer getComplexValueConsumer() {
return complexValueConsumer;
}
-
public MWEWorkflowRefConsumer getWorkflowRefConsumer() {
return workflowRefConsumer;
}
-
public MWEIdRefConsumer getIdRefConsumer() {
return idRefConsumer;
}
-
public MWEAssignmentConsumer getAssignmentConsumer() {
return assignmentConsumer;
}
-
public MWEQualifiedNameConsumer getQualifiedNameConsumer() {
return qualifiedNameConsumer;
}
-
public XtextBuiltinIDConsumer getIdConsumer() {
return getXtextBuiltinConfiguration().getIdConsumer();
}
-
public XtextBuiltinINTConsumer getIntConsumer() {
return getXtextBuiltinConfiguration().getIntConsumer();
}
-
public XtextBuiltinSTRINGConsumer getStringConsumer() {
return getXtextBuiltinConfiguration().getStringConsumer();
}
-
public XtextBuiltinML_COMMENTConsumer getMlCommentConsumer() {
return getXtextBuiltinConfiguration().getMlCommentConsumer();
}
-
public XtextBuiltinSL_COMMENTConsumer getSlCommentConsumer() {
return getXtextBuiltinConfiguration().getSlCommentConsumer();
}
-
public XtextBuiltinWSConsumer getWsConsumer() {
return getXtextBuiltinConfiguration().getWsConsumer();
}
-
public XtextBuiltinANY_OTHERConsumer getAnyOtherConsumer() {
return getXtextBuiltinConfiguration().getAnyOtherConsumer();
}
-
}
diff --git a/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEAssignableConsumer.java b/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEAssignableConsumer.java
index e57110e..41c89df 100644
--- a/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEAssignableConsumer.java
+++ b/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEAssignableConsumer.java
@@ -11,17 +11,21 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
+import org.eclipse.xtext.parser.packrat.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.emf.mwe.di.services.MWEGrammarAccess;
import org.eclipse.emf.mwe.di.services.MWEGrammarAccess.AssignableElements;
-import org.eclipse.emf.mwe.di.parser.packrat.consumers.MWEWorkflowRefConsumer;
import org.eclipse.emf.mwe.di.parser.packrat.consumers.MWEComplexValueConsumer;
+import org.eclipse.emf.mwe.di.parser.packrat.consumers.MWEWorkflowRefConsumer;
+@SuppressWarnings("unused")
public final class MWEAssignableConsumer extends NonTerminalConsumer {
- private MWEWorkflowRefConsumer workflowRefConsumer;
private MWEComplexValueConsumer complexValueConsumer;
+ private MWEWorkflowRefConsumer workflowRefConsumer;
public MWEAssignableConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
@@ -29,27 +33,26 @@ public final class MWEAssignableConsumer extends NonTerminalConsumer {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- ALTERNATIVES$1SUCCESS: {
- ALTERNATIVES$1FAILURE: {
- RULECALL$2SUCCESS: {
- if (!consumeNonTerminal(complexValueConsumer, null, false, false, getRule().ele0ParserRuleCallComplexValue()))
- break RULECALL$2SUCCESS;
- break ALTERNATIVES$1FAILURE;
- }
- RULECALL$3SUCCESS: {
- if (!consumeNonTerminal(workflowRefConsumer, null, false, false, getRule().ele1ParserRuleCallWorkflowRef()))
- break RULECALL$3SUCCESS;
- break ALTERNATIVES$1FAILURE;
- }
- break ALTERNATIVES$1SUCCESS;
- }
+ return consumeAlternatives$1();
+ }
+
+ protected boolean consumeAlternatives$1() throws Exception {
+ if (consumeRuleCall$2())
+ return true;
+ if (consumeRuleCall$3())
return true;
- }
return false;
}
+ protected boolean consumeRuleCall$2() throws Exception {
+ return consumeNonTerminal(complexValueConsumer, null, false, false, getRule().ele0ParserRuleCallComplexValue());
+ }
+
+ protected boolean consumeRuleCall$3() throws Exception {
+ return consumeNonTerminal(workflowRefConsumer, null, false, false, getRule().ele1ParserRuleCallWorkflowRef());
+ }
+
public AssignableElements getRule() {
return MWEGrammarAccess.INSTANCE.prAssignable();
}
@@ -63,13 +66,12 @@ public final class MWEAssignableConsumer extends NonTerminalConsumer {
return "Assignable";
}
- public void setWorkflowRefConsumer(MWEWorkflowRefConsumer workflowRefConsumer) {
- this.workflowRefConsumer = workflowRefConsumer;
- }
-
public void setComplexValueConsumer(MWEComplexValueConsumer complexValueConsumer) {
this.complexValueConsumer = complexValueConsumer;
}
-
+ public void setWorkflowRefConsumer(MWEWorkflowRefConsumer workflowRefConsumer) {
+ this.workflowRefConsumer = workflowRefConsumer;
+ }
+
}
diff --git a/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEAssignmentConsumer.java b/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEAssignmentConsumer.java
index d448e55..4e80177 100644
--- a/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEAssignmentConsumer.java
+++ b/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEAssignmentConsumer.java
@@ -11,94 +11,99 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
+import org.eclipse.xtext.parser.packrat.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.emf.mwe.di.services.MWEGrammarAccess;
import org.eclipse.emf.mwe.di.services.MWEGrammarAccess.AssignmentElements;
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
import org.eclipse.emf.mwe.di.parser.packrat.consumers.MWEValueConsumer;
+@SuppressWarnings("unused")
public final class MWEAssignmentConsumer extends NonTerminalConsumer {
private XtextBuiltinIDConsumer idConsumer;
private MWEValueConsumer valueConsumer;
+ private ICharacterClass keyword$8$Delimiter;
+
+ private ICharacterClass keyword$9$Delimiter;
+
+ private ICharacterClass keyword$12$Delimiter;
+
+ private ISequenceMatcher ruleCall$5$Delimiter;
+
public MWEAssignmentConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ keyword$8$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$9$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$12$Delimiter = ICharacterClass.Factory.nullClass();
+ ruleCall$5$Delimiter = ISequenceMatcher.Factory.nullMatcher();
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- GROUP$1SUCCESS: {
- IMarker mGROUP$1 = mark();
- GROUP$1FAILURE: {
- GROUP$2SUCCESS: {
- IMarker mGROUP$2 = mark();
- GROUP$2FAILURE: {
- GROUP$3SUCCESS: {
- IMarker mGROUP$3 = mark();
- GROUP$3FAILURE: {
- ASSIGNMENT$4SUCCESS: {
- ASSIGNMENT$4FAILURE: {
- if (consumeTerminal(idConsumer, "feature", false, false, getRule().ele0000LexerRuleCallID()))
- break ASSIGNMENT$4FAILURE;
- break ASSIGNMENT$4SUCCESS;
- }
- break GROUP$3FAILURE;
- }
- }
- GROUP$3FAILURE: {
- ASSIGNMENT$6SUCCESS: {
- ASSIGNMENT$6FAILURE: {
- if (consumeKeyword(getRule().ele00100KeywordEqualsSign(), "operator", false, false))
- break ASSIGNMENT$6FAILURE;
- if (consumeKeyword(getRule().ele00101KeywordPlusSignEqualsSign(), "operator", false, false))
- break ASSIGNMENT$6FAILURE;
- mGROUP$3.rollback();
- break ASSIGNMENT$6SUCCESS;
- }
- break GROUP$3FAILURE;
- }
- mGROUP$3.rollback();
- break GROUP$3SUCCESS;
- }
- break GROUP$2FAILURE;
- }
- mGROUP$2.rollback();
- break GROUP$2SUCCESS;
- }
- GROUP$2FAILURE: {
- ASSIGNMENT$10SUCCESS: {
- ASSIGNMENT$10FAILURE: {
- if (consumeNonTerminal(valueConsumer, "value", false, false , getRule().ele010ParserRuleCallValue()))
- break ASSIGNMENT$10FAILURE;
- mGROUP$2.rollback();
- break ASSIGNMENT$10SUCCESS;
- }
- break GROUP$2FAILURE;
- }
- mGROUP$2.rollback();
- break GROUP$2SUCCESS;
- }
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- GROUP$1FAILURE: {
- KEYWORD$12SUCCESS: {
- if (!consumeKeyword(getRule().ele1KeywordSemicolon(), null, false, false))
- break KEYWORD$12SUCCESS;
- break GROUP$1FAILURE;
- }
- }
- return true;
+ return consumeGroup$1();
+ }
+
+ protected boolean consumeGroup$1() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeAssignment$4()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$6()) {
+ marker.rollback();
+ return false;
}
+ if (!consumeAssignment$10()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeKeyword$12()) {
+ marker.rollback();
+ return false;
+ }
+ return true;
+ }
+
+ protected boolean consumeAssignment$4() throws Exception {
+ doConsumeAssignment$4();
+ return true;
+ }
+
+ protected boolean doConsumeAssignment$4() throws Exception {
+ if (consumeTerminal(idConsumer, "feature", false, false, getRule().ele0000LexerRuleCallID(), getRuleCall$5$Delimiter()))
+ return true;
+ return false;
+ }
+
+ protected boolean consumeAssignment$6() throws Exception {
+ if (consumeKeyword(getRule().ele00100KeywordEqualsSign(), "operator", false, false, getKeyword$8$Delimiter()))
+ return true;
+ if (consumeKeyword(getRule().ele00101KeywordPlusSignEqualsSign(), "operator", false, false, getKeyword$9$Delimiter()))
+ return true;
+ return false;
+ }
+
+ protected boolean consumeAssignment$10() throws Exception {
+ if (consumeNonTerminal(valueConsumer, "value", false, false, getRule().ele010ParserRuleCallValue()))
+ return true;
return false;
}
+ protected boolean consumeKeyword$12() throws Exception {
+ doConsumeKeyword$12();
+ return true;
+ }
+
+ protected boolean doConsumeKeyword$12() throws Exception {
+ return consumeKeyword(getRule().ele1KeywordSemicolon(), null, false, false, getKeyword$12$Delimiter());
+ }
+
public AssignmentElements getRule() {
return MWEGrammarAccess.INSTANCE.prAssignment();
}
@@ -120,5 +125,36 @@ public final class MWEAssignmentConsumer extends NonTerminalConsumer {
this.valueConsumer = valueConsumer;
}
-
+ public ICharacterClass getKeyword$8$Delimiter() {
+ return keyword$8$Delimiter;
+ }
+
+ public void setKeyword$8$Delimiter(ICharacterClass characterClass) {
+ keyword$8$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$9$Delimiter() {
+ return keyword$9$Delimiter;
+ }
+
+ public void setKeyword$9$Delimiter(ICharacterClass characterClass) {
+ keyword$9$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$12$Delimiter() {
+ return keyword$12$Delimiter;
+ }
+
+ public void setKeyword$12$Delimiter(ICharacterClass characterClass) {
+ keyword$12$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ISequenceMatcher getRuleCall$5$Delimiter() {
+ return ruleCall$5$Delimiter;
+ }
+
+ public void setRuleCall$5$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$5$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
}
diff --git a/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEComplexValueConsumer.java b/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEComplexValueConsumer.java
index 9494846..445aafd 100644
--- a/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEComplexValueConsumer.java
+++ b/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEComplexValueConsumer.java
@@ -11,127 +11,131 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
+import org.eclipse.xtext.parser.packrat.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.emf.mwe.di.services.MWEGrammarAccess;
import org.eclipse.emf.mwe.di.services.MWEGrammarAccess.ComplexValueElements;
+import org.eclipse.emf.mwe.di.parser.packrat.consumers.MWEAssignmentConsumer;
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
import org.eclipse.emf.mwe.di.parser.packrat.consumers.MWEQualifiedNameConsumer;
-import org.eclipse.emf.mwe.di.parser.packrat.consumers.MWEAssignmentConsumer;
+@SuppressWarnings("unused")
public final class MWEComplexValueConsumer extends NonTerminalConsumer {
+ private MWEAssignmentConsumer assignmentConsumer;
private XtextBuiltinIDConsumer idConsumer;
private MWEQualifiedNameConsumer qualifiedNameConsumer;
- private MWEAssignmentConsumer assignmentConsumer;
+ private ISequenceMatcher ruleCall$10$Delimiter;
+
+ private ICharacterClass keyword$15$Delimiter;
+
+ private ICharacterClass keyword$12$Delimiter;
+
+ private ICharacterClass keyword$8$Delimiter;
+
public MWEComplexValueConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ ruleCall$10$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ keyword$15$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$12$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$8$Delimiter = ICharacterClass.Factory.nullClass();
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- GROUP$1SUCCESS: {
- IMarker mGROUP$1 = mark();
- GROUP$1FAILURE: {
- GROUP$2SUCCESS: {
- IMarker mGROUP$2 = mark();
- GROUP$2FAILURE: {
- GROUP$3SUCCESS: {
- IMarker mGROUP$3 = mark();
- GROUP$3FAILURE: {
- GROUP$4SUCCESS: {
- IMarker mGROUP$4 = mark();
- GROUP$4FAILURE: {
- ASSIGNMENT$5SUCCESS: {
- ASSIGNMENT$5FAILURE: {
- if (consumeNonTerminal(qualifiedNameConsumer, "className", false, false , getRule().ele00000ParserRuleCallQualifiedName()))
- break ASSIGNMENT$5FAILURE;
- break ASSIGNMENT$5SUCCESS;
- }
- break GROUP$4FAILURE;
- }
- }
- GROUP$4FAILURE: {
- GROUP$7SUCCESS: {
- IMarker mGROUP$7 = mark();
- GROUP$7FAILURE: {
- KEYWORD$8SUCCESS: {
- if (!consumeKeyword(getRule().ele00010KeywordColon(), null, false, false))
- break KEYWORD$8SUCCESS;
- break GROUP$7FAILURE;
- }
- mGROUP$7.rollback();
- break GROUP$7SUCCESS;
- }
- GROUP$7FAILURE: {
- ASSIGNMENT$9SUCCESS: {
- ASSIGNMENT$9FAILURE: {
- if (consumeTerminal(idConsumer, "id", false, false, getRule().ele000110LexerRuleCallID()))
- break ASSIGNMENT$9FAILURE;
- mGROUP$7.rollback();
- break ASSIGNMENT$9SUCCESS;
- }
- break GROUP$7FAILURE;
- }
- mGROUP$7.rollback();
- break GROUP$7SUCCESS;
- }
- break GROUP$4FAILURE;
- }
- }
- break GROUP$3FAILURE;
- }
- }
- GROUP$3FAILURE: {
- ASSIGNMENT$11SUCCESS: {
- ASSIGNMENT$11FAILURE: {
- if (consumeKeyword(getRule().ele0010KeywordLeftCurlyBracket(), "fooBar", false, true))
- break ASSIGNMENT$11FAILURE;
- mGROUP$3.rollback();
- break ASSIGNMENT$11SUCCESS;
- }
- break GROUP$3FAILURE;
- }
- mGROUP$3.rollback();
- break GROUP$3SUCCESS;
- }
- break GROUP$2FAILURE;
- }
- mGROUP$2.rollback();
- break GROUP$2SUCCESS;
- }
- GROUP$2FAILURE: {
- ASSIGNMENT$13SUCCESS: while(true) {
- ASSIGNMENT$13FAILURE: {
- if (consumeNonTerminal(assignmentConsumer, "assignments", true, false , getRule().ele010ParserRuleCallAssignment()))
- break ASSIGNMENT$13FAILURE;
- break ASSIGNMENT$13SUCCESS;
- }
- continue ASSIGNMENT$13SUCCESS;
- }
- }
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- GROUP$1FAILURE: {
- KEYWORD$15SUCCESS: {
- if (!consumeKeyword(getRule().ele1KeywordRightCurlyBracket(), null, false, false))
- break KEYWORD$15SUCCESS;
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
+ return consumeGroup$1();
+ }
+
+ protected boolean consumeGroup$1() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeAssignment$5()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeGroup$7()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$11()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$13()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeKeyword$15()) {
+ marker.rollback();
+ return false;
+ }
+ return true;
+ }
+
+ protected boolean consumeAssignment$5() throws Exception {
+ doConsumeAssignment$5();
+ return true;
+ }
+
+ protected boolean doConsumeAssignment$5() throws Exception {
+ if (consumeNonTerminal(qualifiedNameConsumer, "className", false, false, getRule().ele00000ParserRuleCallQualifiedName()))
return true;
+ return false;
+ }
+
+ protected boolean consumeGroup$7() throws Exception {
+ doConsumeGroup$7();
+ return true;
+ }
+
+ protected boolean doConsumeGroup$7() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeKeyword$8()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$9()) {
+ marker.rollback();
+ return false;
}
+ return true;
+ }
+
+ protected boolean consumeKeyword$8() throws Exception {
+ return consumeKeyword(getRule().ele00010KeywordColon(), null, false, false, getKeyword$8$Delimiter());
+ }
+
+ protected boolean consumeAssignment$9() throws Exception {
+ if (consumeTerminal(idConsumer, "id", false, false, getRule().ele000110LexerRuleCallID(), getRuleCall$10$Delimiter()))
+ return true;
+ return false;
+ }
+
+ protected boolean consumeAssignment$11() throws Exception {
+ if (consumeKeyword(getRule().ele0010KeywordLeftCurlyBracket(), "fooBar", false, true, getKeyword$12$Delimiter()))
+ return true;
+ return false;
+ }
+
+ protected boolean consumeAssignment$13() throws Exception {
+ while(doConsumeAssignment$13()) {}
+ return true;
+ }
+
+ protected boolean doConsumeAssignment$13() throws Exception {
+ if (consumeNonTerminal(assignmentConsumer, "assignments", true, false, getRule().ele010ParserRuleCallAssignment()))
+ return true;
return false;
}
+ protected boolean consumeKeyword$15() throws Exception {
+ return consumeKeyword(getRule().ele1KeywordRightCurlyBracket(), null, false, false, getKeyword$15$Delimiter());
+ }
+
public ComplexValueElements getRule() {
return MWEGrammarAccess.INSTANCE.prComplexValue();
}
@@ -145,6 +149,10 @@ public final class MWEComplexValueConsumer extends NonTerminalConsumer {
return "ComplexValue";
}
+ public void setAssignmentConsumer(MWEAssignmentConsumer assignmentConsumer) {
+ this.assignmentConsumer = assignmentConsumer;
+ }
+
public void setIdConsumer(XtextBuiltinIDConsumer idConsumer) {
this.idConsumer = idConsumer;
}
@@ -153,9 +161,36 @@ public final class MWEComplexValueConsumer extends NonTerminalConsumer {
this.qualifiedNameConsumer = qualifiedNameConsumer;
}
- public void setAssignmentConsumer(MWEAssignmentConsumer assignmentConsumer) {
- this.assignmentConsumer = assignmentConsumer;
+ public ISequenceMatcher getRuleCall$10$Delimiter() {
+ return ruleCall$10$Delimiter;
+ }
+
+ public void setRuleCall$10$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$10$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ICharacterClass getKeyword$15$Delimiter() {
+ return keyword$15$Delimiter;
+ }
+
+ public void setKeyword$15$Delimiter(ICharacterClass characterClass) {
+ keyword$15$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$12$Delimiter() {
+ return keyword$12$Delimiter;
+ }
+
+ public void setKeyword$12$Delimiter(ICharacterClass characterClass) {
+ keyword$12$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$8$Delimiter() {
+ return keyword$8$Delimiter;
+ }
+
+ public void setKeyword$8$Delimiter(ICharacterClass characterClass) {
+ keyword$8$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
}
-
}
diff --git a/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEFileConsumer.java b/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEFileConsumer.java
index d756f31..5571bc0 100644
--- a/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEFileConsumer.java
+++ b/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEFileConsumer.java
@@ -11,18 +11,22 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
+import org.eclipse.xtext.parser.packrat.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.emf.mwe.di.services.MWEGrammarAccess;
import org.eclipse.emf.mwe.di.services.MWEGrammarAccess.FileElements;
-import org.eclipse.emf.mwe.di.parser.packrat.consumers.MWEImportConsumer;
import org.eclipse.emf.mwe.di.parser.packrat.consumers.MWEComplexValueConsumer;
+import org.eclipse.emf.mwe.di.parser.packrat.consumers.MWEImportConsumer;
import org.eclipse.emf.mwe.di.parser.packrat.consumers.MWEPropertyConsumer;
+@SuppressWarnings("unused")
public final class MWEFileConsumer extends NonTerminalConsumer {
- private MWEImportConsumer importConsumer;
private MWEComplexValueConsumer complexValueConsumer;
+ private MWEImportConsumer importConsumer;
private MWEPropertyConsumer propertyConsumer;
public MWEFileConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
@@ -31,51 +35,52 @@ public final class MWEFileConsumer extends NonTerminalConsumer {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- GROUP$1SUCCESS: {
- IMarker mGROUP$1 = mark();
- GROUP$1FAILURE: {
- GROUP$2SUCCESS: {
- IMarker mGROUP$2 = mark();
- GROUP$2FAILURE: {
- ASSIGNMENT$3SUCCESS: while(true) {
- ASSIGNMENT$3FAILURE: {
- if (consumeNonTerminal(importConsumer, "imports", true, false , getRule().ele000ParserRuleCallImport()))
- break ASSIGNMENT$3FAILURE;
- break ASSIGNMENT$3SUCCESS;
- }
- continue ASSIGNMENT$3SUCCESS;
- }
- }
- GROUP$2FAILURE: {
- ASSIGNMENT$5SUCCESS: while(true) {
- ASSIGNMENT$5FAILURE: {
- if (consumeNonTerminal(propertyConsumer, "properties", true, false , getRule().ele010ParserRuleCallProperty()))
- break ASSIGNMENT$5FAILURE;
- break ASSIGNMENT$5SUCCESS;
- }
- continue ASSIGNMENT$5SUCCESS;
- }
- }
- break GROUP$1FAILURE;
- }
- }
- GROUP$1FAILURE: {
- ASSIGNMENT$7SUCCESS: {
- ASSIGNMENT$7FAILURE: {
- if (consumeNonTerminal(complexValueConsumer, "value", false, false , getRule().ele10ParserRuleCallComplexValue()))
- break ASSIGNMENT$7FAILURE;
- mGROUP$1.rollback();
- break ASSIGNMENT$7SUCCESS;
- }
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- return true;
+ return consumeGroup$1();
+ }
+
+ protected boolean consumeGroup$1() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeAssignment$3()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$5()) {
+ marker.rollback();
+ return false;
}
+ if (!consumeAssignment$7()) {
+ marker.rollback();
+ return false;
+ }
+ return true;
+ }
+
+ protected boolean consumeAssignment$3() throws Exception {
+ while(doConsumeAssignment$3()) {}
+ return true;
+ }
+
+ protected boolean doConsumeAssignment$3() throws Exception {
+ if (consumeNonTerminal(importConsumer, "imports", true, false, getRule().ele000ParserRuleCallImport()))
+ return true;
+ return false;
+ }
+
+ protected boolean consumeAssignment$5() throws Exception {
+ while(doConsumeAssignment$5()) {}
+ return true;
+ }
+
+ protected boolean doConsumeAssignment$5() throws Exception {
+ if (consumeNonTerminal(propertyConsumer, "properties", true, false, getRule().ele010ParserRuleCallProperty()))
+ return true;
+ return false;
+ }
+
+ protected boolean consumeAssignment$7() throws Exception {
+ if (consumeNonTerminal(complexValueConsumer, "value", false, false, getRule().ele10ParserRuleCallComplexValue()))
+ return true;
return false;
}
@@ -92,17 +97,16 @@ public final class MWEFileConsumer extends NonTerminalConsumer {
return "File";
}
- public void setImportConsumer(MWEImportConsumer importConsumer) {
- this.importConsumer = importConsumer;
- }
-
public void setComplexValueConsumer(MWEComplexValueConsumer complexValueConsumer) {
this.complexValueConsumer = complexValueConsumer;
}
+ public void setImportConsumer(MWEImportConsumer importConsumer) {
+ this.importConsumer = importConsumer;
+ }
+
public void setPropertyConsumer(MWEPropertyConsumer propertyConsumer) {
this.propertyConsumer = propertyConsumer;
}
-
}
diff --git a/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEGenericImportConsumer.java b/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEGenericImportConsumer.java
index 6d9fc7e..c3e9744 100644
--- a/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEGenericImportConsumer.java
+++ b/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEGenericImportConsumer.java
@@ -11,68 +11,75 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
+import org.eclipse.xtext.parser.packrat.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.emf.mwe.di.services.MWEGrammarAccess;
import org.eclipse.emf.mwe.di.services.MWEGrammarAccess.GenericImportElements;
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinSTRINGConsumer;
+@SuppressWarnings("unused")
public final class MWEGenericImportConsumer extends NonTerminalConsumer {
private XtextBuiltinSTRINGConsumer stringConsumer;
+ private ISequenceMatcher ruleCall$5$Delimiter;
+
+ private ICharacterClass keyword$6$Delimiter;
+
+ private ICharacterClass keyword$3$Delimiter;
+
public MWEGenericImportConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ ruleCall$5$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ keyword$6$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$3$Delimiter = ICharacterClass.Factory.nullClass();
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- GROUP$1SUCCESS: {
- IMarker mGROUP$1 = mark();
- GROUP$1FAILURE: {
- GROUP$2SUCCESS: {
- IMarker mGROUP$2 = mark();
- GROUP$2FAILURE: {
- KEYWORD$3SUCCESS: {
- if (!consumeKeyword(getRule().ele00KeywordImport(), null, false, false))
- break KEYWORD$3SUCCESS;
- break GROUP$2FAILURE;
- }
- mGROUP$2.rollback();
- break GROUP$2SUCCESS;
- }
- GROUP$2FAILURE: {
- ASSIGNMENT$4SUCCESS: {
- ASSIGNMENT$4FAILURE: {
- if (consumeTerminal(stringConsumer, "value", false, false, getRule().ele010LexerRuleCallSTRING()))
- break ASSIGNMENT$4FAILURE;
- mGROUP$2.rollback();
- break ASSIGNMENT$4SUCCESS;
- }
- break GROUP$2FAILURE;
- }
- mGROUP$2.rollback();
- break GROUP$2SUCCESS;
- }
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- GROUP$1FAILURE: {
- KEYWORD$6SUCCESS: {
- if (!consumeKeyword(getRule().ele1KeywordSemicolon(), null, false, false))
- break KEYWORD$6SUCCESS;
- break GROUP$1FAILURE;
- }
- }
- return true;
+ return consumeGroup$1();
+ }
+
+ protected boolean consumeGroup$1() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeKeyword$3()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$4()) {
+ marker.rollback();
+ return false;
}
+ if (!consumeKeyword$6()) {
+ marker.rollback();
+ return false;
+ }
+ return true;
+ }
+
+ protected boolean consumeKeyword$3() throws Exception {
+ return consumeKeyword(getRule().ele00KeywordImport(), null, false, false, getKeyword$3$Delimiter());
+ }
+
+ protected boolean consumeAssignment$4() throws Exception {
+ if (consumeTerminal(stringConsumer, "value", false, false, getRule().ele010LexerRuleCallSTRING(), getRuleCall$5$Delimiter()))
+ return true;
return false;
}
+ protected boolean consumeKeyword$6() throws Exception {
+ doConsumeKeyword$6();
+ return true;
+ }
+
+ protected boolean doConsumeKeyword$6() throws Exception {
+ return consumeKeyword(getRule().ele1KeywordSemicolon(), null, false, false, getKeyword$6$Delimiter());
+ }
+
public GenericImportElements getRule() {
return MWEGrammarAccess.INSTANCE.prGenericImport();
}
@@ -90,5 +97,28 @@ public final class MWEGenericImportConsumer extends NonTerminalConsumer {
this.stringConsumer = stringConsumer;
}
-
+ public ISequenceMatcher getRuleCall$5$Delimiter() {
+ return ruleCall$5$Delimiter;
+ }
+
+ public void setRuleCall$5$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$5$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ICharacterClass getKeyword$6$Delimiter() {
+ return keyword$6$Delimiter;
+ }
+
+ public void setKeyword$6$Delimiter(ICharacterClass characterClass) {
+ keyword$6$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$3$Delimiter() {
+ return keyword$3$Delimiter;
+ }
+
+ public void setKeyword$3$Delimiter(ICharacterClass characterClass) {
+ keyword$3$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
}
diff --git a/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEIdRefConsumer.java b/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEIdRefConsumer.java
index 9d5d472..29592f7 100644
--- a/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEIdRefConsumer.java
+++ b/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEIdRefConsumer.java
@@ -11,32 +11,36 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
+import org.eclipse.xtext.parser.packrat.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.emf.mwe.di.services.MWEGrammarAccess;
import org.eclipse.emf.mwe.di.services.MWEGrammarAccess.IdRefElements;
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
+@SuppressWarnings("unused")
public final class MWEIdRefConsumer extends NonTerminalConsumer {
private XtextBuiltinIDConsumer idConsumer;
+ private ISequenceMatcher ruleCall$2$Delimiter;
+
public MWEIdRefConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ ruleCall$2$Delimiter = ISequenceMatcher.Factory.nullMatcher();
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- ASSIGNMENT$1SUCCESS: {
- ASSIGNMENT$1FAILURE: {
- if (consumeTerminal(idConsumer, "id", false, false, getRule().ele0LexerRuleCallID()))
- break ASSIGNMENT$1FAILURE;
- break ASSIGNMENT$1SUCCESS;
- }
+ return consumeAssignment$1();
+ }
+
+ protected boolean consumeAssignment$1() throws Exception {
+ if (consumeTerminal(idConsumer, "id", false, false, getRule().ele0LexerRuleCallID(), getRuleCall$2$Delimiter()))
return true;
- }
return false;
}
@@ -57,5 +61,12 @@ public final class MWEIdRefConsumer extends NonTerminalConsumer {
this.idConsumer = idConsumer;
}
-
+ public ISequenceMatcher getRuleCall$2$Delimiter() {
+ return ruleCall$2$Delimiter;
+ }
+
+ public void setRuleCall$2$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$2$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
}
diff --git a/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEImportConsumer.java b/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEImportConsumer.java
index a94def0..899d4a9 100644
--- a/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEImportConsumer.java
+++ b/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEImportConsumer.java
@@ -11,17 +11,21 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
+import org.eclipse.xtext.parser.packrat.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.emf.mwe.di.services.MWEGrammarAccess;
import org.eclipse.emf.mwe.di.services.MWEGrammarAccess.ImportElements;
-import org.eclipse.emf.mwe.di.parser.packrat.consumers.MWEJavaImportConsumer;
import org.eclipse.emf.mwe.di.parser.packrat.consumers.MWEGenericImportConsumer;
+import org.eclipse.emf.mwe.di.parser.packrat.consumers.MWEJavaImportConsumer;
+@SuppressWarnings("unused")
public final class MWEImportConsumer extends NonTerminalConsumer {
- private MWEJavaImportConsumer javaImportConsumer;
private MWEGenericImportConsumer genericImportConsumer;
+ private MWEJavaImportConsumer javaImportConsumer;
public MWEImportConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
@@ -29,27 +33,26 @@ public final class MWEImportConsumer extends NonTerminalConsumer {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- ALTERNATIVES$1SUCCESS: {
- ALTERNATIVES$1FAILURE: {
- RULECALL$2SUCCESS: {
- if (!consumeNonTerminal(javaImportConsumer, null, false, false, getRule().ele0ParserRuleCallJavaImport()))
- break RULECALL$2SUCCESS;
- break ALTERNATIVES$1FAILURE;
- }
- RULECALL$3SUCCESS: {
- if (!consumeNonTerminal(genericImportConsumer, null, false, false, getRule().ele1ParserRuleCallGenericImport()))
- break RULECALL$3SUCCESS;
- break ALTERNATIVES$1FAILURE;
- }
- break ALTERNATIVES$1SUCCESS;
- }
+ return consumeAlternatives$1();
+ }
+
+ protected boolean consumeAlternatives$1() throws Exception {
+ if (consumeRuleCall$2())
+ return true;
+ if (consumeRuleCall$3())
return true;
- }
return false;
}
+ protected boolean consumeRuleCall$2() throws Exception {
+ return consumeNonTerminal(javaImportConsumer, null, false, false, getRule().ele0ParserRuleCallJavaImport());
+ }
+
+ protected boolean consumeRuleCall$3() throws Exception {
+ return consumeNonTerminal(genericImportConsumer, null, false, false, getRule().ele1ParserRuleCallGenericImport());
+ }
+
public ImportElements getRule() {
return MWEGrammarAccess.INSTANCE.prImport();
}
@@ -63,13 +66,12 @@ public final class MWEImportConsumer extends NonTerminalConsumer {
return "Import";
}
- public void setJavaImportConsumer(MWEJavaImportConsumer javaImportConsumer) {
- this.javaImportConsumer = javaImportConsumer;
- }
-
public void setGenericImportConsumer(MWEGenericImportConsumer genericImportConsumer) {
this.genericImportConsumer = genericImportConsumer;
}
-
+ public void setJavaImportConsumer(MWEJavaImportConsumer javaImportConsumer) {
+ this.javaImportConsumer = javaImportConsumer;
+ }
+
}
diff --git a/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEJavaImportConsumer.java b/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEJavaImportConsumer.java
index 4753001..8999dd7 100644
--- a/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEJavaImportConsumer.java
+++ b/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEJavaImportConsumer.java
@@ -11,106 +11,105 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
+import org.eclipse.xtext.parser.packrat.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.emf.mwe.di.services.MWEGrammarAccess;
import org.eclipse.emf.mwe.di.services.MWEGrammarAccess.JavaImportElements;
import org.eclipse.emf.mwe.di.parser.packrat.consumers.MWEQualifiedNameConsumer;
+@SuppressWarnings("unused")
public final class MWEJavaImportConsumer extends NonTerminalConsumer {
private MWEQualifiedNameConsumer qualifiedNameConsumer;
+ private ICharacterClass keyword$8$Delimiter;
+
+ private ICharacterClass keyword$11$Delimiter;
+
+ private ICharacterClass keyword$4$Delimiter;
+
+ private ICharacterClass keyword$10$Delimiter;
+
public MWEJavaImportConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ keyword$8$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$11$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$4$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$10$Delimiter = ICharacterClass.Factory.nullClass();
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- GROUP$1SUCCESS: {
- IMarker mGROUP$1 = mark();
- GROUP$1FAILURE: {
- GROUP$2SUCCESS: {
- IMarker mGROUP$2 = mark();
- GROUP$2FAILURE: {
- GROUP$3SUCCESS: {
- IMarker mGROUP$3 = mark();
- GROUP$3FAILURE: {
- KEYWORD$4SUCCESS: {
- if (!consumeKeyword(getRule().ele000KeywordImport(), null, false, false))
- break KEYWORD$4SUCCESS;
- break GROUP$3FAILURE;
- }
- mGROUP$3.rollback();
- break GROUP$3SUCCESS;
- }
- GROUP$3FAILURE: {
- ASSIGNMENT$5SUCCESS: {
- ASSIGNMENT$5FAILURE: {
- if (consumeNonTerminal(qualifiedNameConsumer, "javaImport", false, false , getRule().ele0010ParserRuleCallQualifiedName()))
- break ASSIGNMENT$5FAILURE;
- mGROUP$3.rollback();
- break ASSIGNMENT$5SUCCESS;
- }
- break GROUP$3FAILURE;
- }
- mGROUP$3.rollback();
- break GROUP$3SUCCESS;
- }
- break GROUP$2FAILURE;
- }
- mGROUP$2.rollback();
- break GROUP$2SUCCESS;
- }
- GROUP$2FAILURE: {
- GROUP$7SUCCESS: {
- IMarker mGROUP$7 = mark();
- GROUP$7FAILURE: {
- KEYWORD$8SUCCESS: {
- if (!consumeKeyword(getRule().ele010KeywordFullStop(), null, false, false))
- break KEYWORD$8SUCCESS;
- break GROUP$7FAILURE;
- }
- mGROUP$7.rollback();
- break GROUP$7SUCCESS;
- }
- GROUP$7FAILURE: {
- ASSIGNMENT$9SUCCESS: {
- ASSIGNMENT$9FAILURE: {
- if (consumeKeyword(getRule().ele0110KeywordAsterisk(), "wildcard", false, true))
- break ASSIGNMENT$9FAILURE;
- mGROUP$7.rollback();
- break ASSIGNMENT$9SUCCESS;
- }
- break GROUP$7FAILURE;
- }
- mGROUP$7.rollback();
- break GROUP$7SUCCESS;
- }
- break GROUP$2FAILURE;
- }
- }
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- GROUP$1FAILURE: {
- KEYWORD$11SUCCESS: {
- if (!consumeKeyword(getRule().ele1KeywordSemicolon(), null, false, false))
- break KEYWORD$11SUCCESS;
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
+ return consumeGroup$1();
+ }
+
+ protected boolean consumeGroup$1() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeKeyword$4()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$5()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeGroup$7()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeKeyword$11()) {
+ marker.rollback();
+ return false;
+ }
+ return true;
+ }
+
+ protected boolean consumeKeyword$4() throws Exception {
+ return consumeKeyword(getRule().ele000KeywordImport(), null, false, false, getKeyword$4$Delimiter());
+ }
+
+ protected boolean consumeAssignment$5() throws Exception {
+ if (consumeNonTerminal(qualifiedNameConsumer, "javaImport", false, false, getRule().ele0010ParserRuleCallQualifiedName()))
return true;
+ return false;
+ }
+
+ protected boolean consumeGroup$7() throws Exception {
+ doConsumeGroup$7();
+ return true;
+ }
+
+ protected boolean doConsumeGroup$7() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeKeyword$8()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$9()) {
+ marker.rollback();
+ return false;
}
+ return true;
+ }
+
+ protected boolean consumeKeyword$8() throws Exception {
+ return consumeKeyword(getRule().ele010KeywordFullStop(), null, false, false, getKeyword$8$Delimiter());
+ }
+
+ protected boolean consumeAssignment$9() throws Exception {
+ if (consumeKeyword(getRule().ele0110KeywordAsterisk(), "wildcard", false, true, getKeyword$10$Delimiter()))
+ return true;
return false;
}
+ protected boolean consumeKeyword$11() throws Exception {
+ return consumeKeyword(getRule().ele1KeywordSemicolon(), null, false, false, getKeyword$11$Delimiter());
+ }
+
public JavaImportElements getRule() {
return MWEGrammarAccess.INSTANCE.prJavaImport();
}
@@ -128,5 +127,36 @@ public final class MWEJavaImportConsumer extends NonTerminalConsumer {
this.qualifiedNameConsumer = qualifiedNameConsumer;
}
-
+ public ICharacterClass getKeyword$8$Delimiter() {
+ return keyword$8$Delimiter;
+ }
+
+ public void setKeyword$8$Delimiter(ICharacterClass characterClass) {
+ keyword$8$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$11$Delimiter() {
+ return keyword$11$Delimiter;
+ }
+
+ public void setKeyword$11$Delimiter(ICharacterClass characterClass) {
+ keyword$11$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$4$Delimiter() {
+ return keyword$4$Delimiter;
+ }
+
+ public void setKeyword$4$Delimiter(ICharacterClass characterClass) {
+ keyword$4$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$10$Delimiter() {
+ return keyword$10$Delimiter;
+ }
+
+ public void setKeyword$10$Delimiter(ICharacterClass characterClass) {
+ keyword$10$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
}
diff --git a/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWELocalVariableConsumer.java b/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWELocalVariableConsumer.java
index 1c713a8..2e865e0 100644
--- a/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWELocalVariableConsumer.java
+++ b/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWELocalVariableConsumer.java
@@ -11,108 +11,107 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
+import org.eclipse.xtext.parser.packrat.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.emf.mwe.di.services.MWEGrammarAccess;
import org.eclipse.emf.mwe.di.services.MWEGrammarAccess.LocalVariableElements;
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
import org.eclipse.emf.mwe.di.parser.packrat.consumers.MWEValueConsumer;
+@SuppressWarnings("unused")
public final class MWELocalVariableConsumer extends NonTerminalConsumer {
private XtextBuiltinIDConsumer idConsumer;
private MWEValueConsumer valueConsumer;
+ private ISequenceMatcher ruleCall$6$Delimiter;
+
+ private ICharacterClass keyword$11$Delimiter;
+
+ private ICharacterClass keyword$4$Delimiter;
+
+ private ICharacterClass keyword$8$Delimiter;
+
public MWELocalVariableConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ ruleCall$6$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ keyword$11$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$4$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$8$Delimiter = ICharacterClass.Factory.nullClass();
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- GROUP$1SUCCESS: {
- IMarker mGROUP$1 = mark();
- GROUP$1FAILURE: {
- GROUP$2SUCCESS: {
- IMarker mGROUP$2 = mark();
- GROUP$2FAILURE: {
- GROUP$3SUCCESS: {
- IMarker mGROUP$3 = mark();
- GROUP$3FAILURE: {
- KEYWORD$4SUCCESS: {
- if (!consumeKeyword(getRule().ele000KeywordVar(), null, false, false))
- break KEYWORD$4SUCCESS;
- break GROUP$3FAILURE;
- }
- mGROUP$3.rollback();
- break GROUP$3SUCCESS;
- }
- GROUP$3FAILURE: {
- ASSIGNMENT$5SUCCESS: {
- ASSIGNMENT$5FAILURE: {
- if (consumeTerminal(idConsumer, "name", false, false, getRule().ele0010LexerRuleCallID()))
- break ASSIGNMENT$5FAILURE;
- mGROUP$3.rollback();
- break ASSIGNMENT$5SUCCESS;
- }
- break GROUP$3FAILURE;
- }
- mGROUP$3.rollback();
- break GROUP$3SUCCESS;
- }
- break GROUP$2FAILURE;
- }
- mGROUP$2.rollback();
- break GROUP$2SUCCESS;
- }
- GROUP$2FAILURE: {
- GROUP$7SUCCESS: {
- IMarker mGROUP$7 = mark();
- GROUP$7FAILURE: {
- KEYWORD$8SUCCESS: {
- if (!consumeKeyword(getRule().ele010KeywordEqualsSign(), null, false, false))
- break KEYWORD$8SUCCESS;
- break GROUP$7FAILURE;
- }
- mGROUP$7.rollback();
- break GROUP$7SUCCESS;
- }
- GROUP$7FAILURE: {
- ASSIGNMENT$9SUCCESS: {
- ASSIGNMENT$9FAILURE: {
- if (consumeNonTerminal(valueConsumer, "value", false, false , getRule().ele0110ParserRuleCallValue()))
- break ASSIGNMENT$9FAILURE;
- mGROUP$7.rollback();
- break ASSIGNMENT$9SUCCESS;
- }
- break GROUP$7FAILURE;
- }
- mGROUP$7.rollback();
- break GROUP$7SUCCESS;
- }
- break GROUP$2FAILURE;
- }
- }
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- GROUP$1FAILURE: {
- KEYWORD$11SUCCESS: {
- if (!consumeKeyword(getRule().ele1KeywordSemicolon(), null, false, false))
- break KEYWORD$11SUCCESS;
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
+ return consumeGroup$1();
+ }
+
+ protected boolean consumeGroup$1() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeKeyword$4()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$5()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeGroup$7()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeKeyword$11()) {
+ marker.rollback();
+ return false;
+ }
+ return true;
+ }
+
+ protected boolean consumeKeyword$4() throws Exception {
+ return consumeKeyword(getRule().ele000KeywordVar(), null, false, false, getKeyword$4$Delimiter());
+ }
+
+ protected boolean consumeAssignment$5() throws Exception {
+ if (consumeTerminal(idConsumer, "name", false, false, getRule().ele0010LexerRuleCallID(), getRuleCall$6$Delimiter()))
return true;
+ return false;
+ }
+
+ protected boolean consumeGroup$7() throws Exception {
+ doConsumeGroup$7();
+ return true;
+ }
+
+ protected boolean doConsumeGroup$7() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeKeyword$8()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$9()) {
+ marker.rollback();
+ return false;
}
+ return true;
+ }
+
+ protected boolean consumeKeyword$8() throws Exception {
+ return consumeKeyword(getRule().ele010KeywordEqualsSign(), null, false, false, getKeyword$8$Delimiter());
+ }
+
+ protected boolean consumeAssignment$9() throws Exception {
+ if (consumeNonTerminal(valueConsumer, "value", false, false, getRule().ele0110ParserRuleCallValue()))
+ return true;
return false;
}
+ protected boolean consumeKeyword$11() throws Exception {
+ return consumeKeyword(getRule().ele1KeywordSemicolon(), null, false, false, getKeyword$11$Delimiter());
+ }
+
public LocalVariableElements getRule() {
return MWEGrammarAccess.INSTANCE.prLocalVariable();
}
@@ -134,5 +133,36 @@ public final class MWELocalVariableConsumer extends NonTerminalConsumer {
this.valueConsumer = valueConsumer;
}
-
+ public ISequenceMatcher getRuleCall$6$Delimiter() {
+ return ruleCall$6$Delimiter;
+ }
+
+ public void setRuleCall$6$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$6$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ICharacterClass getKeyword$11$Delimiter() {
+ return keyword$11$Delimiter;
+ }
+
+ public void setKeyword$11$Delimiter(ICharacterClass characterClass) {
+ keyword$11$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$4$Delimiter() {
+ return keyword$4$Delimiter;
+ }
+
+ public void setKeyword$4$Delimiter(ICharacterClass characterClass) {
+ keyword$4$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$8$Delimiter() {
+ return keyword$8$Delimiter;
+ }
+
+ public void setKeyword$8$Delimiter(ICharacterClass characterClass) {
+ keyword$8$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
}
diff --git a/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEPropertiesFileImportConsumer.java b/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEPropertiesFileImportConsumer.java
index 980e5ac..e01ac90 100644
--- a/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEPropertiesFileImportConsumer.java
+++ b/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEPropertiesFileImportConsumer.java
@@ -11,87 +11,81 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
+import org.eclipse.xtext.parser.packrat.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.emf.mwe.di.services.MWEGrammarAccess;
import org.eclipse.emf.mwe.di.services.MWEGrammarAccess.PropertiesFileImportElements;
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinSTRINGConsumer;
+@SuppressWarnings("unused")
public final class MWEPropertiesFileImportConsumer extends NonTerminalConsumer {
private XtextBuiltinSTRINGConsumer stringConsumer;
+ private ISequenceMatcher ruleCall$7$Delimiter;
+
+ private ICharacterClass keyword$4$Delimiter;
+
+ private ICharacterClass keyword$8$Delimiter;
+
+ private ICharacterClass keyword$5$Delimiter;
+
public MWEPropertiesFileImportConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ ruleCall$7$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ keyword$4$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$8$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$5$Delimiter = ICharacterClass.Factory.nullClass();
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- GROUP$1SUCCESS: {
- IMarker mGROUP$1 = mark();
- GROUP$1FAILURE: {
- GROUP$2SUCCESS: {
- IMarker mGROUP$2 = mark();
- GROUP$2FAILURE: {
- GROUP$3SUCCESS: {
- IMarker mGROUP$3 = mark();
- GROUP$3FAILURE: {
- KEYWORD$4SUCCESS: {
- if (!consumeKeyword(getRule().ele000KeywordVar(), null, false, false))
- break KEYWORD$4SUCCESS;
- break GROUP$3FAILURE;
- }
- mGROUP$3.rollback();
- break GROUP$3SUCCESS;
- }
- GROUP$3FAILURE: {
- KEYWORD$5SUCCESS: {
- if (!consumeKeyword(getRule().ele001KeywordFile(), null, false, false))
- break KEYWORD$5SUCCESS;
- break GROUP$3FAILURE;
- }
- mGROUP$3.rollback();
- break GROUP$3SUCCESS;
- }
- break GROUP$2FAILURE;
- }
- mGROUP$2.rollback();
- break GROUP$2SUCCESS;
- }
- GROUP$2FAILURE: {
- ASSIGNMENT$6SUCCESS: {
- ASSIGNMENT$6FAILURE: {
- if (consumeTerminal(stringConsumer, "file", false, false, getRule().ele010LexerRuleCallSTRING()))
- break ASSIGNMENT$6FAILURE;
- mGROUP$2.rollback();
- break ASSIGNMENT$6SUCCESS;
- }
- break GROUP$2FAILURE;
- }
- mGROUP$2.rollback();
- break GROUP$2SUCCESS;
- }
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- GROUP$1FAILURE: {
- KEYWORD$8SUCCESS: {
- if (!consumeKeyword(getRule().ele1KeywordSemicolon(), null, false, false))
- break KEYWORD$8SUCCESS;
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- return true;
+ return consumeGroup$1();
+ }
+
+ protected boolean consumeGroup$1() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeKeyword$4()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeKeyword$5()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$6()) {
+ marker.rollback();
+ return false;
}
+ if (!consumeKeyword$8()) {
+ marker.rollback();
+ return false;
+ }
+ return true;
+ }
+
+ protected boolean consumeKeyword$4() throws Exception {
+ return consumeKeyword(getRule().ele000KeywordVar(), null, false, false, getKeyword$4$Delimiter());
+ }
+
+ protected boolean consumeKeyword$5() throws Exception {
+ return consumeKeyword(getRule().ele001KeywordFile(), null, false, false, getKeyword$5$Delimiter());
+ }
+
+ protected boolean consumeAssignment$6() throws Exception {
+ if (consumeTerminal(stringConsumer, "file", false, false, getRule().ele010LexerRuleCallSTRING(), getRuleCall$7$Delimiter()))
+ return true;
return false;
}
+ protected boolean consumeKeyword$8() throws Exception {
+ return consumeKeyword(getRule().ele1KeywordSemicolon(), null, false, false, getKeyword$8$Delimiter());
+ }
+
public PropertiesFileImportElements getRule() {
return MWEGrammarAccess.INSTANCE.prPropertiesFileImport();
}
@@ -109,5 +103,36 @@ public final class MWEPropertiesFileImportConsumer extends NonTerminalConsumer {
this.stringConsumer = stringConsumer;
}
-
+ public ISequenceMatcher getRuleCall$7$Delimiter() {
+ return ruleCall$7$Delimiter;
+ }
+
+ public void setRuleCall$7$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$7$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ICharacterClass getKeyword$4$Delimiter() {
+ return keyword$4$Delimiter;
+ }
+
+ public void setKeyword$4$Delimiter(ICharacterClass characterClass) {
+ keyword$4$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$8$Delimiter() {
+ return keyword$8$Delimiter;
+ }
+
+ public void setKeyword$8$Delimiter(ICharacterClass characterClass) {
+ keyword$8$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$5$Delimiter() {
+ return keyword$5$Delimiter;
+ }
+
+ public void setKeyword$5$Delimiter(ICharacterClass characterClass) {
+ keyword$5$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
}
diff --git a/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEPropertyConsumer.java b/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEPropertyConsumer.java
index 3abf41d..979eb7e 100644
--- a/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEPropertyConsumer.java
+++ b/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEPropertyConsumer.java
@@ -11,13 +11,17 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
+import org.eclipse.xtext.parser.packrat.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.emf.mwe.di.services.MWEGrammarAccess;
import org.eclipse.emf.mwe.di.services.MWEGrammarAccess.PropertyElements;
import org.eclipse.emf.mwe.di.parser.packrat.consumers.MWELocalVariableConsumer;
import org.eclipse.emf.mwe.di.parser.packrat.consumers.MWEPropertiesFileImportConsumer;
+@SuppressWarnings("unused")
public final class MWEPropertyConsumer extends NonTerminalConsumer {
private MWELocalVariableConsumer localVariableConsumer;
@@ -29,27 +33,26 @@ public final class MWEPropertyConsumer extends NonTerminalConsumer {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- ALTERNATIVES$1SUCCESS: {
- ALTERNATIVES$1FAILURE: {
- RULECALL$2SUCCESS: {
- if (!consumeNonTerminal(localVariableConsumer, null, false, false, getRule().ele0ParserRuleCallLocalVariable()))
- break RULECALL$2SUCCESS;
- break ALTERNATIVES$1FAILURE;
- }
- RULECALL$3SUCCESS: {
- if (!consumeNonTerminal(propertiesFileImportConsumer, null, false, false, getRule().ele1ParserRuleCallPropertiesFileImport()))
- break RULECALL$3SUCCESS;
- break ALTERNATIVES$1FAILURE;
- }
- break ALTERNATIVES$1SUCCESS;
- }
+ return consumeAlternatives$1();
+ }
+
+ protected boolean consumeAlternatives$1() throws Exception {
+ if (consumeRuleCall$2())
+ return true;
+ if (consumeRuleCall$3())
return true;
- }
return false;
}
+ protected boolean consumeRuleCall$2() throws Exception {
+ return consumeNonTerminal(localVariableConsumer, null, false, false, getRule().ele0ParserRuleCallLocalVariable());
+ }
+
+ protected boolean consumeRuleCall$3() throws Exception {
+ return consumeNonTerminal(propertiesFileImportConsumer, null, false, false, getRule().ele1ParserRuleCallPropertiesFileImport());
+ }
+
public PropertyElements getRule() {
return MWEGrammarAccess.INSTANCE.prProperty();
}
@@ -71,5 +74,4 @@ public final class MWEPropertyConsumer extends NonTerminalConsumer {
this.propertiesFileImportConsumer = propertiesFileImportConsumer;
}
-
}
diff --git a/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEQualifiedNameConsumer.java b/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEQualifiedNameConsumer.java
index eff0a8d..dd98ad8 100644
--- a/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEQualifiedNameConsumer.java
+++ b/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEQualifiedNameConsumer.java
@@ -11,73 +11,85 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
+import org.eclipse.xtext.parser.packrat.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.emf.mwe.di.services.MWEGrammarAccess;
import org.eclipse.emf.mwe.di.services.MWEGrammarAccess.QualifiedNameElements;
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
+@SuppressWarnings("unused")
public final class MWEQualifiedNameConsumer extends NonTerminalConsumer {
private XtextBuiltinIDConsumer idConsumer;
+ private ISequenceMatcher ruleCall$3$Delimiter;
+
+ private ISequenceMatcher ruleCall$8$Delimiter;
+
+ private ICharacterClass keyword$6$Delimiter;
+
public MWEQualifiedNameConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ ruleCall$3$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ ruleCall$8$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ keyword$6$Delimiter = ICharacterClass.Factory.nullClass();
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- GROUP$1SUCCESS: {
- IMarker mGROUP$1 = mark();
- GROUP$1FAILURE: {
- ASSIGNMENT$2SUCCESS: {
- ASSIGNMENT$2FAILURE: {
- if (consumeTerminal(idConsumer, "parts", true, false, getRule().ele00LexerRuleCallID()))
- break ASSIGNMENT$2FAILURE;
- mGROUP$1.rollback();
- break ASSIGNMENT$2SUCCESS;
- }
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- GROUP$1FAILURE: {
- GROUP$4SUCCESS: while(true) {
- IMarker mGROUP$4 = mark();
- GROUP$4FAILURE: {
- ASSIGNMENT$5SUCCESS: {
- ASSIGNMENT$5FAILURE: {
- if (consumeKeyword(getRule().ele100KeywordFullStop(), "parts", true, false))
- break ASSIGNMENT$5FAILURE;
- mGROUP$4.rollback();
- break ASSIGNMENT$5SUCCESS;
- }
- break GROUP$4FAILURE;
- }
- mGROUP$4.rollback();
- break GROUP$4SUCCESS;
- }
- GROUP$4FAILURE: {
- ASSIGNMENT$7SUCCESS: {
- ASSIGNMENT$7FAILURE: {
- if (consumeTerminal(idConsumer, "parts", true, false, getRule().ele110LexerRuleCallID()))
- break ASSIGNMENT$7FAILURE;
- mGROUP$4.rollback();
- break ASSIGNMENT$7SUCCESS;
- }
- break GROUP$4FAILURE;
- }
- mGROUP$4.rollback();
- break GROUP$4SUCCESS;
- }
- continue GROUP$4SUCCESS;
- }
- }
+ return consumeGroup$1();
+ }
+
+ protected boolean consumeGroup$1() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeAssignment$2()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeGroup$4()) {
+ marker.rollback();
+ return false;
+ }
+ return true;
+ }
+
+ protected boolean consumeAssignment$2() throws Exception {
+ if (consumeTerminal(idConsumer, "parts", true, false, getRule().ele00LexerRuleCallID(), getRuleCall$3$Delimiter()))
return true;
+ return false;
+ }
+
+ protected boolean consumeGroup$4() throws Exception {
+ while(doConsumeGroup$4()) {}
+ return true;
+ }
+
+ protected boolean doConsumeGroup$4() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeAssignment$5()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$7()) {
+ marker.rollback();
+ return false;
}
+ return true;
+ }
+
+ protected boolean consumeAssignment$5() throws Exception {
+ if (consumeKeyword(getRule().ele100KeywordFullStop(), "parts", true, false, getKeyword$6$Delimiter()))
+ return true;
+ return false;
+ }
+
+ protected boolean consumeAssignment$7() throws Exception {
+ if (consumeTerminal(idConsumer, "parts", true, false, getRule().ele110LexerRuleCallID(), getRuleCall$8$Delimiter()))
+ return true;
return false;
}
@@ -98,5 +110,28 @@ public final class MWEQualifiedNameConsumer extends NonTerminalConsumer {
this.idConsumer = idConsumer;
}
-
+ public ISequenceMatcher getRuleCall$3$Delimiter() {
+ return ruleCall$3$Delimiter;
+ }
+
+ public void setRuleCall$3$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$3$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ISequenceMatcher getRuleCall$8$Delimiter() {
+ return ruleCall$8$Delimiter;
+ }
+
+ public void setRuleCall$8$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$8$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ICharacterClass getKeyword$6$Delimiter() {
+ return keyword$6$Delimiter;
+ }
+
+ public void setKeyword$6$Delimiter(ICharacterClass characterClass) {
+ keyword$6$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
}
diff --git a/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWESimpleValueConsumer.java b/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWESimpleValueConsumer.java
index 72e0b9b..ecdafd7 100644
--- a/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWESimpleValueConsumer.java
+++ b/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWESimpleValueConsumer.java
@@ -11,32 +11,36 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
+import org.eclipse.xtext.parser.packrat.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.emf.mwe.di.services.MWEGrammarAccess;
import org.eclipse.emf.mwe.di.services.MWEGrammarAccess.SimpleValueElements;
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinSTRINGConsumer;
+@SuppressWarnings("unused")
public final class MWESimpleValueConsumer extends NonTerminalConsumer {
private XtextBuiltinSTRINGConsumer stringConsumer;
+ private ISequenceMatcher ruleCall$2$Delimiter;
+
public MWESimpleValueConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ ruleCall$2$Delimiter = ISequenceMatcher.Factory.nullMatcher();
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- ASSIGNMENT$1SUCCESS: {
- ASSIGNMENT$1FAILURE: {
- if (consumeTerminal(stringConsumer, "value", false, false, getRule().ele0LexerRuleCallSTRING()))
- break ASSIGNMENT$1FAILURE;
- break ASSIGNMENT$1SUCCESS;
- }
+ return consumeAssignment$1();
+ }
+
+ protected boolean consumeAssignment$1() throws Exception {
+ if (consumeTerminal(stringConsumer, "value", false, false, getRule().ele0LexerRuleCallSTRING(), getRuleCall$2$Delimiter()))
return true;
- }
return false;
}
@@ -57,5 +61,12 @@ public final class MWESimpleValueConsumer extends NonTerminalConsumer {
this.stringConsumer = stringConsumer;
}
-
+ public ISequenceMatcher getRuleCall$2$Delimiter() {
+ return ruleCall$2$Delimiter;
+ }
+
+ public void setRuleCall$2$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$2$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
}
diff --git a/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEValueConsumer.java b/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEValueConsumer.java
index ac6880b..202a4ac 100644
--- a/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEValueConsumer.java
+++ b/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEValueConsumer.java
@@ -11,21 +11,25 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
+import org.eclipse.xtext.parser.packrat.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.emf.mwe.di.services.MWEGrammarAccess;
import org.eclipse.emf.mwe.di.services.MWEGrammarAccess.ValueElements;
-import org.eclipse.emf.mwe.di.parser.packrat.consumers.MWESimpleValueConsumer;
+import org.eclipse.emf.mwe.di.parser.packrat.consumers.MWEComplexValueConsumer;
import org.eclipse.emf.mwe.di.parser.packrat.consumers.MWEIdRefConsumer;
+import org.eclipse.emf.mwe.di.parser.packrat.consumers.MWESimpleValueConsumer;
import org.eclipse.emf.mwe.di.parser.packrat.consumers.MWEWorkflowRefConsumer;
-import org.eclipse.emf.mwe.di.parser.packrat.consumers.MWEComplexValueConsumer;
+@SuppressWarnings("unused")
public final class MWEValueConsumer extends NonTerminalConsumer {
- private MWESimpleValueConsumer simpleValueConsumer;
+ private MWEComplexValueConsumer complexValueConsumer;
private MWEIdRefConsumer idRefConsumer;
+ private MWESimpleValueConsumer simpleValueConsumer;
private MWEWorkflowRefConsumer workflowRefConsumer;
- private MWEComplexValueConsumer complexValueConsumer;
public MWEValueConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
@@ -33,49 +37,38 @@ public final class MWEValueConsumer extends NonTerminalConsumer {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- ALTERNATIVES$1SUCCESS: {
- ALTERNATIVES$1FAILURE: {
- ALTERNATIVES$2SUCCESS: {
- ALTERNATIVES$2FAILURE: {
- ALTERNATIVES$3SUCCESS: {
- ALTERNATIVES$3FAILURE: {
- RULECALL$4SUCCESS: {
- if (!consumeNonTerminal(simpleValueConsumer, null, false, false, getRule().ele000ParserRuleCallSimpleValue()))
- break RULECALL$4SUCCESS;
- break ALTERNATIVES$3FAILURE;
- }
- RULECALL$5SUCCESS: {
- if (!consumeNonTerminal(complexValueConsumer, null, false, false, getRule().ele001ParserRuleCallComplexValue()))
- break RULECALL$5SUCCESS;
- break ALTERNATIVES$3FAILURE;
- }
- break ALTERNATIVES$3SUCCESS;
- }
- break ALTERNATIVES$2FAILURE;
- }
- RULECALL$6SUCCESS: {
- if (!consumeNonTerminal(idRefConsumer, null, false, false, getRule().ele01ParserRuleCallIdRef()))
- break RULECALL$6SUCCESS;
- break ALTERNATIVES$2FAILURE;
- }
- break ALTERNATIVES$2SUCCESS;
- }
- break ALTERNATIVES$1FAILURE;
- }
- RULECALL$7SUCCESS: {
- if (!consumeNonTerminal(workflowRefConsumer, null, false, false, getRule().ele1ParserRuleCallWorkflowRef()))
- break RULECALL$7SUCCESS;
- break ALTERNATIVES$1FAILURE;
- }
- break ALTERNATIVES$1SUCCESS;
- }
+ return consumeAlternatives$1();
+ }
+
+ protected boolean consumeAlternatives$1() throws Exception {
+ if (consumeRuleCall$4())
+ return true;
+ if (consumeRuleCall$5())
+ return true;
+ if (consumeRuleCall$6())
+ return true;
+ if (consumeRuleCall$7())
return true;
- }
return false;
}
+ protected boolean consumeRuleCall$4() throws Exception {
+ return consumeNonTerminal(simpleValueConsumer, null, false, false, getRule().ele000ParserRuleCallSimpleValue());
+ }
+
+ protected boolean consumeRuleCall$5() throws Exception {
+ return consumeNonTerminal(complexValueConsumer, null, false, false, getRule().ele001ParserRuleCallComplexValue());
+ }
+
+ protected boolean consumeRuleCall$6() throws Exception {
+ return consumeNonTerminal(idRefConsumer, null, false, false, getRule().ele01ParserRuleCallIdRef());
+ }
+
+ protected boolean consumeRuleCall$7() throws Exception {
+ return consumeNonTerminal(workflowRefConsumer, null, false, false, getRule().ele1ParserRuleCallWorkflowRef());
+ }
+
public ValueElements getRule() {
return MWEGrammarAccess.INSTANCE.prValue();
}
@@ -89,21 +82,20 @@ public final class MWEValueConsumer extends NonTerminalConsumer {
return "Value";
}
- public void setSimpleValueConsumer(MWESimpleValueConsumer simpleValueConsumer) {
- this.simpleValueConsumer = simpleValueConsumer;
+ public void setComplexValueConsumer(MWEComplexValueConsumer complexValueConsumer) {
+ this.complexValueConsumer = complexValueConsumer;
}
public void setIdRefConsumer(MWEIdRefConsumer idRefConsumer) {
this.idRefConsumer = idRefConsumer;
}
- public void setWorkflowRefConsumer(MWEWorkflowRefConsumer workflowRefConsumer) {
- this.workflowRefConsumer = workflowRefConsumer;
+ public void setSimpleValueConsumer(MWESimpleValueConsumer simpleValueConsumer) {
+ this.simpleValueConsumer = simpleValueConsumer;
}
- public void setComplexValueConsumer(MWEComplexValueConsumer complexValueConsumer) {
- this.complexValueConsumer = complexValueConsumer;
+ public void setWorkflowRefConsumer(MWEWorkflowRefConsumer workflowRefConsumer) {
+ this.workflowRefConsumer = workflowRefConsumer;
}
-
}
diff --git a/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEWorkflowRefConsumer.java b/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEWorkflowRefConsumer.java
index 1f748a1..4c0afde 100644
--- a/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEWorkflowRefConsumer.java
+++ b/plugins/org.eclipse.emf.mwe.di/src-gen/org/eclipse/emf/mwe/di/parser/packrat/consumers/MWEWorkflowRefConsumer.java
@@ -11,107 +11,98 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
+import org.eclipse.xtext.parser.packrat.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.emf.mwe.di.services.MWEGrammarAccess;
import org.eclipse.emf.mwe.di.services.MWEGrammarAccess.WorkflowRefElements;
-import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinSTRINGConsumer;
import org.eclipse.emf.mwe.di.parser.packrat.consumers.MWEAssignmentConsumer;
+import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinSTRINGConsumer;
+@SuppressWarnings("unused")
public final class MWEWorkflowRefConsumer extends NonTerminalConsumer {
- private XtextBuiltinSTRINGConsumer stringConsumer;
private MWEAssignmentConsumer assignmentConsumer;
+ private XtextBuiltinSTRINGConsumer stringConsumer;
+ private ISequenceMatcher ruleCall$7$Delimiter;
+
+ private ICharacterClass keyword$11$Delimiter;
+
+ private ICharacterClass keyword$8$Delimiter;
+
+ private ICharacterClass keyword$5$Delimiter;
+
public MWEWorkflowRefConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ ruleCall$7$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ keyword$11$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$8$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$5$Delimiter = ICharacterClass.Factory.nullClass();
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- GROUP$1SUCCESS: {
- IMarker mGROUP$1 = mark();
- GROUP$1FAILURE: {
- GROUP$2SUCCESS: {
- IMarker mGROUP$2 = mark();
- GROUP$2FAILURE: {
- GROUP$3SUCCESS: {
- IMarker mGROUP$3 = mark();
- GROUP$3FAILURE: {
- GROUP$4SUCCESS: {
- IMarker mGROUP$4 = mark();
- GROUP$4FAILURE: {
- KEYWORD$5SUCCESS: {
- if (!consumeKeyword(getRule().ele0000KeywordFile(), null, false, false))
- break KEYWORD$5SUCCESS;
- break GROUP$4FAILURE;
- }
- mGROUP$4.rollback();
- break GROUP$4SUCCESS;
- }
- GROUP$4FAILURE: {
- ASSIGNMENT$6SUCCESS: {
- ASSIGNMENT$6FAILURE: {
- if (consumeTerminal(stringConsumer, "uri", false, false, getRule().ele00010LexerRuleCallSTRING()))
- break ASSIGNMENT$6FAILURE;
- mGROUP$4.rollback();
- break ASSIGNMENT$6SUCCESS;
- }
- break GROUP$4FAILURE;
- }
- mGROUP$4.rollback();
- break GROUP$4SUCCESS;
- }
- break GROUP$3FAILURE;
- }
- mGROUP$3.rollback();
- break GROUP$3SUCCESS;
- }
- GROUP$3FAILURE: {
- KEYWORD$8SUCCESS: {
- if (!consumeKeyword(getRule().ele001KeywordLeftCurlyBracket(), null, false, false))
- break KEYWORD$8SUCCESS;
- break GROUP$3FAILURE;
- }
- mGROUP$3.rollback();
- break GROUP$3SUCCESS;
- }
- break GROUP$2FAILURE;
- }
- mGROUP$2.rollback();
- break GROUP$2SUCCESS;
- }
- GROUP$2FAILURE: {
- ASSIGNMENT$9SUCCESS: while(true) {
- ASSIGNMENT$9FAILURE: {
- if (consumeNonTerminal(assignmentConsumer, "assignments", true, false , getRule().ele010ParserRuleCallAssignment()))
- break ASSIGNMENT$9FAILURE;
- break ASSIGNMENT$9SUCCESS;
- }
- continue ASSIGNMENT$9SUCCESS;
- }
- }
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- GROUP$1FAILURE: {
- KEYWORD$11SUCCESS: {
- if (!consumeKeyword(getRule().ele1KeywordRightCurlyBracket(), null, false, false))
- break KEYWORD$11SUCCESS;
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- return true;
+ return consumeGroup$1();
+ }
+
+ protected boolean consumeGroup$1() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeKeyword$5()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$6()) {
+ marker.rollback();
+ return false;
}
+ if (!consumeKeyword$8()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$9()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeKeyword$11()) {
+ marker.rollback();
+ return false;
+ }
+ return true;
+ }
+
+ protected boolean consumeKeyword$5() throws Exception {
+ return consumeKeyword(getRule().ele0000KeywordFile(), null, false, false, getKeyword$5$Delimiter());
+ }
+
+ protected boolean consumeAssignment$6() throws Exception {
+ if (consumeTerminal(stringConsumer, "uri", false, false, getRule().ele00010LexerRuleCallSTRING(), getRuleCall$7$Delimiter()))
+ return true;
+ return false;
+ }
+
+ protected boolean consumeKeyword$8() throws Exception {
+ return consumeKeyword(getRule().ele001KeywordLeftCurlyBracket(), null, false, false, getKeyword$8$Delimiter());
+ }
+
+ protected boolean consumeAssignment$9() throws Exception {
+ while(doConsumeAssignment$9()) {}
+ return true;
+ }
+
+ protected boolean doConsumeAssignment$9() throws Exception {
+ if (consumeNonTerminal(assignmentConsumer, "assignments", true, false, getRule().ele010ParserRuleCallAssignment()))
+ return true;
return false;
}
+ protected boolean consumeKeyword$11() throws Exception {
+ return consumeKeyword(getRule().ele1KeywordRightCurlyBracket(), null, false, false, getKeyword$11$Delimiter());
+ }
+
public WorkflowRefElements getRule() {
return MWEGrammarAccess.INSTANCE.prWorkflowRef();
}
@@ -125,13 +116,44 @@ public final class MWEWorkflowRefConsumer extends NonTerminalConsumer {
return "WorkflowRef";
}
+ public void setAssignmentConsumer(MWEAssignmentConsumer assignmentConsumer) {
+ this.assignmentConsumer = assignmentConsumer;
+ }
+
public void setStringConsumer(XtextBuiltinSTRINGConsumer stringConsumer) {
this.stringConsumer = stringConsumer;
}
- public void setAssignmentConsumer(MWEAssignmentConsumer assignmentConsumer) {
- this.assignmentConsumer = assignmentConsumer;
+ public ISequenceMatcher getRuleCall$7$Delimiter() {
+ return ruleCall$7$Delimiter;
+ }
+
+ public void setRuleCall$7$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$7$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ICharacterClass getKeyword$11$Delimiter() {
+ return keyword$11$Delimiter;
+ }
+
+ public void setKeyword$11$Delimiter(ICharacterClass characterClass) {
+ keyword$11$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$8$Delimiter() {
+ return keyword$8$Delimiter;
+ }
+
+ public void setKeyword$8$Delimiter(ICharacterClass characterClass) {
+ keyword$8$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$5$Delimiter() {
+ return keyword$5$Delimiter;
+ }
+
+ public void setKeyword$5$Delimiter(ICharacterClass characterClass) {
+ keyword$5$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
}
-
}