summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjkohnlein2008-03-18 04:23:12 (EDT)
committer jkohnlein2008-03-18 04:23:12 (EDT)
commit5d1af9127648ce0f874530fb603475f77d9f86f2 (patch)
treeccd39b05cc1ed7c8e0d11faacba8f5c284c8c3e9
parente1d5df96b958a7aae20fcc96718c5dd85c2c1e4b (diff)
downloadorg.eclipse.xpand-5d1af9127648ce0f874530fb603475f77d9f86f2.zip
org.eclipse.xpand-5d1af9127648ce0f874530fb603475f77d9f86f2.tar.gz
org.eclipse.xpand-5d1af9127648ce0f874530fb603475f77d9f86f2.tar.bz2
optimized EList access in parser
-rw-r--r--plugins/org.eclipse.xpand3.parser/model/criticism.txt2
-rw-r--r--plugins/org.eclipse.xpand3.parser/src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g371
-rw-r--r--plugins/org.eclipse.xpand3.parser/src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3NodeLexer.java190
-rw-r--r--plugins/org.eclipse.xpand3.parser/src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3NodeParser.java2785
-rw-r--r--plugins/org.eclipse.xpand3.parser/src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node__.g42
-rw-r--r--tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/frontend/parser/performance.txt22
6 files changed, 1804 insertions, 1608 deletions
diff --git a/plugins/org.eclipse.xpand3.parser/model/criticism.txt b/plugins/org.eclipse.xpand3.parser/model/criticism.txt
index a9253ef..affb330 100644
--- a/plugins/org.eclipse.xpand3.parser/model/criticism.txt
+++ b/plugins/org.eclipse.xpand3.parser/model/criticism.txt
@@ -1,6 +1,6 @@
TMF common critics:
-- default label
+- default label for rules
- no labels for keywords (template l:105)
- label for parenthesized expr
rule: visibility=('public' | 'private' );
diff --git a/plugins/org.eclipse.xpand3.parser/src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g b/plugins/org.eclipse.xpand3.parser/src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g
index 18af2bb..2f569d6 100644
--- a/plugins/org.eclipse.xpand3.parser/src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g
+++ b/plugins/org.eclipse.xpand3.parser/src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g
@@ -9,12 +9,14 @@ options {
package org.eclipse.xpand3.internal.frontend.parser;
import org.eclipse.tmf.common.node.*;
+import org.eclipse.emf.common.util.BasicEList;
import org.eclipse.xpand3.internal.frontend.parser.xpand3node.*;
}
@parser::members {
protected Xpand3nodeFactory factory = Xpand3nodeFactory.eINSTANCE;
+
}
@lexer::header {
@@ -27,9 +29,10 @@ package org.eclipse.xpand3.internal.frontend.parser;
}
r_file returns [CompositeNode cn]
- @init{ cn = factory.createFileNode();
- } :
- (((f_imports=r_nsImport { addToChildren(cn, f_imports); ((FileNode) cn).getImports().add(f_imports); })))* (((f_declarations=r_abstractDeclaration { addToChildren(cn, f_declarations); ((FileNode) cn).getDeclarations().add(f_declarations); })))* (EOF)
+ @init{
+ cn = factory.createFileNode();
+ } :
+ (((f_imports=r_nsImport { addToChildren(cn, f_imports);((BasicEList<CompositeNode>)((FileNode) cn).getImports()).addUnique(f_imports); })))* (((f_declarations=r_abstractDeclaration { addToChildren(cn, f_declarations);((BasicEList<CompositeNode>)((FileNode) cn).getDeclarations()).addUnique(f_declarations); })))* (EOF)
;
r_nsImport returns [CompositeNode cn] :
@@ -38,15 +41,17 @@ r_nsImport returns [CompositeNode cn] :
;
r_import returns [CompositeNode cn]
- @init{ cn = factory.createImportNode();
- } :
+ @init{
+ cn = factory.createImportNode();
+ } :
(((LG { addLeafNodeForToken($cn, null); }) ('IMPORT' { addLeafNodeForToken($cn, null); }) (f_namespace=r_simpleType { addToChildren(cn, f_namespace); ((ImportNode) cn).setNamespace(f_namespace); }) (RG { addLeafNodeForToken($cn, null); })))
| ('import' { addLeafNodeForToken($cn, null); }) (f_type=r_type { addToChildren(cn, f_type); ((ImportNode) cn).setType(f_type); }) (';' { addLeafNodeForToken($cn, null); })
;
r_extensionImport returns [CompositeNode cn]
- @init{ cn = factory.createExtensionImportNode();
- } :
+ @init{
+ cn = factory.createExtensionImportNode();
+ } :
(((LG { addLeafNodeForToken($cn, null); }) ('EXTENSION' { addLeafNodeForToken($cn, null); }) (f_namespace=r_simpleType { addToChildren(cn, f_namespace); ((ExtensionImportNode) cn).setNamespace(f_namespace); }) (RG { addLeafNodeForToken($cn, null); })))
| ('extension' { addLeafNodeForToken($cn, null); }) (f_type=r_type { addToChildren(cn, f_type); ((ExtensionImportNode) cn).setType(f_type); }) ('reexport' { addLeafNodeForToken($cn, null); })? (';' { addLeafNodeForToken($cn, null); })
;
@@ -60,23 +65,26 @@ r_abstractDeclaration returns [CompositeNode cn] :
;
r_definition returns [CompositeNode cn]
- @init{ cn = factory.createDefinitionNode();
- } :
+ @init{
+ cn = factory.createDefinitionNode();
+ } :
(LG { addLeafNodeForToken($cn, null); }) (DEFINE { addLeafNodeForToken($cn, null); }) (f_name=r_identifier { addToChildren(cn, f_name); ((DefinitionNode) cn).setName(f_name); }) ((('(' { addLeafNodeForToken($cn, null); }) (((f_paramList=r_declaredParameterList { addToChildren(cn, f_paramList); ((DefinitionNode) cn).setParamList(f_paramList); }) (((',' { addLeafNodeForToken($cn, null); })? ('*' { addLeafNodeForToken($cn, null); })))?
| ('*' { addLeafNodeForToken($cn, null); })))? (')' { addLeafNodeForToken($cn, null); })))? ('FOR' { addLeafNodeForToken($cn, null); }) (f_type=r_type { addToChildren(cn, f_type); ((DefinitionNode) cn).setType(f_type); }) (f_sequence=r_sequence { addToChildren(cn, f_sequence); ((DefinitionNode) cn).setSequence(f_sequence); }) (ENDDEFINE { addLeafNodeForToken($cn, null); }) (RG { addLeafNodeForToken($cn, null); })
;
r_definitionAround returns [CompositeNode cn]
- @init{ cn = factory.createDefinitionAroundNode();
- } :
+ @init{
+ cn = factory.createDefinitionAroundNode();
+ } :
(LG { addLeafNodeForToken($cn, null); }) (AROUND { addLeafNodeForToken($cn, null); }) (f_pointcut=r_pointcut { addToChildren(cn, f_pointcut); ((DefinitionAroundNode) cn).setPointcut(f_pointcut); }) ((('(' { addLeafNodeForToken($cn, null); }) (((f_paramList=r_declaredParameterList { addToChildren(cn, f_paramList); ((DefinitionAroundNode) cn).setParamList(f_paramList); }) (((',' { addLeafNodeForToken($cn, null); })? ('*' { addLeafNodeForToken($cn, null); })))?
| ('*' { addLeafNodeForToken($cn, null); })))? (')' { addLeafNodeForToken($cn, null); })))? ('FOR' { addLeafNodeForToken($cn, null); }) (f_type=r_type { addToChildren(cn, f_type); ((DefinitionAroundNode) cn).setType(f_type); }) (f_sequence=r_sequence { addToChildren(cn, f_sequence); ((DefinitionAroundNode) cn).setSequence(f_sequence); }) (ENDAROUND { addLeafNodeForToken($cn, null); }) (RG { addLeafNodeForToken($cn, null); })
;
r_sequence returns [CompositeNode cn]
- @init{ cn = factory.createSequenceNode();
- } :
- (f_textSequences=r_textSequence { addToChildren(cn, f_textSequences); ((SequenceNode) cn).getTextSequences().add(f_textSequences); }) (((f_statements=r_statement { addToChildren(cn, f_statements); ((SequenceNode) cn).getStatements().add(f_statements); }) (f_textSequences=r_textSequence { addToChildren(cn, f_textSequences); ((SequenceNode) cn).getTextSequences().add(f_textSequences); })))*
+ @init{
+ cn = factory.createSequenceNode();
+ } :
+ (f_textSequences=r_textSequence { addToChildren(cn, f_textSequences);((BasicEList<CompositeNode>)((SequenceNode) cn).getTextSequences()).addUnique(f_textSequences); }) (((f_statements=r_statement { addToChildren(cn, f_statements);((BasicEList<CompositeNode>)((SequenceNode) cn).getStatements()).addUnique(f_statements); }) (f_textSequences=r_textSequence { addToChildren(cn, f_textSequences);((BasicEList<CompositeNode>)((SequenceNode) cn).getTextSequences()).addUnique(f_textSequences); })))*
;
r_statement returns [CompositeNode cn] :
@@ -89,15 +97,19 @@ r_statement returns [CompositeNode cn] :
;
r_textSequence returns [CompositeNode cn]
- @init{ cn = factory.createTextSequenceNode();
- }
- @after{ cn = normalize(cn); } :
- (f_texts=r_text { addToChildren(cn, f_texts); ((TextSequenceNode) cn).getTexts().add(f_texts); }) (((f_texts=r_text { addToChildren(cn, f_texts); ((TextSequenceNode) cn).getTexts().add(f_texts); })))*
+ @init{
+ cn = factory.createTextSequenceNode();
+ }
+ @after{
+ cn = normalize(cn);
+ } :
+ (f_texts=r_text { addToChildren(cn, f_texts);((BasicEList<CompositeNode>)((TextSequenceNode) cn).getTexts()).addUnique(f_texts); }) (((f_texts=r_text { addToChildren(cn, f_texts);((BasicEList<CompositeNode>)((TextSequenceNode) cn).getTexts()).addUnique(f_texts); })))*
;
r_text returns [CompositeNode cn]
- @init{ cn = factory.createTextNode();
- } :
+ @init{
+ cn = factory.createTextNode();
+ } :
('-' { addLeafNodeForToken($cn, null); })? (TEXT { addLeafNodeForToken($cn, null); })
;
@@ -108,83 +120,96 @@ r_simpleStatement returns [CompositeNode cn] :
;
r_errorStatement returns [CompositeNode cn]
- @init{ cn = factory.createErrorStatementNode();
- } :
+ @init{
+ cn = factory.createErrorStatementNode();
+ } :
('ERROR' { addLeafNodeForToken($cn, null); }) (f_expression=r_expression { addToChildren(cn, f_expression); ((ErrorStatementNode) cn).setExpression(f_expression); })
;
r_expandStatement returns [CompositeNode cn]
- @init{ cn = factory.createExpandStatementNode();
- } :
+ @init{
+ cn = factory.createExpandStatementNode();
+ } :
('EXPAND' { addLeafNodeForToken($cn, null); }) (f_name=r_simpleType { addToChildren(cn, f_name); ((ExpandStatementNode) cn).setName(f_name); }) ((('(' { addLeafNodeForToken($cn, null); }) (f_paramList=r_parameterList { addToChildren(cn, f_paramList); ((ExpandStatementNode) cn).setParamList(f_paramList); }) (')' { addLeafNodeForToken($cn, null); })))? ((((('FOR' { addLeafNodeForToken($cn, null); }) (f_forExpression=r_expression { addToChildren(cn, f_forExpression); ((ExpandStatementNode) cn).setForExpression(f_forExpression); })))
| ((('FOREACH' { addLeafNodeForToken($cn, null); }) (f_forEachExpression=r_expression { addToChildren(cn, f_forEachExpression); ((ExpandStatementNode) cn).setForEachExpression(f_forEachExpression); }) ((('SEPARATOR' { addLeafNodeForToken($cn, null); }) (f_separator=r_expression { addToChildren(cn, f_separator); ((ExpandStatementNode) cn).setSeparator(f_separator); })))?))))?
;
r_expressionStmt returns [CompositeNode cn]
- @init{ cn = factory.createExpressionStmtNode();
- } :
+ @init{
+ cn = factory.createExpressionStmtNode();
+ } :
(f_expression=r_expression { addToChildren(cn, f_expression); ((ExpressionStmtNode) cn).setExpression(f_expression); })
;
r_fileStatement returns [CompositeNode cn]
- @init{ cn = factory.createFileStatementNode();
- } :
+ @init{
+ cn = factory.createFileStatementNode();
+ } :
('FILE' { addLeafNodeForToken($cn, null); }) (f_nameExpression=r_expression { addToChildren(cn, f_nameExpression); ((FileStatementNode) cn).setNameExpression(f_nameExpression); }) ((('ONCE' { addLeafNodeForToken($cn, null); })))? (((f_identifier=r_identifier { addToChildren(cn, f_identifier); ((FileStatementNode) cn).setIdentifier(f_identifier); })))? (f_sequence=r_sequence { addToChildren(cn, f_sequence); ((FileStatementNode) cn).setSequence(f_sequence); }) ('ENDFILE' { addLeafNodeForToken($cn, null); })
;
r_foreachStatement returns [CompositeNode cn]
- @init{ cn = factory.createForeachStatementNode();
- } :
+ @init{
+ cn = factory.createForeachStatementNode();
+ } :
('FOREACH' { addLeafNodeForToken($cn, null); }) (f_forExpression=r_expression { addToChildren(cn, f_forExpression); ((ForeachStatementNode) cn).setForExpression(f_forExpression); }) ('AS' { addLeafNodeForToken($cn, null); }) (f_identifier=r_identifier { addToChildren(cn, f_identifier); ((ForeachStatementNode) cn).setIdentifier(f_identifier); }) ((('ITERATOR' { addLeafNodeForToken($cn, null); }) (f_iterator=r_identifier { addToChildren(cn, f_iterator); ((ForeachStatementNode) cn).setIterator(f_iterator); })))? ((('SEPARATOR' { addLeafNodeForToken($cn, null); }) (f_separatorExpression=r_expression { addToChildren(cn, f_separatorExpression); ((ForeachStatementNode) cn).setSeparatorExpression(f_separatorExpression); })))? (f_sequence=r_sequence { addToChildren(cn, f_sequence); ((ForeachStatementNode) cn).setSequence(f_sequence); }) ('ENDFOREACH' { addLeafNodeForToken($cn, null); })
;
r_ifStatement returns [CompositeNode cn]
- @init{ cn = factory.createIfStatementNode();
- } :
- ('IF' { addLeafNodeForToken($cn, null); }) (f_expression=r_expression { addToChildren(cn, f_expression); ((IfStatementNode) cn).setExpression(f_expression); }) (f_sequence=r_sequence { addToChildren(cn, f_sequence); ((IfStatementNode) cn).setSequence(f_sequence); }) (f_elseIfs=r_elseIfStatement { addToChildren(cn, f_elseIfs); ((IfStatementNode) cn).getElseIfs().add(f_elseIfs); })* (f_else=r_elseStatement { addToChildren(cn, f_else); ((IfStatementNode) cn).setElse(f_else); })? ('ENDIF' { addLeafNodeForToken($cn, null); })
+ @init{
+ cn = factory.createIfStatementNode();
+ } :
+ ('IF' { addLeafNodeForToken($cn, null); }) (f_expression=r_expression { addToChildren(cn, f_expression); ((IfStatementNode) cn).setExpression(f_expression); }) (f_sequence=r_sequence { addToChildren(cn, f_sequence); ((IfStatementNode) cn).setSequence(f_sequence); }) (f_elseIfs=r_elseIfStatement { addToChildren(cn, f_elseIfs);((BasicEList<CompositeNode>)((IfStatementNode) cn).getElseIfs()).addUnique(f_elseIfs); })* (f_else=r_elseStatement { addToChildren(cn, f_else); ((IfStatementNode) cn).setElse(f_else); })? ('ENDIF' { addLeafNodeForToken($cn, null); })
;
r_elseIfStatement returns [CompositeNode cn]
- @init{ cn = factory.createElseIfStatementNode();
- } :
+ @init{
+ cn = factory.createElseIfStatementNode();
+ } :
('ELSEIF' { addLeafNodeForToken($cn, null); }) (f_expression=r_expression { addToChildren(cn, f_expression); ((ElseIfStatementNode) cn).setExpression(f_expression); }) (f_sequence=r_sequence { addToChildren(cn, f_sequence); ((ElseIfStatementNode) cn).setSequence(f_sequence); })
;
r_elseStatement returns [CompositeNode cn]
- @init{ cn = factory.createElseStatementNode();
- } :
+ @init{
+ cn = factory.createElseStatementNode();
+ } :
('ELSE' { addLeafNodeForToken($cn, null); }) (f_sequence=r_sequence { addToChildren(cn, f_sequence); ((ElseStatementNode) cn).setSequence(f_sequence); })
;
r_letStatement returns [CompositeNode cn]
- @init{ cn = factory.createLetStatementNode();
- } :
+ @init{
+ cn = factory.createLetStatementNode();
+ } :
('LET' { addLeafNodeForToken($cn, null); }) (f_expression=r_expression { addToChildren(cn, f_expression); ((LetStatementNode) cn).setExpression(f_expression); }) ('AS' { addLeafNodeForToken($cn, null); }) (f_name=r_identifier { addToChildren(cn, f_name); ((LetStatementNode) cn).setName(f_name); }) (f_sequence=r_sequence { addToChildren(cn, f_sequence); ((LetStatementNode) cn).setSequence(f_sequence); }) ('ENDLET' { addLeafNodeForToken($cn, null); })
;
r_protectStatement returns [CompositeNode cn]
- @init{ cn = factory.createProtectStatementNode();
- } :
+ @init{
+ cn = factory.createProtectStatementNode();
+ } :
('PROTECT' { addLeafNodeForToken($cn, null); }) ('CSTART' { addLeafNodeForToken($cn, null); }) (f_cstart=r_expression { addToChildren(cn, f_cstart); ((ProtectStatementNode) cn).setCstart(f_cstart); }) ('CEND' { addLeafNodeForToken($cn, null); }) (f_cend=r_expression { addToChildren(cn, f_cend); ((ProtectStatementNode) cn).setCend(f_cend); }) ('ID' { addLeafNodeForToken($cn, null); }) (f_id=r_expression { addToChildren(cn, f_id); ((ProtectStatementNode) cn).setId(f_id); }) ('DISABLE' { addLeafNodeForToken($cn, null); })? (f_sequence=r_sequence { addToChildren(cn, f_sequence); ((ProtectStatementNode) cn).setSequence(f_sequence); }) ('ENDPROTECT' { addLeafNodeForToken($cn, null); })
;
r_check returns [CompositeNode cn]
- @init{ cn = factory.createCheckNode();
- } :
+ @init{
+ cn = factory.createCheckNode();
+ } :
('context' { addLeafNodeForToken($cn, null); }) (f_type=r_type { addToChildren(cn, f_type); ((CheckNode) cn).setType(f_type); }) ((('if' { addLeafNodeForToken($cn, null); }) (f_ifExpression=r_expression { addToChildren(cn, f_ifExpression); ((CheckNode) cn).setIfExpression(f_ifExpression); })))? ((('ERROR' { addLeafNodeForToken($cn, "error"); })
| ('WARNING' { addLeafNodeForToken($cn, "warning"); }))) (f_message=r_expression { addToChildren(cn, f_message); ((CheckNode) cn).setMessage(f_message); }) (':' { addLeafNodeForToken($cn, null); }) (f_constraint=r_expression { addToChildren(cn, f_constraint); ((CheckNode) cn).setConstraint(f_constraint); }) (';' { addLeafNodeForToken($cn, null); })
;
r_around returns [CompositeNode cn]
- @init{ cn = factory.createAroundNode();
- } :
+ @init{
+ cn = factory.createAroundNode();
+ } :
('around' { addLeafNodeForToken($cn, null); }) (f_unnamed0=r_pointcut { addToChildren(cn, f_unnamed0); }) ('(' { addLeafNodeForToken($cn, null); }) (((f_unnamed1=r_declaredParameterList { addToChildren(cn, f_unnamed1); }) (((',' { addLeafNodeForToken($cn, null); })? ('*' { addLeafNodeForToken($cn, null); })))?
| ('*' { addLeafNodeForToken($cn, null); })))? (')' { addLeafNodeForToken($cn, null); }) (':' { addLeafNodeForToken($cn, null); }) (f_unnamed2=r_expression { addToChildren(cn, f_unnamed2); }) (';' { addLeafNodeForToken($cn, null); })
;
r_pointcut returns [CompositeNode cn]
- @init{ cn = factory.createPointcutNode();
- } :
+ @init{
+ cn = factory.createPointcutNode();
+ } :
((('*' { addLeafNodeForToken($cn, null); })
| (f_unnamed3=r_identifier { addToChildren(cn, f_unnamed3); }))) ((('*' { addLeafNodeForToken($cn, null); })
| (f_unnamed4=r_identifier { addToChildren(cn, f_unnamed4); })
@@ -192,8 +217,9 @@ r_pointcut returns [CompositeNode cn]
;
r_extension returns [CompositeNode cn]
- @init{ cn = factory.createExtensionNode();
- } :
+ @init{
+ cn = factory.createExtensionNode();
+ } :
((('private' { addLeafNodeForToken($cn, "private"); })
| ('cached' { addLeafNodeForToken($cn, "cached"); })
| ('create' { addLeafNodeForToken($cn, "create"); })))* (((r_type r_identifier r_identifier)=>((f_returnType=r_type { addToChildren(cn, f_returnType); ((ExtensionNode) cn).setReturnType(f_returnType); }) (f_createdName=r_identifier { addToChildren(cn, f_createdName); ((ExtensionNode) cn).setCreatedName(f_createdName); }) (f_name=r_identifier { addToChildren(cn, f_name); ((ExtensionNode) cn).setName(f_name); }))
@@ -203,14 +229,16 @@ r_extension returns [CompositeNode cn]
;
r_javaCall returns [CompositeNode cn]
- @init{ cn = factory.createJavaCallNode();
- } :
+ @init{
+ cn = factory.createJavaCallNode();
+ } :
('JAVA' { addLeafNodeForToken($cn, null); }) (f_javaReturnType=r_javaType { addToChildren(cn, f_javaReturnType); ((JavaCallNode) cn).setJavaReturnType(f_javaReturnType); }) ('.' { addLeafNodeForToken($cn, null); }) (f_javaName=r_identifier { addToChildren(cn, f_javaName); ((JavaCallNode) cn).setJavaName(f_javaName); }) ('(' { addLeafNodeForToken($cn, null); }) (((f_unnamed5=r_javaType { addToChildren(cn, f_unnamed5); }) (((',' { addLeafNodeForToken($cn, null); }) (f_unnamed6=r_javaType { addToChildren(cn, f_unnamed6); })))*))? (')' { addLeafNodeForToken($cn, null); })
;
r_javaType returns [CompositeNode cn]
- @init{ cn = factory.createJavaTypeNode();
- } :
+ @init{
+ cn = factory.createJavaTypeNode();
+ } :
(f_unnamed7=r_identifier { addToChildren(cn, f_unnamed7); }) ((('.' { addLeafNodeForToken($cn, null); }) (((f_unnamed8=r_identifier { addToChildren(cn, f_unnamed8); })
| ('Collection' { addLeafNodeForToken($cn, null); })
| ('List' { addLeafNodeForToken($cn, null); })
@@ -218,9 +246,12 @@ r_javaType returns [CompositeNode cn]
;
r_test_expression returns [CompositeNode cn]
- @init{ cn = factory.createTest_expressionNode();
- }
- @after{ cn = normalize(cn); } :
+ @init{
+ cn = factory.createTest_expressionNode();
+ }
+ @after{
+ cn = normalize(cn);
+ } :
(f_unnamed9=r_expression { addToChildren(cn, f_unnamed9); }) (EOF)
;
@@ -229,113 +260,153 @@ r_expression returns [CompositeNode cn] :
;
r_letExpression returns [CompositeNode cn]
- @init{ cn = factory.createLetExpressionNode();
- }
- @after{ cn = normalize(cn); } :
+ @init{
+ cn = factory.createLetExpressionNode();
+ }
+ @after{
+ cn = normalize(cn);
+ } :
('let' { addLeafNodeForToken($cn, null); }) (f_unnamed10=r_identifier { addToChildren(cn, f_unnamed10); }) ('=' { addLeafNodeForToken($cn, null); }) (f_unnamed11=r_castedExpression { addToChildren(cn, f_unnamed11); }) (':' { addLeafNodeForToken($cn, null); }) (f_unnamed12=r_expression { addToChildren(cn, f_unnamed12); })
| (f_unnamed13=r_castedExpression { addToChildren(cn, f_unnamed13); })
;
r_castedExpression returns [CompositeNode cn]
- @init{ cn = factory.createCastedExpressionNode();
- }
- @after{ cn = normalize(cn); } :
+ @init{
+ cn = factory.createCastedExpressionNode();
+ }
+ @after{
+ cn = normalize(cn);
+ } :
('(' r_type ')' r_chainExpression)=>(('(' { addLeafNodeForToken($cn, null); }) (f_type=r_type { addToChildren(cn, f_type); ((CastedExpressionNode) cn).setType(f_type); }) (')' { addLeafNodeForToken($cn, null); }) (f_target=r_chainExpression { addToChildren(cn, f_target); ((CastedExpressionNode) cn).setTarget(f_target); }))
| (f_unnamed14=r_chainExpression { addToChildren(cn, f_unnamed14); })
;
r_chainExpression returns [CompositeNode cn]
- @init{ cn = factory.createChainExpressionNode();
- }
- @after{ cn = normalize(cn); } :
- (f_first=r_ifExpression { addToChildren(cn, f_first); ((ChainExpressionNode) cn).setFirst(f_first); }) ((('->' { addLeafNodeForToken($cn, null); }) (f_nexts=r_ifExpression { addToChildren(cn, f_nexts); ((ChainExpressionNode) cn).getNexts().add(f_nexts); })))*
+ @init{
+ cn = factory.createChainExpressionNode();
+ }
+ @after{
+ cn = normalize(cn);
+ } :
+ (f_first=r_ifExpression { addToChildren(cn, f_first); ((ChainExpressionNode) cn).setFirst(f_first); }) ((('->' { addLeafNodeForToken($cn, null); }) (f_nexts=r_ifExpression { addToChildren(cn, f_nexts);((BasicEList<CompositeNode>)((ChainExpressionNode) cn).getNexts()).addUnique(f_nexts); })))*
;
r_ifExpression returns [CompositeNode cn]
- @init{ cn = factory.createIfExpressionNode();
- }
- @after{ cn = normalize(cn); } :
+ @init{
+ cn = factory.createIfExpressionNode();
+ }
+ @after{
+ cn = normalize(cn);
+ } :
(f_condition0=r_switchExpression { addToChildren(cn, f_condition0); ((IfExpressionNode) cn).setCondition0(f_condition0); }) ((('?' { addLeafNodeForToken($cn, null); }) (f_then=r_expression { addToChildren(cn, f_then); ((IfExpressionNode) cn).setThen(f_then); }) (':' { addLeafNodeForToken($cn, null); }) (f_else=r_switchExpression { addToChildren(cn, f_else); ((IfExpressionNode) cn).setElse(f_else); })))?
| ('if' { addLeafNodeForToken($cn, null); }) (f_condition1=r_expression { addToChildren(cn, f_condition1); ((IfExpressionNode) cn).setCondition1(f_condition1); }) ('then' { addLeafNodeForToken($cn, null); }) (f_then=r_switchExpression { addToChildren(cn, f_then); ((IfExpressionNode) cn).setThen(f_then); }) ((('else' { addLeafNodeForToken($cn, null); }) (f_else=r_switchExpression { addToChildren(cn, f_else); ((IfExpressionNode) cn).setElse(f_else); })))?
;
r_switchExpression returns [CompositeNode cn]
- @init{ cn = factory.createSwitchExpressionNode();
- }
- @after{ cn = normalize(cn); } :
- ('switch' { addLeafNodeForToken($cn, null); }) ((('(' { addLeafNodeForToken($cn, null); }) (f_expression=r_orExpression { addToChildren(cn, f_expression); ((SwitchExpressionNode) cn).setExpression(f_expression); }) (')' { addLeafNodeForToken($cn, null); })))? ('{' { addLeafNodeForToken($cn, null); }) (f_cases=r_casePart { addToChildren(cn, f_cases); ((SwitchExpressionNode) cn).getCases().add(f_cases); })* ('default' { addLeafNodeForToken($cn, null); }) (':' { addLeafNodeForToken($cn, null); }) (f_default=r_orExpression { addToChildren(cn, f_default); ((SwitchExpressionNode) cn).setDefault(f_default); }) ('}' { addLeafNodeForToken($cn, null); })
+ @init{
+ cn = factory.createSwitchExpressionNode();
+ }
+ @after{
+ cn = normalize(cn);
+ } :
+ ('switch' { addLeafNodeForToken($cn, null); }) ((('(' { addLeafNodeForToken($cn, null); }) (f_expression=r_orExpression { addToChildren(cn, f_expression); ((SwitchExpressionNode) cn).setExpression(f_expression); }) (')' { addLeafNodeForToken($cn, null); })))? ('{' { addLeafNodeForToken($cn, null); }) (f_cases=r_casePart { addToChildren(cn, f_cases);((BasicEList<CompositeNode>)((SwitchExpressionNode) cn).getCases()).addUnique(f_cases); })* ('default' { addLeafNodeForToken($cn, null); }) (':' { addLeafNodeForToken($cn, null); }) (f_default=r_orExpression { addToChildren(cn, f_default); ((SwitchExpressionNode) cn).setDefault(f_default); }) ('}' { addLeafNodeForToken($cn, null); })
| (f_unnamed15=r_orExpression { addToChildren(cn, f_unnamed15); })
;
r_casePart returns [CompositeNode cn]
- @init{ cn = factory.createCasePartNode();
- } :
+ @init{
+ cn = factory.createCasePartNode();
+ } :
('case' { addLeafNodeForToken($cn, null); }) (f_condition=r_expression { addToChildren(cn, f_condition); ((CasePartNode) cn).setCondition(f_condition); }) (':' { addLeafNodeForToken($cn, null); }) (f_expression=r_expression { addToChildren(cn, f_expression); ((CasePartNode) cn).setExpression(f_expression); })
;
r_orExpression returns [CompositeNode cn]
- @init{ cn = factory.createOrExpressionNode();
- }
- @after{ cn = normalize(cn); } :
- (f_first=r_andExpression { addToChildren(cn, f_first); ((OrExpressionNode) cn).setFirst(f_first); }) ((('||' { addLeafNodeForToken($cn, null); }) (f_nexts=r_andExpression { addToChildren(cn, f_nexts); ((OrExpressionNode) cn).getNexts().add(f_nexts); })))*
+ @init{
+ cn = factory.createOrExpressionNode();
+ }
+ @after{
+ cn = normalize(cn);
+ } :
+ (f_first=r_andExpression { addToChildren(cn, f_first); ((OrExpressionNode) cn).setFirst(f_first); }) ((('||' { addLeafNodeForToken($cn, null); }) (f_nexts=r_andExpression { addToChildren(cn, f_nexts);((BasicEList<CompositeNode>)((OrExpressionNode) cn).getNexts()).addUnique(f_nexts); })))*
;
r_andExpression returns [CompositeNode cn]
- @init{ cn = factory.createAndExpressionNode();
- }
- @after{ cn = normalize(cn); } :
- (f_first=r_impliesExpression { addToChildren(cn, f_first); ((AndExpressionNode) cn).setFirst(f_first); }) ((('&&' { addLeafNodeForToken($cn, null); }) (f_nexts=r_impliesExpression { addToChildren(cn, f_nexts); ((AndExpressionNode) cn).getNexts().add(f_nexts); })))*
+ @init{
+ cn = factory.createAndExpressionNode();
+ }
+ @after{
+ cn = normalize(cn);
+ } :
+ (f_first=r_impliesExpression { addToChildren(cn, f_first); ((AndExpressionNode) cn).setFirst(f_first); }) ((('&&' { addLeafNodeForToken($cn, null); }) (f_nexts=r_impliesExpression { addToChildren(cn, f_nexts);((BasicEList<CompositeNode>)((AndExpressionNode) cn).getNexts()).addUnique(f_nexts); })))*
;
r_impliesExpression returns [CompositeNode cn]
- @init{ cn = factory.createImpliesExpressionNode();
- }
- @after{ cn = normalize(cn); } :
- (f_first=r_relationalExpression { addToChildren(cn, f_first); ((ImpliesExpressionNode) cn).setFirst(f_first); }) ((('implies' { addLeafNodeForToken($cn, null); }) (f_nexts=r_relationalExpression { addToChildren(cn, f_nexts); ((ImpliesExpressionNode) cn).getNexts().add(f_nexts); })))*
+ @init{
+ cn = factory.createImpliesExpressionNode();
+ }
+ @after{
+ cn = normalize(cn);
+ } :
+ (f_first=r_relationalExpression { addToChildren(cn, f_first); ((ImpliesExpressionNode) cn).setFirst(f_first); }) ((('implies' { addLeafNodeForToken($cn, null); }) (f_nexts=r_relationalExpression { addToChildren(cn, f_nexts);((BasicEList<CompositeNode>)((ImpliesExpressionNode) cn).getNexts()).addUnique(f_nexts); })))*
;
r_relationalExpression returns [CompositeNode cn]
- @init{ cn = factory.createRelationalExpressionNode();
- }
- @after{ cn = normalize(cn); } :
+ @init{
+ cn = factory.createRelationalExpressionNode();
+ }
+ @after{
+ cn = normalize(cn);
+ } :
(f_first=r_additiveExpression { addToChildren(cn, f_first); ((RelationalExpressionNode) cn).setFirst(f_first); }) ((((('==' { addLeafNodeForToken($cn, null); })
| ('!=' { addLeafNodeForToken($cn, null); })
| ('>=' { addLeafNodeForToken($cn, null); })
| ('<=' { addLeafNodeForToken($cn, null); })
| ('>' { addLeafNodeForToken($cn, null); })
- | ('<' { addLeafNodeForToken($cn, null); }))) (f_nexts=r_additiveExpression { addToChildren(cn, f_nexts); ((RelationalExpressionNode) cn).getNexts().add(f_nexts); })))*
+ | ('<' { addLeafNodeForToken($cn, null); }))) (f_nexts=r_additiveExpression { addToChildren(cn, f_nexts);((BasicEList<CompositeNode>)((RelationalExpressionNode) cn).getNexts()).addUnique(f_nexts); })))*
;
r_additiveExpression returns [CompositeNode cn]
- @init{ cn = factory.createAdditiveExpressionNode();
- }
- @after{ cn = normalize(cn); } :
+ @init{
+ cn = factory.createAdditiveExpressionNode();
+ }
+ @after{
+ cn = normalize(cn);
+ } :
(f_first=r_multiplicativeExpression { addToChildren(cn, f_first); ((AdditiveExpressionNode) cn).setFirst(f_first); }) ((((('+' { addLeafNodeForToken($cn, null); })
- | ('-' { addLeafNodeForToken($cn, null); }))) (f_nexts=r_multiplicativeExpression { addToChildren(cn, f_nexts); ((AdditiveExpressionNode) cn).getNexts().add(f_nexts); })))*
+ | ('-' { addLeafNodeForToken($cn, null); }))) (f_nexts=r_multiplicativeExpression { addToChildren(cn, f_nexts);((BasicEList<CompositeNode>)((AdditiveExpressionNode) cn).getNexts()).addUnique(f_nexts); })))*
;
r_multiplicativeExpression returns [CompositeNode cn]
- @init{ cn = factory.createMultiplicativeExpressionNode();
- }
- @after{ cn = normalize(cn); } :
+ @init{
+ cn = factory.createMultiplicativeExpressionNode();
+ }
+ @after{
+ cn = normalize(cn);
+ } :
(f_first=r_unaryExpression { addToChildren(cn, f_first); ((MultiplicativeExpressionNode) cn).setFirst(f_first); }) ((((('*' { addLeafNodeForToken($cn, null); })
- | ('/' { addLeafNodeForToken($cn, null); }))) (f_nexts=r_unaryExpression { addToChildren(cn, f_nexts); ((MultiplicativeExpressionNode) cn).getNexts().add(f_nexts); })))*
+ | ('/' { addLeafNodeForToken($cn, null); }))) (f_nexts=r_unaryExpression { addToChildren(cn, f_nexts);((BasicEList<CompositeNode>)((MultiplicativeExpressionNode) cn).getNexts()).addUnique(f_nexts); })))*
;
r_unaryExpression returns [CompositeNode cn]
- @init{ cn = factory.createUnaryExpressionNode();
- }
- @after{ cn = normalize(cn); } :
+ @init{
+ cn = factory.createUnaryExpressionNode();
+ }
+ @after{
+ cn = normalize(cn);
+ } :
(f_unnamed16=r_infixExpression { addToChildren(cn, f_unnamed16); })
| ('!' { addLeafNodeForToken($cn, null); }) (f_operand=r_infixExpression { addToChildren(cn, f_operand); ((UnaryExpressionNode) cn).setOperand(f_operand); })
| ('-' { addLeafNodeForToken($cn, null); }) (f_operand=r_infixExpression { addToChildren(cn, f_operand); ((UnaryExpressionNode) cn).setOperand(f_operand); })
;
r_infixExpression returns [CompositeNode cn]
- @init{ cn = factory.createInfixExpressionNode();
- }
- @after{ cn = normalize(cn); } :
- (f_target=r_primaryExpression { addToChildren(cn, f_target); ((InfixExpressionNode) cn).setTarget(f_target); }) ((('.' { addLeafNodeForToken($cn, null); }) (f_calls=r_featureCall { addToChildren(cn, f_calls); ((InfixExpressionNode) cn).getCalls().add(f_calls); })))*
+ @init{
+ cn = factory.createInfixExpressionNode();
+ }
+ @after{
+ cn = normalize(cn);
+ } :
+ (f_target=r_primaryExpression { addToChildren(cn, f_target); ((InfixExpressionNode) cn).setTarget(f_target); }) ((('.' { addLeafNodeForToken($cn, null); }) (f_calls=r_featureCall { addToChildren(cn, f_calls);((BasicEList<CompositeNode>)((InfixExpressionNode) cn).getCalls()).addUnique(f_calls); })))*
;
r_primaryExpression returns [CompositeNode cn] :
@@ -351,66 +422,76 @@ r_primaryExpression returns [CompositeNode cn] :
;
r_stringLiteral returns [CompositeNode cn]
- @init{ cn = factory.createStringLiteralNode();
- } :
+ @init{
+ cn = factory.createStringLiteralNode();
+ } :
(StringLiteral { addLeafNodeForToken($cn, null); })
;
r_paranthesizedExpression returns [CompositeNode cn]
- @init{ cn = factory.createParanthesizedExpressionNode();
- } :
+ @init{
+ cn = factory.createParanthesizedExpressionNode();
+ } :
('(' { addLeafNodeForToken($cn, null); }) (f_expression=r_expression { addToChildren(cn, f_expression); ((ParanthesizedExpressionNode) cn).setExpression(f_expression); }) (')' { addLeafNodeForToken($cn, null); })
;
r_globalVarExpression returns [CompositeNode cn]
- @init{ cn = factory.createGlobalVarExpressionNode();
- } :
+ @init{
+ cn = factory.createGlobalVarExpressionNode();
+ } :
('GLOBALVAR' { addLeafNodeForToken($cn, null); }) (f_unnamed17=r_identifier { addToChildren(cn, f_unnamed17); })
;
r_featureCall returns [CompositeNode cn]
- @init{ cn = factory.createFeatureCallNode();
- } :
+ @init{
+ cn = factory.createFeatureCallNode();
+ } :
(f_unnamed18=r_collectionExpression { addToChildren(cn, f_unnamed18); })
| (f_name=r_identifier { addToChildren(cn, f_name); ((FeatureCallNode) cn).setName(f_name); }) ('(' { addLeafNodeForToken($cn, null); }) (((f_paramList=r_parameterList { addToChildren(cn, f_paramList); ((FeatureCallNode) cn).setParamList(f_paramList); })))? (')' { addLeafNodeForToken($cn, null); })
| (f_type=r_type { addToChildren(cn, f_type); ((FeatureCallNode) cn).setType(f_type); })
;
r_listLiteral returns [CompositeNode cn]
- @init{ cn = factory.createListLiteralNode();
- } :
- ('{' { addLeafNodeForToken($cn, null); }) (((f_elements=r_expression { addToChildren(cn, f_elements); ((ListLiteralNode) cn).getElements().add(f_elements); }) (((',' { addLeafNodeForToken($cn, null); }) (f_elements=r_expression { addToChildren(cn, f_elements); ((ListLiteralNode) cn).getElements().add(f_elements); })))*))? ('}' { addLeafNodeForToken($cn, null); })
+ @init{
+ cn = factory.createListLiteralNode();
+ } :
+ ('{' { addLeafNodeForToken($cn, null); }) (((f_elements=r_expression { addToChildren(cn, f_elements);((BasicEList<CompositeNode>)((ListLiteralNode) cn).getElements()).addUnique(f_elements); }) (((',' { addLeafNodeForToken($cn, null); }) (f_elements=r_expression { addToChildren(cn, f_elements);((BasicEList<CompositeNode>)((ListLiteralNode) cn).getElements()).addUnique(f_elements); })))*))? ('}' { addLeafNodeForToken($cn, null); })
;
r_constructorCall returns [CompositeNode cn]
- @init{ cn = factory.createConstructorCallNode();
- } :
+ @init{
+ cn = factory.createConstructorCallNode();
+ } :
('new' { addLeafNodeForToken($cn, null); }) (f_unnamed19=r_simpleType { addToChildren(cn, f_unnamed19); })
;
r_booleanLiteral returns [CompositeNode cn]
- @init{ cn = factory.createBooleanLiteralNode();
- } :
+ @init{
+ cn = factory.createBooleanLiteralNode();
+ } :
('false' { addLeafNodeForToken($cn, null); })
| ('true' { addLeafNodeForToken($cn, null); })
;
r_nullLiteral returns [CompositeNode cn]
- @init{ cn = factory.createNullLiteralNode();
- } :
+ @init{
+ cn = factory.createNullLiteralNode();
+ } :
('null' { addLeafNodeForToken($cn, null); })
;
r_numberLiteral returns [CompositeNode cn]
- @init{ cn = factory.createNumberLiteralNode();
- } :
+ @init{
+ cn = factory.createNumberLiteralNode();
+ } :
(IntLiteral { addLeafNodeForToken($cn, null); })
| (IntLiteral { addLeafNodeForToken($cn, null); }) ('.' { addLeafNodeForToken($cn, null); }) (IntLiteral { addLeafNodeForToken($cn, null); })
;
r_collectionExpression returns [CompositeNode cn]
- @init{ cn = factory.createCollectionExpressionNode();
- } :
+ @init{
+ cn = factory.createCollectionExpressionNode();
+ } :
('typeSelect' { addLeafNodeForToken($cn, null); }) ('(' { addLeafNodeForToken($cn, null); }) (f_type=r_type { addToChildren(cn, f_type); ((CollectionExpressionNode) cn).setType(f_type); }) (')' { addLeafNodeForToken($cn, null); })
| ((('collect' { addLeafNodeForToken($cn, null); })
| ('select' { addLeafNodeForToken($cn, null); })
@@ -423,21 +504,24 @@ r_collectionExpression returns [CompositeNode cn]
;
r_declaredParameterList returns [CompositeNode cn]
- @init{ cn = factory.createDeclaredParameterListNode();
- } :
- (f_params=r_declaredParameter { addToChildren(cn, f_params); ((DeclaredParameterListNode) cn).getParams().add(f_params); }) (((',' { addLeafNodeForToken($cn, null); }) (f_params=r_declaredParameter { addToChildren(cn, f_params); ((DeclaredParameterListNode) cn).getParams().add(f_params); })))*
+ @init{
+ cn = factory.createDeclaredParameterListNode();
+ } :
+ (f_params=r_declaredParameter { addToChildren(cn, f_params);((BasicEList<CompositeNode>)((DeclaredParameterListNode) cn).getParams()).addUnique(f_params); }) (((',' { addLeafNodeForToken($cn, null); }) (f_params=r_declaredParameter { addToChildren(cn, f_params);((BasicEList<CompositeNode>)((DeclaredParameterListNode) cn).getParams()).addUnique(f_params); })))*
;
r_declaredParameter returns [CompositeNode cn]
- @init{ cn = factory.createDeclaredParameterNode();
- } :
+ @init{
+ cn = factory.createDeclaredParameterNode();
+ } :
(f_ptype=r_type { addToChildren(cn, f_ptype); ((DeclaredParameterNode) cn).setPtype(f_ptype); }) (f_name=r_identifier { addToChildren(cn, f_name); ((DeclaredParameterNode) cn).setName(f_name); })
;
r_parameterList returns [CompositeNode cn]
- @init{ cn = factory.createParameterListNode();
- } :
- (f_params=r_expression { addToChildren(cn, f_params); ((ParameterListNode) cn).getParams().add(f_params); }) (((',' { addLeafNodeForToken($cn, null); }) (f_params=r_expression { addToChildren(cn, f_params); ((ParameterListNode) cn).getParams().add(f_params); })))*
+ @init{
+ cn = factory.createParameterListNode();
+ } :
+ (f_params=r_expression { addToChildren(cn, f_params);((BasicEList<CompositeNode>)((ParameterListNode) cn).getParams()).addUnique(f_params); }) (((',' { addLeafNodeForToken($cn, null); }) (f_params=r_expression { addToChildren(cn, f_params);((BasicEList<CompositeNode>)((ParameterListNode) cn).getParams()).addUnique(f_params); })))*
;
r_type returns [CompositeNode cn] :
@@ -446,22 +530,25 @@ r_type returns [CompositeNode cn] :
;
r_collectionType returns [CompositeNode cn]
- @init{ cn = factory.createCollectionTypeNode();
- } :
+ @init{
+ cn = factory.createCollectionTypeNode();
+ } :
((('Collection' { addLeafNodeForToken($cn, "collectionType"); })
| ('List' { addLeafNodeForToken($cn, "collectionType"); })
| ('Set' { addLeafNodeForToken($cn, "collectionType"); }))) ((('[' { addLeafNodeForToken($cn, null); }) (f_elementType=r_simpleType { addToChildren(cn, f_elementType); ((CollectionTypeNode) cn).setElementType(f_elementType); }) (']' { addLeafNodeForToken($cn, null); })))?
;
r_simpleType returns [CompositeNode cn]
- @init{ cn = factory.createSimpleTypeNode();
- } :
- (f_names=r_identifier { addToChildren(cn, f_names); ((SimpleTypeNode) cn).getNames().add(f_names); }) ((('::' { addLeafNodeForToken($cn, null); }) (f_names=r_identifier { addToChildren(cn, f_names); ((SimpleTypeNode) cn).getNames().add(f_names); })))*
+ @init{
+ cn = factory.createSimpleTypeNode();
+ } :
+ (f_names=r_identifier { addToChildren(cn, f_names);((BasicEList<CompositeNode>)((SimpleTypeNode) cn).getNames()).addUnique(f_names); }) ((('::' { addLeafNodeForToken($cn, null); }) (f_names=r_identifier { addToChildren(cn, f_names);((BasicEList<CompositeNode>)((SimpleTypeNode) cn).getNames()).addUnique(f_names); })))*
;
r_identifier returns [CompositeNode cn]
- @init{ cn = factory.createIdentifierNode();
- } :
+ @init{
+ cn = factory.createIdentifierNode();
+ } :
(Identifier { addLeafNodeForToken($cn, null); })
;
diff --git a/plugins/org.eclipse.xpand3.parser/src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3NodeLexer.java b/plugins/org.eclipse.xpand3.parser/src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3NodeLexer.java
index 9a2a677..1fe3413 100644
--- a/plugins/org.eclipse.xpand3.parser/src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3NodeLexer.java
+++ b/plugins/org.eclipse.xpand3.parser/src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3NodeLexer.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0 ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g 2008-03-17 14:58:56
+// $ANTLR 3.0 ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g 2008-03-18 09:15:12
package org.eclipse.xpand3.internal.frontend.parser;
@@ -1785,10 +1785,10 @@ public class Xpand3NodeLexer extends Lexer {
public void mIntLiteral() throws RecognitionException {
try {
int _type = IntLiteral;
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:470:3: ( ( '0' | '1' .. '9' ( '0' .. '9' )* ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:470:3: ( '0' | '1' .. '9' ( '0' .. '9' )* )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:557:3: ( ( '0' | '1' .. '9' ( '0' .. '9' )* ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:557:3: ( '0' | '1' .. '9' ( '0' .. '9' )* )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:470:3: ( '0' | '1' .. '9' ( '0' .. '9' )* )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:557:3: ( '0' | '1' .. '9' ( '0' .. '9' )* )
int alt2=2;
int LA2_0 = input.LA(1);
@@ -1800,23 +1800,23 @@ public class Xpand3NodeLexer extends Lexer {
}
else {
NoViableAltException nvae =
- new NoViableAltException("470:3: ( '0' | '1' .. '9' ( '0' .. '9' )* )", 2, 0, input);
+ new NoViableAltException("557:3: ( '0' | '1' .. '9' ( '0' .. '9' )* )", 2, 0, input);
throw nvae;
}
switch (alt2) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:470:4: '0'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:557:4: '0'
{
match('0');
}
break;
case 2 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:470:10: '1' .. '9' ( '0' .. '9' )*
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:557:10: '1' .. '9' ( '0' .. '9' )*
{
matchRange('1','9');
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:470:19: ( '0' .. '9' )*
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:557:19: ( '0' .. '9' )*
loop1:
do {
int alt1=2;
@@ -1829,7 +1829,7 @@ public class Xpand3NodeLexer extends Lexer {
switch (alt1) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:470:19: '0' .. '9'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:557:19: '0' .. '9'
{
matchRange('0','9');
@@ -1861,7 +1861,7 @@ public class Xpand3NodeLexer extends Lexer {
public void mStringLiteral() throws RecognitionException {
try {
int _type = StringLiteral;
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:475:3: ( '\\\"' ( EscapeSequence | ~ ( '\\\\' | '\\\"' ) )* '\\\"' | '\\'' ( EscapeSequence | ~ ( '\\'' | '\\\\' ) )* '\\'' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:562:3: ( '\\\"' ( EscapeSequence | ~ ( '\\\\' | '\\\"' ) )* '\\\"' | '\\'' ( EscapeSequence | ~ ( '\\'' | '\\\\' ) )* '\\'' )
int alt5=2;
int LA5_0 = input.LA(1);
@@ -1873,16 +1873,16 @@ public class Xpand3NodeLexer extends Lexer {
}
else {
NoViableAltException nvae =
- new NoViableAltException("474:1: StringLiteral : ( '\\\"' ( EscapeSequence | ~ ( '\\\\' | '\\\"' ) )* '\\\"' | '\\'' ( EscapeSequence | ~ ( '\\'' | '\\\\' ) )* '\\'' );", 5, 0, input);
+ new NoViableAltException("561:1: StringLiteral : ( '\\\"' ( EscapeSequence | ~ ( '\\\\' | '\\\"' ) )* '\\\"' | '\\'' ( EscapeSequence | ~ ( '\\'' | '\\\\' ) )* '\\'' );", 5, 0, input);
throw nvae;
}
switch (alt5) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:475:3: '\\\"' ( EscapeSequence | ~ ( '\\\\' | '\\\"' ) )* '\\\"'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:562:3: '\\\"' ( EscapeSequence | ~ ( '\\\\' | '\\\"' ) )* '\\\"'
{
match('\"');
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:475:8: ( EscapeSequence | ~ ( '\\\\' | '\\\"' ) )*
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:562:8: ( EscapeSequence | ~ ( '\\\\' | '\\\"' ) )*
loop3:
do {
int alt3=3;
@@ -1898,14 +1898,14 @@ public class Xpand3NodeLexer extends Lexer {
switch (alt3) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:475:10: EscapeSequence
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:562:10: EscapeSequence
{
mEscapeSequence();
}
break;
case 2 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:475:27: ~ ( '\\\\' | '\\\"' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:562:27: ~ ( '\\\\' | '\\\"' )
{
if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFE') ) {
input.consume();
@@ -1931,10 +1931,10 @@ public class Xpand3NodeLexer extends Lexer {
}
break;
case 2 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:476:8: '\\'' ( EscapeSequence | ~ ( '\\'' | '\\\\' ) )* '\\''
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:563:8: '\\'' ( EscapeSequence | ~ ( '\\'' | '\\\\' ) )* '\\''
{
match('\'');
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:476:13: ( EscapeSequence | ~ ( '\\'' | '\\\\' ) )*
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:563:13: ( EscapeSequence | ~ ( '\\'' | '\\\\' ) )*
loop4:
do {
int alt4=3;
@@ -1950,14 +1950,14 @@ public class Xpand3NodeLexer extends Lexer {
switch (alt4) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:476:15: EscapeSequence
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:563:15: EscapeSequence
{
mEscapeSequence();
}
break;
case 2 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:476:32: ~ ( '\\'' | '\\\\' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:563:32: ~ ( '\\'' | '\\\\' )
{
if ( (input.LA(1)>='\u0000' && input.LA(1)<='&')||(input.LA(1)>='(' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFE') ) {
input.consume();
@@ -1994,7 +1994,7 @@ public class Xpand3NodeLexer extends Lexer {
// $ANTLR start EscapeSequence
public void mEscapeSequence() throws RecognitionException {
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:481:3: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | UnicodeEscape | OctalEscape )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:568:3: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | UnicodeEscape | OctalEscape )
int alt6=3;
int LA6_0 = input.LA(1);
@@ -2031,7 +2031,7 @@ public class Xpand3NodeLexer extends Lexer {
break;
default:
NoViableAltException nvae =
- new NoViableAltException("480:10: fragment EscapeSequence : ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | UnicodeEscape | OctalEscape );", 6, 1, input);
+ new NoViableAltException("567:10: fragment EscapeSequence : ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | UnicodeEscape | OctalEscape );", 6, 1, input);
throw nvae;
}
@@ -2039,13 +2039,13 @@ public class Xpand3NodeLexer extends Lexer {
}
else {
NoViableAltException nvae =
- new NoViableAltException("480:10: fragment EscapeSequence : ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | UnicodeEscape | OctalEscape );", 6, 0, input);
+ new NoViableAltException("567:10: fragment EscapeSequence : ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | UnicodeEscape | OctalEscape );", 6, 0, input);
throw nvae;
}
switch (alt6) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:481:3: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:568:3: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' )
{
match('\\');
if ( input.LA(1)=='\"'||input.LA(1)=='\''||input.LA(1)=='\\'||input.LA(1)=='b'||input.LA(1)=='f'||input.LA(1)=='n'||input.LA(1)=='r'||input.LA(1)=='t' ) {
@@ -2062,14 +2062,14 @@ public class Xpand3NodeLexer extends Lexer {
}
break;
case 2 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:482:9: UnicodeEscape
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:569:9: UnicodeEscape
{
mUnicodeEscape();
}
break;
case 3 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:483:9: OctalEscape
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:570:9: OctalEscape
{
mOctalEscape();
@@ -2086,7 +2086,7 @@ public class Xpand3NodeLexer extends Lexer {
// $ANTLR start OctalEscape
public void mOctalEscape() throws RecognitionException {
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:488:3: ( '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:575:3: ( '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) )
int alt7=3;
int LA7_0 = input.LA(1);
@@ -2119,38 +2119,38 @@ public class Xpand3NodeLexer extends Lexer {
}
else {
NoViableAltException nvae =
- new NoViableAltException("487:10: fragment OctalEscape : ( '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) );", 7, 1, input);
+ new NoViableAltException("574:10: fragment OctalEscape : ( '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) );", 7, 1, input);
throw nvae;
}
}
else {
NoViableAltException nvae =
- new NoViableAltException("487:10: fragment OctalEscape : ( '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) );", 7, 0, input);
+ new NoViableAltException("574:10: fragment OctalEscape : ( '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) );", 7, 0, input);
throw nvae;
}
switch (alt7) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:488:3: '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:575:3: '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' )
{
match('\\');
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:488:8: ( '0' .. '3' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:488:9: '0' .. '3'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:575:8: ( '0' .. '3' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:575:9: '0' .. '3'
{
matchRange('0','3');
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:488:19: ( '0' .. '7' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:488:20: '0' .. '7'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:575:19: ( '0' .. '7' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:575:20: '0' .. '7'
{
matchRange('0','7');
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:488:30: ( '0' .. '7' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:488:31: '0' .. '7'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:575:30: ( '0' .. '7' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:575:31: '0' .. '7'
{
matchRange('0','7');
@@ -2160,18 +2160,18 @@ public class Xpand3NodeLexer extends Lexer {
}
break;
case 2 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:489:9: '\\\\' ( '0' .. '7' ) ( '0' .. '7' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:576:9: '\\\\' ( '0' .. '7' ) ( '0' .. '7' )
{
match('\\');
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:489:14: ( '0' .. '7' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:489:15: '0' .. '7'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:576:14: ( '0' .. '7' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:576:15: '0' .. '7'
{
matchRange('0','7');
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:489:25: ( '0' .. '7' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:489:26: '0' .. '7'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:576:25: ( '0' .. '7' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:576:26: '0' .. '7'
{
matchRange('0','7');
@@ -2181,11 +2181,11 @@ public class Xpand3NodeLexer extends Lexer {
}
break;
case 3 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:490:9: '\\\\' ( '0' .. '7' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:577:9: '\\\\' ( '0' .. '7' )
{
match('\\');
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:490:14: ( '0' .. '7' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:490:15: '0' .. '7'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:577:14: ( '0' .. '7' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:577:15: '0' .. '7'
{
matchRange('0','7');
@@ -2205,8 +2205,8 @@ public class Xpand3NodeLexer extends Lexer {
// $ANTLR start UnicodeEscape
public void mUnicodeEscape() throws RecognitionException {
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:495:3: ( '\\\\' 'u' HexDigit HexDigit HexDigit HexDigit )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:495:3: '\\\\' 'u' HexDigit HexDigit HexDigit HexDigit
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:582:3: ( '\\\\' 'u' HexDigit HexDigit HexDigit HexDigit )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:582:3: '\\\\' 'u' HexDigit HexDigit HexDigit HexDigit
{
match('\\');
match('u');
@@ -2226,8 +2226,8 @@ public class Xpand3NodeLexer extends Lexer {
// $ANTLR start HexDigit
public void mHexDigit() throws RecognitionException {
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:500:3: ( ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:500:3: ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:587:3: ( ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:587:3: ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )
{
if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='F')||(input.LA(1)>='a' && input.LA(1)<='f') ) {
input.consume();
@@ -2252,8 +2252,8 @@ public class Xpand3NodeLexer extends Lexer {
public void mDEFINE() throws RecognitionException {
try {
int _type = DEFINE;
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:505:3: ( 'DEFINE' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:505:3: 'DEFINE'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:592:3: ( 'DEFINE' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:592:3: 'DEFINE'
{
xpandMode=true;
match("DEFINE");
@@ -2272,8 +2272,8 @@ public class Xpand3NodeLexer extends Lexer {
public void mENDDEFINE() throws RecognitionException {
try {
int _type = ENDDEFINE;
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:510:3: ( 'ENDDEFINE' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:510:3: 'ENDDEFINE'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:597:3: ( 'ENDDEFINE' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:597:3: 'ENDDEFINE'
{
match("ENDDEFINE");
@@ -2292,8 +2292,8 @@ public class Xpand3NodeLexer extends Lexer {
public void mAROUND() throws RecognitionException {
try {
int _type = AROUND;
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:515:3: ( 'AROUND' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:515:3: 'AROUND'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:602:3: ( 'AROUND' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:602:3: 'AROUND'
{
xpandMode=true;
match("AROUND");
@@ -2312,8 +2312,8 @@ public class Xpand3NodeLexer extends Lexer {
public void mENDAROUND() throws RecognitionException {
try {
int _type = ENDAROUND;
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:520:3: ( 'ENDAROUND' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:520:3: 'ENDAROUND'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:607:3: ( 'ENDAROUND' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:607:3: 'ENDAROUND'
{
match("ENDAROUND");
@@ -2332,10 +2332,10 @@ public class Xpand3NodeLexer extends Lexer {
public void mIdentifier() throws RecognitionException {
try {
int _type = Identifier;
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:525:3: ( ( '^' )? Letter ( Letter | JavaIDDigit )* )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:525:3: ( '^' )? Letter ( Letter | JavaIDDigit )*
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:612:3: ( ( '^' )? Letter ( Letter | JavaIDDigit )* )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:612:3: ( '^' )? Letter ( Letter | JavaIDDigit )*
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:525:3: ( '^' )?
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:612:3: ( '^' )?
int alt8=2;
int LA8_0 = input.LA(1);
@@ -2344,7 +2344,7 @@ public class Xpand3NodeLexer extends Lexer {
}
switch (alt8) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:525:4: '^'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:612:4: '^'
{
match('^');
@@ -2354,7 +2354,7 @@ public class Xpand3NodeLexer extends Lexer {
}
mLetter();
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:525:17: ( Letter | JavaIDDigit )*
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:612:17: ( Letter | JavaIDDigit )*
loop9:
do {
int alt9=2;
@@ -2401,7 +2401,7 @@ public class Xpand3NodeLexer extends Lexer {
// $ANTLR start Letter
public void mLetter() throws RecognitionException {
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:530:3: ( '\\u0024' | '\\u0041' .. '\\u005a' | '\\u005f' | '\\u0061' .. '\\u007a' | '\\u00c0' .. '\\u00d6' | '\\u00d8' .. '\\u00f6' | '\\u00f8' .. '\\u00ff' | '\\u0100' .. '\\u1fff' | '\\u3040' .. '\\u318f' | '\\u3300' .. '\\u337f' | '\\u3400' .. '\\u3d2d' | '\\u4e00' .. '\\u9fff' | '\\uf900' .. '\\ufaff' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:617:3: ( '\\u0024' | '\\u0041' .. '\\u005a' | '\\u005f' | '\\u0061' .. '\\u007a' | '\\u00c0' .. '\\u00d6' | '\\u00d8' .. '\\u00f6' | '\\u00f8' .. '\\u00ff' | '\\u0100' .. '\\u1fff' | '\\u3040' .. '\\u318f' | '\\u3300' .. '\\u337f' | '\\u3400' .. '\\u3d2d' | '\\u4e00' .. '\\u9fff' | '\\uf900' .. '\\ufaff' )
// ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:
{
if ( input.LA(1)=='$'||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z')||(input.LA(1)>='\u00C0' && input.LA(1)<='\u00D6')||(input.LA(1)>='\u00D8' && input.LA(1)<='\u00F6')||(input.LA(1)>='\u00F8' && input.LA(1)<='\u1FFF')||(input.LA(1)>='\u3040' && input.LA(1)<='\u318F')||(input.LA(1)>='\u3300' && input.LA(1)<='\u337F')||(input.LA(1)>='\u3400' && input.LA(1)<='\u3D2D')||(input.LA(1)>='\u4E00' && input.LA(1)<='\u9FFF')||(input.LA(1)>='\uF900' && input.LA(1)<='\uFAFF') ) {
@@ -2426,7 +2426,7 @@ public class Xpand3NodeLexer extends Lexer {
// $ANTLR start JavaIDDigit
public void mJavaIDDigit() throws RecognitionException {
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:548:8: ( '\\u0030' .. '\\u0039' | '\\u0660' .. '\\u0669' | '\\u06f0' .. '\\u06f9' | '\\u0966' .. '\\u096f' | '\\u09e6' .. '\\u09ef' | '\\u0a66' .. '\\u0a6f' | '\\u0ae6' .. '\\u0aef' | '\\u0b66' .. '\\u0b6f' | '\\u0be7' .. '\\u0bef' | '\\u0c66' .. '\\u0c6f' | '\\u0ce6' .. '\\u0cef' | '\\u0d66' .. '\\u0d6f' | '\\u0e50' .. '\\u0e59' | '\\u0ed0' .. '\\u0ed9' | '\\u1040' .. '\\u1049' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:635:8: ( '\\u0030' .. '\\u0039' | '\\u0660' .. '\\u0669' | '\\u06f0' .. '\\u06f9' | '\\u0966' .. '\\u096f' | '\\u09e6' .. '\\u09ef' | '\\u0a66' .. '\\u0a6f' | '\\u0ae6' .. '\\u0aef' | '\\u0b66' .. '\\u0b6f' | '\\u0be7' .. '\\u0bef' | '\\u0c66' .. '\\u0c6f' | '\\u0ce6' .. '\\u0cef' | '\\u0d66' .. '\\u0d6f' | '\\u0e50' .. '\\u0e59' | '\\u0ed0' .. '\\u0ed9' | '\\u1040' .. '\\u1049' )
// ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:
{
if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='\u0660' && input.LA(1)<='\u0669')||(input.LA(1)>='\u06F0' && input.LA(1)<='\u06F9')||(input.LA(1)>='\u0966' && input.LA(1)<='\u096F')||(input.LA(1)>='\u09E6' && input.LA(1)<='\u09EF')||(input.LA(1)>='\u0A66' && input.LA(1)<='\u0A6F')||(input.LA(1)>='\u0AE6' && input.LA(1)<='\u0AEF')||(input.LA(1)>='\u0B66' && input.LA(1)<='\u0B6F')||(input.LA(1)>='\u0BE7' && input.LA(1)<='\u0BEF')||(input.LA(1)>='\u0C66' && input.LA(1)<='\u0C6F')||(input.LA(1)>='\u0CE6' && input.LA(1)<='\u0CEF')||(input.LA(1)>='\u0D66' && input.LA(1)<='\u0D6F')||(input.LA(1)>='\u0E50' && input.LA(1)<='\u0E59')||(input.LA(1)>='\u0ED0' && input.LA(1)<='\u0ED9')||(input.LA(1)>='\u1040' && input.LA(1)<='\u1049') ) {
@@ -2452,8 +2452,8 @@ public class Xpand3NodeLexer extends Lexer {
public void mWS() throws RecognitionException {
try {
int _type = WS;
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:568:3: ( ( ' ' | '\\r' | '\\t' | '\\u000C' | '\\n' ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:568:3: ( ' ' | '\\r' | '\\t' | '\\u000C' | '\\n' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:655:3: ( ( ' ' | '\\r' | '\\t' | '\\u000C' | '\\n' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:655:3: ( ' ' | '\\r' | '\\t' | '\\u000C' | '\\n' )
{
if ( (input.LA(1)>='\t' && input.LA(1)<='\n')||(input.LA(1)>='\f' && input.LA(1)<='\r')||input.LA(1)==' ' ) {
input.consume();
@@ -2480,12 +2480,12 @@ public class Xpand3NodeLexer extends Lexer {
public void mCOMMENT() throws RecognitionException {
try {
int _type = COMMENT;
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:573:3: ( '/*' ( options {greedy=false; } : . )* '*/' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:573:3: '/*' ( options {greedy=false; } : . )* '*/'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:660:3: ( '/*' ( options {greedy=false; } : . )* '*/' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:660:3: '/*' ( options {greedy=false; } : . )* '*/'
{
match("/*");
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:573:8: ( options {greedy=false; } : . )*
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:660:8: ( options {greedy=false; } : . )*
loop10:
do {
int alt10=2;
@@ -2510,7 +2510,7 @@ public class Xpand3NodeLexer extends Lexer {
switch (alt10) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:573:36: .
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:660:36: .
{
matchAny();
@@ -2539,12 +2539,12 @@ public class Xpand3NodeLexer extends Lexer {
public void mLINE_COMMENT() throws RecognitionException {
try {
int _type = LINE_COMMENT;
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:578:3: ( '//' (~ ( '\\n' | '\\r' ) )* ( ( '\\r' )? '\\n' | EOF ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:578:3: '//' (~ ( '\\n' | '\\r' ) )* ( ( '\\r' )? '\\n' | EOF )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:665:3: ( '//' (~ ( '\\n' | '\\r' ) )* ( ( '\\r' )? '\\n' | EOF ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:665:3: '//' (~ ( '\\n' | '\\r' ) )* ( ( '\\r' )? '\\n' | EOF )
{
match("//");
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:578:8: (~ ( '\\n' | '\\r' ) )*
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:665:8: (~ ( '\\n' | '\\r' ) )*
loop11:
do {
int alt11=2;
@@ -2557,7 +2557,7 @@ public class Xpand3NodeLexer extends Lexer {
switch (alt11) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:578:8: ~ ( '\\n' | '\\r' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:665:8: ~ ( '\\n' | '\\r' )
{
if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFE') ) {
input.consume();
@@ -2578,7 +2578,7 @@ public class Xpand3NodeLexer extends Lexer {
}
} while (true);
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:578:22: ( ( '\\r' )? '\\n' | EOF )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:665:22: ( ( '\\r' )? '\\n' | EOF )
int alt13=2;
int LA13_0 = input.LA(1);
@@ -2589,9 +2589,9 @@ public class Xpand3NodeLexer extends Lexer {
alt13=2;}
switch (alt13) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:578:23: ( '\\r' )? '\\n'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:665:23: ( '\\r' )? '\\n'
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:578:23: ( '\\r' )?
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:665:23: ( '\\r' )?
int alt12=2;
int LA12_0 = input.LA(1);
@@ -2600,7 +2600,7 @@ public class Xpand3NodeLexer extends Lexer {
}
switch (alt12) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:578:23: '\\r'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:665:23: '\\r'
{
match('\r');
@@ -2614,7 +2614,7 @@ public class Xpand3NodeLexer extends Lexer {
}
break;
case 2 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:578:34: EOF
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:665:34: EOF
{
match(EOF);
@@ -2638,8 +2638,8 @@ public class Xpand3NodeLexer extends Lexer {
public void mREM_COMMENT_OUT() throws RecognitionException {
try {
int _type = REM_COMMENT_OUT;
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:583:3: ({...}? => LG 'REM' RG ( options {greedy=false; } : . )* '\\u00ABENDREM' RG )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:583:3: {...}? => LG 'REM' RG ( options {greedy=false; } : . )* '\\u00ABENDREM' RG
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:670:3: ({...}? => LG 'REM' RG ( options {greedy=false; } : . )* '\\u00ABENDREM' RG )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:670:3: {...}? => LG 'REM' RG ( options {greedy=false; } : . )* '\\u00ABENDREM' RG
{
if ( !(!xpandMode) ) {
throw new FailedPredicateException(input, "REM_COMMENT_OUT", "!xpandMode");
@@ -2648,7 +2648,7 @@ public class Xpand3NodeLexer extends Lexer {
match("REM");
mRG();
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:583:31: ( options {greedy=false; } : . )*
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:670:31: ( options {greedy=false; } : . )*
loop14:
do {
int alt14=2;
@@ -2727,7 +2727,7 @@ public class Xpand3NodeLexer extends Lexer {
switch (alt14) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:583:59: .
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:670:59: .
{
matchAny();
@@ -2757,8 +2757,8 @@ public class Xpand3NodeLexer extends Lexer {
public void mREM_COMMENT() throws RecognitionException {
try {
int _type = REM_COMMENT;
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:588:3: ({...}? => 'REM' RG ( options {greedy=false; } : . )* '\\u00ABENDREM' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:588:3: {...}? => 'REM' RG ( options {greedy=false; } : . )* '\\u00ABENDREM'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:675:3: ({...}? => 'REM' RG ( options {greedy=false; } : . )* '\\u00ABENDREM' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:675:3: {...}? => 'REM' RG ( options {greedy=false; } : . )* '\\u00ABENDREM'
{
if ( !(xpandMode) ) {
throw new FailedPredicateException(input, "REM_COMMENT", "xpandMode");
@@ -2766,7 +2766,7 @@ public class Xpand3NodeLexer extends Lexer {
match("REM");
mRG();
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:588:27: ( options {greedy=false; } : . )*
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:675:27: ( options {greedy=false; } : . )*
loop15:
do {
int alt15=2;
@@ -2836,7 +2836,7 @@ public class Xpand3NodeLexer extends Lexer {
switch (alt15) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:588:55: .
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:675:55: .
{
matchAny();
@@ -2865,14 +2865,14 @@ public class Xpand3NodeLexer extends Lexer {
public void mTEXT() throws RecognitionException {
try {
int _type = TEXT;
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:593:3: ({...}? => RG (~ ( LG ) )* ( LG )? )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:593:3: {...}? => RG (~ ( LG ) )* ( LG )?
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:680:3: ({...}? => RG (~ ( LG ) )* ( LG )? )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:680:3: {...}? => RG (~ ( LG ) )* ( LG )?
{
if ( !(xpandMode) ) {
throw new FailedPredicateException(input, "TEXT", "xpandMode");
}
mRG();
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:593:21: (~ ( LG ) )*
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:680:21: (~ ( LG ) )*
loop16:
do {
int alt16=2;
@@ -2885,7 +2885,7 @@ public class Xpand3NodeLexer extends Lexer {
switch (alt16) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:593:21: ~ ( LG )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:680:21: ~ ( LG )
{
if ( (input.LA(1)>='\u0000' && input.LA(1)<='\u00AA')||(input.LA(1)>='\u00AC' && input.LA(1)<='\uFFFE') ) {
input.consume();
@@ -2906,7 +2906,7 @@ public class Xpand3NodeLexer extends Lexer {
}
} while (true);
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:593:28: ( LG )?
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:680:28: ( LG )?
int alt17=2;
int LA17_0 = input.LA(1);
@@ -2915,7 +2915,7 @@ public class Xpand3NodeLexer extends Lexer {
}
switch (alt17) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:593:29: LG
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:680:29: LG
{
mLG();
@@ -2938,8 +2938,8 @@ public class Xpand3NodeLexer extends Lexer {
public void mLG() throws RecognitionException {
try {
int _type = LG;
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:598:3: ( '\\u00AB' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:598:3: '\\u00AB'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:685:3: ( '\\u00AB' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:685:3: '\\u00AB'
{
match('\u00AB');
@@ -2956,8 +2956,8 @@ public class Xpand3NodeLexer extends Lexer {
public void mRG() throws RecognitionException {
try {
int _type = RG;
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:603:3: ( '\\u00BB' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:603:3: '\\u00BB'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:690:3: ( '\\u00BB' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:690:3: '\\u00BB'
{
match('\u00BB');
diff --git a/plugins/org.eclipse.xpand3.parser/src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3NodeParser.java b/plugins/org.eclipse.xpand3.parser/src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3NodeParser.java
index 9254eb9..cd7e58f 100644
--- a/plugins/org.eclipse.xpand3.parser/src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3NodeParser.java
+++ b/plugins/org.eclipse.xpand3.parser/src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3NodeParser.java
@@ -1,8 +1,9 @@
-// $ANTLR 3.0 ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g 2008-03-17 14:58:55
+// $ANTLR 3.0 ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g 2008-03-18 09:15:11
package org.eclipse.xpand3.internal.frontend.parser;
import org.eclipse.tmf.common.node.*;
+import org.eclipse.emf.common.util.BasicEList;
import org.eclipse.xpand3.internal.frontend.parser.xpand3node.*;
@@ -51,11 +52,12 @@ public class Xpand3NodeParser extends AbstractNodeParser {
protected Xpand3nodeFactory factory = Xpand3nodeFactory.eINSTANCE;
+
// $ANTLR start r_file
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:29:1: r_file returns [CompositeNode cn] : ( ( (f_imports= r_nsImport ) ) )* ( ( (f_declarations= r_abstractDeclaration ) ) )* ( EOF ) ;
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:31:1: r_file returns [CompositeNode cn] : ( ( (f_imports= r_nsImport ) ) )* ( ( (f_declarations= r_abstractDeclaration ) ) )* ( EOF ) ;
public CompositeNode r_file() throws RecognitionException {
CompositeNode cn = null;
@@ -64,13 +66,14 @@ public class Xpand3NodeParser extends AbstractNodeParser {
CompositeNode f_declarations = null;
- cn = factory.createFileNode();
-
+
+ cn = factory.createFileNode();
+
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:32:2: ( ( ( (f_imports= r_nsImport ) ) )* ( ( (f_declarations= r_abstractDeclaration ) ) )* ( EOF ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:32:2: ( ( (f_imports= r_nsImport ) ) )* ( ( (f_declarations= r_abstractDeclaration ) ) )* ( EOF )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:35:2: ( ( ( (f_imports= r_nsImport ) ) )* ( ( (f_declarations= r_abstractDeclaration ) ) )* ( EOF ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:35:2: ( ( (f_imports= r_nsImport ) ) )* ( ( (f_declarations= r_abstractDeclaration ) ) )* ( EOF )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:32:2: ( ( (f_imports= r_nsImport ) ) )*
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:35:2: ( ( (f_imports= r_nsImport ) ) )*
loop1:
do {
int alt1=2;
@@ -92,20 +95,20 @@ public class Xpand3NodeParser extends AbstractNodeParser {
switch (alt1) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:32:3: ( (f_imports= r_nsImport ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:35:3: ( (f_imports= r_nsImport ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:32:3: ( (f_imports= r_nsImport ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:32:4: (f_imports= r_nsImport )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:35:3: ( (f_imports= r_nsImport ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:35:4: (f_imports= r_nsImport )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:32:4: (f_imports= r_nsImport )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:32:5: f_imports= r_nsImport
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:35:4: (f_imports= r_nsImport )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:35:5: f_imports= r_nsImport
{
pushFollow(FOLLOW_r_nsImport_in_r_file75);
f_imports=r_nsImport();
_fsp--;
if (failed) return cn;
if ( backtracking==0 ) {
- addToChildren(cn, f_imports); ((FileNode) cn).getImports().add(f_imports);
+ addToChildren(cn, f_imports);((BasicEList<CompositeNode>)((FileNode) cn).getImports()).addUnique(f_imports);
}
}
@@ -122,7 +125,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
} while (true);
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:32:109: ( ( (f_declarations= r_abstractDeclaration ) ) )*
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:35:143: ( ( (f_declarations= r_abstractDeclaration ) ) )*
loop2:
do {
int alt2=2;
@@ -135,20 +138,20 @@ public class Xpand3NodeParser extends AbstractNodeParser {
switch (alt2) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:32:110: ( (f_declarations= r_abstractDeclaration ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:35:144: ( (f_declarations= r_abstractDeclaration ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:32:110: ( (f_declarations= r_abstractDeclaration ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:32:111: (f_declarations= r_abstractDeclaration )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:35:144: ( (f_declarations= r_abstractDeclaration ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:35:145: (f_declarations= r_abstractDeclaration )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:32:111: (f_declarations= r_abstractDeclaration )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:32:112: f_declarations= r_abstractDeclaration
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:35:145: (f_declarations= r_abstractDeclaration )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:35:146: f_declarations= r_abstractDeclaration
{
pushFollow(FOLLOW_r_abstractDeclaration_in_r_file88);
f_declarations=r_abstractDeclaration();
_fsp--;
if (failed) return cn;
if ( backtracking==0 ) {
- addToChildren(cn, f_declarations); ((FileNode) cn).getDeclarations().add(f_declarations);
+ addToChildren(cn, f_declarations);((BasicEList<CompositeNode>)((FileNode) cn).getDeclarations()).addUnique(f_declarations);
}
}
@@ -165,8 +168,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
} while (true);
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:32:247: ( EOF )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:32:248: EOF
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:35:315: ( EOF )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:35:316: EOF
{
match(input,EOF,FOLLOW_EOF_in_r_file97); if (failed) return cn;
@@ -188,7 +191,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_nsImport
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:35:1: r_nsImport returns [CompositeNode cn] : ( ( r_import ) | ( r_extensionImport ) );
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:38:1: r_nsImport returns [CompositeNode cn] : ( ( r_import ) | ( r_extensionImport ) );
public CompositeNode r_nsImport() throws RecognitionException {
CompositeNode cn = null;
@@ -198,7 +201,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:36:2: ( ( r_import ) | ( r_extensionImport ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:39:2: ( ( r_import ) | ( r_extensionImport ) )
int alt3=2;
switch ( input.LA(1) ) {
case LG:
@@ -214,7 +217,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
else {
if (backtracking>0) {failed=true; return cn;}
NoViableAltException nvae =
- new NoViableAltException("35:1: r_nsImport returns [CompositeNode cn] : ( ( r_import ) | ( r_extensionImport ) );", 3, 1, input);
+ new NoViableAltException("38:1: r_nsImport returns [CompositeNode cn] : ( ( r_import ) | ( r_extensionImport ) );", 3, 1, input);
throw nvae;
}
@@ -233,17 +236,17 @@ public class Xpand3NodeParser extends AbstractNodeParser {
default:
if (backtracking>0) {failed=true; return cn;}
NoViableAltException nvae =
- new NoViableAltException("35:1: r_nsImport returns [CompositeNode cn] : ( ( r_import ) | ( r_extensionImport ) );", 3, 0, input);
+ new NoViableAltException("38:1: r_nsImport returns [CompositeNode cn] : ( ( r_import ) | ( r_extensionImport ) );", 3, 0, input);
throw nvae;
}
switch (alt3) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:36:2: ( r_import )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:39:2: ( r_import )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:36:2: ( r_import )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:36:3: r_import
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:39:2: ( r_import )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:39:3: r_import
{
pushFollow(FOLLOW_r_import_in_r_nsImport114);
r_import1=r_import();
@@ -259,10 +262,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 2 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:37:4: ( r_extensionImport )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:40:4: ( r_extensionImport )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:37:4: ( r_extensionImport )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:37:5: r_extensionImport
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:40:4: ( r_extensionImport )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:40:5: r_extensionImport
{
pushFollow(FOLLOW_r_extensionImport_in_r_nsImport123);
r_extensionImport2=r_extensionImport();
@@ -292,7 +295,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_import
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:40:1: r_import returns [CompositeNode cn] : ( ( ( ( LG ) ( 'IMPORT' ) (f_namespace= r_simpleType ) ( RG ) ) ) | ( 'import' ) (f_type= r_type ) ( ';' ) );
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:43:1: r_import returns [CompositeNode cn] : ( ( ( ( LG ) ( 'IMPORT' ) (f_namespace= r_simpleType ) ( RG ) ) ) | ( 'import' ) (f_type= r_type ) ( ';' ) );
public CompositeNode r_import() throws RecognitionException {
CompositeNode cn = null;
@@ -301,10 +304,11 @@ public class Xpand3NodeParser extends AbstractNodeParser {
CompositeNode f_type = null;
- cn = factory.createImportNode();
-
+
+ cn = factory.createImportNode();
+
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:43:2: ( ( ( ( LG ) ( 'IMPORT' ) (f_namespace= r_simpleType ) ( RG ) ) ) | ( 'import' ) (f_type= r_type ) ( ';' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:47:2: ( ( ( ( LG ) ( 'IMPORT' ) (f_namespace= r_simpleType ) ( RG ) ) ) | ( 'import' ) (f_type= r_type ) ( ';' ) )
int alt4=2;
int LA4_0 = input.LA(1);
@@ -317,22 +321,22 @@ public class Xpand3NodeParser extends AbstractNodeParser {
else {
if (backtracking>0) {failed=true; return cn;}
NoViableAltException nvae =
- new NoViableAltException("40:1: r_import returns [CompositeNode cn] : ( ( ( ( LG ) ( 'IMPORT' ) (f_namespace= r_simpleType ) ( RG ) ) ) | ( 'import' ) (f_type= r_type ) ( ';' ) );", 4, 0, input);
+ new NoViableAltException("43:1: r_import returns [CompositeNode cn] : ( ( ( ( LG ) ( 'IMPORT' ) (f_namespace= r_simpleType ) ( RG ) ) ) | ( 'import' ) (f_type= r_type ) ( ';' ) );", 4, 0, input);
throw nvae;
}
switch (alt4) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:43:2: ( ( ( LG ) ( 'IMPORT' ) (f_namespace= r_simpleType ) ( RG ) ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:47:2: ( ( ( LG ) ( 'IMPORT' ) (f_namespace= r_simpleType ) ( RG ) ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:43:2: ( ( ( LG ) ( 'IMPORT' ) (f_namespace= r_simpleType ) ( RG ) ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:43:3: ( ( LG ) ( 'IMPORT' ) (f_namespace= r_simpleType ) ( RG ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:47:2: ( ( ( LG ) ( 'IMPORT' ) (f_namespace= r_simpleType ) ( RG ) ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:47:3: ( ( LG ) ( 'IMPORT' ) (f_namespace= r_simpleType ) ( RG ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:43:3: ( ( LG ) ( 'IMPORT' ) (f_namespace= r_simpleType ) ( RG ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:43:4: ( LG ) ( 'IMPORT' ) (f_namespace= r_simpleType ) ( RG )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:47:3: ( ( LG ) ( 'IMPORT' ) (f_namespace= r_simpleType ) ( RG ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:47:4: ( LG ) ( 'IMPORT' ) (f_namespace= r_simpleType ) ( RG )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:43:4: ( LG )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:43:5: LG
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:47:4: ( LG )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:47:5: LG
{
match(input,LG,FOLLOW_LG_in_r_import149); if (failed) return cn;
if ( backtracking==0 ) {
@@ -341,8 +345,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:43:45: ( 'IMPORT' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:43:46: 'IMPORT'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:47:45: ( 'IMPORT' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:47:46: 'IMPORT'
{
match(input,25,FOLLOW_25_in_r_import155); if (failed) return cn;
if ( backtracking==0 ) {
@@ -351,8 +355,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:43:92: (f_namespace= r_simpleType )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:43:93: f_namespace= r_simpleType
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:47:92: (f_namespace= r_simpleType )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:47:93: f_namespace= r_simpleType
{
pushFollow(FOLLOW_r_simpleType_in_r_import163);
f_namespace=r_simpleType();
@@ -364,8 +368,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:43:200: ( RG )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:43:201: RG
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:47:200: ( RG )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:47:201: RG
{
match(input,RG,FOLLOW_RG_in_r_import169); if (failed) return cn;
if ( backtracking==0 ) {
@@ -384,10 +388,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 2 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:44:4: ( 'import' ) (f_type= r_type ) ( ';' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:48:4: ( 'import' ) (f_type= r_type ) ( ';' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:44:4: ( 'import' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:44:5: 'import'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:48:4: ( 'import' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:48:5: 'import'
{
match(input,26,FOLLOW_26_in_r_import180); if (failed) return cn;
if ( backtracking==0 ) {
@@ -396,8 +400,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:44:51: (f_type= r_type )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:44:52: f_type= r_type
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:48:51: (f_type= r_type )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:48:52: f_type= r_type
{
pushFollow(FOLLOW_r_type_in_r_import188);
f_type=r_type();
@@ -409,8 +413,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:44:133: ( ';' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:44:134: ';'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:48:133: ( ';' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:48:134: ';'
{
match(input,27,FOLLOW_27_in_r_import194); if (failed) return cn;
if ( backtracking==0 ) {
@@ -437,7 +441,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_extensionImport
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:47:1: r_extensionImport returns [CompositeNode cn] : ( ( ( ( LG ) ( 'EXTENSION' ) (f_namespace= r_simpleType ) ( RG ) ) ) | ( 'extension' ) (f_type= r_type ) ( 'reexport' )? ( ';' ) );
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:51:1: r_extensionImport returns [CompositeNode cn] : ( ( ( ( LG ) ( 'EXTENSION' ) (f_namespace= r_simpleType ) ( RG ) ) ) | ( 'extension' ) (f_type= r_type ) ( 'reexport' )? ( ';' ) );
public CompositeNode r_extensionImport() throws RecognitionException {
CompositeNode cn = null;
@@ -446,10 +450,11 @@ public class Xpand3NodeParser extends AbstractNodeParser {
CompositeNode f_type = null;
- cn = factory.createExtensionImportNode();
-
+
+ cn = factory.createExtensionImportNode();
+
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:50:2: ( ( ( ( LG ) ( 'EXTENSION' ) (f_namespace= r_simpleType ) ( RG ) ) ) | ( 'extension' ) (f_type= r_type ) ( 'reexport' )? ( ';' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:55:2: ( ( ( ( LG ) ( 'EXTENSION' ) (f_namespace= r_simpleType ) ( RG ) ) ) | ( 'extension' ) (f_type= r_type ) ( 'reexport' )? ( ';' ) )
int alt6=2;
int LA6_0 = input.LA(1);
@@ -462,22 +467,22 @@ public class Xpand3NodeParser extends AbstractNodeParser {
else {
if (backtracking>0) {failed=true; return cn;}
NoViableAltException nvae =
- new NoViableAltException("47:1: r_extensionImport returns [CompositeNode cn] : ( ( ( ( LG ) ( 'EXTENSION' ) (f_namespace= r_simpleType ) ( RG ) ) ) | ( 'extension' ) (f_type= r_type ) ( 'reexport' )? ( ';' ) );", 6, 0, input);
+ new NoViableAltException("51:1: r_extensionImport returns [CompositeNode cn] : ( ( ( ( LG ) ( 'EXTENSION' ) (f_namespace= r_simpleType ) ( RG ) ) ) | ( 'extension' ) (f_type= r_type ) ( 'reexport' )? ( ';' ) );", 6, 0, input);
throw nvae;
}
switch (alt6) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:50:2: ( ( ( LG ) ( 'EXTENSION' ) (f_namespace= r_simpleType ) ( RG ) ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:55:2: ( ( ( LG ) ( 'EXTENSION' ) (f_namespace= r_simpleType ) ( RG ) ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:50:2: ( ( ( LG ) ( 'EXTENSION' ) (f_namespace= r_simpleType ) ( RG ) ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:50:3: ( ( LG ) ( 'EXTENSION' ) (f_namespace= r_simpleType ) ( RG ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:55:2: ( ( ( LG ) ( 'EXTENSION' ) (f_namespace= r_simpleType ) ( RG ) ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:55:3: ( ( LG ) ( 'EXTENSION' ) (f_namespace= r_simpleType ) ( RG ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:50:3: ( ( LG ) ( 'EXTENSION' ) (f_namespace= r_simpleType ) ( RG ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:50:4: ( LG ) ( 'EXTENSION' ) (f_namespace= r_simpleType ) ( RG )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:55:3: ( ( LG ) ( 'EXTENSION' ) (f_namespace= r_simpleType ) ( RG ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:55:4: ( LG ) ( 'EXTENSION' ) (f_namespace= r_simpleType ) ( RG )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:50:4: ( LG )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:50:5: LG
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:55:4: ( LG )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:55:5: LG
{
match(input,LG,FOLLOW_LG_in_r_extensionImport220); if (failed) return cn;
if ( backtracking==0 ) {
@@ -486,8 +491,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:50:45: ( 'EXTENSION' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:50:46: 'EXTENSION'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:55:45: ( 'EXTENSION' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:55:46: 'EXTENSION'
{
match(input,28,FOLLOW_28_in_r_extensionImport226); if (failed) return cn;
if ( backtracking==0 ) {
@@ -496,8 +501,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:50:95: (f_namespace= r_simpleType )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:50:96: f_namespace= r_simpleType
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:55:95: (f_namespace= r_simpleType )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:55:96: f_namespace= r_simpleType
{
pushFollow(FOLLOW_r_simpleType_in_r_extensionImport234);
f_namespace=r_simpleType();
@@ -509,8 +514,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:50:212: ( RG )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:50:213: RG
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:55:212: ( RG )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:55:213: RG
{
match(input,RG,FOLLOW_RG_in_r_extensionImport240); if (failed) return cn;
if ( backtracking==0 ) {
@@ -529,10 +534,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 2 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:51:4: ( 'extension' ) (f_type= r_type ) ( 'reexport' )? ( ';' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:56:4: ( 'extension' ) (f_type= r_type ) ( 'reexport' )? ( ';' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:51:4: ( 'extension' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:51:5: 'extension'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:56:4: ( 'extension' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:56:5: 'extension'
{
match(input,29,FOLLOW_29_in_r_extensionImport251); if (failed) return cn;
if ( backtracking==0 ) {
@@ -541,8 +546,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:51:54: (f_type= r_type )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:51:55: f_type= r_type
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:56:54: (f_type= r_type )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:56:55: f_type= r_type
{
pushFollow(FOLLOW_r_type_in_r_extensionImport259);
f_type=r_type();
@@ -554,7 +559,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:51:145: ( 'reexport' )?
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:56:145: ( 'reexport' )?
int alt5=2;
int LA5_0 = input.LA(1);
@@ -563,7 +568,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
switch (alt5) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:51:146: 'reexport'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:56:146: 'reexport'
{
match(input,30,FOLLOW_30_in_r_extensionImport265); if (failed) return cn;
if ( backtracking==0 ) {
@@ -575,8 +580,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:51:195: ( ';' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:51:196: ';'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:56:195: ( ';' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:56:196: ';'
{
match(input,27,FOLLOW_27_in_r_extensionImport272); if (failed) return cn;
if ( backtracking==0 ) {
@@ -603,7 +608,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_abstractDeclaration
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:54:1: r_abstractDeclaration returns [CompositeNode cn] : ( ( r_check ) | ( r_around ) | ( r_extension ) | ( r_definition ) | ( r_definitionAround ) );
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:59:1: r_abstractDeclaration returns [CompositeNode cn] : ( ( r_check ) | ( r_around ) | ( r_extension ) | ( r_definition ) | ( r_definitionAround ) );
public CompositeNode r_abstractDeclaration() throws RecognitionException {
CompositeNode cn = null;
@@ -619,7 +624,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:55:2: ( ( r_check ) | ( r_around ) | ( r_extension ) | ( r_definition ) | ( r_definitionAround ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:60:2: ( ( r_check ) | ( r_around ) | ( r_extension ) | ( r_definition ) | ( r_definitionAround ) )
int alt7=5;
switch ( input.LA(1) ) {
case 59:
@@ -656,7 +661,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
else {
if (backtracking>0) {failed=true; return cn;}
NoViableAltException nvae =
- new NoViableAltException("54:1: r_abstractDeclaration returns [CompositeNode cn] : ( ( r_check ) | ( r_around ) | ( r_extension ) | ( r_definition ) | ( r_definitionAround ) );", 7, 4, input);
+ new NoViableAltException("59:1: r_abstractDeclaration returns [CompositeNode cn] : ( ( r_check ) | ( r_around ) | ( r_extension ) | ( r_definition ) | ( r_definitionAround ) );", 7, 4, input);
throw nvae;
}
@@ -665,17 +670,17 @@ public class Xpand3NodeParser extends AbstractNodeParser {
default:
if (backtracking>0) {failed=true; return cn;}
NoViableAltException nvae =
- new NoViableAltException("54:1: r_abstractDeclaration returns [CompositeNode cn] : ( ( r_check ) | ( r_around ) | ( r_extension ) | ( r_definition ) | ( r_definitionAround ) );", 7, 0, input);
+ new NoViableAltException("59:1: r_abstractDeclaration returns [CompositeNode cn] : ( ( r_check ) | ( r_around ) | ( r_extension ) | ( r_definition ) | ( r_definitionAround ) );", 7, 0, input);
throw nvae;
}
switch (alt7) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:55:2: ( r_check )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:60:2: ( r_check )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:55:2: ( r_check )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:55:3: r_check
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:60:2: ( r_check )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:60:3: r_check
{
pushFollow(FOLLOW_r_check_in_r_abstractDeclaration291);
r_check3=r_check();
@@ -691,10 +696,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 2 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:56:4: ( r_around )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:61:4: ( r_around )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:56:4: ( r_around )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:56:5: r_around
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:61:4: ( r_around )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:61:5: r_around
{
pushFollow(FOLLOW_r_around_in_r_abstractDeclaration300);
r_around4=r_around();
@@ -710,10 +715,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 3 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:57:4: ( r_extension )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:62:4: ( r_extension )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:57:4: ( r_extension )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:57:5: r_extension
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:62:4: ( r_extension )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:62:5: r_extension
{
pushFollow(FOLLOW_r_extension_in_r_abstractDeclaration309);
r_extension5=r_extension();
@@ -729,10 +734,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 4 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:58:4: ( r_definition )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:63:4: ( r_definition )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:58:4: ( r_definition )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:58:5: r_definition
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:63:4: ( r_definition )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:63:5: r_definition
{
pushFollow(FOLLOW_r_definition_in_r_abstractDeclaration318);
r_definition6=r_definition();
@@ -748,10 +753,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 5 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:59:4: ( r_definitionAround )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:64:4: ( r_definitionAround )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:59:4: ( r_definitionAround )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:59:5: r_definitionAround
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:64:4: ( r_definitionAround )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:64:5: r_definitionAround
{
pushFollow(FOLLOW_r_definitionAround_in_r_abstractDeclaration327);
r_definitionAround7=r_definitionAround();
@@ -781,7 +786,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_definition
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:62:1: r_definition returns [CompositeNode cn] : ( LG ) ( DEFINE ) (f_name= r_identifier ) ( ( ( '(' ) ( ( (f_paramList= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) ) )? ( ')' ) ) )? ( 'FOR' ) (f_type= r_type ) (f_sequence= r_sequence ) ( ENDDEFINE ) ( RG ) ;
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:67:1: r_definition returns [CompositeNode cn] : ( LG ) ( DEFINE ) (f_name= r_identifier ) ( ( ( '(' ) ( ( (f_paramList= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) ) )? ( ')' ) ) )? ( 'FOR' ) (f_type= r_type ) (f_sequence= r_sequence ) ( ENDDEFINE ) ( RG ) ;
public CompositeNode r_definition() throws RecognitionException {
CompositeNode cn = null;
@@ -794,14 +799,15 @@ public class Xpand3NodeParser extends AbstractNodeParser {
CompositeNode f_sequence = null;
- cn = factory.createDefinitionNode();
-
+
+ cn = factory.createDefinitionNode();
+
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:65:2: ( ( LG ) ( DEFINE ) (f_name= r_identifier ) ( ( ( '(' ) ( ( (f_paramList= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) ) )? ( ')' ) ) )? ( 'FOR' ) (f_type= r_type ) (f_sequence= r_sequence ) ( ENDDEFINE ) ( RG ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:65:2: ( LG ) ( DEFINE ) (f_name= r_identifier ) ( ( ( '(' ) ( ( (f_paramList= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) ) )? ( ')' ) ) )? ( 'FOR' ) (f_type= r_type ) (f_sequence= r_sequence ) ( ENDDEFINE ) ( RG )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:71:2: ( ( LG ) ( DEFINE ) (f_name= r_identifier ) ( ( ( '(' ) ( ( (f_paramList= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) ) )? ( ')' ) ) )? ( 'FOR' ) (f_type= r_type ) (f_sequence= r_sequence ) ( ENDDEFINE ) ( RG ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:71:2: ( LG ) ( DEFINE ) (f_name= r_identifier ) ( ( ( '(' ) ( ( (f_paramList= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) ) )? ( ')' ) ) )? ( 'FOR' ) (f_type= r_type ) (f_sequence= r_sequence ) ( ENDDEFINE ) ( RG )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:65:2: ( LG )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:65:3: LG
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:71:2: ( LG )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:71:3: LG
{
match(input,LG,FOLLOW_LG_in_r_definition351); if (failed) return cn;
if ( backtracking==0 ) {
@@ -810,8 +816,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:65:43: ( DEFINE )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:65:44: DEFINE
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:71:43: ( DEFINE )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:71:44: DEFINE
{
match(input,DEFINE,FOLLOW_DEFINE_in_r_definition357); if (failed) return cn;
if ( backtracking==0 ) {
@@ -820,8 +826,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:65:88: (f_name= r_identifier )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:65:89: f_name= r_identifier
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:71:88: (f_name= r_identifier )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:71:89: f_name= r_identifier
{
pushFollow(FOLLOW_r_identifier_in_r_definition365);
f_name=r_identifier();
@@ -833,7 +839,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:65:180: ( ( ( '(' ) ( ( (f_paramList= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) ) )? ( ')' ) ) )?
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:71:180: ( ( ( '(' ) ( ( (f_paramList= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) ) )? ( ')' ) ) )?
int alt12=2;
int LA12_0 = input.LA(1);
@@ -842,13 +848,13 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
switch (alt12) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:65:181: ( ( '(' ) ( ( (f_paramList= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) ) )? ( ')' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:71:181: ( ( '(' ) ( ( (f_paramList= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) ) )? ( ')' ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:65:181: ( ( '(' ) ( ( (f_paramList= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) ) )? ( ')' ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:65:182: ( '(' ) ( ( (f_paramList= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) ) )? ( ')' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:71:181: ( ( '(' ) ( ( (f_paramList= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) ) )? ( ')' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:71:182: ( '(' ) ( ( (f_paramList= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) ) )? ( ')' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:65:182: ( '(' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:65:183: '('
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:71:182: ( '(' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:71:183: '('
{
match(input,31,FOLLOW_31_in_r_definition373); if (failed) return cn;
if ( backtracking==0 ) {
@@ -857,7 +863,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:65:224: ( ( (f_paramList= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) ) )?
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:71:224: ( ( (f_paramList= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) ) )?
int alt11=2;
int LA11_0 = input.LA(1);
@@ -866,9 +872,9 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
switch (alt11) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:65:225: ( (f_paramList= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:71:225: ( (f_paramList= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:65:225: ( (f_paramList= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:71:225: ( (f_paramList= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) )
int alt10=2;
int LA10_0 = input.LA(1);
@@ -881,16 +887,16 @@ public class Xpand3NodeParser extends AbstractNodeParser {
else {
if (backtracking>0) {failed=true; return cn;}
NoViableAltException nvae =
- new NoViableAltException("65:225: ( (f_paramList= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) )", 10, 0, input);
+ new NoViableAltException("71:225: ( (f_paramList= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) )", 10, 0, input);
throw nvae;
}
switch (alt10) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:65:226: (f_paramList= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )?
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:71:226: (f_paramList= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )?
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:65:226: (f_paramList= r_declaredParameterList )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:65:227: f_paramList= r_declaredParameterList
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:71:226: (f_paramList= r_declaredParameterList )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:71:227: f_paramList= r_declaredParameterList
{
pushFollow(FOLLOW_r_declaredParameterList_in_r_definition383);
f_paramList=r_declaredParameterList();
@@ -902,7 +908,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:65:349: ( ( ( ',' )? ( '*' ) ) )?
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:71:349: ( ( ( ',' )? ( '*' ) ) )?
int alt9=2;
int LA9_0 = input.LA(1);
@@ -911,12 +917,12 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
switch (alt9) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:65:350: ( ( ',' )? ( '*' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:71:350: ( ( ',' )? ( '*' ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:65:350: ( ( ',' )? ( '*' ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:65:351: ( ',' )? ( '*' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:71:350: ( ( ',' )? ( '*' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:71:351: ( ',' )? ( '*' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:65:351: ( ',' )?
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:71:351: ( ',' )?
int alt8=2;
int LA8_0 = input.LA(1);
@@ -925,7 +931,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
switch (alt8) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:65:352: ','
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:71:352: ','
{
match(input,32,FOLLOW_32_in_r_definition391); if (failed) return cn;
if ( backtracking==0 ) {
@@ -937,8 +943,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:65:394: ( '*' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:65:395: '*'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:71:394: ( '*' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:71:395: '*'
{
match(input,33,FOLLOW_33_in_r_definition398); if (failed) return cn;
if ( backtracking==0 ) {
@@ -960,10 +966,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 2 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:66:4: ( '*' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:72:4: ( '*' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:66:4: ( '*' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:66:5: '*'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:72:4: ( '*' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:72:5: '*'
{
match(input,33,FOLLOW_33_in_r_definition410); if (failed) return cn;
if ( backtracking==0 ) {
@@ -984,8 +990,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:66:49: ( ')' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:66:50: ')'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:72:49: ( ')' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:72:50: ')'
{
match(input,34,FOLLOW_34_in_r_definition419); if (failed) return cn;
if ( backtracking==0 ) {
@@ -1003,8 +1009,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:66:94: ( 'FOR' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:66:95: 'FOR'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:72:94: ( 'FOR' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:72:95: 'FOR'
{
match(input,35,FOLLOW_35_in_r_definition428); if (failed) return cn;
if ( backtracking==0 ) {
@@ -1013,8 +1019,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:66:138: (f_type= r_type )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:66:139: f_type= r_type
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:72:138: (f_type= r_type )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:72:139: f_type= r_type
{
pushFollow(FOLLOW_r_type_in_r_definition436);
f_type=r_type();
@@ -1026,8 +1032,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:66:224: (f_sequence= r_sequence )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:66:225: f_sequence= r_sequence
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:72:224: (f_sequence= r_sequence )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:72:225: f_sequence= r_sequence
{
pushFollow(FOLLOW_r_sequence_in_r_definition444);
f_sequence=r_sequence();
@@ -1039,8 +1045,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:66:330: ( ENDDEFINE )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:66:331: ENDDEFINE
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:72:330: ( ENDDEFINE )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:72:331: ENDDEFINE
{
match(input,ENDDEFINE,FOLLOW_ENDDEFINE_in_r_definition450); if (failed) return cn;
if ( backtracking==0 ) {
@@ -1049,8 +1055,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:66:378: ( RG )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:66:379: RG
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:72:378: ( RG )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:72:379: RG
{
match(input,RG,FOLLOW_RG_in_r_definition456); if (failed) return cn;
if ( backtracking==0 ) {
@@ -1075,7 +1081,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_definitionAround
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:69:1: r_definitionAround returns [CompositeNode cn] : ( LG ) ( AROUND ) (f_pointcut= r_pointcut ) ( ( ( '(' ) ( ( (f_paramList= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) ) )? ( ')' ) ) )? ( 'FOR' ) (f_type= r_type ) (f_sequence= r_sequence ) ( ENDAROUND ) ( RG ) ;
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:75:1: r_definitionAround returns [CompositeNode cn] : ( LG ) ( AROUND ) (f_pointcut= r_pointcut ) ( ( ( '(' ) ( ( (f_paramList= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) ) )? ( ')' ) ) )? ( 'FOR' ) (f_type= r_type ) (f_sequence= r_sequence ) ( ENDAROUND ) ( RG ) ;
public CompositeNode r_definitionAround() throws RecognitionException {
CompositeNode cn = null;
@@ -1088,14 +1094,15 @@ public class Xpand3NodeParser extends AbstractNodeParser {
CompositeNode f_sequence = null;
- cn = factory.createDefinitionAroundNode();
-
+
+ cn = factory.createDefinitionAroundNode();
+
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:72:2: ( ( LG ) ( AROUND ) (f_pointcut= r_pointcut ) ( ( ( '(' ) ( ( (f_paramList= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) ) )? ( ')' ) ) )? ( 'FOR' ) (f_type= r_type ) (f_sequence= r_sequence ) ( ENDAROUND ) ( RG ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:72:2: ( LG ) ( AROUND ) (f_pointcut= r_pointcut ) ( ( ( '(' ) ( ( (f_paramList= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) ) )? ( ')' ) ) )? ( 'FOR' ) (f_type= r_type ) (f_sequence= r_sequence ) ( ENDAROUND ) ( RG )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:79:2: ( ( LG ) ( AROUND ) (f_pointcut= r_pointcut ) ( ( ( '(' ) ( ( (f_paramList= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) ) )? ( ')' ) ) )? ( 'FOR' ) (f_type= r_type ) (f_sequence= r_sequence ) ( ENDAROUND ) ( RG ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:79:2: ( LG ) ( AROUND ) (f_pointcut= r_pointcut ) ( ( ( '(' ) ( ( (f_paramList= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) ) )? ( ')' ) ) )? ( 'FOR' ) (f_type= r_type ) (f_sequence= r_sequence ) ( ENDAROUND ) ( RG )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:72:2: ( LG )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:72:3: LG
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:79:2: ( LG )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:79:3: LG
{
match(input,LG,FOLLOW_LG_in_r_definitionAround480); if (failed) return cn;
if ( backtracking==0 ) {
@@ -1104,8 +1111,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:72:43: ( AROUND )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:72:44: AROUND
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:79:43: ( AROUND )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:79:44: AROUND
{
match(input,AROUND,FOLLOW_AROUND_in_r_definitionAround486); if (failed) return cn;
if ( backtracking==0 ) {
@@ -1114,8 +1121,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:72:88: (f_pointcut= r_pointcut )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:72:89: f_pointcut= r_pointcut
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:79:88: (f_pointcut= r_pointcut )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:79:89: f_pointcut= r_pointcut
{
pushFollow(FOLLOW_r_pointcut_in_r_definitionAround494);
f_pointcut=r_pointcut();
@@ -1127,7 +1134,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:72:200: ( ( ( '(' ) ( ( (f_paramList= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) ) )? ( ')' ) ) )?
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:79:200: ( ( ( '(' ) ( ( (f_paramList= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) ) )? ( ')' ) ) )?
int alt17=2;
int LA17_0 = input.LA(1);
@@ -1136,13 +1143,13 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
switch (alt17) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:72:201: ( ( '(' ) ( ( (f_paramList= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) ) )? ( ')' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:79:201: ( ( '(' ) ( ( (f_paramList= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) ) )? ( ')' ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:72:201: ( ( '(' ) ( ( (f_paramList= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) ) )? ( ')' ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:72:202: ( '(' ) ( ( (f_paramList= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) ) )? ( ')' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:79:201: ( ( '(' ) ( ( (f_paramList= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) ) )? ( ')' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:79:202: ( '(' ) ( ( (f_paramList= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) ) )? ( ')' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:72:202: ( '(' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:72:203: '('
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:79:202: ( '(' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:79:203: '('
{
match(input,31,FOLLOW_31_in_r_definitionAround502); if (failed) return cn;
if ( backtracking==0 ) {
@@ -1151,7 +1158,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:72:244: ( ( (f_paramList= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) ) )?
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:79:244: ( ( (f_paramList= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) ) )?
int alt16=2;
int LA16_0 = input.LA(1);
@@ -1160,9 +1167,9 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
switch (alt16) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:72:245: ( (f_paramList= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:79:245: ( (f_paramList= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:72:245: ( (f_paramList= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:79:245: ( (f_paramList= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) )
int alt15=2;
int LA15_0 = input.LA(1);
@@ -1175,16 +1182,16 @@ public class Xpand3NodeParser extends AbstractNodeParser {
else {
if (backtracking>0) {failed=true; return cn;}
NoViableAltException nvae =
- new NoViableAltException("72:245: ( (f_paramList= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) )", 15, 0, input);
+ new NoViableAltException("79:245: ( (f_paramList= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) )", 15, 0, input);
throw nvae;
}
switch (alt15) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:72:246: (f_paramList= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )?
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:79:246: (f_paramList= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )?
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:72:246: (f_paramList= r_declaredParameterList )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:72:247: f_paramList= r_declaredParameterList
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:79:246: (f_paramList= r_declaredParameterList )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:79:247: f_paramList= r_declaredParameterList
{
pushFollow(FOLLOW_r_declaredParameterList_in_r_definitionAround512);
f_paramList=r_declaredParameterList();
@@ -1196,7 +1203,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:72:375: ( ( ( ',' )? ( '*' ) ) )?
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:79:375: ( ( ( ',' )? ( '*' ) ) )?
int alt14=2;
int LA14_0 = input.LA(1);
@@ -1205,12 +1212,12 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
switch (alt14) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:72:376: ( ( ',' )? ( '*' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:79:376: ( ( ',' )? ( '*' ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:72:376: ( ( ',' )? ( '*' ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:72:377: ( ',' )? ( '*' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:79:376: ( ( ',' )? ( '*' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:79:377: ( ',' )? ( '*' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:72:377: ( ',' )?
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:79:377: ( ',' )?
int alt13=2;
int LA13_0 = input.LA(1);
@@ -1219,7 +1226,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
switch (alt13) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:72:378: ','
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:79:378: ','
{
match(input,32,FOLLOW_32_in_r_definitionAround520); if (failed) return cn;
if ( backtracking==0 ) {
@@ -1231,8 +1238,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:72:420: ( '*' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:72:421: '*'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:79:420: ( '*' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:79:421: '*'
{
match(input,33,FOLLOW_33_in_r_definitionAround527); if (failed) return cn;
if ( backtracking==0 ) {
@@ -1254,10 +1261,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 2 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:73:4: ( '*' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:80:4: ( '*' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:73:4: ( '*' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:73:5: '*'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:80:4: ( '*' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:80:5: '*'
{
match(input,33,FOLLOW_33_in_r_definitionAround539); if (failed) return cn;
if ( backtracking==0 ) {
@@ -1278,8 +1285,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:73:49: ( ')' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:73:50: ')'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:80:49: ( ')' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:80:50: ')'
{
match(input,34,FOLLOW_34_in_r_definitionAround548); if (failed) return cn;
if ( backtracking==0 ) {
@@ -1297,8 +1304,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:73:94: ( 'FOR' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:73:95: 'FOR'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:80:94: ( 'FOR' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:80:95: 'FOR'
{
match(input,35,FOLLOW_35_in_r_definitionAround557); if (failed) return cn;
if ( backtracking==0 ) {
@@ -1307,8 +1314,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:73:138: (f_type= r_type )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:73:139: f_type= r_type
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:80:138: (f_type= r_type )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:80:139: f_type= r_type
{
pushFollow(FOLLOW_r_type_in_r_definitionAround565);
f_type=r_type();
@@ -1320,8 +1327,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:73:230: (f_sequence= r_sequence )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:73:231: f_sequence= r_sequence
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:80:230: (f_sequence= r_sequence )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:80:231: f_sequence= r_sequence
{
pushFollow(FOLLOW_r_sequence_in_r_definitionAround573);
f_sequence=r_sequence();
@@ -1333,8 +1340,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:73:342: ( ENDAROUND )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:73:343: ENDAROUND
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:80:342: ( ENDAROUND )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:80:343: ENDAROUND
{
match(input,ENDAROUND,FOLLOW_ENDAROUND_in_r_definitionAround579); if (failed) return cn;
if ( backtracking==0 ) {
@@ -1343,8 +1350,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:73:390: ( RG )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:73:391: RG
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:80:390: ( RG )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:80:391: RG
{
match(input,RG,FOLLOW_RG_in_r_definitionAround585); if (failed) return cn;
if ( backtracking==0 ) {
@@ -1369,7 +1376,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_sequence
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:76:1: r_sequence returns [CompositeNode cn] : (f_textSequences= r_textSequence ) ( ( (f_statements= r_statement ) (f_textSequences= r_textSequence ) ) )* ;
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:83:1: r_sequence returns [CompositeNode cn] : (f_textSequences= r_textSequence ) ( ( (f_statements= r_statement ) (f_textSequences= r_textSequence ) ) )* ;
public CompositeNode r_sequence() throws RecognitionException {
CompositeNode cn = null;
@@ -1378,26 +1385,27 @@ public class Xpand3NodeParser extends AbstractNodeParser {
CompositeNode f_statements = null;
- cn = factory.createSequenceNode();
-
+
+ cn = factory.createSequenceNode();
+
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:79:2: ( (f_textSequences= r_textSequence ) ( ( (f_statements= r_statement ) (f_textSequences= r_textSequence ) ) )* )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:79:2: (f_textSequences= r_textSequence ) ( ( (f_statements= r_statement ) (f_textSequences= r_textSequence ) ) )*
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:87:2: ( (f_textSequences= r_textSequence ) ( ( (f_statements= r_statement ) (f_textSequences= r_textSequence ) ) )* )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:87:2: (f_textSequences= r_textSequence ) ( ( (f_statements= r_statement ) (f_textSequences= r_textSequence ) ) )*
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:79:2: (f_textSequences= r_textSequence )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:79:3: f_textSequences= r_textSequence
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:87:2: (f_textSequences= r_textSequence )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:87:3: f_textSequences= r_textSequence
{
pushFollow(FOLLOW_r_textSequence_in_r_sequence611);
f_textSequences=r_textSequence();
_fsp--;
if (failed) return cn;
if ( backtracking==0 ) {
- addToChildren(cn, f_textSequences); ((SequenceNode) cn).getTextSequences().add(f_textSequences);
+ addToChildren(cn, f_textSequences);((BasicEList<CompositeNode>)((SequenceNode) cn).getTextSequences()).addUnique(f_textSequences);
}
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:79:136: ( ( (f_statements= r_statement ) (f_textSequences= r_textSequence ) ) )*
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:87:170: ( ( (f_statements= r_statement ) (f_textSequences= r_textSequence ) ) )*
loop18:
do {
int alt18=2;
@@ -1410,33 +1418,33 @@ public class Xpand3NodeParser extends AbstractNodeParser {
switch (alt18) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:79:137: ( (f_statements= r_statement ) (f_textSequences= r_textSequence ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:87:171: ( (f_statements= r_statement ) (f_textSequences= r_textSequence ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:79:137: ( (f_statements= r_statement ) (f_textSequences= r_textSequence ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:79:138: (f_statements= r_statement ) (f_textSequences= r_textSequence )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:87:171: ( (f_statements= r_statement ) (f_textSequences= r_textSequence ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:87:172: (f_statements= r_statement ) (f_textSequences= r_textSequence )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:79:138: (f_statements= r_statement )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:79:139: f_statements= r_statement
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:87:172: (f_statements= r_statement )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:87:173: f_statements= r_statement
{
pushFollow(FOLLOW_r_statement_in_r_sequence621);
f_statements=r_statement();
_fsp--;
if (failed) return cn;
if ( backtracking==0 ) {
- addToChildren(cn, f_statements); ((SequenceNode) cn).getStatements().add(f_statements);
+ addToChildren(cn, f_statements);((BasicEList<CompositeNode>)((SequenceNode) cn).getStatements()).addUnique(f_statements);
}
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:79:257: (f_textSequences= r_textSequence )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:79:258: f_textSequences= r_textSequence
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:87:325: (f_textSequences= r_textSequence )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:87:326: f_textSequences= r_textSequence
{
pushFollow(FOLLOW_r_textSequence_in_r_sequence629);
f_textSequences=r_textSequence();
_fsp--;
if (failed) return cn;
if ( backtracking==0 ) {
- addToChildren(cn, f_textSequences); ((SequenceNode) cn).getTextSequences().add(f_textSequences);
+ addToChildren(cn, f_textSequences);((BasicEList<CompositeNode>)((SequenceNode) cn).getTextSequences()).addUnique(f_textSequences);
}
}
@@ -1469,7 +1477,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_statement
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:82:1: r_statement returns [CompositeNode cn] : ( ( r_simpleStatement ) | ( r_fileStatement ) | ( r_foreachStatement ) | ( r_ifStatement ) | ( r_letStatement ) | ( r_protectStatement ) );
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:90:1: r_statement returns [CompositeNode cn] : ( ( r_simpleStatement ) | ( r_fileStatement ) | ( r_foreachStatement ) | ( r_ifStatement ) | ( r_letStatement ) | ( r_protectStatement ) );
public CompositeNode r_statement() throws RecognitionException {
CompositeNode cn = null;
@@ -1487,7 +1495,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:83:2: ( ( r_simpleStatement ) | ( r_fileStatement ) | ( r_foreachStatement ) | ( r_ifStatement ) | ( r_letStatement ) | ( r_protectStatement ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:91:2: ( ( r_simpleStatement ) | ( r_fileStatement ) | ( r_foreachStatement ) | ( r_ifStatement ) | ( r_letStatement ) | ( r_protectStatement ) )
int alt19=6;
switch ( input.LA(1) ) {
case StringLiteral:
@@ -1551,17 +1559,17 @@ public class Xpand3NodeParser extends AbstractNodeParser {
default:
if (backtracking>0) {failed=true; return cn;}
NoViableAltException nvae =
- new NoViableAltException("82:1: r_statement returns [CompositeNode cn] : ( ( r_simpleStatement ) | ( r_fileStatement ) | ( r_foreachStatement ) | ( r_ifStatement ) | ( r_letStatement ) | ( r_protectStatement ) );", 19, 0, input);
+ new NoViableAltException("90:1: r_statement returns [CompositeNode cn] : ( ( r_simpleStatement ) | ( r_fileStatement ) | ( r_foreachStatement ) | ( r_ifStatement ) | ( r_letStatement ) | ( r_protectStatement ) );", 19, 0, input);
throw nvae;
}
switch (alt19) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:83:2: ( r_simpleStatement )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:91:2: ( r_simpleStatement )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:83:2: ( r_simpleStatement )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:83:3: r_simpleStatement
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:91:2: ( r_simpleStatement )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:91:3: r_simpleStatement
{
pushFollow(FOLLOW_r_simpleStatement_in_r_statement651);
r_simpleStatement8=r_simpleStatement();
@@ -1577,10 +1585,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 2 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:84:4: ( r_fileStatement )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:92:4: ( r_fileStatement )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:84:4: ( r_fileStatement )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:84:5: r_fileStatement
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:92:4: ( r_fileStatement )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:92:5: r_fileStatement
{
pushFollow(FOLLOW_r_fileStatement_in_r_statement660);
r_fileStatement9=r_fileStatement();
@@ -1596,10 +1604,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 3 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:85:4: ( r_foreachStatement )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:93:4: ( r_foreachStatement )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:85:4: ( r_foreachStatement )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:85:5: r_foreachStatement
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:93:4: ( r_foreachStatement )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:93:5: r_foreachStatement
{
pushFollow(FOLLOW_r_foreachStatement_in_r_statement669);
r_foreachStatement10=r_foreachStatement();
@@ -1615,10 +1623,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 4 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:86:4: ( r_ifStatement )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:94:4: ( r_ifStatement )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:86:4: ( r_ifStatement )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:86:5: r_ifStatement
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:94:4: ( r_ifStatement )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:94:5: r_ifStatement
{
pushFollow(FOLLOW_r_ifStatement_in_r_statement678);
r_ifStatement11=r_ifStatement();
@@ -1634,10 +1642,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 5 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:87:4: ( r_letStatement )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:95:4: ( r_letStatement )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:87:4: ( r_letStatement )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:87:5: r_letStatement
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:95:4: ( r_letStatement )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:95:5: r_letStatement
{
pushFollow(FOLLOW_r_letStatement_in_r_statement687);
r_letStatement12=r_letStatement();
@@ -1653,10 +1661,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 6 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:88:4: ( r_protectStatement )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:96:4: ( r_protectStatement )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:88:4: ( r_protectStatement )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:88:5: r_protectStatement
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:96:4: ( r_protectStatement )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:96:5: r_protectStatement
{
pushFollow(FOLLOW_r_protectStatement_in_r_statement696);
r_protectStatement13=r_protectStatement();
@@ -1686,33 +1694,34 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_textSequence
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:91:1: r_textSequence returns [CompositeNode cn] : (f_texts= r_text ) ( ( (f_texts= r_text ) ) )* ;
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:99:1: r_textSequence returns [CompositeNode cn] : (f_texts= r_text ) ( ( (f_texts= r_text ) ) )* ;
public CompositeNode r_textSequence() throws RecognitionException {
CompositeNode cn = null;
CompositeNode f_texts = null;
- cn = factory.createTextSequenceNode();
-
+
+ cn = factory.createTextSequenceNode();
+
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:95:2: ( (f_texts= r_text ) ( ( (f_texts= r_text ) ) )* )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:95:2: (f_texts= r_text ) ( ( (f_texts= r_text ) ) )*
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:106:2: ( (f_texts= r_text ) ( ( (f_texts= r_text ) ) )* )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:106:2: (f_texts= r_text ) ( ( (f_texts= r_text ) ) )*
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:95:2: (f_texts= r_text )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:95:3: f_texts= r_text
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:106:2: (f_texts= r_text )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:106:3: f_texts= r_text
{
pushFollow(FOLLOW_r_text_in_r_textSequence727);
f_texts=r_text();
_fsp--;
if (failed) return cn;
if ( backtracking==0 ) {
- addToChildren(cn, f_texts); ((TextSequenceNode) cn).getTexts().add(f_texts);
+ addToChildren(cn, f_texts);((BasicEList<CompositeNode>)((TextSequenceNode) cn).getTexts()).addUnique(f_texts);
}
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:95:100: ( ( (f_texts= r_text ) ) )*
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:106:134: ( ( (f_texts= r_text ) ) )*
loop20:
do {
int alt20=2;
@@ -1734,20 +1743,20 @@ public class Xpand3NodeParser extends AbstractNodeParser {
switch (alt20) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:95:101: ( (f_texts= r_text ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:106:135: ( (f_texts= r_text ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:95:101: ( (f_texts= r_text ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:95:102: (f_texts= r_text )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:106:135: ( (f_texts= r_text ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:106:136: (f_texts= r_text )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:95:102: (f_texts= r_text )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:95:103: f_texts= r_text
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:106:136: (f_texts= r_text )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:106:137: f_texts= r_text
{
pushFollow(FOLLOW_r_text_in_r_textSequence737);
f_texts=r_text();
_fsp--;
if (failed) return cn;
if ( backtracking==0 ) {
- addToChildren(cn, f_texts); ((TextSequenceNode) cn).getTexts().add(f_texts);
+ addToChildren(cn, f_texts);((BasicEList<CompositeNode>)((TextSequenceNode) cn).getTexts()).addUnique(f_texts);
}
}
@@ -1768,7 +1777,9 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
if ( backtracking==0 ) {
- cn = normalize(cn);
+
+ cn = normalize(cn);
+
}
}
catch (RecognitionException re) {
@@ -1783,17 +1794,18 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_text
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:98:1: r_text returns [CompositeNode cn] : ( '-' )? ( TEXT ) ;
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:109:1: r_text returns [CompositeNode cn] : ( '-' )? ( TEXT ) ;
public CompositeNode r_text() throws RecognitionException {
CompositeNode cn = null;
- cn = factory.createTextNode();
-
+
+ cn = factory.createTextNode();
+
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:101:2: ( ( '-' )? ( TEXT ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:101:2: ( '-' )? ( TEXT )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:113:2: ( ( '-' )? ( TEXT ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:113:2: ( '-' )? ( TEXT )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:101:2: ( '-' )?
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:113:2: ( '-' )?
int alt21=2;
int LA21_0 = input.LA(1);
@@ -1802,7 +1814,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
switch (alt21) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:101:3: '-'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:113:3: '-'
{
match(input,36,FOLLOW_36_in_r_text764); if (failed) return cn;
if ( backtracking==0 ) {
@@ -1814,8 +1826,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:101:45: ( TEXT )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:101:46: TEXT
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:113:45: ( TEXT )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:113:46: TEXT
{
match(input,TEXT,FOLLOW_TEXT_in_r_text771); if (failed) return cn;
if ( backtracking==0 ) {
@@ -1840,7 +1852,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_simpleStatement
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:104:1: r_simpleStatement returns [CompositeNode cn] : ( ( r_errorStatement ) | ( r_expandStatement ) | ( r_expressionStmt ) );
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:116:1: r_simpleStatement returns [CompositeNode cn] : ( ( r_errorStatement ) | ( r_expandStatement ) | ( r_expressionStmt ) );
public CompositeNode r_simpleStatement() throws RecognitionException {
CompositeNode cn = null;
@@ -1852,7 +1864,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:105:2: ( ( r_errorStatement ) | ( r_expandStatement ) | ( r_expressionStmt ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:117:2: ( ( r_errorStatement ) | ( r_expandStatement ) | ( r_expressionStmt ) )
int alt22=3;
switch ( input.LA(1) ) {
case 37:
@@ -1899,17 +1911,17 @@ public class Xpand3NodeParser extends AbstractNodeParser {
default:
if (backtracking>0) {failed=true; return cn;}
NoViableAltException nvae =
- new NoViableAltException("104:1: r_simpleStatement returns [CompositeNode cn] : ( ( r_errorStatement ) | ( r_expandStatement ) | ( r_expressionStmt ) );", 22, 0, input);
+ new NoViableAltException("116:1: r_simpleStatement returns [CompositeNode cn] : ( ( r_errorStatement ) | ( r_expandStatement ) | ( r_expressionStmt ) );", 22, 0, input);
throw nvae;
}
switch (alt22) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:105:2: ( r_errorStatement )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:117:2: ( r_errorStatement )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:105:2: ( r_errorStatement )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:105:3: r_errorStatement
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:117:2: ( r_errorStatement )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:117:3: r_errorStatement
{
pushFollow(FOLLOW_r_errorStatement_in_r_simpleStatement790);
r_errorStatement14=r_errorStatement();
@@ -1925,10 +1937,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 2 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:106:4: ( r_expandStatement )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:118:4: ( r_expandStatement )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:106:4: ( r_expandStatement )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:106:5: r_expandStatement
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:118:4: ( r_expandStatement )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:118:5: r_expandStatement
{
pushFollow(FOLLOW_r_expandStatement_in_r_simpleStatement799);
r_expandStatement15=r_expandStatement();
@@ -1944,10 +1956,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 3 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:107:4: ( r_expressionStmt )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:119:4: ( r_expressionStmt )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:107:4: ( r_expressionStmt )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:107:5: r_expressionStmt
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:119:4: ( r_expressionStmt )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:119:5: r_expressionStmt
{
pushFollow(FOLLOW_r_expressionStmt_in_r_simpleStatement808);
r_expressionStmt16=r_expressionStmt();
@@ -1977,21 +1989,22 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_errorStatement
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:110:1: r_errorStatement returns [CompositeNode cn] : ( 'ERROR' ) (f_expression= r_expression ) ;
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:122:1: r_errorStatement returns [CompositeNode cn] : ( 'ERROR' ) (f_expression= r_expression ) ;
public CompositeNode r_errorStatement() throws RecognitionException {
CompositeNode cn = null;
CompositeNode f_expression = null;
- cn = factory.createErrorStatementNode();
-
+
+ cn = factory.createErrorStatementNode();
+
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:113:2: ( ( 'ERROR' ) (f_expression= r_expression ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:113:2: ( 'ERROR' ) (f_expression= r_expression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:126:2: ( ( 'ERROR' ) (f_expression= r_expression ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:126:2: ( 'ERROR' ) (f_expression= r_expression )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:113:2: ( 'ERROR' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:113:3: 'ERROR'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:126:2: ( 'ERROR' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:126:3: 'ERROR'
{
match(input,37,FOLLOW_37_in_r_errorStatement832); if (failed) return cn;
if ( backtracking==0 ) {
@@ -2000,8 +2013,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:113:48: (f_expression= r_expression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:113:49: f_expression= r_expression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:126:48: (f_expression= r_expression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:126:49: f_expression= r_expression
{
pushFollow(FOLLOW_r_expression_in_r_errorStatement840);
f_expression=r_expression();
@@ -2029,7 +2042,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_expandStatement
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:116:1: r_expandStatement returns [CompositeNode cn] : ( 'EXPAND' ) (f_name= r_simpleType ) ( ( ( '(' ) (f_paramList= r_parameterList ) ( ')' ) ) )? ( ( ( ( ( 'FOR' ) (f_forExpression= r_expression ) ) ) | ( ( ( 'FOREACH' ) (f_forEachExpression= r_expression ) ( ( ( 'SEPARATOR' ) (f_separator= r_expression ) ) )? ) ) ) )? ;
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:129:1: r_expandStatement returns [CompositeNode cn] : ( 'EXPAND' ) (f_name= r_simpleType ) ( ( ( '(' ) (f_paramList= r_parameterList ) ( ')' ) ) )? ( ( ( ( ( 'FOR' ) (f_forExpression= r_expression ) ) ) | ( ( ( 'FOREACH' ) (f_forEachExpression= r_expression ) ( ( ( 'SEPARATOR' ) (f_separator= r_expression ) ) )? ) ) ) )? ;
public CompositeNode r_expandStatement() throws RecognitionException {
CompositeNode cn = null;
@@ -2044,14 +2057,15 @@ public class Xpand3NodeParser extends AbstractNodeParser {
CompositeNode f_separator = null;
- cn = factory.createExpandStatementNode();
-
+
+ cn = factory.createExpandStatementNode();
+
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:119:2: ( ( 'EXPAND' ) (f_name= r_simpleType ) ( ( ( '(' ) (f_paramList= r_parameterList ) ( ')' ) ) )? ( ( ( ( ( 'FOR' ) (f_forExpression= r_expression ) ) ) | ( ( ( 'FOREACH' ) (f_forEachExpression= r_expression ) ( ( ( 'SEPARATOR' ) (f_separator= r_expression ) ) )? ) ) ) )? )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:119:2: ( 'EXPAND' ) (f_name= r_simpleType ) ( ( ( '(' ) (f_paramList= r_parameterList ) ( ')' ) ) )? ( ( ( ( ( 'FOR' ) (f_forExpression= r_expression ) ) ) | ( ( ( 'FOREACH' ) (f_forEachExpression= r_expression ) ( ( ( 'SEPARATOR' ) (f_separator= r_expression ) ) )? ) ) ) )?
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:133:2: ( ( 'EXPAND' ) (f_name= r_simpleType ) ( ( ( '(' ) (f_paramList= r_parameterList ) ( ')' ) ) )? ( ( ( ( ( 'FOR' ) (f_forExpression= r_expression ) ) ) | ( ( ( 'FOREACH' ) (f_forEachExpression= r_expression ) ( ( ( 'SEPARATOR' ) (f_separator= r_expression ) ) )? ) ) ) )? )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:133:2: ( 'EXPAND' ) (f_name= r_simpleType ) ( ( ( '(' ) (f_paramList= r_parameterList ) ( ')' ) ) )? ( ( ( ( ( 'FOR' ) (f_forExpression= r_expression ) ) ) | ( ( ( 'FOREACH' ) (f_forEachExpression= r_expression ) ( ( ( 'SEPARATOR' ) (f_separator= r_expression ) ) )? ) ) ) )?
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:119:2: ( 'EXPAND' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:119:3: 'EXPAND'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:133:2: ( 'EXPAND' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:133:3: 'EXPAND'
{
match(input,38,FOLLOW_38_in_r_expandStatement864); if (failed) return cn;
if ( backtracking==0 ) {
@@ -2060,8 +2074,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:119:49: (f_name= r_simpleType )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:119:50: f_name= r_simpleType
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:133:49: (f_name= r_simpleType )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:133:50: f_name= r_simpleType
{
pushFollow(FOLLOW_r_simpleType_in_r_expandStatement872);
f_name=r_simpleType();
@@ -2073,7 +2087,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:119:146: ( ( ( '(' ) (f_paramList= r_parameterList ) ( ')' ) ) )?
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:133:146: ( ( ( '(' ) (f_paramList= r_parameterList ) ( ')' ) ) )?
int alt23=2;
int LA23_0 = input.LA(1);
@@ -2082,13 +2096,13 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
switch (alt23) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:119:147: ( ( '(' ) (f_paramList= r_parameterList ) ( ')' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:133:147: ( ( '(' ) (f_paramList= r_parameterList ) ( ')' ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:119:147: ( ( '(' ) (f_paramList= r_parameterList ) ( ')' ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:119:148: ( '(' ) (f_paramList= r_parameterList ) ( ')' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:133:147: ( ( '(' ) (f_paramList= r_parameterList ) ( ')' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:133:148: ( '(' ) (f_paramList= r_parameterList ) ( ')' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:119:148: ( '(' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:119:149: '('
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:133:148: ( '(' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:133:149: '('
{
match(input,31,FOLLOW_31_in_r_expandStatement880); if (failed) return cn;
if ( backtracking==0 ) {
@@ -2097,8 +2111,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:119:190: (f_paramList= r_parameterList )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:119:191: f_paramList= r_parameterList
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:133:190: (f_paramList= r_parameterList )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:133:191: f_paramList= r_parameterList
{
pushFollow(FOLLOW_r_parameterList_in_r_expandStatement888);
f_paramList=r_parameterList();
@@ -2110,8 +2124,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:119:310: ( ')' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:119:311: ')'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:133:310: ( ')' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:133:311: ')'
{
match(input,34,FOLLOW_34_in_r_expandStatement894); if (failed) return cn;
if ( backtracking==0 ) {
@@ -2129,7 +2143,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:119:355: ( ( ( ( ( 'FOR' ) (f_forExpression= r_expression ) ) ) | ( ( ( 'FOREACH' ) (f_forEachExpression= r_expression ) ( ( ( 'SEPARATOR' ) (f_separator= r_expression ) ) )? ) ) ) )?
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:133:355: ( ( ( ( ( 'FOR' ) (f_forExpression= r_expression ) ) ) | ( ( ( 'FOREACH' ) (f_forEachExpression= r_expression ) ( ( ( 'SEPARATOR' ) (f_separator= r_expression ) ) )? ) ) ) )?
int alt26=2;
int LA26_0 = input.LA(1);
@@ -2138,9 +2152,9 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
switch (alt26) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:119:356: ( ( ( ( 'FOR' ) (f_forExpression= r_expression ) ) ) | ( ( ( 'FOREACH' ) (f_forEachExpression= r_expression ) ( ( ( 'SEPARATOR' ) (f_separator= r_expression ) ) )? ) ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:133:356: ( ( ( ( 'FOR' ) (f_forExpression= r_expression ) ) ) | ( ( ( 'FOREACH' ) (f_forEachExpression= r_expression ) ( ( ( 'SEPARATOR' ) (f_separator= r_expression ) ) )? ) ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:119:356: ( ( ( ( 'FOR' ) (f_forExpression= r_expression ) ) ) | ( ( ( 'FOREACH' ) (f_forEachExpression= r_expression ) ( ( ( 'SEPARATOR' ) (f_separator= r_expression ) ) )? ) ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:133:356: ( ( ( ( 'FOR' ) (f_forExpression= r_expression ) ) ) | ( ( ( 'FOREACH' ) (f_forEachExpression= r_expression ) ( ( ( 'SEPARATOR' ) (f_separator= r_expression ) ) )? ) ) )
int alt25=2;
int LA25_0 = input.LA(1);
@@ -2153,22 +2167,22 @@ public class Xpand3NodeParser extends AbstractNodeParser {
else {
if (backtracking>0) {failed=true; return cn;}
NoViableAltException nvae =
- new NoViableAltException("119:356: ( ( ( ( 'FOR' ) (f_forExpression= r_expression ) ) ) | ( ( ( 'FOREACH' ) (f_forEachExpression= r_expression ) ( ( ( 'SEPARATOR' ) (f_separator= r_expression ) ) )? ) ) )", 25, 0, input);
+ new NoViableAltException("133:356: ( ( ( ( 'FOR' ) (f_forExpression= r_expression ) ) ) | ( ( ( 'FOREACH' ) (f_forEachExpression= r_expression ) ( ( ( 'SEPARATOR' ) (f_separator= r_expression ) ) )? ) ) )", 25, 0, input);
throw nvae;
}
switch (alt25) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:119:357: ( ( ( 'FOR' ) (f_forExpression= r_expression ) ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:133:357: ( ( ( 'FOR' ) (f_forExpression= r_expression ) ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:119:357: ( ( ( 'FOR' ) (f_forExpression= r_expression ) ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:119:358: ( ( 'FOR' ) (f_forExpression= r_expression ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:133:357: ( ( ( 'FOR' ) (f_forExpression= r_expression ) ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:133:358: ( ( 'FOR' ) (f_forExpression= r_expression ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:119:358: ( ( 'FOR' ) (f_forExpression= r_expression ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:119:359: ( 'FOR' ) (f_forExpression= r_expression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:133:358: ( ( 'FOR' ) (f_forExpression= r_expression ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:133:359: ( 'FOR' ) (f_forExpression= r_expression )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:119:359: ( 'FOR' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:119:360: 'FOR'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:133:359: ( 'FOR' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:133:360: 'FOR'
{
match(input,35,FOLLOW_35_in_r_expandStatement907); if (failed) return cn;
if ( backtracking==0 ) {
@@ -2177,8 +2191,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:119:403: (f_forExpression= r_expression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:119:404: f_forExpression= r_expression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:133:403: (f_forExpression= r_expression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:133:404: f_forExpression= r_expression
{
pushFollow(FOLLOW_r_expression_in_r_expandStatement915);
f_forExpression=r_expression();
@@ -2200,16 +2214,16 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 2 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:120:4: ( ( ( 'FOREACH' ) (f_forEachExpression= r_expression ) ( ( ( 'SEPARATOR' ) (f_separator= r_expression ) ) )? ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:134:4: ( ( ( 'FOREACH' ) (f_forEachExpression= r_expression ) ( ( ( 'SEPARATOR' ) (f_separator= r_expression ) ) )? ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:120:4: ( ( ( 'FOREACH' ) (f_forEachExpression= r_expression ) ( ( ( 'SEPARATOR' ) (f_separator= r_expression ) ) )? ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:120:5: ( ( 'FOREACH' ) (f_forEachExpression= r_expression ) ( ( ( 'SEPARATOR' ) (f_separator= r_expression ) ) )? )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:134:4: ( ( ( 'FOREACH' ) (f_forEachExpression= r_expression ) ( ( ( 'SEPARATOR' ) (f_separator= r_expression ) ) )? ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:134:5: ( ( 'FOREACH' ) (f_forEachExpression= r_expression ) ( ( ( 'SEPARATOR' ) (f_separator= r_expression ) ) )? )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:120:5: ( ( 'FOREACH' ) (f_forEachExpression= r_expression ) ( ( ( 'SEPARATOR' ) (f_separator= r_expression ) ) )? )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:120:6: ( 'FOREACH' ) (f_forEachExpression= r_expression ) ( ( ( 'SEPARATOR' ) (f_separator= r_expression ) ) )?
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:134:5: ( ( 'FOREACH' ) (f_forEachExpression= r_expression ) ( ( ( 'SEPARATOR' ) (f_separator= r_expression ) ) )? )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:134:6: ( 'FOREACH' ) (f_forEachExpression= r_expression ) ( ( ( 'SEPARATOR' ) (f_separator= r_expression ) ) )?
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:120:6: ( 'FOREACH' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:120:7: 'FOREACH'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:134:6: ( 'FOREACH' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:134:7: 'FOREACH'
{
match(input,39,FOLLOW_39_in_r_expandStatement928); if (failed) return cn;
if ( backtracking==0 ) {
@@ -2218,8 +2232,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:120:54: (f_forEachExpression= r_expression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:120:55: f_forEachExpression= r_expression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:134:54: (f_forEachExpression= r_expression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:134:55: f_forEachExpression= r_expression
{
pushFollow(FOLLOW_r_expression_in_r_expandStatement936);
f_forEachExpression=r_expression();
@@ -2231,7 +2245,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:120:203: ( ( ( 'SEPARATOR' ) (f_separator= r_expression ) ) )?
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:134:203: ( ( ( 'SEPARATOR' ) (f_separator= r_expression ) ) )?
int alt24=2;
int LA24_0 = input.LA(1);
@@ -2240,13 +2254,13 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
switch (alt24) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:120:204: ( ( 'SEPARATOR' ) (f_separator= r_expression ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:134:204: ( ( 'SEPARATOR' ) (f_separator= r_expression ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:120:204: ( ( 'SEPARATOR' ) (f_separator= r_expression ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:120:205: ( 'SEPARATOR' ) (f_separator= r_expression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:134:204: ( ( 'SEPARATOR' ) (f_separator= r_expression ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:134:205: ( 'SEPARATOR' ) (f_separator= r_expression )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:120:205: ( 'SEPARATOR' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:120:206: 'SEPARATOR'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:134:205: ( 'SEPARATOR' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:134:206: 'SEPARATOR'
{
match(input,40,FOLLOW_40_in_r_expandStatement944); if (failed) return cn;
if ( backtracking==0 ) {
@@ -2255,8 +2269,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:120:255: (f_separator= r_expression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:120:256: f_separator= r_expression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:134:255: (f_separator= r_expression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:134:256: f_separator= r_expression
{
pushFollow(FOLLOW_r_expression_in_r_expandStatement952);
f_separator=r_expression();
@@ -2311,21 +2325,22 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_expressionStmt
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:123:1: r_expressionStmt returns [CompositeNode cn] : (f_expression= r_expression ) ;
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:137:1: r_expressionStmt returns [CompositeNode cn] : (f_expression= r_expression ) ;
public CompositeNode r_expressionStmt() throws RecognitionException {
CompositeNode cn = null;
CompositeNode f_expression = null;
- cn = factory.createExpressionStmtNode();
-
+
+ cn = factory.createExpressionStmtNode();
+
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:126:2: ( (f_expression= r_expression ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:126:2: (f_expression= r_expression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:141:2: ( (f_expression= r_expression ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:141:2: (f_expression= r_expression )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:126:2: (f_expression= r_expression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:126:3: f_expression= r_expression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:141:2: (f_expression= r_expression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:141:3: f_expression= r_expression
{
pushFollow(FOLLOW_r_expression_in_r_expressionStmt986);
f_expression=r_expression();
@@ -2353,7 +2368,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_fileStatement
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:129:1: r_fileStatement returns [CompositeNode cn] : ( 'FILE' ) (f_nameExpression= r_expression ) ( ( ( 'ONCE' ) ) )? ( ( (f_identifier= r_identifier ) ) )? (f_sequence= r_sequence ) ( 'ENDFILE' ) ;
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:144:1: r_fileStatement returns [CompositeNode cn] : ( 'FILE' ) (f_nameExpression= r_expression ) ( ( ( 'ONCE' ) ) )? ( ( (f_identifier= r_identifier ) ) )? (f_sequence= r_sequence ) ( 'ENDFILE' ) ;
public CompositeNode r_fileStatement() throws RecognitionException {
CompositeNode cn = null;
@@ -2364,14 +2379,15 @@ public class Xpand3NodeParser extends AbstractNodeParser {
CompositeNode f_sequence = null;
- cn = factory.createFileStatementNode();
-
+
+ cn = factory.createFileStatementNode();
+
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:132:2: ( ( 'FILE' ) (f_nameExpression= r_expression ) ( ( ( 'ONCE' ) ) )? ( ( (f_identifier= r_identifier ) ) )? (f_sequence= r_sequence ) ( 'ENDFILE' ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:132:2: ( 'FILE' ) (f_nameExpression= r_expression ) ( ( ( 'ONCE' ) ) )? ( ( (f_identifier= r_identifier ) ) )? (f_sequence= r_sequence ) ( 'ENDFILE' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:148:2: ( ( 'FILE' ) (f_nameExpression= r_expression ) ( ( ( 'ONCE' ) ) )? ( ( (f_identifier= r_identifier ) ) )? (f_sequence= r_sequence ) ( 'ENDFILE' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:148:2: ( 'FILE' ) (f_nameExpression= r_expression ) ( ( ( 'ONCE' ) ) )? ( ( (f_identifier= r_identifier ) ) )? (f_sequence= r_sequence ) ( 'ENDFILE' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:132:2: ( 'FILE' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:132:3: 'FILE'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:148:2: ( 'FILE' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:148:3: 'FILE'
{
match(input,41,FOLLOW_41_in_r_fileStatement1010); if (failed) return cn;
if ( backtracking==0 ) {
@@ -2380,8 +2396,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:132:47: (f_nameExpression= r_expression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:132:48: f_nameExpression= r_expression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:148:47: (f_nameExpression= r_expression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:148:48: f_nameExpression= r_expression
{
pushFollow(FOLLOW_r_expression_in_r_fileStatement1018);
f_nameExpression=r_expression();
@@ -2393,7 +2409,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:132:182: ( ( ( 'ONCE' ) ) )?
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:148:182: ( ( ( 'ONCE' ) ) )?
int alt27=2;
int LA27_0 = input.LA(1);
@@ -2402,13 +2418,13 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
switch (alt27) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:132:183: ( ( 'ONCE' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:148:183: ( ( 'ONCE' ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:132:183: ( ( 'ONCE' ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:132:184: ( 'ONCE' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:148:183: ( ( 'ONCE' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:148:184: ( 'ONCE' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:132:184: ( 'ONCE' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:132:185: 'ONCE'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:148:184: ( 'ONCE' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:148:185: 'ONCE'
{
match(input,42,FOLLOW_42_in_r_fileStatement1026); if (failed) return cn;
if ( backtracking==0 ) {
@@ -2426,7 +2442,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:132:232: ( ( (f_identifier= r_identifier ) ) )?
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:148:232: ( ( (f_identifier= r_identifier ) ) )?
int alt28=2;
int LA28_0 = input.LA(1);
@@ -2435,13 +2451,13 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
switch (alt28) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:132:233: ( (f_identifier= r_identifier ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:148:233: ( (f_identifier= r_identifier ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:132:233: ( (f_identifier= r_identifier ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:132:234: (f_identifier= r_identifier )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:148:233: ( (f_identifier= r_identifier ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:148:234: (f_identifier= r_identifier )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:132:234: (f_identifier= r_identifier )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:132:235: f_identifier= r_identifier
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:148:234: (f_identifier= r_identifier )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:148:235: f_identifier= r_identifier
{
pushFollow(FOLLOW_r_identifier_in_r_fileStatement1039);
f_identifier=r_identifier();
@@ -2462,8 +2478,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:132:356: (f_sequence= r_sequence )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:132:357: f_sequence= r_sequence
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:148:356: (f_sequence= r_sequence )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:148:357: f_sequence= r_sequence
{
pushFollow(FOLLOW_r_sequence_in_r_fileStatement1050);
f_sequence=r_sequence();
@@ -2475,8 +2491,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:132:465: ( 'ENDFILE' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:132:466: 'ENDFILE'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:148:465: ( 'ENDFILE' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:148:466: 'ENDFILE'
{
match(input,43,FOLLOW_43_in_r_fileStatement1056); if (failed) return cn;
if ( backtracking==0 ) {
@@ -2501,7 +2517,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_foreachStatement
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:135:1: r_foreachStatement returns [CompositeNode cn] : ( 'FOREACH' ) (f_forExpression= r_expression ) ( 'AS' ) (f_identifier= r_identifier ) ( ( ( 'ITERATOR' ) (f_iterator= r_identifier ) ) )? ( ( ( 'SEPARATOR' ) (f_separatorExpression= r_expression ) ) )? (f_sequence= r_sequence ) ( 'ENDFOREACH' ) ;
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:151:1: r_foreachStatement returns [CompositeNode cn] : ( 'FOREACH' ) (f_forExpression= r_expression ) ( 'AS' ) (f_identifier= r_identifier ) ( ( ( 'ITERATOR' ) (f_iterator= r_identifier ) ) )? ( ( ( 'SEPARATOR' ) (f_separatorExpression= r_expression ) ) )? (f_sequence= r_sequence ) ( 'ENDFOREACH' ) ;
public CompositeNode r_foreachStatement() throws RecognitionException {
CompositeNode cn = null;
@@ -2516,14 +2532,15 @@ public class Xpand3NodeParser extends AbstractNodeParser {
CompositeNode f_sequence = null;
- cn = factory.createForeachStatementNode();
-
+
+ cn = factory.createForeachStatementNode();
+
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:138:2: ( ( 'FOREACH' ) (f_forExpression= r_expression ) ( 'AS' ) (f_identifier= r_identifier ) ( ( ( 'ITERATOR' ) (f_iterator= r_identifier ) ) )? ( ( ( 'SEPARATOR' ) (f_separatorExpression= r_expression ) ) )? (f_sequence= r_sequence ) ( 'ENDFOREACH' ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:138:2: ( 'FOREACH' ) (f_forExpression= r_expression ) ( 'AS' ) (f_identifier= r_identifier ) ( ( ( 'ITERATOR' ) (f_iterator= r_identifier ) ) )? ( ( ( 'SEPARATOR' ) (f_separatorExpression= r_expression ) ) )? (f_sequence= r_sequence ) ( 'ENDFOREACH' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:155:2: ( ( 'FOREACH' ) (f_forExpression= r_expression ) ( 'AS' ) (f_identifier= r_identifier ) ( ( ( 'ITERATOR' ) (f_iterator= r_identifier ) ) )? ( ( ( 'SEPARATOR' ) (f_separatorExpression= r_expression ) ) )? (f_sequence= r_sequence ) ( 'ENDFOREACH' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:155:2: ( 'FOREACH' ) (f_forExpression= r_expression ) ( 'AS' ) (f_identifier= r_identifier ) ( ( ( 'ITERATOR' ) (f_iterator= r_identifier ) ) )? ( ( ( 'SEPARATOR' ) (f_separatorExpression= r_expression ) ) )? (f_sequence= r_sequence ) ( 'ENDFOREACH' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:138:2: ( 'FOREACH' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:138:3: 'FOREACH'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:155:2: ( 'FOREACH' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:155:3: 'FOREACH'
{
match(input,39,FOLLOW_39_in_r_foreachStatement1080); if (failed) return cn;
if ( backtracking==0 ) {
@@ -2532,8 +2549,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:138:50: (f_forExpression= r_expression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:138:51: f_forExpression= r_expression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:155:50: (f_forExpression= r_expression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:155:51: f_forExpression= r_expression
{
pushFollow(FOLLOW_r_expression_in_r_foreachStatement1088);
f_forExpression=r_expression();
@@ -2545,8 +2562,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:138:184: ( 'AS' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:138:185: 'AS'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:155:184: ( 'AS' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:155:185: 'AS'
{
match(input,44,FOLLOW_44_in_r_foreachStatement1094); if (failed) return cn;
if ( backtracking==0 ) {
@@ -2555,8 +2572,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:138:227: (f_identifier= r_identifier )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:138:228: f_identifier= r_identifier
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:155:227: (f_identifier= r_identifier )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:155:228: f_identifier= r_identifier
{
pushFollow(FOLLOW_r_identifier_in_r_foreachStatement1102);
f_identifier=r_identifier();
@@ -2568,7 +2585,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:138:349: ( ( ( 'ITERATOR' ) (f_iterator= r_identifier ) ) )?
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:155:349: ( ( ( 'ITERATOR' ) (f_iterator= r_identifier ) ) )?
int alt29=2;
int LA29_0 = input.LA(1);
@@ -2577,13 +2594,13 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
switch (alt29) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:138:350: ( ( 'ITERATOR' ) (f_iterator= r_identifier ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:155:350: ( ( 'ITERATOR' ) (f_iterator= r_identifier ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:138:350: ( ( 'ITERATOR' ) (f_iterator= r_identifier ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:138:351: ( 'ITERATOR' ) (f_iterator= r_identifier )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:155:350: ( ( 'ITERATOR' ) (f_iterator= r_identifier ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:155:351: ( 'ITERATOR' ) (f_iterator= r_identifier )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:138:351: ( 'ITERATOR' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:138:352: 'ITERATOR'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:155:351: ( 'ITERATOR' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:155:352: 'ITERATOR'
{
match(input,45,FOLLOW_45_in_r_foreachStatement1110); if (failed) return cn;
if ( backtracking==0 ) {
@@ -2592,8 +2609,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:138:400: (f_iterator= r_identifier )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:138:401: f_iterator= r_identifier
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:155:400: (f_iterator= r_identifier )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:155:401: f_iterator= r_identifier
{
pushFollow(FOLLOW_r_identifier_in_r_foreachStatement1118);
f_iterator=r_identifier();
@@ -2614,7 +2631,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:138:517: ( ( ( 'SEPARATOR' ) (f_separatorExpression= r_expression ) ) )?
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:155:517: ( ( ( 'SEPARATOR' ) (f_separatorExpression= r_expression ) ) )?
int alt30=2;
int LA30_0 = input.LA(1);
@@ -2623,13 +2640,13 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
switch (alt30) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:138:518: ( ( 'SEPARATOR' ) (f_separatorExpression= r_expression ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:155:518: ( ( 'SEPARATOR' ) (f_separatorExpression= r_expression ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:138:518: ( ( 'SEPARATOR' ) (f_separatorExpression= r_expression ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:138:519: ( 'SEPARATOR' ) (f_separatorExpression= r_expression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:155:518: ( ( 'SEPARATOR' ) (f_separatorExpression= r_expression ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:155:519: ( 'SEPARATOR' ) (f_separatorExpression= r_expression )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:138:519: ( 'SEPARATOR' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:138:520: 'SEPARATOR'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:155:519: ( 'SEPARATOR' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:155:520: 'SEPARATOR'
{
match(input,40,FOLLOW_40_in_r_foreachStatement1129); if (failed) return cn;
if ( backtracking==0 ) {
@@ -2638,8 +2655,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:138:569: (f_separatorExpression= r_expression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:138:570: f_separatorExpression= r_expression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:155:569: (f_separatorExpression= r_expression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:155:570: f_separatorExpression= r_expression
{
pushFollow(FOLLOW_r_expression_in_r_foreachStatement1137);
f_separatorExpression=r_expression();
@@ -2660,8 +2677,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:138:730: (f_sequence= r_sequence )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:138:731: f_sequence= r_sequence
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:155:730: (f_sequence= r_sequence )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:155:731: f_sequence= r_sequence
{
pushFollow(FOLLOW_r_sequence_in_r_foreachStatement1148);
f_sequence=r_sequence();
@@ -2673,8 +2690,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:138:842: ( 'ENDFOREACH' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:138:843: 'ENDFOREACH'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:155:842: ( 'ENDFOREACH' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:155:843: 'ENDFOREACH'
{
match(input,46,FOLLOW_46_in_r_foreachStatement1154); if (failed) return cn;
if ( backtracking==0 ) {
@@ -2699,7 +2716,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_ifStatement
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:141:1: r_ifStatement returns [CompositeNode cn] : ( 'IF' ) (f_expression= r_expression ) (f_sequence= r_sequence ) (f_elseIfs= r_elseIfStatement )* (f_else= r_elseStatement )? ( 'ENDIF' ) ;
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:158:1: r_ifStatement returns [CompositeNode cn] : ( 'IF' ) (f_expression= r_expression ) (f_sequence= r_sequence ) (f_elseIfs= r_elseIfStatement )* (f_else= r_elseStatement )? ( 'ENDIF' ) ;
public CompositeNode r_ifStatement() throws RecognitionException {
CompositeNode cn = null;
@@ -2712,14 +2729,15 @@ public class Xpand3NodeParser extends AbstractNodeParser {
CompositeNode f_else = null;
- cn = factory.createIfStatementNode();
-
+
+ cn = factory.createIfStatementNode();
+
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:144:2: ( ( 'IF' ) (f_expression= r_expression ) (f_sequence= r_sequence ) (f_elseIfs= r_elseIfStatement )* (f_else= r_elseStatement )? ( 'ENDIF' ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:144:2: ( 'IF' ) (f_expression= r_expression ) (f_sequence= r_sequence ) (f_elseIfs= r_elseIfStatement )* (f_else= r_elseStatement )? ( 'ENDIF' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:162:2: ( ( 'IF' ) (f_expression= r_expression ) (f_sequence= r_sequence ) (f_elseIfs= r_elseIfStatement )* (f_else= r_elseStatement )? ( 'ENDIF' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:162:2: ( 'IF' ) (f_expression= r_expression ) (f_sequence= r_sequence ) (f_elseIfs= r_elseIfStatement )* (f_else= r_elseStatement )? ( 'ENDIF' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:144:2: ( 'IF' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:144:3: 'IF'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:162:2: ( 'IF' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:162:3: 'IF'
{
match(input,47,FOLLOW_47_in_r_ifStatement1178); if (failed) return cn;
if ( backtracking==0 ) {
@@ -2728,8 +2746,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:144:45: (f_expression= r_expression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:144:46: f_expression= r_expression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:162:45: (f_expression= r_expression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:162:46: f_expression= r_expression
{
pushFollow(FOLLOW_r_expression_in_r_ifStatement1186);
f_expression=r_expression();
@@ -2741,8 +2759,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:144:162: (f_sequence= r_sequence )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:144:163: f_sequence= r_sequence
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:162:162: (f_sequence= r_sequence )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:162:163: f_sequence= r_sequence
{
pushFollow(FOLLOW_r_sequence_in_r_ifStatement1194);
f_sequence=r_sequence();
@@ -2754,7 +2772,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:144:269: (f_elseIfs= r_elseIfStatement )*
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:162:269: (f_elseIfs= r_elseIfStatement )*
loop31:
do {
int alt31=2;
@@ -2767,14 +2785,14 @@ public class Xpand3NodeParser extends AbstractNodeParser {
switch (alt31) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:144:270: f_elseIfs= r_elseIfStatement
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:162:270: f_elseIfs= r_elseIfStatement
{
pushFollow(FOLLOW_r_elseIfStatement_in_r_ifStatement1202);
f_elseIfs=r_elseIfStatement();
_fsp--;
if (failed) return cn;
if ( backtracking==0 ) {
- addToChildren(cn, f_elseIfs); ((IfStatementNode) cn).getElseIfs().add(f_elseIfs);
+ addToChildren(cn, f_elseIfs);((BasicEList<CompositeNode>)((IfStatementNode) cn).getElseIfs()).addUnique(f_elseIfs);
}
}
@@ -2785,7 +2803,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
} while (true);
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:144:386: (f_else= r_elseStatement )?
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:162:420: (f_else= r_elseStatement )?
int alt32=2;
int LA32_0 = input.LA(1);
@@ -2794,7 +2812,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
switch (alt32) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:144:387: f_else= r_elseStatement
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:162:421: f_else= r_elseStatement
{
pushFollow(FOLLOW_r_elseStatement_in_r_ifStatement1211);
f_else=r_elseStatement();
@@ -2809,8 +2827,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:144:483: ( 'ENDIF' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:144:484: 'ENDIF'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:162:517: ( 'ENDIF' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:162:518: 'ENDIF'
{
match(input,48,FOLLOW_48_in_r_ifStatement1218); if (failed) return cn;
if ( backtracking==0 ) {
@@ -2835,7 +2853,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_elseIfStatement
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:147:1: r_elseIfStatement returns [CompositeNode cn] : ( 'ELSEIF' ) (f_expression= r_expression ) (f_sequence= r_sequence ) ;
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:165:1: r_elseIfStatement returns [CompositeNode cn] : ( 'ELSEIF' ) (f_expression= r_expression ) (f_sequence= r_sequence ) ;
public CompositeNode r_elseIfStatement() throws RecognitionException {
CompositeNode cn = null;
@@ -2844,14 +2862,15 @@ public class Xpand3NodeParser extends AbstractNodeParser {
CompositeNode f_sequence = null;
- cn = factory.createElseIfStatementNode();
-
+
+ cn = factory.createElseIfStatementNode();
+
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:150:2: ( ( 'ELSEIF' ) (f_expression= r_expression ) (f_sequence= r_sequence ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:150:2: ( 'ELSEIF' ) (f_expression= r_expression ) (f_sequence= r_sequence )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:169:2: ( ( 'ELSEIF' ) (f_expression= r_expression ) (f_sequence= r_sequence ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:169:2: ( 'ELSEIF' ) (f_expression= r_expression ) (f_sequence= r_sequence )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:150:2: ( 'ELSEIF' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:150:3: 'ELSEIF'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:169:2: ( 'ELSEIF' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:169:3: 'ELSEIF'
{
match(input,49,FOLLOW_49_in_r_elseIfStatement1242); if (failed) return cn;
if ( backtracking==0 ) {
@@ -2860,8 +2879,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:150:49: (f_expression= r_expression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:150:50: f_expression= r_expression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:169:49: (f_expression= r_expression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:169:50: f_expression= r_expression
{
pushFollow(FOLLOW_r_expression_in_r_elseIfStatement1250);
f_expression=r_expression();
@@ -2873,8 +2892,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:150:170: (f_sequence= r_sequence )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:150:171: f_sequence= r_sequence
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:169:170: (f_sequence= r_sequence )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:169:171: f_sequence= r_sequence
{
pushFollow(FOLLOW_r_sequence_in_r_elseIfStatement1258);
f_sequence=r_sequence();
@@ -2902,21 +2921,22 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_elseStatement
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:153:1: r_elseStatement returns [CompositeNode cn] : ( 'ELSE' ) (f_sequence= r_sequence ) ;
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:172:1: r_elseStatement returns [CompositeNode cn] : ( 'ELSE' ) (f_sequence= r_sequence ) ;
public CompositeNode r_elseStatement() throws RecognitionException {
CompositeNode cn = null;
CompositeNode f_sequence = null;
- cn = factory.createElseStatementNode();
-
+
+ cn = factory.createElseStatementNode();
+
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:156:2: ( ( 'ELSE' ) (f_sequence= r_sequence ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:156:2: ( 'ELSE' ) (f_sequence= r_sequence )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:176:2: ( ( 'ELSE' ) (f_sequence= r_sequence ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:176:2: ( 'ELSE' ) (f_sequence= r_sequence )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:156:2: ( 'ELSE' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:156:3: 'ELSE'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:176:2: ( 'ELSE' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:176:3: 'ELSE'
{
match(input,50,FOLLOW_50_in_r_elseStatement1282); if (failed) return cn;
if ( backtracking==0 ) {
@@ -2925,8 +2945,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:156:47: (f_sequence= r_sequence )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:156:48: f_sequence= r_sequence
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:176:47: (f_sequence= r_sequence )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:176:48: f_sequence= r_sequence
{
pushFollow(FOLLOW_r_sequence_in_r_elseStatement1290);
f_sequence=r_sequence();
@@ -2954,7 +2974,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_letStatement
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:159:1: r_letStatement returns [CompositeNode cn] : ( 'LET' ) (f_expression= r_expression ) ( 'AS' ) (f_name= r_identifier ) (f_sequence= r_sequence ) ( 'ENDLET' ) ;
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:179:1: r_letStatement returns [CompositeNode cn] : ( 'LET' ) (f_expression= r_expression ) ( 'AS' ) (f_name= r_identifier ) (f_sequence= r_sequence ) ( 'ENDLET' ) ;
public CompositeNode r_letStatement() throws RecognitionException {
CompositeNode cn = null;
@@ -2965,14 +2985,15 @@ public class Xpand3NodeParser extends AbstractNodeParser {
CompositeNode f_sequence = null;
- cn = factory.createLetStatementNode();
-
+
+ cn = factory.createLetStatementNode();
+
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:162:2: ( ( 'LET' ) (f_expression= r_expression ) ( 'AS' ) (f_name= r_identifier ) (f_sequence= r_sequence ) ( 'ENDLET' ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:162:2: ( 'LET' ) (f_expression= r_expression ) ( 'AS' ) (f_name= r_identifier ) (f_sequence= r_sequence ) ( 'ENDLET' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:183:2: ( ( 'LET' ) (f_expression= r_expression ) ( 'AS' ) (f_name= r_identifier ) (f_sequence= r_sequence ) ( 'ENDLET' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:183:2: ( 'LET' ) (f_expression= r_expression ) ( 'AS' ) (f_name= r_identifier ) (f_sequence= r_sequence ) ( 'ENDLET' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:162:2: ( 'LET' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:162:3: 'LET'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:183:2: ( 'LET' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:183:3: 'LET'
{
match(input,51,FOLLOW_51_in_r_letStatement1314); if (failed) return cn;
if ( backtracking==0 ) {
@@ -2981,8 +3002,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:162:46: (f_expression= r_expression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:162:47: f_expression= r_expression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:183:46: (f_expression= r_expression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:183:47: f_expression= r_expression
{
pushFollow(FOLLOW_r_expression_in_r_letStatement1322);
f_expression=r_expression();
@@ -2994,8 +3015,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:162:164: ( 'AS' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:162:165: 'AS'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:183:164: ( 'AS' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:183:165: 'AS'
{
match(input,44,FOLLOW_44_in_r_letStatement1328); if (failed) return cn;
if ( backtracking==0 ) {
@@ -3004,8 +3025,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:162:207: (f_name= r_identifier )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:162:208: f_name= r_identifier
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:183:207: (f_name= r_identifier )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:183:208: f_name= r_identifier
{
pushFollow(FOLLOW_r_identifier_in_r_letStatement1336);
f_name=r_identifier();
@@ -3017,8 +3038,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:162:301: (f_sequence= r_sequence )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:162:302: f_sequence= r_sequence
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:183:301: (f_sequence= r_sequence )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:183:302: f_sequence= r_sequence
{
pushFollow(FOLLOW_r_sequence_in_r_letStatement1344);
f_sequence=r_sequence();
@@ -3030,8 +3051,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:162:409: ( 'ENDLET' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:162:410: 'ENDLET'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:183:409: ( 'ENDLET' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:183:410: 'ENDLET'
{
match(input,52,FOLLOW_52_in_r_letStatement1350); if (failed) return cn;
if ( backtracking==0 ) {
@@ -3056,7 +3077,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_protectStatement
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:165:1: r_protectStatement returns [CompositeNode cn] : ( 'PROTECT' ) ( 'CSTART' ) (f_cstart= r_expression ) ( 'CEND' ) (f_cend= r_expression ) ( 'ID' ) (f_id= r_expression ) ( 'DISABLE' )? (f_sequence= r_sequence ) ( 'ENDPROTECT' ) ;
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:186:1: r_protectStatement returns [CompositeNode cn] : ( 'PROTECT' ) ( 'CSTART' ) (f_cstart= r_expression ) ( 'CEND' ) (f_cend= r_expression ) ( 'ID' ) (f_id= r_expression ) ( 'DISABLE' )? (f_sequence= r_sequence ) ( 'ENDPROTECT' ) ;
public CompositeNode r_protectStatement() throws RecognitionException {
CompositeNode cn = null;
@@ -3069,14 +3090,15 @@ public class Xpand3NodeParser extends AbstractNodeParser {
CompositeNode f_sequence = null;
- cn = factory.createProtectStatementNode();
-
+
+ cn = factory.createProtectStatementNode();
+
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:168:2: ( ( 'PROTECT' ) ( 'CSTART' ) (f_cstart= r_expression ) ( 'CEND' ) (f_cend= r_expression ) ( 'ID' ) (f_id= r_expression ) ( 'DISABLE' )? (f_sequence= r_sequence ) ( 'ENDPROTECT' ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:168:2: ( 'PROTECT' ) ( 'CSTART' ) (f_cstart= r_expression ) ( 'CEND' ) (f_cend= r_expression ) ( 'ID' ) (f_id= r_expression ) ( 'DISABLE' )? (f_sequence= r_sequence ) ( 'ENDPROTECT' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:190:2: ( ( 'PROTECT' ) ( 'CSTART' ) (f_cstart= r_expression ) ( 'CEND' ) (f_cend= r_expression ) ( 'ID' ) (f_id= r_expression ) ( 'DISABLE' )? (f_sequence= r_sequence ) ( 'ENDPROTECT' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:190:2: ( 'PROTECT' ) ( 'CSTART' ) (f_cstart= r_expression ) ( 'CEND' ) (f_cend= r_expression ) ( 'ID' ) (f_id= r_expression ) ( 'DISABLE' )? (f_sequence= r_sequence ) ( 'ENDPROTECT' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:168:2: ( 'PROTECT' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:168:3: 'PROTECT'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:190:2: ( 'PROTECT' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:190:3: 'PROTECT'
{
match(input,53,FOLLOW_53_in_r_protectStatement1374); if (failed) return cn;
if ( backtracking==0 ) {
@@ -3085,8 +3107,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:168:50: ( 'CSTART' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:168:51: 'CSTART'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:190:50: ( 'CSTART' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:190:51: 'CSTART'
{
match(input,54,FOLLOW_54_in_r_protectStatement1380); if (failed) return cn;
if ( backtracking==0 ) {
@@ -3095,8 +3117,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:168:97: (f_cstart= r_expression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:168:98: f_cstart= r_expression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:190:97: (f_cstart= r_expression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:190:98: f_cstart= r_expression
{
pushFollow(FOLLOW_r_expression_in_r_protectStatement1388);
f_cstart=r_expression();
@@ -3108,8 +3130,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:168:203: ( 'CEND' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:168:204: 'CEND'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:190:203: ( 'CEND' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:190:204: 'CEND'
{
match(input,55,FOLLOW_55_in_r_protectStatement1394); if (failed) return cn;
if ( backtracking==0 ) {
@@ -3118,8 +3140,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:168:248: (f_cend= r_expression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:168:249: f_cend= r_expression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:190:248: (f_cend= r_expression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:190:249: f_cend= r_expression
{
pushFollow(FOLLOW_r_expression_in_r_protectStatement1402);
f_cend=r_expression();
@@ -3131,8 +3153,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:168:346: ( 'ID' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:168:347: 'ID'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:190:346: ( 'ID' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:190:347: 'ID'
{
match(input,56,FOLLOW_56_in_r_protectStatement1408); if (failed) return cn;
if ( backtracking==0 ) {
@@ -3141,8 +3163,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:168:389: (f_id= r_expression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:168:390: f_id= r_expression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:190:389: (f_id= r_expression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:190:390: f_id= r_expression
{
pushFollow(FOLLOW_r_expression_in_r_protectStatement1416);
f_id=r_expression();
@@ -3154,7 +3176,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:168:479: ( 'DISABLE' )?
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:190:479: ( 'DISABLE' )?
int alt33=2;
int LA33_0 = input.LA(1);
@@ -3163,7 +3185,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
switch (alt33) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:168:480: 'DISABLE'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:190:480: 'DISABLE'
{
match(input,57,FOLLOW_57_in_r_protectStatement1422); if (failed) return cn;
if ( backtracking==0 ) {
@@ -3175,8 +3197,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:168:528: (f_sequence= r_sequence )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:168:529: f_sequence= r_sequence
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:190:528: (f_sequence= r_sequence )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:190:529: f_sequence= r_sequence
{
pushFollow(FOLLOW_r_sequence_in_r_protectStatement1431);
f_sequence=r_sequence();
@@ -3188,8 +3210,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:168:640: ( 'ENDPROTECT' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:168:641: 'ENDPROTECT'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:190:640: ( 'ENDPROTECT' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:190:641: 'ENDPROTECT'
{
match(input,58,FOLLOW_58_in_r_protectStatement1437); if (failed) return cn;
if ( backtracking==0 ) {
@@ -3214,7 +3236,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_check
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:171:1: r_check returns [CompositeNode cn] : ( 'context' ) (f_type= r_type ) ( ( ( 'if' ) (f_ifExpression= r_expression ) ) )? ( ( ( 'ERROR' ) | ( 'WARNING' ) ) ) (f_message= r_expression ) ( ':' ) (f_constraint= r_expression ) ( ';' ) ;
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:193:1: r_check returns [CompositeNode cn] : ( 'context' ) (f_type= r_type ) ( ( ( 'if' ) (f_ifExpression= r_expression ) ) )? ( ( ( 'ERROR' ) | ( 'WARNING' ) ) ) (f_message= r_expression ) ( ':' ) (f_constraint= r_expression ) ( ';' ) ;
public CompositeNode r_check() throws RecognitionException {
CompositeNode cn = null;
@@ -3227,14 +3249,15 @@ public class Xpand3NodeParser extends AbstractNodeParser {
CompositeNode f_constraint = null;
- cn = factory.createCheckNode();
-
+
+ cn = factory.createCheckNode();
+
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:174:2: ( ( 'context' ) (f_type= r_type ) ( ( ( 'if' ) (f_ifExpression= r_expression ) ) )? ( ( ( 'ERROR' ) | ( 'WARNING' ) ) ) (f_message= r_expression ) ( ':' ) (f_constraint= r_expression ) ( ';' ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:174:2: ( 'context' ) (f_type= r_type ) ( ( ( 'if' ) (f_ifExpression= r_expression ) ) )? ( ( ( 'ERROR' ) | ( 'WARNING' ) ) ) (f_message= r_expression ) ( ':' ) (f_constraint= r_expression ) ( ';' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:197:2: ( ( 'context' ) (f_type= r_type ) ( ( ( 'if' ) (f_ifExpression= r_expression ) ) )? ( ( ( 'ERROR' ) | ( 'WARNING' ) ) ) (f_message= r_expression ) ( ':' ) (f_constraint= r_expression ) ( ';' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:197:2: ( 'context' ) (f_type= r_type ) ( ( ( 'if' ) (f_ifExpression= r_expression ) ) )? ( ( ( 'ERROR' ) | ( 'WARNING' ) ) ) (f_message= r_expression ) ( ':' ) (f_constraint= r_expression ) ( ';' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:174:2: ( 'context' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:174:3: 'context'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:197:2: ( 'context' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:197:3: 'context'
{
match(input,59,FOLLOW_59_in_r_check1461); if (failed) return cn;
if ( backtracking==0 ) {
@@ -3243,8 +3266,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:174:50: (f_type= r_type )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:174:51: f_type= r_type
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:197:50: (f_type= r_type )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:197:51: f_type= r_type
{
pushFollow(FOLLOW_r_type_in_r_check1469);
f_type=r_type();
@@ -3256,7 +3279,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:174:131: ( ( ( 'if' ) (f_ifExpression= r_expression ) ) )?
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:197:131: ( ( ( 'if' ) (f_ifExpression= r_expression ) ) )?
int alt34=2;
int LA34_0 = input.LA(1);
@@ -3265,13 +3288,13 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
switch (alt34) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:174:132: ( ( 'if' ) (f_ifExpression= r_expression ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:197:132: ( ( 'if' ) (f_ifExpression= r_expression ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:174:132: ( ( 'if' ) (f_ifExpression= r_expression ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:174:133: ( 'if' ) (f_ifExpression= r_expression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:197:132: ( ( 'if' ) (f_ifExpression= r_expression ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:197:133: ( 'if' ) (f_ifExpression= r_expression )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:174:133: ( 'if' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:174:134: 'if'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:197:133: ( 'if' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:197:134: 'if'
{
match(input,60,FOLLOW_60_in_r_check1477); if (failed) return cn;
if ( backtracking==0 ) {
@@ -3280,8 +3303,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:174:176: (f_ifExpression= r_expression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:174:177: f_ifExpression= r_expression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:197:176: (f_ifExpression= r_expression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:197:177: f_ifExpression= r_expression
{
pushFollow(FOLLOW_r_expression_in_r_check1485);
f_ifExpression=r_expression();
@@ -3302,10 +3325,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:174:298: ( ( ( 'ERROR' ) | ( 'WARNING' ) ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:174:299: ( ( 'ERROR' ) | ( 'WARNING' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:197:298: ( ( ( 'ERROR' ) | ( 'WARNING' ) ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:197:299: ( ( 'ERROR' ) | ( 'WARNING' ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:174:299: ( ( 'ERROR' ) | ( 'WARNING' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:197:299: ( ( 'ERROR' ) | ( 'WARNING' ) )
int alt35=2;
int LA35_0 = input.LA(1);
@@ -3318,16 +3341,16 @@ public class Xpand3NodeParser extends AbstractNodeParser {
else {
if (backtracking>0) {failed=true; return cn;}
NoViableAltException nvae =
- new NoViableAltException("174:299: ( ( 'ERROR' ) | ( 'WARNING' ) )", 35, 0, input);
+ new NoViableAltException("197:299: ( ( 'ERROR' ) | ( 'WARNING' ) )", 35, 0, input);
throw nvae;
}
switch (alt35) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:174:300: ( 'ERROR' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:197:300: ( 'ERROR' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:174:300: ( 'ERROR' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:174:301: 'ERROR'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:197:300: ( 'ERROR' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:197:301: 'ERROR'
{
match(input,37,FOLLOW_37_in_r_check1496); if (failed) return cn;
if ( backtracking==0 ) {
@@ -3340,10 +3363,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 2 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:175:4: ( 'WARNING' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:198:4: ( 'WARNING' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:175:4: ( 'WARNING' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:175:5: 'WARNING'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:198:4: ( 'WARNING' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:198:5: 'WARNING'
{
match(input,61,FOLLOW_61_in_r_check1505); if (failed) return cn;
if ( backtracking==0 ) {
@@ -3361,8 +3384,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:175:59: (f_message= r_expression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:175:60: f_message= r_expression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:198:59: (f_message= r_expression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:198:60: f_message= r_expression
{
pushFollow(FOLLOW_r_expression_in_r_check1515);
f_message=r_expression();
@@ -3374,8 +3397,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:175:158: ( ':' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:175:159: ':'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:198:158: ( ':' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:198:159: ':'
{
match(input,62,FOLLOW_62_in_r_check1521); if (failed) return cn;
if ( backtracking==0 ) {
@@ -3384,8 +3407,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:175:200: (f_constraint= r_expression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:175:201: f_constraint= r_expression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:198:200: (f_constraint= r_expression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:198:201: f_constraint= r_expression
{
pushFollow(FOLLOW_r_expression_in_r_check1529);
f_constraint=r_expression();
@@ -3397,8 +3420,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:175:311: ( ';' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:175:312: ';'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:198:311: ( ';' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:198:312: ';'
{
match(input,27,FOLLOW_27_in_r_check1535); if (failed) return cn;
if ( backtracking==0 ) {
@@ -3423,7 +3446,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_around
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:178:1: r_around returns [CompositeNode cn] : ( 'around' ) (f_unnamed0= r_pointcut ) ( '(' ) ( ( (f_unnamed1= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) ) )? ( ')' ) ( ':' ) (f_unnamed2= r_expression ) ( ';' ) ;
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:201:1: r_around returns [CompositeNode cn] : ( 'around' ) (f_unnamed0= r_pointcut ) ( '(' ) ( ( (f_unnamed1= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) ) )? ( ')' ) ( ':' ) (f_unnamed2= r_expression ) ( ';' ) ;
public CompositeNode r_around() throws RecognitionException {
CompositeNode cn = null;
@@ -3434,14 +3457,15 @@ public class Xpand3NodeParser extends AbstractNodeParser {
CompositeNode f_unnamed2 = null;
- cn = factory.createAroundNode();
-
+
+ cn = factory.createAroundNode();
+
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:181:2: ( ( 'around' ) (f_unnamed0= r_pointcut ) ( '(' ) ( ( (f_unnamed1= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) ) )? ( ')' ) ( ':' ) (f_unnamed2= r_expression ) ( ';' ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:181:2: ( 'around' ) (f_unnamed0= r_pointcut ) ( '(' ) ( ( (f_unnamed1= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) ) )? ( ')' ) ( ':' ) (f_unnamed2= r_expression ) ( ';' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:205:2: ( ( 'around' ) (f_unnamed0= r_pointcut ) ( '(' ) ( ( (f_unnamed1= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) ) )? ( ')' ) ( ':' ) (f_unnamed2= r_expression ) ( ';' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:205:2: ( 'around' ) (f_unnamed0= r_pointcut ) ( '(' ) ( ( (f_unnamed1= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) ) )? ( ')' ) ( ':' ) (f_unnamed2= r_expression ) ( ';' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:181:2: ( 'around' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:181:3: 'around'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:205:2: ( 'around' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:205:3: 'around'
{
match(input,63,FOLLOW_63_in_r_around1559); if (failed) return cn;
if ( backtracking==0 ) {
@@ -3450,8 +3474,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:181:49: (f_unnamed0= r_pointcut )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:181:50: f_unnamed0= r_pointcut
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:205:49: (f_unnamed0= r_pointcut )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:205:50: f_unnamed0= r_pointcut
{
pushFollow(FOLLOW_r_pointcut_in_r_around1567);
f_unnamed0=r_pointcut();
@@ -3463,8 +3487,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:181:108: ( '(' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:181:109: '('
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:205:108: ( '(' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:205:109: '('
{
match(input,31,FOLLOW_31_in_r_around1573); if (failed) return cn;
if ( backtracking==0 ) {
@@ -3473,7 +3497,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:181:150: ( ( (f_unnamed1= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) ) )?
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:205:150: ( ( (f_unnamed1= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) ) )?
int alt39=2;
int LA39_0 = input.LA(1);
@@ -3482,9 +3506,9 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
switch (alt39) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:181:151: ( (f_unnamed1= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:205:151: ( (f_unnamed1= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:181:151: ( (f_unnamed1= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:205:151: ( (f_unnamed1= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) )
int alt38=2;
int LA38_0 = input.LA(1);
@@ -3497,16 +3521,16 @@ public class Xpand3NodeParser extends AbstractNodeParser {
else {
if (backtracking>0) {failed=true; return cn;}
NoViableAltException nvae =
- new NoViableAltException("181:151: ( (f_unnamed1= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) )", 38, 0, input);
+ new NoViableAltException("205:151: ( (f_unnamed1= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )? | ( '*' ) )", 38, 0, input);
throw nvae;
}
switch (alt38) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:181:152: (f_unnamed1= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )?
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:205:152: (f_unnamed1= r_declaredParameterList ) ( ( ( ',' )? ( '*' ) ) )?
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:181:152: (f_unnamed1= r_declaredParameterList )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:181:153: f_unnamed1= r_declaredParameterList
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:205:152: (f_unnamed1= r_declaredParameterList )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:205:153: f_unnamed1= r_declaredParameterList
{
pushFollow(FOLLOW_r_declaredParameterList_in_r_around1583);
f_unnamed1=r_declaredParameterList();
@@ -3518,7 +3542,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:181:224: ( ( ( ',' )? ( '*' ) ) )?
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:205:224: ( ( ( ',' )? ( '*' ) ) )?
int alt37=2;
int LA37_0 = input.LA(1);
@@ -3527,12 +3551,12 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
switch (alt37) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:181:225: ( ( ',' )? ( '*' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:205:225: ( ( ',' )? ( '*' ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:181:225: ( ( ',' )? ( '*' ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:181:226: ( ',' )? ( '*' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:205:225: ( ( ',' )? ( '*' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:205:226: ( ',' )? ( '*' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:181:226: ( ',' )?
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:205:226: ( ',' )?
int alt36=2;
int LA36_0 = input.LA(1);
@@ -3541,7 +3565,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
switch (alt36) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:181:227: ','
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:205:227: ','
{
match(input,32,FOLLOW_32_in_r_around1591); if (failed) return cn;
if ( backtracking==0 ) {
@@ -3553,8 +3577,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:181:269: ( '*' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:181:270: '*'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:205:269: ( '*' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:205:270: '*'
{
match(input,33,FOLLOW_33_in_r_around1598); if (failed) return cn;
if ( backtracking==0 ) {
@@ -3576,10 +3600,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 2 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:182:4: ( '*' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:206:4: ( '*' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:182:4: ( '*' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:182:5: '*'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:206:4: ( '*' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:206:5: '*'
{
match(input,33,FOLLOW_33_in_r_around1610); if (failed) return cn;
if ( backtracking==0 ) {
@@ -3600,8 +3624,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:182:49: ( ')' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:182:50: ')'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:206:49: ( ')' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:206:50: ')'
{
match(input,34,FOLLOW_34_in_r_around1619); if (failed) return cn;
if ( backtracking==0 ) {
@@ -3610,8 +3634,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:182:91: ( ':' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:182:92: ':'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:206:91: ( ':' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:206:92: ':'
{
match(input,62,FOLLOW_62_in_r_around1625); if (failed) return cn;
if ( backtracking==0 ) {
@@ -3620,8 +3644,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:182:133: (f_unnamed2= r_expression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:182:134: f_unnamed2= r_expression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:206:133: (f_unnamed2= r_expression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:206:134: f_unnamed2= r_expression
{
pushFollow(FOLLOW_r_expression_in_r_around1633);
f_unnamed2=r_expression();
@@ -3633,8 +3657,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:182:194: ( ';' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:182:195: ';'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:206:194: ( ';' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:206:195: ';'
{
match(input,27,FOLLOW_27_in_r_around1639); if (failed) return cn;
if ( backtracking==0 ) {
@@ -3659,7 +3683,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_pointcut
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:185:1: r_pointcut returns [CompositeNode cn] : ( ( ( '*' ) | (f_unnamed3= r_identifier ) ) ) ( ( ( '*' ) | (f_unnamed4= r_identifier ) | ( '::' ) ) )* ;
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:209:1: r_pointcut returns [CompositeNode cn] : ( ( ( '*' ) | (f_unnamed3= r_identifier ) ) ) ( ( ( '*' ) | (f_unnamed4= r_identifier ) | ( '::' ) ) )* ;
public CompositeNode r_pointcut() throws RecognitionException {
CompositeNode cn = null;
@@ -3668,16 +3692,17 @@ public class Xpand3NodeParser extends AbstractNodeParser {
CompositeNode f_unnamed4 = null;
- cn = factory.createPointcutNode();
-
+
+ cn = factory.createPointcutNode();
+
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:188:2: ( ( ( ( '*' ) | (f_unnamed3= r_identifier ) ) ) ( ( ( '*' ) | (f_unnamed4= r_identifier ) | ( '::' ) ) )* )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:188:2: ( ( ( '*' ) | (f_unnamed3= r_identifier ) ) ) ( ( ( '*' ) | (f_unnamed4= r_identifier ) | ( '::' ) ) )*
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:213:2: ( ( ( ( '*' ) | (f_unnamed3= r_identifier ) ) ) ( ( ( '*' ) | (f_unnamed4= r_identifier ) | ( '::' ) ) )* )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:213:2: ( ( ( '*' ) | (f_unnamed3= r_identifier ) ) ) ( ( ( '*' ) | (f_unnamed4= r_identifier ) | ( '::' ) ) )*
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:188:2: ( ( ( '*' ) | (f_unnamed3= r_identifier ) ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:188:3: ( ( '*' ) | (f_unnamed3= r_identifier ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:213:2: ( ( ( '*' ) | (f_unnamed3= r_identifier ) ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:213:3: ( ( '*' ) | (f_unnamed3= r_identifier ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:188:3: ( ( '*' ) | (f_unnamed3= r_identifier ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:213:3: ( ( '*' ) | (f_unnamed3= r_identifier ) )
int alt40=2;
int LA40_0 = input.LA(1);
@@ -3690,16 +3715,16 @@ public class Xpand3NodeParser extends AbstractNodeParser {
else {
if (backtracking>0) {failed=true; return cn;}
NoViableAltException nvae =
- new NoViableAltException("188:3: ( ( '*' ) | (f_unnamed3= r_identifier ) )", 40, 0, input);
+ new NoViableAltException("213:3: ( ( '*' ) | (f_unnamed3= r_identifier ) )", 40, 0, input);
throw nvae;
}
switch (alt40) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:188:4: ( '*' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:213:4: ( '*' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:188:4: ( '*' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:188:5: '*'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:213:4: ( '*' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:213:5: '*'
{
match(input,33,FOLLOW_33_in_r_pointcut1665); if (failed) return cn;
if ( backtracking==0 ) {
@@ -3712,10 +3737,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 2 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:189:4: (f_unnamed3= r_identifier )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:214:4: (f_unnamed3= r_identifier )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:189:4: (f_unnamed3= r_identifier )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:189:5: f_unnamed3= r_identifier
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:214:4: (f_unnamed3= r_identifier )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:214:5: f_unnamed3= r_identifier
{
pushFollow(FOLLOW_r_identifier_in_r_pointcut1676);
f_unnamed3=r_identifier();
@@ -3736,7 +3761,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:189:67: ( ( ( '*' ) | (f_unnamed4= r_identifier ) | ( '::' ) ) )*
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:214:67: ( ( ( '*' ) | (f_unnamed4= r_identifier ) | ( '::' ) ) )*
loop42:
do {
int alt42=2;
@@ -3749,9 +3774,9 @@ public class Xpand3NodeParser extends AbstractNodeParser {
switch (alt42) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:189:68: ( ( '*' ) | (f_unnamed4= r_identifier ) | ( '::' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:214:68: ( ( '*' ) | (f_unnamed4= r_identifier ) | ( '::' ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:189:68: ( ( '*' ) | (f_unnamed4= r_identifier ) | ( '::' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:214:68: ( ( '*' ) | (f_unnamed4= r_identifier ) | ( '::' ) )
int alt41=3;
switch ( input.LA(1) ) {
case 33:
@@ -3772,17 +3797,17 @@ public class Xpand3NodeParser extends AbstractNodeParser {
default:
if (backtracking>0) {failed=true; return cn;}
NoViableAltException nvae =
- new NoViableAltException("189:68: ( ( '*' ) | (f_unnamed4= r_identifier ) | ( '::' ) )", 41, 0, input);
+ new NoViableAltException("214:68: ( ( '*' ) | (f_unnamed4= r_identifier ) | ( '::' ) )", 41, 0, input);
throw nvae;
}
switch (alt41) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:189:69: ( '*' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:214:69: ( '*' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:189:69: ( '*' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:189:70: '*'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:214:69: ( '*' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:214:70: '*'
{
match(input,33,FOLLOW_33_in_r_pointcut1686); if (failed) return cn;
if ( backtracking==0 ) {
@@ -3795,10 +3820,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 2 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:190:4: (f_unnamed4= r_identifier )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:215:4: (f_unnamed4= r_identifier )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:190:4: (f_unnamed4= r_identifier )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:190:5: f_unnamed4= r_identifier
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:215:4: (f_unnamed4= r_identifier )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:215:5: f_unnamed4= r_identifier
{
pushFollow(FOLLOW_r_identifier_in_r_pointcut1697);
f_unnamed4=r_identifier();
@@ -3814,10 +3839,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 3 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:191:4: ( '::' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:216:4: ( '::' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:191:4: ( '::' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:191:5: '::'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:216:4: ( '::' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:216:5: '::'
{
match(input,64,FOLLOW_64_in_r_pointcut1706); if (failed) return cn;
if ( backtracking==0 ) {
@@ -3857,7 +3882,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_extension
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:194:1: r_extension returns [CompositeNode cn] : ( ( ( 'private' ) | ( 'cached' ) | ( 'create' ) ) )* ( ( ( r_type r_identifier r_identifier )=> ( (f_returnType= r_type ) (f_createdName= r_identifier ) (f_name= r_identifier ) ) | ( r_type r_identifier )=> ( (f_returnType= r_type ) (f_name= r_identifier ) ) | (f_name= r_identifier ) ) ) ( '(' ) (f_paramList= r_declaredParameterList )? ( ')' ) ( ':' ) ( ( (f_javaCall= r_javaCall ) | (f_extendBody= r_expression ) ) ) ( ';' ) ;
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:219:1: r_extension returns [CompositeNode cn] : ( ( ( 'private' ) | ( 'cached' ) | ( 'create' ) ) )* ( ( ( r_type r_identifier r_identifier )=> ( (f_returnType= r_type ) (f_createdName= r_identifier ) (f_name= r_identifier ) ) | ( r_type r_identifier )=> ( (f_returnType= r_type ) (f_name= r_identifier ) ) | (f_name= r_identifier ) ) ) ( '(' ) (f_paramList= r_declaredParameterList )? ( ')' ) ( ':' ) ( ( (f_javaCall= r_javaCall ) | (f_extendBody= r_expression ) ) ) ( ';' ) ;
public CompositeNode r_extension() throws RecognitionException {
CompositeNode cn = null;
@@ -3874,13 +3899,14 @@ public class Xpand3NodeParser extends AbstractNodeParser {
CompositeNode f_extendBody = null;
- cn = factory.createExtensionNode();
-
+
+ cn = factory.createExtensionNode();
+
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:197:2: ( ( ( ( 'private' ) | ( 'cached' ) | ( 'create' ) ) )* ( ( ( r_type r_identifier r_identifier )=> ( (f_returnType= r_type ) (f_createdName= r_identifier ) (f_name= r_identifier ) ) | ( r_type r_identifier )=> ( (f_returnType= r_type ) (f_name= r_identifier ) ) | (f_name= r_identifier ) ) ) ( '(' ) (f_paramList= r_declaredParameterList )? ( ')' ) ( ':' ) ( ( (f_javaCall= r_javaCall ) | (f_extendBody= r_expression ) ) ) ( ';' ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:197:2: ( ( ( 'private' ) | ( 'cached' ) | ( 'create' ) ) )* ( ( ( r_type r_identifier r_identifier )=> ( (f_returnType= r_type ) (f_createdName= r_identifier ) (f_name= r_identifier ) ) | ( r_type r_identifier )=> ( (f_returnType= r_type ) (f_name= r_identifier ) ) | (f_name= r_identifier ) ) ) ( '(' ) (f_paramList= r_declaredParameterList )? ( ')' ) ( ':' ) ( ( (f_javaCall= r_javaCall ) | (f_extendBody= r_expression ) ) ) ( ';' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:223:2: ( ( ( ( 'private' ) | ( 'cached' ) | ( 'create' ) ) )* ( ( ( r_type r_identifier r_identifier )=> ( (f_returnType= r_type ) (f_createdName= r_identifier ) (f_name= r_identifier ) ) | ( r_type r_identifier )=> ( (f_returnType= r_type ) (f_name= r_identifier ) ) | (f_name= r_identifier ) ) ) ( '(' ) (f_paramList= r_declaredParameterList )? ( ')' ) ( ':' ) ( ( (f_javaCall= r_javaCall ) | (f_extendBody= r_expression ) ) ) ( ';' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:223:2: ( ( ( 'private' ) | ( 'cached' ) | ( 'create' ) ) )* ( ( ( r_type r_identifier r_identifier )=> ( (f_returnType= r_type ) (f_createdName= r_identifier ) (f_name= r_identifier ) ) | ( r_type r_identifier )=> ( (f_returnType= r_type ) (f_name= r_identifier ) ) | (f_name= r_identifier ) ) ) ( '(' ) (f_paramList= r_declaredParameterList )? ( ')' ) ( ':' ) ( ( (f_javaCall= r_javaCall ) | (f_extendBody= r_expression ) ) ) ( ';' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:197:2: ( ( ( 'private' ) | ( 'cached' ) | ( 'create' ) ) )*
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:223:2: ( ( ( 'private' ) | ( 'cached' ) | ( 'create' ) ) )*
loop44:
do {
int alt44=2;
@@ -3893,9 +3919,9 @@ public class Xpand3NodeParser extends AbstractNodeParser {
switch (alt44) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:197:3: ( ( 'private' ) | ( 'cached' ) | ( 'create' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:223:3: ( ( 'private' ) | ( 'cached' ) | ( 'create' ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:197:3: ( ( 'private' ) | ( 'cached' ) | ( 'create' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:223:3: ( ( 'private' ) | ( 'cached' ) | ( 'create' ) )
int alt43=3;
switch ( input.LA(1) ) {
case 65:
@@ -3916,17 +3942,17 @@ public class Xpand3NodeParser extends AbstractNodeParser {
default:
if (backtracking>0) {failed=true; return cn;}
NoViableAltException nvae =
- new NoViableAltException("197:3: ( ( 'private' ) | ( 'cached' ) | ( 'create' ) )", 43, 0, input);
+ new NoViableAltException("223:3: ( ( 'private' ) | ( 'cached' ) | ( 'create' ) )", 43, 0, input);
throw nvae;
}
switch (alt43) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:197:4: ( 'private' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:223:4: ( 'private' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:197:4: ( 'private' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:197:5: 'private'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:223:4: ( 'private' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:223:5: 'private'
{
match(input,65,FOLLOW_65_in_r_extension1735); if (failed) return cn;
if ( backtracking==0 ) {
@@ -3939,10 +3965,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 2 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:198:4: ( 'cached' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:224:4: ( 'cached' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:198:4: ( 'cached' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:198:5: 'cached'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:224:4: ( 'cached' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:224:5: 'cached'
{
match(input,66,FOLLOW_66_in_r_extension1744); if (failed) return cn;
if ( backtracking==0 ) {
@@ -3955,10 +3981,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 3 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:199:4: ( 'create' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:225:4: ( 'create' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:199:4: ( 'create' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:199:5: 'create'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:225:4: ( 'create' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:225:5: 'create'
{
match(input,67,FOLLOW_67_in_r_extension1753); if (failed) return cn;
if ( backtracking==0 ) {
@@ -3982,21 +4008,21 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
} while (true);
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:199:58: ( ( ( r_type r_identifier r_identifier )=> ( (f_returnType= r_type ) (f_createdName= r_identifier ) (f_name= r_identifier ) ) | ( r_type r_identifier )=> ( (f_returnType= r_type ) (f_name= r_identifier ) ) | (f_name= r_identifier ) ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:199:59: ( ( r_type r_identifier r_identifier )=> ( (f_returnType= r_type ) (f_createdName= r_identifier ) (f_name= r_identifier ) ) | ( r_type r_identifier )=> ( (f_returnType= r_type ) (f_name= r_identifier ) ) | (f_name= r_identifier ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:225:58: ( ( ( r_type r_identifier r_identifier )=> ( (f_returnType= r_type ) (f_createdName= r_identifier ) (f_name= r_identifier ) ) | ( r_type r_identifier )=> ( (f_returnType= r_type ) (f_name= r_identifier ) ) | (f_name= r_identifier ) ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:225:59: ( ( r_type r_identifier r_identifier )=> ( (f_returnType= r_type ) (f_createdName= r_identifier ) (f_name= r_identifier ) ) | ( r_type r_identifier )=> ( (f_returnType= r_type ) (f_name= r_identifier ) ) | (f_name= r_identifier ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:199:59: ( ( r_type r_identifier r_identifier )=> ( (f_returnType= r_type ) (f_createdName= r_identifier ) (f_name= r_identifier ) ) | ( r_type r_identifier )=> ( (f_returnType= r_type ) (f_name= r_identifier ) ) | (f_name= r_identifier ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:225:59: ( ( r_type r_identifier r_identifier )=> ( (f_returnType= r_type ) (f_createdName= r_identifier ) (f_name= r_identifier ) ) | ( r_type r_identifier )=> ( (f_returnType= r_type ) (f_name= r_identifier ) ) | (f_name= r_identifier ) )
int alt45=3;
alt45 = dfa45.predict(input);
switch (alt45) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:199:60: ( r_type r_identifier r_identifier )=> ( (f_returnType= r_type ) (f_createdName= r_identifier ) (f_name= r_identifier ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:225:60: ( r_type r_identifier r_identifier )=> ( (f_returnType= r_type ) (f_createdName= r_identifier ) (f_name= r_identifier ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:199:96: ( (f_returnType= r_type ) (f_createdName= r_identifier ) (f_name= r_identifier ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:199:97: (f_returnType= r_type ) (f_createdName= r_identifier ) (f_name= r_identifier )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:225:96: ( (f_returnType= r_type ) (f_createdName= r_identifier ) (f_name= r_identifier ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:225:97: (f_returnType= r_type ) (f_createdName= r_identifier ) (f_name= r_identifier )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:199:97: (f_returnType= r_type )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:199:98: f_returnType= r_type
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:225:97: (f_returnType= r_type )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:225:98: f_returnType= r_type
{
pushFollow(FOLLOW_r_type_in_r_extension1775);
f_returnType=r_type();
@@ -4008,8 +4034,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:199:206: (f_createdName= r_identifier )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:199:207: f_createdName= r_identifier
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:225:206: (f_createdName= r_identifier )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:225:207: f_createdName= r_identifier
{
pushFollow(FOLLOW_r_identifier_in_r_extension1783);
f_createdName=r_identifier();
@@ -4021,8 +4047,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:199:325: (f_name= r_identifier )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:199:326: f_name= r_identifier
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:225:325: (f_name= r_identifier )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:225:326: f_name= r_identifier
{
pushFollow(FOLLOW_r_identifier_in_r_extension1791);
f_name=r_identifier();
@@ -4041,13 +4067,13 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 2 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:200:4: ( r_type r_identifier )=> ( (f_returnType= r_type ) (f_name= r_identifier ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:226:4: ( r_type r_identifier )=> ( (f_returnType= r_type ) (f_name= r_identifier ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:200:27: ( (f_returnType= r_type ) (f_name= r_identifier ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:200:28: (f_returnType= r_type ) (f_name= r_identifier )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:226:27: ( (f_returnType= r_type ) (f_name= r_identifier ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:226:28: (f_returnType= r_type ) (f_name= r_identifier )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:200:28: (f_returnType= r_type )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:200:29: f_returnType= r_type
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:226:28: (f_returnType= r_type )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:226:29: f_returnType= r_type
{
pushFollow(FOLLOW_r_type_in_r_extension1810);
f_returnType=r_type();
@@ -4059,8 +4085,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:200:137: (f_name= r_identifier )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:200:138: f_name= r_identifier
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:226:137: (f_name= r_identifier )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:226:138: f_name= r_identifier
{
pushFollow(FOLLOW_r_identifier_in_r_extension1818);
f_name=r_identifier();
@@ -4079,10 +4105,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 3 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:201:4: (f_name= r_identifier )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:227:4: (f_name= r_identifier )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:201:4: (f_name= r_identifier )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:201:5: f_name= r_identifier
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:227:4: (f_name= r_identifier )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:227:5: f_name= r_identifier
{
pushFollow(FOLLOW_r_identifier_in_r_extension1830);
f_name=r_identifier();
@@ -4103,8 +4129,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:201:97: ( '(' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:201:98: '('
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:227:97: ( '(' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:227:98: '('
{
match(input,31,FOLLOW_31_in_r_extension1838); if (failed) return cn;
if ( backtracking==0 ) {
@@ -4113,7 +4139,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:201:139: (f_paramList= r_declaredParameterList )?
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:227:139: (f_paramList= r_declaredParameterList )?
int alt46=2;
int LA46_0 = input.LA(1);
@@ -4122,7 +4148,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
switch (alt46) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:201:140: f_paramList= r_declaredParameterList
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:227:140: f_paramList= r_declaredParameterList
{
pushFollow(FOLLOW_r_declaredParameterList_in_r_extension1846);
f_paramList=r_declaredParameterList();
@@ -4137,8 +4163,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:201:262: ( ')' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:201:263: ')'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:227:262: ( ')' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:227:263: ')'
{
match(input,34,FOLLOW_34_in_r_extension1853); if (failed) return cn;
if ( backtracking==0 ) {
@@ -4147,8 +4173,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:201:304: ( ':' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:201:305: ':'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:227:304: ( ':' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:227:305: ':'
{
match(input,62,FOLLOW_62_in_r_extension1859); if (failed) return cn;
if ( backtracking==0 ) {
@@ -4157,10 +4183,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:201:346: ( ( (f_javaCall= r_javaCall ) | (f_extendBody= r_expression ) ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:201:347: ( (f_javaCall= r_javaCall ) | (f_extendBody= r_expression ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:227:346: ( ( (f_javaCall= r_javaCall ) | (f_extendBody= r_expression ) ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:227:347: ( (f_javaCall= r_javaCall ) | (f_extendBody= r_expression ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:201:347: ( (f_javaCall= r_javaCall ) | (f_extendBody= r_expression ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:227:347: ( (f_javaCall= r_javaCall ) | (f_extendBody= r_expression ) )
int alt47=2;
int LA47_0 = input.LA(1);
@@ -4173,16 +4199,16 @@ public class Xpand3NodeParser extends AbstractNodeParser {
else {
if (backtracking>0) {failed=true; return cn;}
NoViableAltException nvae =
- new NoViableAltException("201:347: ( (f_javaCall= r_javaCall ) | (f_extendBody= r_expression ) )", 47, 0, input);
+ new NoViableAltException("227:347: ( (f_javaCall= r_javaCall ) | (f_extendBody= r_expression ) )", 47, 0, input);
throw nvae;
}
switch (alt47) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:201:348: (f_javaCall= r_javaCall )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:227:348: (f_javaCall= r_javaCall )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:201:348: (f_javaCall= r_javaCall )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:201:349: f_javaCall= r_javaCall
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:227:348: (f_javaCall= r_javaCall )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:227:349: f_javaCall= r_javaCall
{
pushFollow(FOLLOW_r_javaCall_in_r_extension1869);
f_javaCall=r_javaCall();
@@ -4198,10 +4224,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 2 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:202:4: (f_extendBody= r_expression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:228:4: (f_extendBody= r_expression )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:202:4: (f_extendBody= r_expression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:202:5: f_extendBody= r_expression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:228:4: (f_extendBody= r_expression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:228:5: f_extendBody= r_expression
{
pushFollow(FOLLOW_r_expression_in_r_extension1880);
f_extendBody=r_expression();
@@ -4222,8 +4248,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:202:121: ( ';' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:202:122: ';'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:228:121: ( ';' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:228:122: ';'
{
match(input,27,FOLLOW_27_in_r_extension1888); if (failed) return cn;
if ( backtracking==0 ) {
@@ -4248,7 +4274,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_javaCall
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:205:1: r_javaCall returns [CompositeNode cn] : ( 'JAVA' ) (f_javaReturnType= r_javaType ) ( '.' ) (f_javaName= r_identifier ) ( '(' ) ( ( (f_unnamed5= r_javaType ) ( ( ( ',' ) (f_unnamed6= r_javaType ) ) )* ) )? ( ')' ) ;
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:231:1: r_javaCall returns [CompositeNode cn] : ( 'JAVA' ) (f_javaReturnType= r_javaType ) ( '.' ) (f_javaName= r_identifier ) ( '(' ) ( ( (f_unnamed5= r_javaType ) ( ( ( ',' ) (f_unnamed6= r_javaType ) ) )* ) )? ( ')' ) ;
public CompositeNode r_javaCall() throws RecognitionException {
CompositeNode cn = null;
@@ -4261,14 +4287,15 @@ public class Xpand3NodeParser extends AbstractNodeParser {
CompositeNode f_unnamed6 = null;
- cn = factory.createJavaCallNode();
-
+
+ cn = factory.createJavaCallNode();
+
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:208:2: ( ( 'JAVA' ) (f_javaReturnType= r_javaType ) ( '.' ) (f_javaName= r_identifier ) ( '(' ) ( ( (f_unnamed5= r_javaType ) ( ( ( ',' ) (f_unnamed6= r_javaType ) ) )* ) )? ( ')' ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:208:2: ( 'JAVA' ) (f_javaReturnType= r_javaType ) ( '.' ) (f_javaName= r_identifier ) ( '(' ) ( ( (f_unnamed5= r_javaType ) ( ( ( ',' ) (f_unnamed6= r_javaType ) ) )* ) )? ( ')' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:235:2: ( ( 'JAVA' ) (f_javaReturnType= r_javaType ) ( '.' ) (f_javaName= r_identifier ) ( '(' ) ( ( (f_unnamed5= r_javaType ) ( ( ( ',' ) (f_unnamed6= r_javaType ) ) )* ) )? ( ')' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:235:2: ( 'JAVA' ) (f_javaReturnType= r_javaType ) ( '.' ) (f_javaName= r_identifier ) ( '(' ) ( ( (f_unnamed5= r_javaType ) ( ( ( ',' ) (f_unnamed6= r_javaType ) ) )* ) )? ( ')' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:208:2: ( 'JAVA' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:208:3: 'JAVA'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:235:2: ( 'JAVA' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:235:3: 'JAVA'
{
match(input,68,FOLLOW_68_in_r_javaCall1912); if (failed) return cn;
if ( backtracking==0 ) {
@@ -4277,8 +4304,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:208:47: (f_javaReturnType= r_javaType )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:208:48: f_javaReturnType= r_javaType
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:235:47: (f_javaReturnType= r_javaType )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:235:48: f_javaReturnType= r_javaType
{
pushFollow(FOLLOW_r_javaType_in_r_javaCall1920);
f_javaReturnType=r_javaType();
@@ -4290,8 +4317,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:208:175: ( '.' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:208:176: '.'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:235:175: ( '.' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:235:176: '.'
{
match(input,69,FOLLOW_69_in_r_javaCall1926); if (failed) return cn;
if ( backtracking==0 ) {
@@ -4300,8 +4327,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:208:217: (f_javaName= r_identifier )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:208:218: f_javaName= r_identifier
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:235:217: (f_javaName= r_identifier )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:235:218: f_javaName= r_identifier
{
pushFollow(FOLLOW_r_identifier_in_r_javaCall1934);
f_javaName=r_identifier();
@@ -4313,8 +4340,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:208:323: ( '(' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:208:324: '('
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:235:323: ( '(' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:235:324: '('
{
match(input,31,FOLLOW_31_in_r_javaCall1940); if (failed) return cn;
if ( backtracking==0 ) {
@@ -4323,7 +4350,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:208:365: ( ( (f_unnamed5= r_javaType ) ( ( ( ',' ) (f_unnamed6= r_javaType ) ) )* ) )?
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:235:365: ( ( (f_unnamed5= r_javaType ) ( ( ( ',' ) (f_unnamed6= r_javaType ) ) )* ) )?
int alt49=2;
int LA49_0 = input.LA(1);
@@ -4332,13 +4359,13 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
switch (alt49) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:208:366: ( (f_unnamed5= r_javaType ) ( ( ( ',' ) (f_unnamed6= r_javaType ) ) )* )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:235:366: ( (f_unnamed5= r_javaType ) ( ( ( ',' ) (f_unnamed6= r_javaType ) ) )* )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:208:366: ( (f_unnamed5= r_javaType ) ( ( ( ',' ) (f_unnamed6= r_javaType ) ) )* )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:208:367: (f_unnamed5= r_javaType ) ( ( ( ',' ) (f_unnamed6= r_javaType ) ) )*
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:235:366: ( (f_unnamed5= r_javaType ) ( ( ( ',' ) (f_unnamed6= r_javaType ) ) )* )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:235:367: (f_unnamed5= r_javaType ) ( ( ( ',' ) (f_unnamed6= r_javaType ) ) )*
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:208:367: (f_unnamed5= r_javaType )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:208:368: f_unnamed5= r_javaType
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:235:367: (f_unnamed5= r_javaType )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:235:368: f_unnamed5= r_javaType
{
pushFollow(FOLLOW_r_javaType_in_r_javaCall1950);
f_unnamed5=r_javaType();
@@ -4350,7 +4377,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:208:426: ( ( ( ',' ) (f_unnamed6= r_javaType ) ) )*
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:235:426: ( ( ( ',' ) (f_unnamed6= r_javaType ) ) )*
loop48:
do {
int alt48=2;
@@ -4363,13 +4390,13 @@ public class Xpand3NodeParser extends AbstractNodeParser {
switch (alt48) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:208:427: ( ( ',' ) (f_unnamed6= r_javaType ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:235:427: ( ( ',' ) (f_unnamed6= r_javaType ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:208:427: ( ( ',' ) (f_unnamed6= r_javaType ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:208:428: ( ',' ) (f_unnamed6= r_javaType )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:235:427: ( ( ',' ) (f_unnamed6= r_javaType ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:235:428: ( ',' ) (f_unnamed6= r_javaType )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:208:428: ( ',' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:208:429: ','
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:235:428: ( ',' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:235:429: ','
{
match(input,32,FOLLOW_32_in_r_javaCall1958); if (failed) return cn;
if ( backtracking==0 ) {
@@ -4378,8 +4405,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:208:470: (f_unnamed6= r_javaType )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:208:471: f_unnamed6= r_javaType
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:235:470: (f_unnamed6= r_javaType )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:235:471: f_unnamed6= r_javaType
{
pushFollow(FOLLOW_r_javaType_in_r_javaCall1966);
f_unnamed6=r_javaType();
@@ -4412,8 +4439,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:208:535: ( ')' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:208:536: ')'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:235:535: ( ')' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:235:536: ')'
{
match(input,34,FOLLOW_34_in_r_javaCall1978); if (failed) return cn;
if ( backtracking==0 ) {
@@ -4438,7 +4465,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_javaType
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:211:1: r_javaType returns [CompositeNode cn] : (f_unnamed7= r_identifier ) ( ( ( '.' ) ( ( (f_unnamed8= r_identifier ) | ( 'Collection' ) | ( 'List' ) | ( 'Set' ) ) ) ) )* ;
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:238:1: r_javaType returns [CompositeNode cn] : (f_unnamed7= r_identifier ) ( ( ( '.' ) ( ( (f_unnamed8= r_identifier ) | ( 'Collection' ) | ( 'List' ) | ( 'Set' ) ) ) ) )* ;
public CompositeNode r_javaType() throws RecognitionException {
CompositeNode cn = null;
@@ -4447,14 +4474,15 @@ public class Xpand3NodeParser extends AbstractNodeParser {
CompositeNode f_unnamed8 = null;
- cn = factory.createJavaTypeNode();
-
+
+ cn = factory.createJavaTypeNode();
+
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:214:2: ( (f_unnamed7= r_identifier ) ( ( ( '.' ) ( ( (f_unnamed8= r_identifier ) | ( 'Collection' ) | ( 'List' ) | ( 'Set' ) ) ) ) )* )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:214:2: (f_unnamed7= r_identifier ) ( ( ( '.' ) ( ( (f_unnamed8= r_identifier ) | ( 'Collection' ) | ( 'List' ) | ( 'Set' ) ) ) ) )*
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:242:2: ( (f_unnamed7= r_identifier ) ( ( ( '.' ) ( ( (f_unnamed8= r_identifier ) | ( 'Collection' ) | ( 'List' ) | ( 'Set' ) ) ) ) )* )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:242:2: (f_unnamed7= r_identifier ) ( ( ( '.' ) ( ( (f_unnamed8= r_identifier ) | ( 'Collection' ) | ( 'List' ) | ( 'Set' ) ) ) ) )*
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:214:2: (f_unnamed7= r_identifier )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:214:3: f_unnamed7= r_identifier
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:242:2: (f_unnamed7= r_identifier )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:242:3: f_unnamed7= r_identifier
{
pushFollow(FOLLOW_r_identifier_in_r_javaType2004);
f_unnamed7=r_identifier();
@@ -4466,7 +4494,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:214:63: ( ( ( '.' ) ( ( (f_unnamed8= r_identifier ) | ( 'Collection' ) | ( 'List' ) | ( 'Set' ) ) ) ) )*
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:242:63: ( ( ( '.' ) ( ( (f_unnamed8= r_identifier ) | ( 'Collection' ) | ( 'List' ) | ( 'Set' ) ) ) ) )*
loop51:
do {
int alt51=2;
@@ -4494,13 +4522,13 @@ public class Xpand3NodeParser extends AbstractNodeParser {
switch (alt51) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:214:64: ( ( '.' ) ( ( (f_unnamed8= r_identifier ) | ( 'Collection' ) | ( 'List' ) | ( 'Set' ) ) ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:242:64: ( ( '.' ) ( ( (f_unnamed8= r_identifier ) | ( 'Collection' ) | ( 'List' ) | ( 'Set' ) ) ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:214:64: ( ( '.' ) ( ( (f_unnamed8= r_identifier ) | ( 'Collection' ) | ( 'List' ) | ( 'Set' ) ) ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:214:65: ( '.' ) ( ( (f_unnamed8= r_identifier ) | ( 'Collection' ) | ( 'List' ) | ( 'Set' ) ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:242:64: ( ( '.' ) ( ( (f_unnamed8= r_identifier ) | ( 'Collection' ) | ( 'List' ) | ( 'Set' ) ) ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:242:65: ( '.' ) ( ( (f_unnamed8= r_identifier ) | ( 'Collection' ) | ( 'List' ) | ( 'Set' ) ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:214:65: ( '.' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:214:66: '.'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:242:65: ( '.' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:242:66: '.'
{
match(input,69,FOLLOW_69_in_r_javaType2012); if (failed) return cn;
if ( backtracking==0 ) {
@@ -4509,10 +4537,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:214:107: ( ( (f_unnamed8= r_identifier ) | ( 'Collection' ) | ( 'List' ) | ( 'Set' ) ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:214:108: ( (f_unnamed8= r_identifier ) | ( 'Collection' ) | ( 'List' ) | ( 'Set' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:242:107: ( ( (f_unnamed8= r_identifier ) | ( 'Collection' ) | ( 'List' ) | ( 'Set' ) ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:242:108: ( (f_unnamed8= r_identifier ) | ( 'Collection' ) | ( 'List' ) | ( 'Set' ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:214:108: ( (f_unnamed8= r_identifier ) | ( 'Collection' ) | ( 'List' ) | ( 'Set' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:242:108: ( (f_unnamed8= r_identifier ) | ( 'Collection' ) | ( 'List' ) | ( 'Set' ) )
int alt50=4;
switch ( input.LA(1) ) {
case Identifier:
@@ -4538,17 +4566,17 @@ public class Xpand3NodeParser extends AbstractNodeParser {
default:
if (backtracking>0) {failed=true; return cn;}
NoViableAltException nvae =
- new NoViableAltException("214:108: ( (f_unnamed8= r_identifier ) | ( 'Collection' ) | ( 'List' ) | ( 'Set' ) )", 50, 0, input);
+ new NoViableAltException("242:108: ( (f_unnamed8= r_identifier ) | ( 'Collection' ) | ( 'List' ) | ( 'Set' ) )", 50, 0, input);
throw nvae;
}
switch (alt50) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:214:109: (f_unnamed8= r_identifier )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:242:109: (f_unnamed8= r_identifier )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:214:109: (f_unnamed8= r_identifier )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:214:110: f_unnamed8= r_identifier
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:242:109: (f_unnamed8= r_identifier )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:242:110: f_unnamed8= r_identifier
{
pushFollow(FOLLOW_r_identifier_in_r_javaType2022);
f_unnamed8=r_identifier();
@@ -4564,10 +4592,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 2 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:215:4: ( 'Collection' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:243:4: ( 'Collection' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:215:4: ( 'Collection' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:215:5: 'Collection'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:243:4: ( 'Collection' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:243:5: 'Collection'
{
match(input,70,FOLLOW_70_in_r_javaType2031); if (failed) return cn;
if ( backtracking==0 ) {
@@ -4580,10 +4608,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 3 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:216:4: ( 'List' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:244:4: ( 'List' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:216:4: ( 'List' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:216:5: 'List'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:244:4: ( 'List' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:244:5: 'List'
{
match(input,71,FOLLOW_71_in_r_javaType2040); if (failed) return cn;
if ( backtracking==0 ) {
@@ -4596,10 +4624,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 4 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:217:4: ( 'Set' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:245:4: ( 'Set' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:217:4: ( 'Set' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:217:5: 'Set'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:245:4: ( 'Set' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:245:5: 'Set'
{
match(input,72,FOLLOW_72_in_r_javaType2049); if (failed) return cn;
if ( backtracking==0 ) {
@@ -4645,21 +4673,22 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_test_expression
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:220:1: r_test_expression returns [CompositeNode cn] : (f_unnamed9= r_expression ) ( EOF ) ;
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:248:1: r_test_expression returns [CompositeNode cn] : (f_unnamed9= r_expression ) ( EOF ) ;
public CompositeNode r_test_expression() throws RecognitionException {
CompositeNode cn = null;
CompositeNode f_unnamed9 = null;
- cn = factory.createTest_expressionNode();
-
+
+ cn = factory.createTest_expressionNode();
+
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:224:2: ( (f_unnamed9= r_expression ) ( EOF ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:224:2: (f_unnamed9= r_expression ) ( EOF )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:255:2: ( (f_unnamed9= r_expression ) ( EOF ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:255:2: (f_unnamed9= r_expression ) ( EOF )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:224:2: (f_unnamed9= r_expression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:224:3: f_unnamed9= r_expression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:255:2: (f_unnamed9= r_expression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:255:3: f_unnamed9= r_expression
{
pushFollow(FOLLOW_r_expression_in_r_test_expression2085);
f_unnamed9=r_expression();
@@ -4671,8 +4700,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:224:63: ( EOF )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:224:64: EOF
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:255:63: ( EOF )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:255:64: EOF
{
match(input,EOF,FOLLOW_EOF_in_r_test_expression2091); if (failed) return cn;
@@ -4682,7 +4711,9 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
if ( backtracking==0 ) {
- cn = normalize(cn);
+
+ cn = normalize(cn);
+
}
}
catch (RecognitionException re) {
@@ -4697,7 +4728,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_expression
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:227:1: r_expression returns [CompositeNode cn] : ( r_letExpression ) ;
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:258:1: r_expression returns [CompositeNode cn] : ( r_letExpression ) ;
public CompositeNode r_expression() throws RecognitionException {
CompositeNode cn = null;
@@ -4705,11 +4736,11 @@ public class Xpand3NodeParser extends AbstractNodeParser {
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:228:2: ( ( r_letExpression ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:228:2: ( r_letExpression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:259:2: ( ( r_letExpression ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:259:2: ( r_letExpression )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:228:2: ( r_letExpression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:228:3: r_letExpression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:259:2: ( r_letExpression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:259:3: r_letExpression
{
pushFollow(FOLLOW_r_letExpression_in_r_expression2108);
r_letExpression17=r_letExpression();
@@ -4737,7 +4768,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_letExpression
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:231:1: r_letExpression returns [CompositeNode cn] : ( ( 'let' ) (f_unnamed10= r_identifier ) ( '=' ) (f_unnamed11= r_castedExpression ) ( ':' ) (f_unnamed12= r_expression ) | (f_unnamed13= r_castedExpression ) );
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:262:1: r_letExpression returns [CompositeNode cn] : ( ( 'let' ) (f_unnamed10= r_identifier ) ( '=' ) (f_unnamed11= r_castedExpression ) ( ':' ) (f_unnamed12= r_expression ) | (f_unnamed13= r_castedExpression ) );
public CompositeNode r_letExpression() throws RecognitionException {
CompositeNode cn = null;
@@ -4750,10 +4781,11 @@ public class Xpand3NodeParser extends AbstractNodeParser {
CompositeNode f_unnamed13 = null;
- cn = factory.createLetExpressionNode();
-
+
+ cn = factory.createLetExpressionNode();
+
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:235:2: ( ( 'let' ) (f_unnamed10= r_identifier ) ( '=' ) (f_unnamed11= r_castedExpression ) ( ':' ) (f_unnamed12= r_expression ) | (f_unnamed13= r_castedExpression ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:269:2: ( ( 'let' ) (f_unnamed10= r_identifier ) ( '=' ) (f_unnamed11= r_castedExpression ) ( ':' ) (f_unnamed12= r_expression ) | (f_unnamed13= r_castedExpression ) )
int alt52=2;
int LA52_0 = input.LA(1);
@@ -4766,16 +4798,16 @@ public class Xpand3NodeParser extends AbstractNodeParser {
else {
if (backtracking>0) {failed=true; return cn;}
NoViableAltException nvae =
- new NoViableAltException("231:1: r_letExpression returns [CompositeNode cn] : ( ( 'let' ) (f_unnamed10= r_identifier ) ( '=' ) (f_unnamed11= r_castedExpression ) ( ':' ) (f_unnamed12= r_expression ) | (f_unnamed13= r_castedExpression ) );", 52, 0, input);
+ new NoViableAltException("262:1: r_letExpression returns [CompositeNode cn] : ( ( 'let' ) (f_unnamed10= r_identifier ) ( '=' ) (f_unnamed11= r_castedExpression ) ( ':' ) (f_unnamed12= r_expression ) | (f_unnamed13= r_castedExpression ) );", 52, 0, input);
throw nvae;
}
switch (alt52) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:235:2: ( 'let' ) (f_unnamed10= r_identifier ) ( '=' ) (f_unnamed11= r_castedExpression ) ( ':' ) (f_unnamed12= r_expression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:269:2: ( 'let' ) (f_unnamed10= r_identifier ) ( '=' ) (f_unnamed11= r_castedExpression ) ( ':' ) (f_unnamed12= r_expression )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:235:2: ( 'let' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:235:3: 'let'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:269:2: ( 'let' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:269:3: 'let'
{
match(input,73,FOLLOW_73_in_r_letExpression2137); if (failed) return cn;
if ( backtracking==0 ) {
@@ -4784,8 +4816,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:235:46: (f_unnamed10= r_identifier )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:235:47: f_unnamed10= r_identifier
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:269:46: (f_unnamed10= r_identifier )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:269:47: f_unnamed10= r_identifier
{
pushFollow(FOLLOW_r_identifier_in_r_letExpression2145);
f_unnamed10=r_identifier();
@@ -4797,8 +4829,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:235:109: ( '=' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:235:110: '='
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:269:109: ( '=' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:269:110: '='
{
match(input,74,FOLLOW_74_in_r_letExpression2151); if (failed) return cn;
if ( backtracking==0 ) {
@@ -4807,8 +4839,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:235:151: (f_unnamed11= r_castedExpression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:235:152: f_unnamed11= r_castedExpression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:269:151: (f_unnamed11= r_castedExpression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:269:152: f_unnamed11= r_castedExpression
{
pushFollow(FOLLOW_r_castedExpression_in_r_letExpression2159);
f_unnamed11=r_castedExpression();
@@ -4820,8 +4852,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:235:220: ( ':' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:235:221: ':'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:269:220: ( ':' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:269:221: ':'
{
match(input,62,FOLLOW_62_in_r_letExpression2165); if (failed) return cn;
if ( backtracking==0 ) {
@@ -4830,8 +4862,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:235:262: (f_unnamed12= r_expression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:235:263: f_unnamed12= r_expression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:269:262: (f_unnamed12= r_expression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:269:263: f_unnamed12= r_expression
{
pushFollow(FOLLOW_r_expression_in_r_letExpression2173);
f_unnamed12=r_expression();
@@ -4847,10 +4879,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 2 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:236:4: (f_unnamed13= r_castedExpression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:270:4: (f_unnamed13= r_castedExpression )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:236:4: (f_unnamed13= r_castedExpression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:236:5: f_unnamed13= r_castedExpression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:270:4: (f_unnamed13= r_castedExpression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:270:5: f_unnamed13= r_castedExpression
{
pushFollow(FOLLOW_r_castedExpression_in_r_letExpression2184);
f_unnamed13=r_castedExpression();
@@ -4868,7 +4900,9 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
if ( backtracking==0 ) {
- cn = normalize(cn);
+
+ cn = normalize(cn);
+
}
}
catch (RecognitionException re) {
@@ -4883,7 +4917,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_castedExpression
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:239:1: r_castedExpression returns [CompositeNode cn] : ( ( '(' r_type ')' r_chainExpression )=> ( ( '(' ) (f_type= r_type ) ( ')' ) (f_target= r_chainExpression ) ) | (f_unnamed14= r_chainExpression ) );
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:273:1: r_castedExpression returns [CompositeNode cn] : ( ( '(' r_type ')' r_chainExpression )=> ( ( '(' ) (f_type= r_type ) ( ')' ) (f_target= r_chainExpression ) ) | (f_unnamed14= r_chainExpression ) );
public CompositeNode r_castedExpression() throws RecognitionException {
CompositeNode cn = null;
@@ -4894,21 +4928,22 @@ public class Xpand3NodeParser extends AbstractNodeParser {
CompositeNode f_unnamed14 = null;
- cn = factory.createCastedExpressionNode();
-
+
+ cn = factory.createCastedExpressionNode();
+
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:243:2: ( ( '(' r_type ')' r_chainExpression )=> ( ( '(' ) (f_type= r_type ) ( ')' ) (f_target= r_chainExpression ) ) | (f_unnamed14= r_chainExpression ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:280:2: ( ( '(' r_type ')' r_chainExpression )=> ( ( '(' ) (f_type= r_type ) ( ')' ) (f_target= r_chainExpression ) ) | (f_unnamed14= r_chainExpression ) )
int alt53=2;
alt53 = dfa53.predict(input);
switch (alt53) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:243:2: ( '(' r_type ')' r_chainExpression )=> ( ( '(' ) (f_type= r_type ) ( ')' ) (f_target= r_chainExpression ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:280:2: ( '(' r_type ')' r_chainExpression )=> ( ( '(' ) (f_type= r_type ) ( ')' ) (f_target= r_chainExpression ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:243:38: ( ( '(' ) (f_type= r_type ) ( ')' ) (f_target= r_chainExpression ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:243:39: ( '(' ) (f_type= r_type ) ( ')' ) (f_target= r_chainExpression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:280:38: ( ( '(' ) (f_type= r_type ) ( ')' ) (f_target= r_chainExpression ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:280:39: ( '(' ) (f_type= r_type ) ( ')' ) (f_target= r_chainExpression )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:243:39: ( '(' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:243:40: '('
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:280:39: ( '(' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:280:40: '('
{
match(input,31,FOLLOW_31_in_r_castedExpression2224); if (failed) return cn;
if ( backtracking==0 ) {
@@ -4917,8 +4952,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:243:81: (f_type= r_type )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:243:82: f_type= r_type
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:280:81: (f_type= r_type )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:280:82: f_type= r_type
{
pushFollow(FOLLOW_r_type_in_r_castedExpression2232);
f_type=r_type();
@@ -4930,8 +4965,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:243:173: ( ')' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:243:174: ')'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:280:173: ( ')' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:280:174: ')'
{
match(input,34,FOLLOW_34_in_r_castedExpression2238); if (failed) return cn;
if ( backtracking==0 ) {
@@ -4940,8 +4975,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:243:215: (f_target= r_chainExpression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:243:216: f_target= r_chainExpression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:280:215: (f_target= r_chainExpression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:280:216: f_target= r_chainExpression
{
pushFollow(FOLLOW_r_chainExpression_in_r_castedExpression2246);
f_target=r_chainExpression();
@@ -4960,10 +4995,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 2 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:244:4: (f_unnamed14= r_chainExpression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:281:4: (f_unnamed14= r_chainExpression )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:244:4: (f_unnamed14= r_chainExpression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:244:5: f_unnamed14= r_chainExpression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:281:4: (f_unnamed14= r_chainExpression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:281:5: f_unnamed14= r_chainExpression
{
pushFollow(FOLLOW_r_chainExpression_in_r_castedExpression2258);
f_unnamed14=r_chainExpression();
@@ -4981,7 +5016,9 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
if ( backtracking==0 ) {
- cn = normalize(cn);
+
+ cn = normalize(cn);
+
}
}
catch (RecognitionException re) {
@@ -4996,7 +5033,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_chainExpression
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:247:1: r_chainExpression returns [CompositeNode cn] : (f_first= r_ifExpression ) ( ( ( '->' ) (f_nexts= r_ifExpression ) ) )* ;
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:284:1: r_chainExpression returns [CompositeNode cn] : (f_first= r_ifExpression ) ( ( ( '->' ) (f_nexts= r_ifExpression ) ) )* ;
public CompositeNode r_chainExpression() throws RecognitionException {
CompositeNode cn = null;
@@ -5005,14 +5042,15 @@ public class Xpand3NodeParser extends AbstractNodeParser {
CompositeNode f_nexts = null;
- cn = factory.createChainExpressionNode();
-
+
+ cn = factory.createChainExpressionNode();
+
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:251:2: ( (f_first= r_ifExpression ) ( ( ( '->' ) (f_nexts= r_ifExpression ) ) )* )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:251:2: (f_first= r_ifExpression ) ( ( ( '->' ) (f_nexts= r_ifExpression ) ) )*
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:291:2: ( (f_first= r_ifExpression ) ( ( ( '->' ) (f_nexts= r_ifExpression ) ) )* )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:291:2: (f_first= r_ifExpression ) ( ( ( '->' ) (f_nexts= r_ifExpression ) ) )*
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:251:2: (f_first= r_ifExpression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:251:3: f_first= r_ifExpression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:291:2: (f_first= r_ifExpression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:291:3: f_first= r_ifExpression
{
pushFollow(FOLLOW_r_ifExpression_in_r_chainExpression2289);
f_first=r_ifExpression();
@@ -5024,7 +5062,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:251:105: ( ( ( '->' ) (f_nexts= r_ifExpression ) ) )*
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:291:105: ( ( ( '->' ) (f_nexts= r_ifExpression ) ) )*
loop54:
do {
int alt54=2;
@@ -5037,13 +5075,13 @@ public class Xpand3NodeParser extends AbstractNodeParser {
switch (alt54) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:251:106: ( ( '->' ) (f_nexts= r_ifExpression ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:291:106: ( ( '->' ) (f_nexts= r_ifExpression ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:251:106: ( ( '->' ) (f_nexts= r_ifExpression ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:251:107: ( '->' ) (f_nexts= r_ifExpression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:291:106: ( ( '->' ) (f_nexts= r_ifExpression ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:291:107: ( '->' ) (f_nexts= r_ifExpression )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:251:107: ( '->' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:251:108: '->'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:291:107: ( '->' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:291:108: '->'
{
match(input,75,FOLLOW_75_in_r_chainExpression2297); if (failed) return cn;
if ( backtracking==0 ) {
@@ -5052,15 +5090,15 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:251:150: (f_nexts= r_ifExpression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:251:151: f_nexts= r_ifExpression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:291:150: (f_nexts= r_ifExpression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:291:151: f_nexts= r_ifExpression
{
pushFollow(FOLLOW_r_ifExpression_in_r_chainExpression2305);
f_nexts=r_ifExpression();
_fsp--;
if (failed) return cn;
if ( backtracking==0 ) {
- addToChildren(cn, f_nexts); ((ChainExpressionNode) cn).getNexts().add(f_nexts);
+ addToChildren(cn, f_nexts);((BasicEList<CompositeNode>)((ChainExpressionNode) cn).getNexts()).addUnique(f_nexts);
}
}
@@ -5081,7 +5119,9 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
if ( backtracking==0 ) {
- cn = normalize(cn);
+
+ cn = normalize(cn);
+
}
}
catch (RecognitionException re) {
@@ -5096,7 +5136,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_ifExpression
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:254:1: r_ifExpression returns [CompositeNode cn] : ( (f_condition0= r_switchExpression ) ( ( ( '?' ) (f_then= r_expression ) ( ':' ) (f_else= r_switchExpression ) ) )? | ( 'if' ) (f_condition1= r_expression ) ( 'then' ) (f_then= r_switchExpression ) ( ( ( 'else' ) (f_else= r_switchExpression ) ) )? );
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:294:1: r_ifExpression returns [CompositeNode cn] : ( (f_condition0= r_switchExpression ) ( ( ( '?' ) (f_then= r_expression ) ( ':' ) (f_else= r_switchExpression ) ) )? | ( 'if' ) (f_condition1= r_expression ) ( 'then' ) (f_then= r_switchExpression ) ( ( ( 'else' ) (f_else= r_switchExpression ) ) )? );
public CompositeNode r_ifExpression() throws RecognitionException {
CompositeNode cn = null;
@@ -5109,10 +5149,11 @@ public class Xpand3NodeParser extends AbstractNodeParser {
CompositeNode f_condition1 = null;
- cn = factory.createIfExpressionNode();
-
+
+ cn = factory.createIfExpressionNode();
+
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:258:2: ( (f_condition0= r_switchExpression ) ( ( ( '?' ) (f_then= r_expression ) ( ':' ) (f_else= r_switchExpression ) ) )? | ( 'if' ) (f_condition1= r_expression ) ( 'then' ) (f_then= r_switchExpression ) ( ( ( 'else' ) (f_else= r_switchExpression ) ) )? )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:301:2: ( (f_condition0= r_switchExpression ) ( ( ( '?' ) (f_then= r_expression ) ( ':' ) (f_else= r_switchExpression ) ) )? | ( 'if' ) (f_condition1= r_expression ) ( 'then' ) (f_then= r_switchExpression ) ( ( ( 'else' ) (f_else= r_switchExpression ) ) )? )
int alt57=2;
int LA57_0 = input.LA(1);
@@ -5125,16 +5166,16 @@ public class Xpand3NodeParser extends AbstractNodeParser {
else {
if (backtracking>0) {failed=true; return cn;}
NoViableAltException nvae =
- new NoViableAltException("254:1: r_ifExpression returns [CompositeNode cn] : ( (f_condition0= r_switchExpression ) ( ( ( '?' ) (f_then= r_expression ) ( ':' ) (f_else= r_switchExpression ) ) )? | ( 'if' ) (f_condition1= r_expression ) ( 'then' ) (f_then= r_switchExpression ) ( ( ( 'else' ) (f_else= r_switchExpression ) ) )? );", 57, 0, input);
+ new NoViableAltException("294:1: r_ifExpression returns [CompositeNode cn] : ( (f_condition0= r_switchExpression ) ( ( ( '?' ) (f_then= r_expression ) ( ':' ) (f_else= r_switchExpression ) ) )? | ( 'if' ) (f_condition1= r_expression ) ( 'then' ) (f_then= r_switchExpression ) ( ( ( 'else' ) (f_else= r_switchExpression ) ) )? );", 57, 0, input);
throw nvae;
}
switch (alt57) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:258:2: (f_condition0= r_switchExpression ) ( ( ( '?' ) (f_then= r_expression ) ( ':' ) (f_else= r_switchExpression ) ) )?
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:301:2: (f_condition0= r_switchExpression ) ( ( ( '?' ) (f_then= r_expression ) ( ':' ) (f_else= r_switchExpression ) ) )?
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:258:2: (f_condition0= r_switchExpression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:258:3: f_condition0= r_switchExpression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:301:2: (f_condition0= r_switchExpression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:301:3: f_condition0= r_switchExpression
{
pushFollow(FOLLOW_r_switchExpression_in_r_ifExpression2339);
f_condition0=r_switchExpression();
@@ -5146,7 +5187,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:258:126: ( ( ( '?' ) (f_then= r_expression ) ( ':' ) (f_else= r_switchExpression ) ) )?
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:301:126: ( ( ( '?' ) (f_then= r_expression ) ( ':' ) (f_else= r_switchExpression ) ) )?
int alt55=2;
int LA55_0 = input.LA(1);
@@ -5155,13 +5196,13 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
switch (alt55) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:258:127: ( ( '?' ) (f_then= r_expression ) ( ':' ) (f_else= r_switchExpression ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:301:127: ( ( '?' ) (f_then= r_expression ) ( ':' ) (f_else= r_switchExpression ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:258:127: ( ( '?' ) (f_then= r_expression ) ( ':' ) (f_else= r_switchExpression ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:258:128: ( '?' ) (f_then= r_expression ) ( ':' ) (f_else= r_switchExpression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:301:127: ( ( '?' ) (f_then= r_expression ) ( ':' ) (f_else= r_switchExpression ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:301:128: ( '?' ) (f_then= r_expression ) ( ':' ) (f_else= r_switchExpression )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:258:128: ( '?' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:258:129: '?'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:301:128: ( '?' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:301:129: '?'
{
match(input,76,FOLLOW_76_in_r_ifExpression2347); if (failed) return cn;
if ( backtracking==0 ) {
@@ -5170,8 +5211,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:258:170: (f_then= r_expression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:258:171: f_then= r_expression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:301:170: (f_then= r_expression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:301:171: f_then= r_expression
{
pushFollow(FOLLOW_r_expression_in_r_ifExpression2355);
f_then=r_expression();
@@ -5183,8 +5224,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:258:264: ( ':' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:258:265: ':'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:301:264: ( ':' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:301:265: ':'
{
match(input,62,FOLLOW_62_in_r_ifExpression2361); if (failed) return cn;
if ( backtracking==0 ) {
@@ -5193,8 +5234,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:258:306: (f_else= r_switchExpression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:258:307: f_else= r_switchExpression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:301:306: (f_else= r_switchExpression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:301:307: f_else= r_switchExpression
{
pushFollow(FOLLOW_r_switchExpression_in_r_ifExpression2369);
f_else=r_switchExpression();
@@ -5219,10 +5260,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 2 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:259:4: ( 'if' ) (f_condition1= r_expression ) ( 'then' ) (f_then= r_switchExpression ) ( ( ( 'else' ) (f_else= r_switchExpression ) ) )?
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:302:4: ( 'if' ) (f_condition1= r_expression ) ( 'then' ) (f_then= r_switchExpression ) ( ( ( 'else' ) (f_else= r_switchExpression ) ) )?
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:259:4: ( 'if' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:259:5: 'if'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:302:4: ( 'if' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:302:5: 'if'
{
match(input,60,FOLLOW_60_in_r_ifExpression2381); if (failed) return cn;
if ( backtracking==0 ) {
@@ -5231,8 +5272,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:259:47: (f_condition1= r_expression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:259:48: f_condition1= r_expression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:302:47: (f_condition1= r_expression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:302:48: f_condition1= r_expression
{
pushFollow(FOLLOW_r_expression_in_r_ifExpression2389);
f_condition1=r_expression();
@@ -5244,8 +5285,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:259:165: ( 'then' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:259:166: 'then'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:302:165: ( 'then' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:302:166: 'then'
{
match(input,77,FOLLOW_77_in_r_ifExpression2395); if (failed) return cn;
if ( backtracking==0 ) {
@@ -5254,8 +5295,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:259:210: (f_then= r_switchExpression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:259:211: f_then= r_switchExpression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:302:210: (f_then= r_switchExpression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:302:211: f_then= r_switchExpression
{
pushFollow(FOLLOW_r_switchExpression_in_r_ifExpression2403);
f_then=r_switchExpression();
@@ -5267,7 +5308,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:259:310: ( ( ( 'else' ) (f_else= r_switchExpression ) ) )?
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:302:310: ( ( ( 'else' ) (f_else= r_switchExpression ) ) )?
int alt56=2;
int LA56_0 = input.LA(1);
@@ -5276,13 +5317,13 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
switch (alt56) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:259:311: ( ( 'else' ) (f_else= r_switchExpression ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:302:311: ( ( 'else' ) (f_else= r_switchExpression ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:259:311: ( ( 'else' ) (f_else= r_switchExpression ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:259:312: ( 'else' ) (f_else= r_switchExpression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:302:311: ( ( 'else' ) (f_else= r_switchExpression ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:302:312: ( 'else' ) (f_else= r_switchExpression )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:259:312: ( 'else' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:259:313: 'else'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:302:312: ( 'else' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:302:313: 'else'
{
match(input,78,FOLLOW_78_in_r_ifExpression2411); if (failed) return cn;
if ( backtracking==0 ) {
@@ -5291,8 +5332,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:259:357: (f_else= r_switchExpression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:259:358: f_else= r_switchExpression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:302:357: (f_else= r_switchExpression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:302:358: f_else= r_switchExpression
{
pushFollow(FOLLOW_r_switchExpression_in_r_ifExpression2419);
f_else=r_switchExpression();
@@ -5319,7 +5360,9 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
if ( backtracking==0 ) {
- cn = normalize(cn);
+
+ cn = normalize(cn);
+
}
}
catch (RecognitionException re) {
@@ -5334,7 +5377,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_switchExpression
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:262:1: r_switchExpression returns [CompositeNode cn] : ( ( 'switch' ) ( ( ( '(' ) (f_expression= r_orExpression ) ( ')' ) ) )? ( '{' ) (f_cases= r_casePart )* ( 'default' ) ( ':' ) (f_default= r_orExpression ) ( '}' ) | (f_unnamed15= r_orExpression ) );
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:305:1: r_switchExpression returns [CompositeNode cn] : ( ( 'switch' ) ( ( ( '(' ) (f_expression= r_orExpression ) ( ')' ) ) )? ( '{' ) (f_cases= r_casePart )* ( 'default' ) ( ':' ) (f_default= r_orExpression ) ( '}' ) | (f_unnamed15= r_orExpression ) );
public CompositeNode r_switchExpression() throws RecognitionException {
CompositeNode cn = null;
@@ -5347,10 +5390,11 @@ public class Xpand3NodeParser extends AbstractNodeParser {
CompositeNode f_unnamed15 = null;
- cn = factory.createSwitchExpressionNode();
-
+
+ cn = factory.createSwitchExpressionNode();
+
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:266:2: ( ( 'switch' ) ( ( ( '(' ) (f_expression= r_orExpression ) ( ')' ) ) )? ( '{' ) (f_cases= r_casePart )* ( 'default' ) ( ':' ) (f_default= r_orExpression ) ( '}' ) | (f_unnamed15= r_orExpression ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:312:2: ( ( 'switch' ) ( ( ( '(' ) (f_expression= r_orExpression ) ( ')' ) ) )? ( '{' ) (f_cases= r_casePart )* ( 'default' ) ( ':' ) (f_default= r_orExpression ) ( '}' ) | (f_unnamed15= r_orExpression ) )
int alt60=2;
int LA60_0 = input.LA(1);
@@ -5363,16 +5407,16 @@ public class Xpand3NodeParser extends AbstractNodeParser {
else {
if (backtracking>0) {failed=true; return cn;}
NoViableAltException nvae =
- new NoViableAltException("262:1: r_switchExpression returns [CompositeNode cn] : ( ( 'switch' ) ( ( ( '(' ) (f_expression= r_orExpression ) ( ')' ) ) )? ( '{' ) (f_cases= r_casePart )* ( 'default' ) ( ':' ) (f_default= r_orExpression ) ( '}' ) | (f_unnamed15= r_orExpression ) );", 60, 0, input);
+ new NoViableAltException("305:1: r_switchExpression returns [CompositeNode cn] : ( ( 'switch' ) ( ( ( '(' ) (f_expression= r_orExpression ) ( ')' ) ) )? ( '{' ) (f_cases= r_casePart )* ( 'default' ) ( ':' ) (f_default= r_orExpression ) ( '}' ) | (f_unnamed15= r_orExpression ) );", 60, 0, input);
throw nvae;
}
switch (alt60) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:266:2: ( 'switch' ) ( ( ( '(' ) (f_expression= r_orExpression ) ( ')' ) ) )? ( '{' ) (f_cases= r_casePart )* ( 'default' ) ( ':' ) (f_default= r_orExpression ) ( '}' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:312:2: ( 'switch' ) ( ( ( '(' ) (f_expression= r_orExpression ) ( ')' ) ) )? ( '{' ) (f_cases= r_casePart )* ( 'default' ) ( ':' ) (f_default= r_orExpression ) ( '}' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:266:2: ( 'switch' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:266:3: 'switch'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:312:2: ( 'switch' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:312:3: 'switch'
{
match(input,79,FOLLOW_79_in_r_switchExpression2451); if (failed) return cn;
if ( backtracking==0 ) {
@@ -5381,7 +5425,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:266:49: ( ( ( '(' ) (f_expression= r_orExpression ) ( ')' ) ) )?
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:312:49: ( ( ( '(' ) (f_expression= r_orExpression ) ( ')' ) ) )?
int alt58=2;
int LA58_0 = input.LA(1);
@@ -5390,13 +5434,13 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
switch (alt58) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:266:50: ( ( '(' ) (f_expression= r_orExpression ) ( ')' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:312:50: ( ( '(' ) (f_expression= r_orExpression ) ( ')' ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:266:50: ( ( '(' ) (f_expression= r_orExpression ) ( ')' ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:266:51: ( '(' ) (f_expression= r_orExpression ) ( ')' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:312:50: ( ( '(' ) (f_expression= r_orExpression ) ( ')' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:312:51: ( '(' ) (f_expression= r_orExpression ) ( ')' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:266:51: ( '(' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:266:52: '('
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:312:51: ( '(' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:312:52: '('
{
match(input,31,FOLLOW_31_in_r_switchExpression2459); if (failed) return cn;
if ( backtracking==0 ) {
@@ -5405,8 +5449,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:266:93: (f_expression= r_orExpression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:266:94: f_expression= r_orExpression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:312:93: (f_expression= r_orExpression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:312:94: f_expression= r_orExpression
{
pushFollow(FOLLOW_r_orExpression_in_r_switchExpression2467);
f_expression=r_orExpression();
@@ -5418,8 +5462,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:266:217: ( ')' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:266:218: ')'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:312:217: ( ')' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:312:218: ')'
{
match(input,34,FOLLOW_34_in_r_switchExpression2473); if (failed) return cn;
if ( backtracking==0 ) {
@@ -5437,8 +5481,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:266:262: ( '{' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:266:263: '{'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:312:262: ( '{' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:312:263: '{'
{
match(input,80,FOLLOW_80_in_r_switchExpression2482); if (failed) return cn;
if ( backtracking==0 ) {
@@ -5447,7 +5491,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:266:304: (f_cases= r_casePart )*
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:312:304: (f_cases= r_casePart )*
loop59:
do {
int alt59=2;
@@ -5460,14 +5504,14 @@ public class Xpand3NodeParser extends AbstractNodeParser {
switch (alt59) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:266:305: f_cases= r_casePart
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:312:305: f_cases= r_casePart
{
pushFollow(FOLLOW_r_casePart_in_r_switchExpression2490);
f_cases=r_casePart();
_fsp--;
if (failed) return cn;
if ( backtracking==0 ) {
- addToChildren(cn, f_cases); ((SwitchExpressionNode) cn).getCases().add(f_cases);
+ addToChildren(cn, f_cases);((BasicEList<CompositeNode>)((SwitchExpressionNode) cn).getCases()).addUnique(f_cases);
}
}
@@ -5478,8 +5522,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
} while (true);
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:266:411: ( 'default' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:266:412: 'default'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:312:445: ( 'default' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:312:446: 'default'
{
match(input,81,FOLLOW_81_in_r_switchExpression2497); if (failed) return cn;
if ( backtracking==0 ) {
@@ -5488,8 +5532,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:266:459: ( ':' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:266:460: ':'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:312:493: ( ':' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:312:494: ':'
{
match(input,62,FOLLOW_62_in_r_switchExpression2503); if (failed) return cn;
if ( backtracking==0 ) {
@@ -5498,8 +5542,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:266:501: (f_default= r_orExpression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:266:502: f_default= r_orExpression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:312:535: (f_default= r_orExpression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:312:536: f_default= r_orExpression
{
pushFollow(FOLLOW_r_orExpression_in_r_switchExpression2511);
f_default=r_orExpression();
@@ -5511,8 +5555,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:266:613: ( '}' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:266:614: '}'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:312:647: ( '}' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:312:648: '}'
{
match(input,82,FOLLOW_82_in_r_switchExpression2517); if (failed) return cn;
if ( backtracking==0 ) {
@@ -5525,10 +5569,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 2 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:267:4: (f_unnamed15= r_orExpression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:313:4: (f_unnamed15= r_orExpression )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:267:4: (f_unnamed15= r_orExpression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:267:5: f_unnamed15= r_orExpression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:313:4: (f_unnamed15= r_orExpression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:313:5: f_unnamed15= r_orExpression
{
pushFollow(FOLLOW_r_orExpression_in_r_switchExpression2528);
f_unnamed15=r_orExpression();
@@ -5546,7 +5590,9 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
if ( backtracking==0 ) {
- cn = normalize(cn);
+
+ cn = normalize(cn);
+
}
}
catch (RecognitionException re) {
@@ -5561,7 +5607,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_casePart
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:270:1: r_casePart returns [CompositeNode cn] : ( 'case' ) (f_condition= r_expression ) ( ':' ) (f_expression= r_expression ) ;
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:316:1: r_casePart returns [CompositeNode cn] : ( 'case' ) (f_condition= r_expression ) ( ':' ) (f_expression= r_expression ) ;
public CompositeNode r_casePart() throws RecognitionException {
CompositeNode cn = null;
@@ -5570,14 +5616,15 @@ public class Xpand3NodeParser extends AbstractNodeParser {
CompositeNode f_expression = null;
- cn = factory.createCasePartNode();
-
+
+ cn = factory.createCasePartNode();
+
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:273:2: ( ( 'case' ) (f_condition= r_expression ) ( ':' ) (f_expression= r_expression ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:273:2: ( 'case' ) (f_condition= r_expression ) ( ':' ) (f_expression= r_expression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:320:2: ( ( 'case' ) (f_condition= r_expression ) ( ':' ) (f_expression= r_expression ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:320:2: ( 'case' ) (f_condition= r_expression ) ( ':' ) (f_expression= r_expression )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:273:2: ( 'case' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:273:3: 'case'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:320:2: ( 'case' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:320:3: 'case'
{
match(input,83,FOLLOW_83_in_r_casePart2552); if (failed) return cn;
if ( backtracking==0 ) {
@@ -5586,8 +5633,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:273:47: (f_condition= r_expression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:273:48: f_condition= r_expression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:320:47: (f_condition= r_expression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:320:48: f_condition= r_expression
{
pushFollow(FOLLOW_r_expression_in_r_casePart2560);
f_condition=r_expression();
@@ -5599,8 +5646,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:273:157: ( ':' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:273:158: ':'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:320:157: ( ':' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:320:158: ':'
{
match(input,62,FOLLOW_62_in_r_casePart2566); if (failed) return cn;
if ( backtracking==0 ) {
@@ -5609,8 +5656,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:273:199: (f_expression= r_expression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:273:200: f_expression= r_expression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:320:199: (f_expression= r_expression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:320:200: f_expression= r_expression
{
pushFollow(FOLLOW_r_expression_in_r_casePart2574);
f_expression=r_expression();
@@ -5638,7 +5685,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_orExpression
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:276:1: r_orExpression returns [CompositeNode cn] : (f_first= r_andExpression ) ( ( ( '||' ) (f_nexts= r_andExpression ) ) )* ;
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:323:1: r_orExpression returns [CompositeNode cn] : (f_first= r_andExpression ) ( ( ( '||' ) (f_nexts= r_andExpression ) ) )* ;
public CompositeNode r_orExpression() throws RecognitionException {
CompositeNode cn = null;
@@ -5647,14 +5694,15 @@ public class Xpand3NodeParser extends AbstractNodeParser {
CompositeNode f_nexts = null;
- cn = factory.createOrExpressionNode();
-
+
+ cn = factory.createOrExpressionNode();
+
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:280:2: ( (f_first= r_andExpression ) ( ( ( '||' ) (f_nexts= r_andExpression ) ) )* )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:280:2: (f_first= r_andExpression ) ( ( ( '||' ) (f_nexts= r_andExpression ) ) )*
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:330:2: ( (f_first= r_andExpression ) ( ( ( '||' ) (f_nexts= r_andExpression ) ) )* )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:330:2: (f_first= r_andExpression ) ( ( ( '||' ) (f_nexts= r_andExpression ) ) )*
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:280:2: (f_first= r_andExpression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:280:3: f_first= r_andExpression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:330:2: (f_first= r_andExpression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:330:3: f_first= r_andExpression
{
pushFollow(FOLLOW_r_andExpression_in_r_orExpression2605);
f_first=r_andExpression();
@@ -5666,7 +5714,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:280:103: ( ( ( '||' ) (f_nexts= r_andExpression ) ) )*
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:330:103: ( ( ( '||' ) (f_nexts= r_andExpression ) ) )*
loop61:
do {
int alt61=2;
@@ -5679,13 +5727,13 @@ public class Xpand3NodeParser extends AbstractNodeParser {
switch (alt61) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:280:104: ( ( '||' ) (f_nexts= r_andExpression ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:330:104: ( ( '||' ) (f_nexts= r_andExpression ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:280:104: ( ( '||' ) (f_nexts= r_andExpression ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:280:105: ( '||' ) (f_nexts= r_andExpression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:330:104: ( ( '||' ) (f_nexts= r_andExpression ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:330:105: ( '||' ) (f_nexts= r_andExpression )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:280:105: ( '||' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:280:106: '||'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:330:105: ( '||' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:330:106: '||'
{
match(input,84,FOLLOW_84_in_r_orExpression2613); if (failed) return cn;
if ( backtracking==0 ) {
@@ -5694,15 +5742,15 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:280:148: (f_nexts= r_andExpression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:280:149: f_nexts= r_andExpression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:330:148: (f_nexts= r_andExpression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:330:149: f_nexts= r_andExpression
{
pushFollow(FOLLOW_r_andExpression_in_r_orExpression2621);
f_nexts=r_andExpression();
_fsp--;
if (failed) return cn;
if ( backtracking==0 ) {
- addToChildren(cn, f_nexts); ((OrExpressionNode) cn).getNexts().add(f_nexts);
+ addToChildren(cn, f_nexts);((BasicEList<CompositeNode>)((OrExpressionNode) cn).getNexts()).addUnique(f_nexts);
}
}
@@ -5723,7 +5771,9 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
if ( backtracking==0 ) {
- cn = normalize(cn);
+
+ cn = normalize(cn);
+
}
}
catch (RecognitionException re) {
@@ -5738,7 +5788,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_andExpression
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:283:1: r_andExpression returns [CompositeNode cn] : (f_first= r_impliesExpression ) ( ( ( '&&' ) (f_nexts= r_impliesExpression ) ) )* ;
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:333:1: r_andExpression returns [CompositeNode cn] : (f_first= r_impliesExpression ) ( ( ( '&&' ) (f_nexts= r_impliesExpression ) ) )* ;
public CompositeNode r_andExpression() throws RecognitionException {
CompositeNode cn = null;
@@ -5747,14 +5797,15 @@ public class Xpand3NodeParser extends AbstractNodeParser {
CompositeNode f_nexts = null;
- cn = factory.createAndExpressionNode();
-
+
+ cn = factory.createAndExpressionNode();
+
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:287:2: ( (f_first= r_impliesExpression ) ( ( ( '&&' ) (f_nexts= r_impliesExpression ) ) )* )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:287:2: (f_first= r_impliesExpression ) ( ( ( '&&' ) (f_nexts= r_impliesExpression ) ) )*
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:340:2: ( (f_first= r_impliesExpression ) ( ( ( '&&' ) (f_nexts= r_impliesExpression ) ) )* )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:340:2: (f_first= r_impliesExpression ) ( ( ( '&&' ) (f_nexts= r_impliesExpression ) ) )*
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:287:2: (f_first= r_impliesExpression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:287:3: f_first= r_impliesExpression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:340:2: (f_first= r_impliesExpression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:340:3: f_first= r_impliesExpression
{
pushFollow(FOLLOW_r_impliesExpression_in_r_andExpression2655);
f_first=r_impliesExpression();
@@ -5766,7 +5817,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:287:108: ( ( ( '&&' ) (f_nexts= r_impliesExpression ) ) )*
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:340:108: ( ( ( '&&' ) (f_nexts= r_impliesExpression ) ) )*
loop62:
do {
int alt62=2;
@@ -5779,13 +5830,13 @@ public class Xpand3NodeParser extends AbstractNodeParser {
switch (alt62) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:287:109: ( ( '&&' ) (f_nexts= r_impliesExpression ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:340:109: ( ( '&&' ) (f_nexts= r_impliesExpression ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:287:109: ( ( '&&' ) (f_nexts= r_impliesExpression ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:287:110: ( '&&' ) (f_nexts= r_impliesExpression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:340:109: ( ( '&&' ) (f_nexts= r_impliesExpression ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:340:110: ( '&&' ) (f_nexts= r_impliesExpression )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:287:110: ( '&&' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:287:111: '&&'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:340:110: ( '&&' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:340:111: '&&'
{
match(input,85,FOLLOW_85_in_r_andExpression2663); if (failed) return cn;
if ( backtracking==0 ) {
@@ -5794,15 +5845,15 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:287:153: (f_nexts= r_impliesExpression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:287:154: f_nexts= r_impliesExpression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:340:153: (f_nexts= r_impliesExpression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:340:154: f_nexts= r_impliesExpression
{
pushFollow(FOLLOW_r_impliesExpression_in_r_andExpression2671);
f_nexts=r_impliesExpression();
_fsp--;
if (failed) return cn;
if ( backtracking==0 ) {
- addToChildren(cn, f_nexts); ((AndExpressionNode) cn).getNexts().add(f_nexts);
+ addToChildren(cn, f_nexts);((BasicEList<CompositeNode>)((AndExpressionNode) cn).getNexts()).addUnique(f_nexts);
}
}
@@ -5823,7 +5874,9 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
if ( backtracking==0 ) {
- cn = normalize(cn);
+
+ cn = normalize(cn);
+
}
}
catch (RecognitionException re) {
@@ -5838,7 +5891,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_impliesExpression
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:290:1: r_impliesExpression returns [CompositeNode cn] : (f_first= r_relationalExpression ) ( ( ( 'implies' ) (f_nexts= r_relationalExpression ) ) )* ;
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:343:1: r_impliesExpression returns [CompositeNode cn] : (f_first= r_relationalExpression ) ( ( ( 'implies' ) (f_nexts= r_relationalExpression ) ) )* ;
public CompositeNode r_impliesExpression() throws RecognitionException {
CompositeNode cn = null;
@@ -5847,14 +5900,15 @@ public class Xpand3NodeParser extends AbstractNodeParser {
CompositeNode f_nexts = null;
- cn = factory.createImpliesExpressionNode();
-
+
+ cn = factory.createImpliesExpressionNode();
+
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:294:2: ( (f_first= r_relationalExpression ) ( ( ( 'implies' ) (f_nexts= r_relationalExpression ) ) )* )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:294:2: (f_first= r_relationalExpression ) ( ( ( 'implies' ) (f_nexts= r_relationalExpression ) ) )*
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:350:2: ( (f_first= r_relationalExpression ) ( ( ( 'implies' ) (f_nexts= r_relationalExpression ) ) )* )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:350:2: (f_first= r_relationalExpression ) ( ( ( 'implies' ) (f_nexts= r_relationalExpression ) ) )*
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:294:2: (f_first= r_relationalExpression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:294:3: f_first= r_relationalExpression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:350:2: (f_first= r_relationalExpression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:350:3: f_first= r_relationalExpression
{
pushFollow(FOLLOW_r_relationalExpression_in_r_impliesExpression2705);
f_first=r_relationalExpression();
@@ -5866,7 +5920,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:294:115: ( ( ( 'implies' ) (f_nexts= r_relationalExpression ) ) )*
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:350:115: ( ( ( 'implies' ) (f_nexts= r_relationalExpression ) ) )*
loop63:
do {
int alt63=2;
@@ -5879,13 +5933,13 @@ public class Xpand3NodeParser extends AbstractNodeParser {
switch (alt63) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:294:116: ( ( 'implies' ) (f_nexts= r_relationalExpression ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:350:116: ( ( 'implies' ) (f_nexts= r_relationalExpression ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:294:116: ( ( 'implies' ) (f_nexts= r_relationalExpression ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:294:117: ( 'implies' ) (f_nexts= r_relationalExpression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:350:116: ( ( 'implies' ) (f_nexts= r_relationalExpression ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:350:117: ( 'implies' ) (f_nexts= r_relationalExpression )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:294:117: ( 'implies' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:294:118: 'implies'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:350:117: ( 'implies' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:350:118: 'implies'
{
match(input,86,FOLLOW_86_in_r_impliesExpression2713); if (failed) return cn;
if ( backtracking==0 ) {
@@ -5894,15 +5948,15 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:294:165: (f_nexts= r_relationalExpression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:294:166: f_nexts= r_relationalExpression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:350:165: (f_nexts= r_relationalExpression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:350:166: f_nexts= r_relationalExpression
{
pushFollow(FOLLOW_r_relationalExpression_in_r_impliesExpression2721);
f_nexts=r_relationalExpression();
_fsp--;
if (failed) return cn;
if ( backtracking==0 ) {
- addToChildren(cn, f_nexts); ((ImpliesExpressionNode) cn).getNexts().add(f_nexts);
+ addToChildren(cn, f_nexts);((BasicEList<CompositeNode>)((ImpliesExpressionNode) cn).getNexts()).addUnique(f_nexts);
}
}
@@ -5923,7 +5977,9 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
if ( backtracking==0 ) {
- cn = normalize(cn);
+
+ cn = normalize(cn);
+
}
}
catch (RecognitionException re) {
@@ -5938,7 +5994,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_relationalExpression
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:297:1: r_relationalExpression returns [CompositeNode cn] : (f_first= r_additiveExpression ) ( ( ( ( ( '==' ) | ( '!=' ) | ( '>=' ) | ( '<=' ) | ( '>' ) | ( '<' ) ) ) (f_nexts= r_additiveExpression ) ) )* ;
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:353:1: r_relationalExpression returns [CompositeNode cn] : (f_first= r_additiveExpression ) ( ( ( ( ( '==' ) | ( '!=' ) | ( '>=' ) | ( '<=' ) | ( '>' ) | ( '<' ) ) ) (f_nexts= r_additiveExpression ) ) )* ;
public CompositeNode r_relationalExpression() throws RecognitionException {
CompositeNode cn = null;
@@ -5947,14 +6003,15 @@ public class Xpand3NodeParser extends AbstractNodeParser {
CompositeNode f_nexts = null;
- cn = factory.createRelationalExpressionNode();
-
+
+ cn = factory.createRelationalExpressionNode();
+
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:301:2: ( (f_first= r_additiveExpression ) ( ( ( ( ( '==' ) | ( '!=' ) | ( '>=' ) | ( '<=' ) | ( '>' ) | ( '<' ) ) ) (f_nexts= r_additiveExpression ) ) )* )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:301:2: (f_first= r_additiveExpression ) ( ( ( ( ( '==' ) | ( '!=' ) | ( '>=' ) | ( '<=' ) | ( '>' ) | ( '<' ) ) ) (f_nexts= r_additiveExpression ) ) )*
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:360:2: ( (f_first= r_additiveExpression ) ( ( ( ( ( '==' ) | ( '!=' ) | ( '>=' ) | ( '<=' ) | ( '>' ) | ( '<' ) ) ) (f_nexts= r_additiveExpression ) ) )* )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:360:2: (f_first= r_additiveExpression ) ( ( ( ( ( '==' ) | ( '!=' ) | ( '>=' ) | ( '<=' ) | ( '>' ) | ( '<' ) ) ) (f_nexts= r_additiveExpression ) ) )*
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:301:2: (f_first= r_additiveExpression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:301:3: f_first= r_additiveExpression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:360:2: (f_first= r_additiveExpression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:360:3: f_first= r_additiveExpression
{
pushFollow(FOLLOW_r_additiveExpression_in_r_relationalExpression2755);
f_first=r_additiveExpression();
@@ -5966,7 +6023,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:301:116: ( ( ( ( ( '==' ) | ( '!=' ) | ( '>=' ) | ( '<=' ) | ( '>' ) | ( '<' ) ) ) (f_nexts= r_additiveExpression ) ) )*
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:360:116: ( ( ( ( ( '==' ) | ( '!=' ) | ( '>=' ) | ( '<=' ) | ( '>' ) | ( '<' ) ) ) (f_nexts= r_additiveExpression ) ) )*
loop65:
do {
int alt65=2;
@@ -5979,15 +6036,15 @@ public class Xpand3NodeParser extends AbstractNodeParser {
switch (alt65) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:301:117: ( ( ( ( '==' ) | ( '!=' ) | ( '>=' ) | ( '<=' ) | ( '>' ) | ( '<' ) ) ) (f_nexts= r_additiveExpression ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:360:117: ( ( ( ( '==' ) | ( '!=' ) | ( '>=' ) | ( '<=' ) | ( '>' ) | ( '<' ) ) ) (f_nexts= r_additiveExpression ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:301:117: ( ( ( ( '==' ) | ( '!=' ) | ( '>=' ) | ( '<=' ) | ( '>' ) | ( '<' ) ) ) (f_nexts= r_additiveExpression ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:301:118: ( ( ( '==' ) | ( '!=' ) | ( '>=' ) | ( '<=' ) | ( '>' ) | ( '<' ) ) ) (f_nexts= r_additiveExpression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:360:117: ( ( ( ( '==' ) | ( '!=' ) | ( '>=' ) | ( '<=' ) | ( '>' ) | ( '<' ) ) ) (f_nexts= r_additiveExpression ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:360:118: ( ( ( '==' ) | ( '!=' ) | ( '>=' ) | ( '<=' ) | ( '>' ) | ( '<' ) ) ) (f_nexts= r_additiveExpression )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:301:118: ( ( ( '==' ) | ( '!=' ) | ( '>=' ) | ( '<=' ) | ( '>' ) | ( '<' ) ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:301:119: ( ( '==' ) | ( '!=' ) | ( '>=' ) | ( '<=' ) | ( '>' ) | ( '<' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:360:118: ( ( ( '==' ) | ( '!=' ) | ( '>=' ) | ( '<=' ) | ( '>' ) | ( '<' ) ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:360:119: ( ( '==' ) | ( '!=' ) | ( '>=' ) | ( '<=' ) | ( '>' ) | ( '<' ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:301:119: ( ( '==' ) | ( '!=' ) | ( '>=' ) | ( '<=' ) | ( '>' ) | ( '<' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:360:119: ( ( '==' ) | ( '!=' ) | ( '>=' ) | ( '<=' ) | ( '>' ) | ( '<' ) )
int alt64=6;
switch ( input.LA(1) ) {
case 87:
@@ -6023,17 +6080,17 @@ public class Xpand3NodeParser extends AbstractNodeParser {
default:
if (backtracking>0) {failed=true; return cn;}
NoViableAltException nvae =
- new NoViableAltException("301:119: ( ( '==' ) | ( '!=' ) | ( '>=' ) | ( '<=' ) | ( '>' ) | ( '<' ) )", 64, 0, input);
+ new NoViableAltException("360:119: ( ( '==' ) | ( '!=' ) | ( '>=' ) | ( '<=' ) | ( '>' ) | ( '<' ) )", 64, 0, input);
throw nvae;
}
switch (alt64) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:301:120: ( '==' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:360:120: ( '==' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:301:120: ( '==' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:301:121: '=='
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:360:120: ( '==' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:360:121: '=='
{
match(input,87,FOLLOW_87_in_r_relationalExpression2765); if (failed) return cn;
if ( backtracking==0 ) {
@@ -6046,10 +6103,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 2 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:302:4: ( '!=' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:361:4: ( '!=' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:302:4: ( '!=' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:302:5: '!='
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:361:4: ( '!=' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:361:5: '!='
{
match(input,88,FOLLOW_88_in_r_relationalExpression2774); if (failed) return cn;
if ( backtracking==0 ) {
@@ -6062,10 +6119,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 3 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:303:4: ( '>=' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:362:4: ( '>=' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:303:4: ( '>=' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:303:5: '>='
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:362:4: ( '>=' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:362:5: '>='
{
match(input,89,FOLLOW_89_in_r_relationalExpression2783); if (failed) return cn;
if ( backtracking==0 ) {
@@ -6078,10 +6135,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 4 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:304:4: ( '<=' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:363:4: ( '<=' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:304:4: ( '<=' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:304:5: '<='
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:363:4: ( '<=' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:363:5: '<='
{
match(input,90,FOLLOW_90_in_r_relationalExpression2792); if (failed) return cn;
if ( backtracking==0 ) {
@@ -6094,10 +6151,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 5 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:305:4: ( '>' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:364:4: ( '>' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:305:4: ( '>' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:305:5: '>'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:364:4: ( '>' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:364:5: '>'
{
match(input,91,FOLLOW_91_in_r_relationalExpression2801); if (failed) return cn;
if ( backtracking==0 ) {
@@ -6110,10 +6167,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 6 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:306:4: ( '<' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:365:4: ( '<' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:306:4: ( '<' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:306:5: '<'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:365:4: ( '<' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:365:5: '<'
{
match(input,92,FOLLOW_92_in_r_relationalExpression2810); if (failed) return cn;
if ( backtracking==0 ) {
@@ -6131,15 +6188,15 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:306:48: (f_nexts= r_additiveExpression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:306:49: f_nexts= r_additiveExpression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:365:48: (f_nexts= r_additiveExpression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:365:49: f_nexts= r_additiveExpression
{
pushFollow(FOLLOW_r_additiveExpression_in_r_relationalExpression2820);
f_nexts=r_additiveExpression();
_fsp--;
if (failed) return cn;
if ( backtracking==0 ) {
- addToChildren(cn, f_nexts); ((RelationalExpressionNode) cn).getNexts().add(f_nexts);
+ addToChildren(cn, f_nexts);((BasicEList<CompositeNode>)((RelationalExpressionNode) cn).getNexts()).addUnique(f_nexts);
}
}
@@ -6160,7 +6217,9 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
if ( backtracking==0 ) {
- cn = normalize(cn);
+
+ cn = normalize(cn);
+
}
}
catch (RecognitionException re) {
@@ -6175,7 +6234,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_additiveExpression
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:309:1: r_additiveExpression returns [CompositeNode cn] : (f_first= r_multiplicativeExpression ) ( ( ( ( ( '+' ) | ( '-' ) ) ) (f_nexts= r_multiplicativeExpression ) ) )* ;
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:368:1: r_additiveExpression returns [CompositeNode cn] : (f_first= r_multiplicativeExpression ) ( ( ( ( ( '+' ) | ( '-' ) ) ) (f_nexts= r_multiplicativeExpression ) ) )* ;
public CompositeNode r_additiveExpression() throws RecognitionException {
CompositeNode cn = null;
@@ -6184,14 +6243,15 @@ public class Xpand3NodeParser extends AbstractNodeParser {
CompositeNode f_nexts = null;
- cn = factory.createAdditiveExpressionNode();
-
+
+ cn = factory.createAdditiveExpressionNode();
+
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:313:2: ( (f_first= r_multiplicativeExpression ) ( ( ( ( ( '+' ) | ( '-' ) ) ) (f_nexts= r_multiplicativeExpression ) ) )* )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:313:2: (f_first= r_multiplicativeExpression ) ( ( ( ( ( '+' ) | ( '-' ) ) ) (f_nexts= r_multiplicativeExpression ) ) )*
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:375:2: ( (f_first= r_multiplicativeExpression ) ( ( ( ( ( '+' ) | ( '-' ) ) ) (f_nexts= r_multiplicativeExpression ) ) )* )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:375:2: (f_first= r_multiplicativeExpression ) ( ( ( ( ( '+' ) | ( '-' ) ) ) (f_nexts= r_multiplicativeExpression ) ) )*
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:313:2: (f_first= r_multiplicativeExpression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:313:3: f_first= r_multiplicativeExpression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:375:2: (f_first= r_multiplicativeExpression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:375:3: f_first= r_multiplicativeExpression
{
pushFollow(FOLLOW_r_multiplicativeExpression_in_r_additiveExpression2854);
f_first=r_multiplicativeExpression();
@@ -6203,7 +6263,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:313:120: ( ( ( ( ( '+' ) | ( '-' ) ) ) (f_nexts= r_multiplicativeExpression ) ) )*
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:375:120: ( ( ( ( ( '+' ) | ( '-' ) ) ) (f_nexts= r_multiplicativeExpression ) ) )*
loop67:
do {
int alt67=2;
@@ -6225,15 +6285,15 @@ public class Xpand3NodeParser extends AbstractNodeParser {
switch (alt67) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:313:121: ( ( ( ( '+' ) | ( '-' ) ) ) (f_nexts= r_multiplicativeExpression ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:375:121: ( ( ( ( '+' ) | ( '-' ) ) ) (f_nexts= r_multiplicativeExpression ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:313:121: ( ( ( ( '+' ) | ( '-' ) ) ) (f_nexts= r_multiplicativeExpression ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:313:122: ( ( ( '+' ) | ( '-' ) ) ) (f_nexts= r_multiplicativeExpression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:375:121: ( ( ( ( '+' ) | ( '-' ) ) ) (f_nexts= r_multiplicativeExpression ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:375:122: ( ( ( '+' ) | ( '-' ) ) ) (f_nexts= r_multiplicativeExpression )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:313:122: ( ( ( '+' ) | ( '-' ) ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:313:123: ( ( '+' ) | ( '-' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:375:122: ( ( ( '+' ) | ( '-' ) ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:375:123: ( ( '+' ) | ( '-' ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:313:123: ( ( '+' ) | ( '-' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:375:123: ( ( '+' ) | ( '-' ) )
int alt66=2;
int LA66_0 = input.LA(1);
@@ -6246,16 +6306,16 @@ public class Xpand3NodeParser extends AbstractNodeParser {
else {
if (backtracking>0) {failed=true; return cn;}
NoViableAltException nvae =
- new NoViableAltException("313:123: ( ( '+' ) | ( '-' ) )", 66, 0, input);
+ new NoViableAltException("375:123: ( ( '+' ) | ( '-' ) )", 66, 0, input);
throw nvae;
}
switch (alt66) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:313:124: ( '+' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:375:124: ( '+' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:313:124: ( '+' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:313:125: '+'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:375:124: ( '+' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:375:125: '+'
{
match(input,93,FOLLOW_93_in_r_additiveExpression2864); if (failed) return cn;
if ( backtracking==0 ) {
@@ -6268,10 +6328,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 2 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:314:4: ( '-' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:376:4: ( '-' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:314:4: ( '-' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:314:5: '-'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:376:4: ( '-' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:376:5: '-'
{
match(input,36,FOLLOW_36_in_r_additiveExpression2873); if (failed) return cn;
if ( backtracking==0 ) {
@@ -6289,15 +6349,15 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:314:48: (f_nexts= r_multiplicativeExpression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:314:49: f_nexts= r_multiplicativeExpression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:376:48: (f_nexts= r_multiplicativeExpression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:376:49: f_nexts= r_multiplicativeExpression
{
pushFollow(FOLLOW_r_multiplicativeExpression_in_r_additiveExpression2883);
f_nexts=r_multiplicativeExpression();
_fsp--;
if (failed) return cn;
if ( backtracking==0 ) {
- addToChildren(cn, f_nexts); ((AdditiveExpressionNode) cn).getNexts().add(f_nexts);
+ addToChildren(cn, f_nexts);((BasicEList<CompositeNode>)((AdditiveExpressionNode) cn).getNexts()).addUnique(f_nexts);
}
}
@@ -6318,7 +6378,9 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
if ( backtracking==0 ) {
- cn = normalize(cn);
+
+ cn = normalize(cn);
+
}
}
catch (RecognitionException re) {
@@ -6333,7 +6395,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_multiplicativeExpression
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:317:1: r_multiplicativeExpression returns [CompositeNode cn] : (f_first= r_unaryExpression ) ( ( ( ( ( '*' ) | ( '/' ) ) ) (f_nexts= r_unaryExpression ) ) )* ;
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:379:1: r_multiplicativeExpression returns [CompositeNode cn] : (f_first= r_unaryExpression ) ( ( ( ( ( '*' ) | ( '/' ) ) ) (f_nexts= r_unaryExpression ) ) )* ;
public CompositeNode r_multiplicativeExpression() throws RecognitionException {
CompositeNode cn = null;
@@ -6342,14 +6404,15 @@ public class Xpand3NodeParser extends AbstractNodeParser {
CompositeNode f_nexts = null;
- cn = factory.createMultiplicativeExpressionNode();
-
+
+ cn = factory.createMultiplicativeExpressionNode();
+
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:321:2: ( (f_first= r_unaryExpression ) ( ( ( ( ( '*' ) | ( '/' ) ) ) (f_nexts= r_unaryExpression ) ) )* )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:321:2: (f_first= r_unaryExpression ) ( ( ( ( ( '*' ) | ( '/' ) ) ) (f_nexts= r_unaryExpression ) ) )*
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:386:2: ( (f_first= r_unaryExpression ) ( ( ( ( ( '*' ) | ( '/' ) ) ) (f_nexts= r_unaryExpression ) ) )* )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:386:2: (f_first= r_unaryExpression ) ( ( ( ( ( '*' ) | ( '/' ) ) ) (f_nexts= r_unaryExpression ) ) )*
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:321:2: (f_first= r_unaryExpression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:321:3: f_first= r_unaryExpression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:386:2: (f_first= r_unaryExpression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:386:3: f_first= r_unaryExpression
{
pushFollow(FOLLOW_r_unaryExpression_in_r_multiplicativeExpression2917);
f_first=r_unaryExpression();
@@ -6361,7 +6424,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:321:117: ( ( ( ( ( '*' ) | ( '/' ) ) ) (f_nexts= r_unaryExpression ) ) )*
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:386:117: ( ( ( ( ( '*' ) | ( '/' ) ) ) (f_nexts= r_unaryExpression ) ) )*
loop69:
do {
int alt69=2;
@@ -6374,15 +6437,15 @@ public class Xpand3NodeParser extends AbstractNodeParser {
switch (alt69) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:321:118: ( ( ( ( '*' ) | ( '/' ) ) ) (f_nexts= r_unaryExpression ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:386:118: ( ( ( ( '*' ) | ( '/' ) ) ) (f_nexts= r_unaryExpression ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:321:118: ( ( ( ( '*' ) | ( '/' ) ) ) (f_nexts= r_unaryExpression ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:321:119: ( ( ( '*' ) | ( '/' ) ) ) (f_nexts= r_unaryExpression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:386:118: ( ( ( ( '*' ) | ( '/' ) ) ) (f_nexts= r_unaryExpression ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:386:119: ( ( ( '*' ) | ( '/' ) ) ) (f_nexts= r_unaryExpression )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:321:119: ( ( ( '*' ) | ( '/' ) ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:321:120: ( ( '*' ) | ( '/' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:386:119: ( ( ( '*' ) | ( '/' ) ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:386:120: ( ( '*' ) | ( '/' ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:321:120: ( ( '*' ) | ( '/' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:386:120: ( ( '*' ) | ( '/' ) )
int alt68=2;
int LA68_0 = input.LA(1);
@@ -6395,16 +6458,16 @@ public class Xpand3NodeParser extends AbstractNodeParser {
else {
if (backtracking>0) {failed=true; return cn;}
NoViableAltException nvae =
- new NoViableAltException("321:120: ( ( '*' ) | ( '/' ) )", 68, 0, input);
+ new NoViableAltException("386:120: ( ( '*' ) | ( '/' ) )", 68, 0, input);
throw nvae;
}
switch (alt68) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:321:121: ( '*' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:386:121: ( '*' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:321:121: ( '*' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:321:122: '*'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:386:121: ( '*' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:386:122: '*'
{
match(input,33,FOLLOW_33_in_r_multiplicativeExpression2927); if (failed) return cn;
if ( backtracking==0 ) {
@@ -6417,10 +6480,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 2 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:322:4: ( '/' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:387:4: ( '/' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:322:4: ( '/' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:322:5: '/'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:387:4: ( '/' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:387:5: '/'
{
match(input,94,FOLLOW_94_in_r_multiplicativeExpression2936); if (failed) return cn;
if ( backtracking==0 ) {
@@ -6438,15 +6501,15 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:322:48: (f_nexts= r_unaryExpression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:322:49: f_nexts= r_unaryExpression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:387:48: (f_nexts= r_unaryExpression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:387:49: f_nexts= r_unaryExpression
{
pushFollow(FOLLOW_r_unaryExpression_in_r_multiplicativeExpression2946);
f_nexts=r_unaryExpression();
_fsp--;
if (failed) return cn;
if ( backtracking==0 ) {
- addToChildren(cn, f_nexts); ((MultiplicativeExpressionNode) cn).getNexts().add(f_nexts);
+ addToChildren(cn, f_nexts);((BasicEList<CompositeNode>)((MultiplicativeExpressionNode) cn).getNexts()).addUnique(f_nexts);
}
}
@@ -6467,7 +6530,9 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
if ( backtracking==0 ) {
- cn = normalize(cn);
+
+ cn = normalize(cn);
+
}
}
catch (RecognitionException re) {
@@ -6482,7 +6547,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_unaryExpression
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:325:1: r_unaryExpression returns [CompositeNode cn] : ( (f_unnamed16= r_infixExpression ) | ( '!' ) (f_operand= r_infixExpression ) | ( '-' ) (f_operand= r_infixExpression ) );
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:390:1: r_unaryExpression returns [CompositeNode cn] : ( (f_unnamed16= r_infixExpression ) | ( '!' ) (f_operand= r_infixExpression ) | ( '-' ) (f_operand= r_infixExpression ) );
public CompositeNode r_unaryExpression() throws RecognitionException {
CompositeNode cn = null;
@@ -6491,10 +6556,11 @@ public class Xpand3NodeParser extends AbstractNodeParser {
CompositeNode f_operand = null;
- cn = factory.createUnaryExpressionNode();
-
+
+ cn = factory.createUnaryExpressionNode();
+
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:329:2: ( (f_unnamed16= r_infixExpression ) | ( '!' ) (f_operand= r_infixExpression ) | ( '-' ) (f_operand= r_infixExpression ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:397:2: ( (f_unnamed16= r_infixExpression ) | ( '!' ) (f_operand= r_infixExpression ) | ( '-' ) (f_operand= r_infixExpression ) )
int alt70=3;
switch ( input.LA(1) ) {
case StringLiteral:
@@ -6536,17 +6602,17 @@ public class Xpand3NodeParser extends AbstractNodeParser {
default:
if (backtracking>0) {failed=true; return cn;}
NoViableAltException nvae =
- new NoViableAltException("325:1: r_unaryExpression returns [CompositeNode cn] : ( (f_unnamed16= r_infixExpression ) | ( '!' ) (f_operand= r_infixExpression ) | ( '-' ) (f_operand= r_infixExpression ) );", 70, 0, input);
+ new NoViableAltException("390:1: r_unaryExpression returns [CompositeNode cn] : ( (f_unnamed16= r_infixExpression ) | ( '!' ) (f_operand= r_infixExpression ) | ( '-' ) (f_operand= r_infixExpression ) );", 70, 0, input);
throw nvae;
}
switch (alt70) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:329:2: (f_unnamed16= r_infixExpression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:397:2: (f_unnamed16= r_infixExpression )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:329:2: (f_unnamed16= r_infixExpression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:329:3: f_unnamed16= r_infixExpression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:397:2: (f_unnamed16= r_infixExpression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:397:3: f_unnamed16= r_infixExpression
{
pushFollow(FOLLOW_r_infixExpression_in_r_unaryExpression2980);
f_unnamed16=r_infixExpression();
@@ -6562,10 +6628,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 2 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:330:4: ( '!' ) (f_operand= r_infixExpression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:398:4: ( '!' ) (f_operand= r_infixExpression )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:330:4: ( '!' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:330:5: '!'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:398:4: ( '!' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:398:5: '!'
{
match(input,95,FOLLOW_95_in_r_unaryExpression2989); if (failed) return cn;
if ( backtracking==0 ) {
@@ -6574,8 +6640,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:330:46: (f_operand= r_infixExpression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:330:47: f_operand= r_infixExpression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:398:46: (f_operand= r_infixExpression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:398:47: f_operand= r_infixExpression
{
pushFollow(FOLLOW_r_infixExpression_in_r_unaryExpression2997);
f_operand=r_infixExpression();
@@ -6591,10 +6657,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 3 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:331:4: ( '-' ) (f_operand= r_infixExpression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:399:4: ( '-' ) (f_operand= r_infixExpression )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:331:4: ( '-' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:331:5: '-'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:399:4: ( '-' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:399:5: '-'
{
match(input,36,FOLLOW_36_in_r_unaryExpression3006); if (failed) return cn;
if ( backtracking==0 ) {
@@ -6603,8 +6669,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:331:46: (f_operand= r_infixExpression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:331:47: f_operand= r_infixExpression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:399:46: (f_operand= r_infixExpression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:399:47: f_operand= r_infixExpression
{
pushFollow(FOLLOW_r_infixExpression_in_r_unaryExpression3014);
f_operand=r_infixExpression();
@@ -6622,7 +6688,9 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
if ( backtracking==0 ) {
- cn = normalize(cn);
+
+ cn = normalize(cn);
+
}
}
catch (RecognitionException re) {
@@ -6637,7 +6705,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_infixExpression
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:334:1: r_infixExpression returns [CompositeNode cn] : (f_target= r_primaryExpression ) ( ( ( '.' ) (f_calls= r_featureCall ) ) )* ;
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:402:1: r_infixExpression returns [CompositeNode cn] : (f_target= r_primaryExpression ) ( ( ( '.' ) (f_calls= r_featureCall ) ) )* ;
public CompositeNode r_infixExpression() throws RecognitionException {
CompositeNode cn = null;
@@ -6646,14 +6714,15 @@ public class Xpand3NodeParser extends AbstractNodeParser {
CompositeNode f_calls = null;
- cn = factory.createInfixExpressionNode();
-
+
+ cn = factory.createInfixExpressionNode();
+
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:338:2: ( (f_target= r_primaryExpression ) ( ( ( '.' ) (f_calls= r_featureCall ) ) )* )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:338:2: (f_target= r_primaryExpression ) ( ( ( '.' ) (f_calls= r_featureCall ) ) )*
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:409:2: ( (f_target= r_primaryExpression ) ( ( ( '.' ) (f_calls= r_featureCall ) ) )* )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:409:2: (f_target= r_primaryExpression ) ( ( ( '.' ) (f_calls= r_featureCall ) ) )*
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:338:2: (f_target= r_primaryExpression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:338:3: f_target= r_primaryExpression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:409:2: (f_target= r_primaryExpression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:409:3: f_target= r_primaryExpression
{
pushFollow(FOLLOW_r_primaryExpression_in_r_infixExpression3045);
f_target=r_primaryExpression();
@@ -6665,7 +6734,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:338:114: ( ( ( '.' ) (f_calls= r_featureCall ) ) )*
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:409:114: ( ( ( '.' ) (f_calls= r_featureCall ) ) )*
loop71:
do {
int alt71=2;
@@ -6678,13 +6747,13 @@ public class Xpand3NodeParser extends AbstractNodeParser {
switch (alt71) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:338:115: ( ( '.' ) (f_calls= r_featureCall ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:409:115: ( ( '.' ) (f_calls= r_featureCall ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:338:115: ( ( '.' ) (f_calls= r_featureCall ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:338:116: ( '.' ) (f_calls= r_featureCall )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:409:115: ( ( '.' ) (f_calls= r_featureCall ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:409:116: ( '.' ) (f_calls= r_featureCall )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:338:116: ( '.' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:338:117: '.'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:409:116: ( '.' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:409:117: '.'
{
match(input,69,FOLLOW_69_in_r_infixExpression3053); if (failed) return cn;
if ( backtracking==0 ) {
@@ -6693,15 +6762,15 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:338:158: (f_calls= r_featureCall )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:338:159: f_calls= r_featureCall
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:409:158: (f_calls= r_featureCall )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:409:159: f_calls= r_featureCall
{
pushFollow(FOLLOW_r_featureCall_in_r_infixExpression3061);
f_calls=r_featureCall();
_fsp--;
if (failed) return cn;
if ( backtracking==0 ) {
- addToChildren(cn, f_calls); ((InfixExpressionNode) cn).getCalls().add(f_calls);
+ addToChildren(cn, f_calls);((BasicEList<CompositeNode>)((InfixExpressionNode) cn).getCalls()).addUnique(f_calls);
}
}
@@ -6722,7 +6791,9 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
if ( backtracking==0 ) {
- cn = normalize(cn);
+
+ cn = normalize(cn);
+
}
}
catch (RecognitionException re) {
@@ -6737,7 +6808,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_primaryExpression
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:341:1: r_primaryExpression returns [CompositeNode cn] : ( ( r_stringLiteral ) | ( r_featureCall ) | ( r_booleanLiteral ) | ( r_numberLiteral ) | ( r_nullLiteral ) | ( r_listLiteral ) | ( r_constructorCall ) | ( r_globalVarExpression ) | ( r_paranthesizedExpression ) );
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:412:1: r_primaryExpression returns [CompositeNode cn] : ( ( r_stringLiteral ) | ( r_featureCall ) | ( r_booleanLiteral ) | ( r_numberLiteral ) | ( r_nullLiteral ) | ( r_listLiteral ) | ( r_constructorCall ) | ( r_globalVarExpression ) | ( r_paranthesizedExpression ) );
public CompositeNode r_primaryExpression() throws RecognitionException {
CompositeNode cn = null;
@@ -6761,7 +6832,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:342:2: ( ( r_stringLiteral ) | ( r_featureCall ) | ( r_booleanLiteral ) | ( r_numberLiteral ) | ( r_nullLiteral ) | ( r_listLiteral ) | ( r_constructorCall ) | ( r_globalVarExpression ) | ( r_paranthesizedExpression ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:413:2: ( ( r_stringLiteral ) | ( r_featureCall ) | ( r_booleanLiteral ) | ( r_numberLiteral ) | ( r_nullLiteral ) | ( r_listLiteral ) | ( r_constructorCall ) | ( r_globalVarExpression ) | ( r_paranthesizedExpression ) )
int alt72=9;
switch ( input.LA(1) ) {
case StringLiteral:
@@ -6825,17 +6896,17 @@ public class Xpand3NodeParser extends AbstractNodeParser {
default:
if (backtracking>0) {failed=true; return cn;}
NoViableAltException nvae =
- new NoViableAltException("341:1: r_primaryExpression returns [CompositeNode cn] : ( ( r_stringLiteral ) | ( r_featureCall ) | ( r_booleanLiteral ) | ( r_numberLiteral ) | ( r_nullLiteral ) | ( r_listLiteral ) | ( r_constructorCall ) | ( r_globalVarExpression ) | ( r_paranthesizedExpression ) );", 72, 0, input);
+ new NoViableAltException("412:1: r_primaryExpression returns [CompositeNode cn] : ( ( r_stringLiteral ) | ( r_featureCall ) | ( r_booleanLiteral ) | ( r_numberLiteral ) | ( r_nullLiteral ) | ( r_listLiteral ) | ( r_constructorCall ) | ( r_globalVarExpression ) | ( r_paranthesizedExpression ) );", 72, 0, input);
throw nvae;
}
switch (alt72) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:342:2: ( r_stringLiteral )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:413:2: ( r_stringLiteral )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:342:2: ( r_stringLiteral )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:342:3: r_stringLiteral
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:413:2: ( r_stringLiteral )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:413:3: r_stringLiteral
{
pushFollow(FOLLOW_r_stringLiteral_in_r_primaryExpression3083);
r_stringLiteral18=r_stringLiteral();
@@ -6851,10 +6922,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 2 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:343:4: ( r_featureCall )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:414:4: ( r_featureCall )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:343:4: ( r_featureCall )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:343:5: r_featureCall
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:414:4: ( r_featureCall )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:414:5: r_featureCall
{
pushFollow(FOLLOW_r_featureCall_in_r_primaryExpression3092);
r_featureCall19=r_featureCall();
@@ -6870,10 +6941,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 3 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:344:4: ( r_booleanLiteral )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:415:4: ( r_booleanLiteral )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:344:4: ( r_booleanLiteral )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:344:5: r_booleanLiteral
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:415:4: ( r_booleanLiteral )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:415:5: r_booleanLiteral
{
pushFollow(FOLLOW_r_booleanLiteral_in_r_primaryExpression3101);
r_booleanLiteral20=r_booleanLiteral();
@@ -6889,10 +6960,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 4 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:345:4: ( r_numberLiteral )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:416:4: ( r_numberLiteral )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:345:4: ( r_numberLiteral )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:345:5: r_numberLiteral
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:416:4: ( r_numberLiteral )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:416:5: r_numberLiteral
{
pushFollow(FOLLOW_r_numberLiteral_in_r_primaryExpression3110);
r_numberLiteral21=r_numberLiteral();
@@ -6908,10 +6979,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 5 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:346:4: ( r_nullLiteral )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:417:4: ( r_nullLiteral )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:346:4: ( r_nullLiteral )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:346:5: r_nullLiteral
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:417:4: ( r_nullLiteral )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:417:5: r_nullLiteral
{
pushFollow(FOLLOW_r_nullLiteral_in_r_primaryExpression3119);
r_nullLiteral22=r_nullLiteral();
@@ -6927,10 +6998,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 6 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:347:4: ( r_listLiteral )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:418:4: ( r_listLiteral )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:347:4: ( r_listLiteral )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:347:5: r_listLiteral
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:418:4: ( r_listLiteral )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:418:5: r_listLiteral
{
pushFollow(FOLLOW_r_listLiteral_in_r_primaryExpression3128);
r_listLiteral23=r_listLiteral();
@@ -6946,10 +7017,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 7 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:348:4: ( r_constructorCall )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:419:4: ( r_constructorCall )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:348:4: ( r_constructorCall )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:348:5: r_constructorCall
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:419:4: ( r_constructorCall )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:419:5: r_constructorCall
{
pushFollow(FOLLOW_r_constructorCall_in_r_primaryExpression3137);
r_constructorCall24=r_constructorCall();
@@ -6965,10 +7036,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 8 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:349:4: ( r_globalVarExpression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:420:4: ( r_globalVarExpression )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:349:4: ( r_globalVarExpression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:349:5: r_globalVarExpression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:420:4: ( r_globalVarExpression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:420:5: r_globalVarExpression
{
pushFollow(FOLLOW_r_globalVarExpression_in_r_primaryExpression3146);
r_globalVarExpression25=r_globalVarExpression();
@@ -6984,10 +7055,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 9 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:350:4: ( r_paranthesizedExpression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:421:4: ( r_paranthesizedExpression )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:350:4: ( r_paranthesizedExpression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:350:5: r_paranthesizedExpression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:421:4: ( r_paranthesizedExpression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:421:5: r_paranthesizedExpression
{
pushFollow(FOLLOW_r_paranthesizedExpression_in_r_primaryExpression3155);
r_paranthesizedExpression26=r_paranthesizedExpression();
@@ -7017,18 +7088,19 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_stringLiteral
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:353:1: r_stringLiteral returns [CompositeNode cn] : ( StringLiteral ) ;
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:424:1: r_stringLiteral returns [CompositeNode cn] : ( StringLiteral ) ;
public CompositeNode r_stringLiteral() throws RecognitionException {
CompositeNode cn = null;
- cn = factory.createStringLiteralNode();
-
+
+ cn = factory.createStringLiteralNode();
+
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:356:2: ( ( StringLiteral ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:356:2: ( StringLiteral )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:428:2: ( ( StringLiteral ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:428:2: ( StringLiteral )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:356:2: ( StringLiteral )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:356:3: StringLiteral
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:428:2: ( StringLiteral )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:428:3: StringLiteral
{
match(input,StringLiteral,FOLLOW_StringLiteral_in_r_stringLiteral3179); if (failed) return cn;
if ( backtracking==0 ) {
@@ -7053,21 +7125,22 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_paranthesizedExpression
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:359:1: r_paranthesizedExpression returns [CompositeNode cn] : ( '(' ) (f_expression= r_expression ) ( ')' ) ;
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:431:1: r_paranthesizedExpression returns [CompositeNode cn] : ( '(' ) (f_expression= r_expression ) ( ')' ) ;
public CompositeNode r_paranthesizedExpression() throws RecognitionException {
CompositeNode cn = null;
CompositeNode f_expression = null;
- cn = factory.createParanthesizedExpressionNode();
-
+
+ cn = factory.createParanthesizedExpressionNode();
+
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:362:2: ( ( '(' ) (f_expression= r_expression ) ( ')' ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:362:2: ( '(' ) (f_expression= r_expression ) ( ')' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:435:2: ( ( '(' ) (f_expression= r_expression ) ( ')' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:435:2: ( '(' ) (f_expression= r_expression ) ( ')' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:362:2: ( '(' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:362:3: '('
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:435:2: ( '(' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:435:3: '('
{
match(input,31,FOLLOW_31_in_r_paranthesizedExpression3203); if (failed) return cn;
if ( backtracking==0 ) {
@@ -7076,8 +7149,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:362:44: (f_expression= r_expression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:362:45: f_expression= r_expression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:435:44: (f_expression= r_expression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:435:45: f_expression= r_expression
{
pushFollow(FOLLOW_r_expression_in_r_paranthesizedExpression3211);
f_expression=r_expression();
@@ -7089,8 +7162,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:362:173: ( ')' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:362:174: ')'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:435:173: ( ')' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:435:174: ')'
{
match(input,34,FOLLOW_34_in_r_paranthesizedExpression3217); if (failed) return cn;
if ( backtracking==0 ) {
@@ -7115,21 +7188,22 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_globalVarExpression
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:365:1: r_globalVarExpression returns [CompositeNode cn] : ( 'GLOBALVAR' ) (f_unnamed17= r_identifier ) ;
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:438:1: r_globalVarExpression returns [CompositeNode cn] : ( 'GLOBALVAR' ) (f_unnamed17= r_identifier ) ;
public CompositeNode r_globalVarExpression() throws RecognitionException {
CompositeNode cn = null;
CompositeNode f_unnamed17 = null;
- cn = factory.createGlobalVarExpressionNode();
-
+
+ cn = factory.createGlobalVarExpressionNode();
+
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:368:2: ( ( 'GLOBALVAR' ) (f_unnamed17= r_identifier ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:368:2: ( 'GLOBALVAR' ) (f_unnamed17= r_identifier )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:442:2: ( ( 'GLOBALVAR' ) (f_unnamed17= r_identifier ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:442:2: ( 'GLOBALVAR' ) (f_unnamed17= r_identifier )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:368:2: ( 'GLOBALVAR' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:368:3: 'GLOBALVAR'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:442:2: ( 'GLOBALVAR' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:442:3: 'GLOBALVAR'
{
match(input,96,FOLLOW_96_in_r_globalVarExpression3241); if (failed) return cn;
if ( backtracking==0 ) {
@@ -7138,8 +7212,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:368:52: (f_unnamed17= r_identifier )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:368:53: f_unnamed17= r_identifier
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:442:52: (f_unnamed17= r_identifier )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:442:53: f_unnamed17= r_identifier
{
pushFollow(FOLLOW_r_identifier_in_r_globalVarExpression3249);
f_unnamed17=r_identifier();
@@ -7167,7 +7241,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_featureCall
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:371:1: r_featureCall returns [CompositeNode cn] : ( (f_unnamed18= r_collectionExpression ) | (f_name= r_identifier ) ( '(' ) ( ( (f_paramList= r_parameterList ) ) )? ( ')' ) | (f_type= r_type ) );
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:445:1: r_featureCall returns [CompositeNode cn] : ( (f_unnamed18= r_collectionExpression ) | (f_name= r_identifier ) ( '(' ) ( ( (f_paramList= r_parameterList ) ) )? ( ')' ) | (f_type= r_type ) );
public CompositeNode r_featureCall() throws RecognitionException {
CompositeNode cn = null;
@@ -7180,10 +7254,11 @@ public class Xpand3NodeParser extends AbstractNodeParser {
CompositeNode f_type = null;
- cn = factory.createFeatureCallNode();
-
+
+ cn = factory.createFeatureCallNode();
+
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:374:2: ( (f_unnamed18= r_collectionExpression ) | (f_name= r_identifier ) ( '(' ) ( ( (f_paramList= r_parameterList ) ) )? ( ')' ) | (f_type= r_type ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:449:2: ( (f_unnamed18= r_collectionExpression ) | (f_name= r_identifier ) ( '(' ) ( ( (f_paramList= r_parameterList ) ) )? ( ')' ) | (f_type= r_type ) )
int alt74=3;
switch ( input.LA(1) ) {
case 101:
@@ -7212,7 +7287,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
else {
if (backtracking>0) {failed=true; return cn;}
NoViableAltException nvae =
- new NoViableAltException("371:1: r_featureCall returns [CompositeNode cn] : ( (f_unnamed18= r_collectionExpression ) | (f_name= r_identifier ) ( '(' ) ( ( (f_paramList= r_parameterList ) ) )? ( ')' ) | (f_type= r_type ) );", 74, 2, input);
+ new NoViableAltException("445:1: r_featureCall returns [CompositeNode cn] : ( (f_unnamed18= r_collectionExpression ) | (f_name= r_identifier ) ( '(' ) ( ( (f_paramList= r_parameterList ) ) )? ( ')' ) | (f_type= r_type ) );", 74, 2, input);
throw nvae;
}
@@ -7228,17 +7303,17 @@ public class Xpand3NodeParser extends AbstractNodeParser {
default:
if (backtracking>0) {failed=true; return cn;}
NoViableAltException nvae =
- new NoViableAltException("371:1: r_featureCall returns [CompositeNode cn] : ( (f_unnamed18= r_collectionExpression ) | (f_name= r_identifier ) ( '(' ) ( ( (f_paramList= r_parameterList ) ) )? ( ')' ) | (f_type= r_type ) );", 74, 0, input);
+ new NoViableAltException("445:1: r_featureCall returns [CompositeNode cn] : ( (f_unnamed18= r_collectionExpression ) | (f_name= r_identifier ) ( '(' ) ( ( (f_paramList= r_parameterList ) ) )? ( ')' ) | (f_type= r_type ) );", 74, 0, input);
throw nvae;
}
switch (alt74) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:374:2: (f_unnamed18= r_collectionExpression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:449:2: (f_unnamed18= r_collectionExpression )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:374:2: (f_unnamed18= r_collectionExpression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:374:3: f_unnamed18= r_collectionExpression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:449:2: (f_unnamed18= r_collectionExpression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:449:3: f_unnamed18= r_collectionExpression
{
pushFollow(FOLLOW_r_collectionExpression_in_r_featureCall3275);
f_unnamed18=r_collectionExpression();
@@ -7254,10 +7329,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 2 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:375:4: (f_name= r_identifier ) ( '(' ) ( ( (f_paramList= r_parameterList ) ) )? ( ')' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:450:4: (f_name= r_identifier ) ( '(' ) ( ( (f_paramList= r_parameterList ) ) )? ( ')' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:375:4: (f_name= r_identifier )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:375:5: f_name= r_identifier
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:450:4: (f_name= r_identifier )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:450:5: f_name= r_identifier
{
pushFollow(FOLLOW_r_identifier_in_r_featureCall3286);
f_name=r_identifier();
@@ -7269,8 +7344,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:375:97: ( '(' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:375:98: '('
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:450:97: ( '(' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:450:98: '('
{
match(input,31,FOLLOW_31_in_r_featureCall3292); if (failed) return cn;
if ( backtracking==0 ) {
@@ -7279,7 +7354,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:375:139: ( ( (f_paramList= r_parameterList ) ) )?
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:450:139: ( ( (f_paramList= r_parameterList ) ) )?
int alt73=2;
int LA73_0 = input.LA(1);
@@ -7288,13 +7363,13 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
switch (alt73) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:375:140: ( (f_paramList= r_parameterList ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:450:140: ( (f_paramList= r_parameterList ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:375:140: ( (f_paramList= r_parameterList ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:375:141: (f_paramList= r_parameterList )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:450:140: ( (f_paramList= r_parameterList ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:450:141: (f_paramList= r_parameterList )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:375:141: (f_paramList= r_parameterList )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:375:142: f_paramList= r_parameterList
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:450:141: (f_paramList= r_parameterList )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:450:142: f_paramList= r_parameterList
{
pushFollow(FOLLOW_r_parameterList_in_r_featureCall3302);
f_paramList=r_parameterList();
@@ -7315,8 +7390,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:375:260: ( ')' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:375:261: ')'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:450:260: ( ')' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:450:261: ')'
{
match(input,34,FOLLOW_34_in_r_featureCall3311); if (failed) return cn;
if ( backtracking==0 ) {
@@ -7329,10 +7404,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 3 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:376:4: (f_type= r_type )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:451:4: (f_type= r_type )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:376:4: (f_type= r_type )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:376:5: f_type= r_type
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:451:4: (f_type= r_type )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:451:5: f_type= r_type
{
pushFollow(FOLLOW_r_type_in_r_featureCall3322);
f_type=r_type();
@@ -7362,21 +7437,22 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_listLiteral
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:379:1: r_listLiteral returns [CompositeNode cn] : ( '{' ) ( ( (f_elements= r_expression ) ( ( ( ',' ) (f_elements= r_expression ) ) )* ) )? ( '}' ) ;
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:454:1: r_listLiteral returns [CompositeNode cn] : ( '{' ) ( ( (f_elements= r_expression ) ( ( ( ',' ) (f_elements= r_expression ) ) )* ) )? ( '}' ) ;
public CompositeNode r_listLiteral() throws RecognitionException {
CompositeNode cn = null;
CompositeNode f_elements = null;
- cn = factory.createListLiteralNode();
-
+
+ cn = factory.createListLiteralNode();
+
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:382:2: ( ( '{' ) ( ( (f_elements= r_expression ) ( ( ( ',' ) (f_elements= r_expression ) ) )* ) )? ( '}' ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:382:2: ( '{' ) ( ( (f_elements= r_expression ) ( ( ( ',' ) (f_elements= r_expression ) ) )* ) )? ( '}' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:458:2: ( ( '{' ) ( ( (f_elements= r_expression ) ( ( ( ',' ) (f_elements= r_expression ) ) )* ) )? ( '}' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:458:2: ( '{' ) ( ( (f_elements= r_expression ) ( ( ( ',' ) (f_elements= r_expression ) ) )* ) )? ( '}' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:382:2: ( '{' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:382:3: '{'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:458:2: ( '{' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:458:3: '{'
{
match(input,80,FOLLOW_80_in_r_listLiteral3346); if (failed) return cn;
if ( backtracking==0 ) {
@@ -7385,7 +7461,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:382:44: ( ( (f_elements= r_expression ) ( ( ( ',' ) (f_elements= r_expression ) ) )* ) )?
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:458:44: ( ( (f_elements= r_expression ) ( ( ( ',' ) (f_elements= r_expression ) ) )* ) )?
int alt76=2;
int LA76_0 = input.LA(1);
@@ -7394,25 +7470,25 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
switch (alt76) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:382:45: ( (f_elements= r_expression ) ( ( ( ',' ) (f_elements= r_expression ) ) )* )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:458:45: ( (f_elements= r_expression ) ( ( ( ',' ) (f_elements= r_expression ) ) )* )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:382:45: ( (f_elements= r_expression ) ( ( ( ',' ) (f_elements= r_expression ) ) )* )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:382:46: (f_elements= r_expression ) ( ( ( ',' ) (f_elements= r_expression ) ) )*
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:458:45: ( (f_elements= r_expression ) ( ( ( ',' ) (f_elements= r_expression ) ) )* )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:458:46: (f_elements= r_expression ) ( ( ( ',' ) (f_elements= r_expression ) ) )*
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:382:46: (f_elements= r_expression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:382:47: f_elements= r_expression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:458:46: (f_elements= r_expression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:458:47: f_elements= r_expression
{
pushFollow(FOLLOW_r_expression_in_r_listLiteral3356);
f_elements=r_expression();
_fsp--;
if (failed) return cn;
if ( backtracking==0 ) {
- addToChildren(cn, f_elements); ((ListLiteralNode) cn).getElements().add(f_elements);
+ addToChildren(cn, f_elements);((BasicEList<CompositeNode>)((ListLiteralNode) cn).getElements()).addUnique(f_elements);
}
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:382:161: ( ( ( ',' ) (f_elements= r_expression ) ) )*
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:458:195: ( ( ( ',' ) (f_elements= r_expression ) ) )*
loop75:
do {
int alt75=2;
@@ -7425,13 +7501,13 @@ public class Xpand3NodeParser extends AbstractNodeParser {
switch (alt75) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:382:162: ( ( ',' ) (f_elements= r_expression ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:458:196: ( ( ',' ) (f_elements= r_expression ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:382:162: ( ( ',' ) (f_elements= r_expression ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:382:163: ( ',' ) (f_elements= r_expression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:458:196: ( ( ',' ) (f_elements= r_expression ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:458:197: ( ',' ) (f_elements= r_expression )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:382:163: ( ',' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:382:164: ','
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:458:197: ( ',' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:458:198: ','
{
match(input,32,FOLLOW_32_in_r_listLiteral3364); if (failed) return cn;
if ( backtracking==0 ) {
@@ -7440,15 +7516,15 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:382:205: (f_elements= r_expression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:382:206: f_elements= r_expression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:458:239: (f_elements= r_expression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:458:240: f_elements= r_expression
{
pushFollow(FOLLOW_r_expression_in_r_listLiteral3372);
f_elements=r_expression();
_fsp--;
if (failed) return cn;
if ( backtracking==0 ) {
- addToChildren(cn, f_elements); ((ListLiteralNode) cn).getElements().add(f_elements);
+ addToChildren(cn, f_elements);((BasicEList<CompositeNode>)((ListLiteralNode) cn).getElements()).addUnique(f_elements);
}
}
@@ -7474,8 +7550,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:382:326: ( '}' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:382:327: '}'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:458:394: ( '}' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:458:395: '}'
{
match(input,82,FOLLOW_82_in_r_listLiteral3384); if (failed) return cn;
if ( backtracking==0 ) {
@@ -7500,21 +7576,22 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_constructorCall
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:385:1: r_constructorCall returns [CompositeNode cn] : ( 'new' ) (f_unnamed19= r_simpleType ) ;
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:461:1: r_constructorCall returns [CompositeNode cn] : ( 'new' ) (f_unnamed19= r_simpleType ) ;
public CompositeNode r_constructorCall() throws RecognitionException {
CompositeNode cn = null;
CompositeNode f_unnamed19 = null;
- cn = factory.createConstructorCallNode();
-
+
+ cn = factory.createConstructorCallNode();
+
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:388:2: ( ( 'new' ) (f_unnamed19= r_simpleType ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:388:2: ( 'new' ) (f_unnamed19= r_simpleType )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:465:2: ( ( 'new' ) (f_unnamed19= r_simpleType ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:465:2: ( 'new' ) (f_unnamed19= r_simpleType )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:388:2: ( 'new' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:388:3: 'new'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:465:2: ( 'new' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:465:3: 'new'
{
match(input,97,FOLLOW_97_in_r_constructorCall3408); if (failed) return cn;
if ( backtracking==0 ) {
@@ -7523,8 +7600,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:388:46: (f_unnamed19= r_simpleType )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:388:47: f_unnamed19= r_simpleType
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:465:46: (f_unnamed19= r_simpleType )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:465:47: f_unnamed19= r_simpleType
{
pushFollow(FOLLOW_r_simpleType_in_r_constructorCall3416);
f_unnamed19=r_simpleType();
@@ -7552,14 +7629,15 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_booleanLiteral
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:391:1: r_booleanLiteral returns [CompositeNode cn] : ( ( 'false' ) | ( 'true' ) );
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:468:1: r_booleanLiteral returns [CompositeNode cn] : ( ( 'false' ) | ( 'true' ) );
public CompositeNode r_booleanLiteral() throws RecognitionException {
CompositeNode cn = null;
- cn = factory.createBooleanLiteralNode();
-
+
+ cn = factory.createBooleanLiteralNode();
+
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:394:2: ( ( 'false' ) | ( 'true' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:472:2: ( ( 'false' ) | ( 'true' ) )
int alt77=2;
int LA77_0 = input.LA(1);
@@ -7572,16 +7650,16 @@ public class Xpand3NodeParser extends AbstractNodeParser {
else {
if (backtracking>0) {failed=true; return cn;}
NoViableAltException nvae =
- new NoViableAltException("391:1: r_booleanLiteral returns [CompositeNode cn] : ( ( 'false' ) | ( 'true' ) );", 77, 0, input);
+ new NoViableAltException("468:1: r_booleanLiteral returns [CompositeNode cn] : ( ( 'false' ) | ( 'true' ) );", 77, 0, input);
throw nvae;
}
switch (alt77) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:394:2: ( 'false' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:472:2: ( 'false' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:394:2: ( 'false' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:394:3: 'false'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:472:2: ( 'false' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:472:3: 'false'
{
match(input,98,FOLLOW_98_in_r_booleanLiteral3440); if (failed) return cn;
if ( backtracking==0 ) {
@@ -7594,10 +7672,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 2 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:395:4: ( 'true' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:473:4: ( 'true' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:395:4: ( 'true' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:395:5: 'true'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:473:4: ( 'true' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:473:5: 'true'
{
match(input,99,FOLLOW_99_in_r_booleanLiteral3449); if (failed) return cn;
if ( backtracking==0 ) {
@@ -7624,18 +7702,19 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_nullLiteral
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:398:1: r_nullLiteral returns [CompositeNode cn] : ( 'null' ) ;
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:476:1: r_nullLiteral returns [CompositeNode cn] : ( 'null' ) ;
public CompositeNode r_nullLiteral() throws RecognitionException {
CompositeNode cn = null;
- cn = factory.createNullLiteralNode();
-
+
+ cn = factory.createNullLiteralNode();
+
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:401:2: ( ( 'null' ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:401:2: ( 'null' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:480:2: ( ( 'null' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:480:2: ( 'null' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:401:2: ( 'null' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:401:3: 'null'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:480:2: ( 'null' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:480:3: 'null'
{
match(input,100,FOLLOW_100_in_r_nullLiteral3473); if (failed) return cn;
if ( backtracking==0 ) {
@@ -7660,14 +7739,15 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_numberLiteral
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:404:1: r_numberLiteral returns [CompositeNode cn] : ( ( IntLiteral ) | ( IntLiteral ) ( '.' ) ( IntLiteral ) );
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:483:1: r_numberLiteral returns [CompositeNode cn] : ( ( IntLiteral ) | ( IntLiteral ) ( '.' ) ( IntLiteral ) );
public CompositeNode r_numberLiteral() throws RecognitionException {
CompositeNode cn = null;
- cn = factory.createNumberLiteralNode();
-
+
+ cn = factory.createNumberLiteralNode();
+
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:407:2: ( ( IntLiteral ) | ( IntLiteral ) ( '.' ) ( IntLiteral ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:487:2: ( ( IntLiteral ) | ( IntLiteral ) ( '.' ) ( IntLiteral ) )
int alt78=2;
int LA78_0 = input.LA(1);
@@ -7686,7 +7766,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
else {
if (backtracking>0) {failed=true; return cn;}
NoViableAltException nvae =
- new NoViableAltException("404:1: r_numberLiteral returns [CompositeNode cn] : ( ( IntLiteral ) | ( IntLiteral ) ( '.' ) ( IntLiteral ) );", 78, 2, input);
+ new NoViableAltException("483:1: r_numberLiteral returns [CompositeNode cn] : ( ( IntLiteral ) | ( IntLiteral ) ( '.' ) ( IntLiteral ) );", 78, 2, input);
throw nvae;
}
@@ -7697,7 +7777,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
else {
if (backtracking>0) {failed=true; return cn;}
NoViableAltException nvae =
- new NoViableAltException("404:1: r_numberLiteral returns [CompositeNode cn] : ( ( IntLiteral ) | ( IntLiteral ) ( '.' ) ( IntLiteral ) );", 78, 1, input);
+ new NoViableAltException("483:1: r_numberLiteral returns [CompositeNode cn] : ( ( IntLiteral ) | ( IntLiteral ) ( '.' ) ( IntLiteral ) );", 78, 1, input);
throw nvae;
}
@@ -7705,16 +7785,16 @@ public class Xpand3NodeParser extends AbstractNodeParser {
else {
if (backtracking>0) {failed=true; return cn;}
NoViableAltException nvae =
- new NoViableAltException("404:1: r_numberLiteral returns [CompositeNode cn] : ( ( IntLiteral ) | ( IntLiteral ) ( '.' ) ( IntLiteral ) );", 78, 0, input);
+ new NoViableAltException("483:1: r_numberLiteral returns [CompositeNode cn] : ( ( IntLiteral ) | ( IntLiteral ) ( '.' ) ( IntLiteral ) );", 78, 0, input);
throw nvae;
}
switch (alt78) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:407:2: ( IntLiteral )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:487:2: ( IntLiteral )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:407:2: ( IntLiteral )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:407:3: IntLiteral
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:487:2: ( IntLiteral )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:487:3: IntLiteral
{
match(input,IntLiteral,FOLLOW_IntLiteral_in_r_numberLiteral3497); if (failed) return cn;
if ( backtracking==0 ) {
@@ -7727,10 +7807,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 2 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:408:4: ( IntLiteral ) ( '.' ) ( IntLiteral )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:488:4: ( IntLiteral ) ( '.' ) ( IntLiteral )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:408:4: ( IntLiteral )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:408:5: IntLiteral
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:488:4: ( IntLiteral )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:488:5: IntLiteral
{
match(input,IntLiteral,FOLLOW_IntLiteral_in_r_numberLiteral3506); if (failed) return cn;
if ( backtracking==0 ) {
@@ -7739,8 +7819,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:408:53: ( '.' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:408:54: '.'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:488:53: ( '.' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:488:54: '.'
{
match(input,69,FOLLOW_69_in_r_numberLiteral3512); if (failed) return cn;
if ( backtracking==0 ) {
@@ -7749,8 +7829,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:408:95: ( IntLiteral )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:408:96: IntLiteral
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:488:95: ( IntLiteral )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:488:96: IntLiteral
{
match(input,IntLiteral,FOLLOW_IntLiteral_in_r_numberLiteral3518); if (failed) return cn;
if ( backtracking==0 ) {
@@ -7777,7 +7857,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_collectionExpression
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:411:1: r_collectionExpression returns [CompositeNode cn] : ( ( 'typeSelect' ) ( '(' ) (f_type= r_type ) ( ')' ) | ( ( ( 'collect' ) | ( 'select' ) | ( 'selectFirst' ) | ( 'reject' ) | ( 'exists' ) | ( 'notExists' ) | ( 'sortBy' ) | ( 'forAll' ) ) ) ( '(' ) ( ( (f_variable= r_identifier ) ( '|' ) ) )? (f_expression= r_expression ) ( ')' ) );
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:491:1: r_collectionExpression returns [CompositeNode cn] : ( ( 'typeSelect' ) ( '(' ) (f_type= r_type ) ( ')' ) | ( ( ( 'collect' ) | ( 'select' ) | ( 'selectFirst' ) | ( 'reject' ) | ( 'exists' ) | ( 'notExists' ) | ( 'sortBy' ) | ( 'forAll' ) ) ) ( '(' ) ( ( (f_variable= r_identifier ) ( '|' ) ) )? (f_expression= r_expression ) ( ')' ) );
public CompositeNode r_collectionExpression() throws RecognitionException {
CompositeNode cn = null;
@@ -7788,10 +7868,11 @@ public class Xpand3NodeParser extends AbstractNodeParser {
CompositeNode f_expression = null;
- cn = factory.createCollectionExpressionNode();
-
+
+ cn = factory.createCollectionExpressionNode();
+
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:414:2: ( ( 'typeSelect' ) ( '(' ) (f_type= r_type ) ( ')' ) | ( ( ( 'collect' ) | ( 'select' ) | ( 'selectFirst' ) | ( 'reject' ) | ( 'exists' ) | ( 'notExists' ) | ( 'sortBy' ) | ( 'forAll' ) ) ) ( '(' ) ( ( (f_variable= r_identifier ) ( '|' ) ) )? (f_expression= r_expression ) ( ')' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:495:2: ( ( 'typeSelect' ) ( '(' ) (f_type= r_type ) ( ')' ) | ( ( ( 'collect' ) | ( 'select' ) | ( 'selectFirst' ) | ( 'reject' ) | ( 'exists' ) | ( 'notExists' ) | ( 'sortBy' ) | ( 'forAll' ) ) ) ( '(' ) ( ( (f_variable= r_identifier ) ( '|' ) ) )? (f_expression= r_expression ) ( ')' ) )
int alt81=2;
int LA81_0 = input.LA(1);
@@ -7804,16 +7885,16 @@ public class Xpand3NodeParser extends AbstractNodeParser {
else {
if (backtracking>0) {failed=true; return cn;}
NoViableAltException nvae =
- new NoViableAltException("411:1: r_collectionExpression returns [CompositeNode cn] : ( ( 'typeSelect' ) ( '(' ) (f_type= r_type ) ( ')' ) | ( ( ( 'collect' ) | ( 'select' ) | ( 'selectFirst' ) | ( 'reject' ) | ( 'exists' ) | ( 'notExists' ) | ( 'sortBy' ) | ( 'forAll' ) ) ) ( '(' ) ( ( (f_variable= r_identifier ) ( '|' ) ) )? (f_expression= r_expression ) ( ')' ) );", 81, 0, input);
+ new NoViableAltException("491:1: r_collectionExpression returns [CompositeNode cn] : ( ( 'typeSelect' ) ( '(' ) (f_type= r_type ) ( ')' ) | ( ( ( 'collect' ) | ( 'select' ) | ( 'selectFirst' ) | ( 'reject' ) | ( 'exists' ) | ( 'notExists' ) | ( 'sortBy' ) | ( 'forAll' ) ) ) ( '(' ) ( ( (f_variable= r_identifier ) ( '|' ) ) )? (f_expression= r_expression ) ( ')' ) );", 81, 0, input);
throw nvae;
}
switch (alt81) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:414:2: ( 'typeSelect' ) ( '(' ) (f_type= r_type ) ( ')' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:495:2: ( 'typeSelect' ) ( '(' ) (f_type= r_type ) ( ')' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:414:2: ( 'typeSelect' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:414:3: 'typeSelect'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:495:2: ( 'typeSelect' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:495:3: 'typeSelect'
{
match(input,101,FOLLOW_101_in_r_collectionExpression3542); if (failed) return cn;
if ( backtracking==0 ) {
@@ -7822,8 +7903,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:414:53: ( '(' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:414:54: '('
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:495:53: ( '(' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:495:54: '('
{
match(input,31,FOLLOW_31_in_r_collectionExpression3548); if (failed) return cn;
if ( backtracking==0 ) {
@@ -7832,8 +7913,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:414:95: (f_type= r_type )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:414:96: f_type= r_type
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:495:95: (f_type= r_type )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:495:96: f_type= r_type
{
pushFollow(FOLLOW_r_type_in_r_collectionExpression3556);
f_type=r_type();
@@ -7845,8 +7926,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:414:191: ( ')' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:414:192: ')'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:495:191: ( ')' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:495:192: ')'
{
match(input,34,FOLLOW_34_in_r_collectionExpression3562); if (failed) return cn;
if ( backtracking==0 ) {
@@ -7859,12 +7940,12 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 2 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:415:4: ( ( ( 'collect' ) | ( 'select' ) | ( 'selectFirst' ) | ( 'reject' ) | ( 'exists' ) | ( 'notExists' ) | ( 'sortBy' ) | ( 'forAll' ) ) ) ( '(' ) ( ( (f_variable= r_identifier ) ( '|' ) ) )? (f_expression= r_expression ) ( ')' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:496:4: ( ( ( 'collect' ) | ( 'select' ) | ( 'selectFirst' ) | ( 'reject' ) | ( 'exists' ) | ( 'notExists' ) | ( 'sortBy' ) | ( 'forAll' ) ) ) ( '(' ) ( ( (f_variable= r_identifier ) ( '|' ) ) )? (f_expression= r_expression ) ( ')' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:415:4: ( ( ( 'collect' ) | ( 'select' ) | ( 'selectFirst' ) | ( 'reject' ) | ( 'exists' ) | ( 'notExists' ) | ( 'sortBy' ) | ( 'forAll' ) ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:415:5: ( ( 'collect' ) | ( 'select' ) | ( 'selectFirst' ) | ( 'reject' ) | ( 'exists' ) | ( 'notExists' ) | ( 'sortBy' ) | ( 'forAll' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:496:4: ( ( ( 'collect' ) | ( 'select' ) | ( 'selectFirst' ) | ( 'reject' ) | ( 'exists' ) | ( 'notExists' ) | ( 'sortBy' ) | ( 'forAll' ) ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:496:5: ( ( 'collect' ) | ( 'select' ) | ( 'selectFirst' ) | ( 'reject' ) | ( 'exists' ) | ( 'notExists' ) | ( 'sortBy' ) | ( 'forAll' ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:415:5: ( ( 'collect' ) | ( 'select' ) | ( 'selectFirst' ) | ( 'reject' ) | ( 'exists' ) | ( 'notExists' ) | ( 'sortBy' ) | ( 'forAll' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:496:5: ( ( 'collect' ) | ( 'select' ) | ( 'selectFirst' ) | ( 'reject' ) | ( 'exists' ) | ( 'notExists' ) | ( 'sortBy' ) | ( 'forAll' ) )
int alt79=8;
switch ( input.LA(1) ) {
case 102:
@@ -7910,17 +7991,17 @@ public class Xpand3NodeParser extends AbstractNodeParser {
default:
if (backtracking>0) {failed=true; return cn;}
NoViableAltException nvae =
- new NoViableAltException("415:5: ( ( 'collect' ) | ( 'select' ) | ( 'selectFirst' ) | ( 'reject' ) | ( 'exists' ) | ( 'notExists' ) | ( 'sortBy' ) | ( 'forAll' ) )", 79, 0, input);
+ new NoViableAltException("496:5: ( ( 'collect' ) | ( 'select' ) | ( 'selectFirst' ) | ( 'reject' ) | ( 'exists' ) | ( 'notExists' ) | ( 'sortBy' ) | ( 'forAll' ) )", 79, 0, input);
throw nvae;
}
switch (alt79) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:415:6: ( 'collect' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:496:6: ( 'collect' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:415:6: ( 'collect' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:415:7: 'collect'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:496:6: ( 'collect' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:496:7: 'collect'
{
match(input,102,FOLLOW_102_in_r_collectionExpression3573); if (failed) return cn;
if ( backtracking==0 ) {
@@ -7933,10 +8014,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 2 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:416:4: ( 'select' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:497:4: ( 'select' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:416:4: ( 'select' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:416:5: 'select'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:497:4: ( 'select' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:497:5: 'select'
{
match(input,103,FOLLOW_103_in_r_collectionExpression3582); if (failed) return cn;
if ( backtracking==0 ) {
@@ -7949,10 +8030,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 3 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:417:4: ( 'selectFirst' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:498:4: ( 'selectFirst' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:417:4: ( 'selectFirst' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:417:5: 'selectFirst'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:498:4: ( 'selectFirst' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:498:5: 'selectFirst'
{
match(input,104,FOLLOW_104_in_r_collectionExpression3591); if (failed) return cn;
if ( backtracking==0 ) {
@@ -7965,10 +8046,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 4 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:418:4: ( 'reject' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:499:4: ( 'reject' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:418:4: ( 'reject' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:418:5: 'reject'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:499:4: ( 'reject' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:499:5: 'reject'
{
match(input,105,FOLLOW_105_in_r_collectionExpression3600); if (failed) return cn;
if ( backtracking==0 ) {
@@ -7981,10 +8062,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 5 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:419:4: ( 'exists' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:500:4: ( 'exists' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:419:4: ( 'exists' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:419:5: 'exists'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:500:4: ( 'exists' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:500:5: 'exists'
{
match(input,106,FOLLOW_106_in_r_collectionExpression3609); if (failed) return cn;
if ( backtracking==0 ) {
@@ -7997,10 +8078,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 6 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:420:4: ( 'notExists' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:501:4: ( 'notExists' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:420:4: ( 'notExists' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:420:5: 'notExists'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:501:4: ( 'notExists' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:501:5: 'notExists'
{
match(input,107,FOLLOW_107_in_r_collectionExpression3618); if (failed) return cn;
if ( backtracking==0 ) {
@@ -8013,10 +8094,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 7 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:421:4: ( 'sortBy' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:502:4: ( 'sortBy' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:421:4: ( 'sortBy' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:421:5: 'sortBy'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:502:4: ( 'sortBy' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:502:5: 'sortBy'
{
match(input,108,FOLLOW_108_in_r_collectionExpression3627); if (failed) return cn;
if ( backtracking==0 ) {
@@ -8029,10 +8110,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 8 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:422:4: ( 'forAll' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:503:4: ( 'forAll' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:422:4: ( 'forAll' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:422:5: 'forAll'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:503:4: ( 'forAll' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:503:5: 'forAll'
{
match(input,109,FOLLOW_109_in_r_collectionExpression3636); if (failed) return cn;
if ( backtracking==0 ) {
@@ -8050,8 +8131,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:422:53: ( '(' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:422:54: '('
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:503:53: ( '(' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:503:54: '('
{
match(input,31,FOLLOW_31_in_r_collectionExpression3644); if (failed) return cn;
if ( backtracking==0 ) {
@@ -8060,7 +8141,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:422:95: ( ( (f_variable= r_identifier ) ( '|' ) ) )?
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:503:95: ( ( (f_variable= r_identifier ) ( '|' ) ) )?
int alt80=2;
int LA80_0 = input.LA(1);
@@ -8073,13 +8154,13 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
switch (alt80) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:422:96: ( (f_variable= r_identifier ) ( '|' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:503:96: ( (f_variable= r_identifier ) ( '|' ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:422:96: ( (f_variable= r_identifier ) ( '|' ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:422:97: (f_variable= r_identifier ) ( '|' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:503:96: ( (f_variable= r_identifier ) ( '|' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:503:97: (f_variable= r_identifier ) ( '|' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:422:97: (f_variable= r_identifier )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:422:98: f_variable= r_identifier
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:503:97: (f_variable= r_identifier )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:503:98: f_variable= r_identifier
{
pushFollow(FOLLOW_r_identifier_in_r_collectionExpression3654);
f_variable=r_identifier();
@@ -8091,8 +8172,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:422:215: ( '|' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:422:216: '|'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:503:215: ( '|' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:503:216: '|'
{
match(input,110,FOLLOW_110_in_r_collectionExpression3660); if (failed) return cn;
if ( backtracking==0 ) {
@@ -8110,8 +8191,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:422:260: (f_expression= r_expression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:422:261: f_expression= r_expression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:503:260: (f_expression= r_expression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:503:261: f_expression= r_expression
{
pushFollow(FOLLOW_r_expression_in_r_collectionExpression3671);
f_expression=r_expression();
@@ -8123,8 +8204,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:422:386: ( ')' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:422:387: ')'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:503:386: ( ')' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:503:387: ')'
{
match(input,34,FOLLOW_34_in_r_collectionExpression3677); if (failed) return cn;
if ( backtracking==0 ) {
@@ -8151,33 +8232,34 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_declaredParameterList
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:425:1: r_declaredParameterList returns [CompositeNode cn] : (f_params= r_declaredParameter ) ( ( ( ',' ) (f_params= r_declaredParameter ) ) )* ;
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:506:1: r_declaredParameterList returns [CompositeNode cn] : (f_params= r_declaredParameter ) ( ( ( ',' ) (f_params= r_declaredParameter ) ) )* ;
public CompositeNode r_declaredParameterList() throws RecognitionException {
CompositeNode cn = null;
CompositeNode f_params = null;
- cn = factory.createDeclaredParameterListNode();
-
+
+ cn = factory.createDeclaredParameterListNode();
+
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:428:2: ( (f_params= r_declaredParameter ) ( ( ( ',' ) (f_params= r_declaredParameter ) ) )* )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:428:2: (f_params= r_declaredParameter ) ( ( ( ',' ) (f_params= r_declaredParameter ) ) )*
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:510:2: ( (f_params= r_declaredParameter ) ( ( ( ',' ) (f_params= r_declaredParameter ) ) )* )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:510:2: (f_params= r_declaredParameter ) ( ( ( ',' ) (f_params= r_declaredParameter ) ) )*
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:428:2: (f_params= r_declaredParameter )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:428:3: f_params= r_declaredParameter
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:510:2: (f_params= r_declaredParameter )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:510:3: f_params= r_declaredParameter
{
pushFollow(FOLLOW_r_declaredParameter_in_r_declaredParameterList3703);
f_params=r_declaredParameter();
_fsp--;
if (failed) return cn;
if ( backtracking==0 ) {
- addToChildren(cn, f_params); ((DeclaredParameterListNode) cn).getParams().add(f_params);
+ addToChildren(cn, f_params);((BasicEList<CompositeNode>)((DeclaredParameterListNode) cn).getParams()).addUnique(f_params);
}
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:428:126: ( ( ( ',' ) (f_params= r_declaredParameter ) ) )*
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:510:160: ( ( ( ',' ) (f_params= r_declaredParameter ) ) )*
loop82:
do {
int alt82=2;
@@ -8196,13 +8278,13 @@ public class Xpand3NodeParser extends AbstractNodeParser {
switch (alt82) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:428:127: ( ( ',' ) (f_params= r_declaredParameter ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:510:161: ( ( ',' ) (f_params= r_declaredParameter ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:428:127: ( ( ',' ) (f_params= r_declaredParameter ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:428:128: ( ',' ) (f_params= r_declaredParameter )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:510:161: ( ( ',' ) (f_params= r_declaredParameter ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:510:162: ( ',' ) (f_params= r_declaredParameter )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:428:128: ( ',' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:428:129: ','
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:510:162: ( ',' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:510:163: ','
{
match(input,32,FOLLOW_32_in_r_declaredParameterList3711); if (failed) return cn;
if ( backtracking==0 ) {
@@ -8211,15 +8293,15 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:428:170: (f_params= r_declaredParameter )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:428:171: f_params= r_declaredParameter
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:510:204: (f_params= r_declaredParameter )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:510:205: f_params= r_declaredParameter
{
pushFollow(FOLLOW_r_declaredParameter_in_r_declaredParameterList3719);
f_params=r_declaredParameter();
_fsp--;
if (failed) return cn;
if ( backtracking==0 ) {
- addToChildren(cn, f_params); ((DeclaredParameterListNode) cn).getParams().add(f_params);
+ addToChildren(cn, f_params);((BasicEList<CompositeNode>)((DeclaredParameterListNode) cn).getParams()).addUnique(f_params);
}
}
@@ -8252,7 +8334,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_declaredParameter
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:431:1: r_declaredParameter returns [CompositeNode cn] : (f_ptype= r_type ) (f_name= r_identifier ) ;
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:513:1: r_declaredParameter returns [CompositeNode cn] : (f_ptype= r_type ) (f_name= r_identifier ) ;
public CompositeNode r_declaredParameter() throws RecognitionException {
CompositeNode cn = null;
@@ -8261,14 +8343,15 @@ public class Xpand3NodeParser extends AbstractNodeParser {
CompositeNode f_name = null;
- cn = factory.createDeclaredParameterNode();
-
+
+ cn = factory.createDeclaredParameterNode();
+
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:434:2: ( (f_ptype= r_type ) (f_name= r_identifier ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:434:2: (f_ptype= r_type ) (f_name= r_identifier )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:517:2: ( (f_ptype= r_type ) (f_name= r_identifier ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:517:2: (f_ptype= r_type ) (f_name= r_identifier )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:434:2: (f_ptype= r_type )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:434:3: f_ptype= r_type
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:517:2: (f_ptype= r_type )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:517:3: f_ptype= r_type
{
pushFollow(FOLLOW_r_type_in_r_declaredParameter3748);
f_ptype=r_type();
@@ -8280,8 +8363,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:434:99: (f_name= r_identifier )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:434:100: f_name= r_identifier
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:517:99: (f_name= r_identifier )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:517:100: f_name= r_identifier
{
pushFollow(FOLLOW_r_identifier_in_r_declaredParameter3756);
f_name=r_identifier();
@@ -8309,33 +8392,34 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_parameterList
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:437:1: r_parameterList returns [CompositeNode cn] : (f_params= r_expression ) ( ( ( ',' ) (f_params= r_expression ) ) )* ;
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:520:1: r_parameterList returns [CompositeNode cn] : (f_params= r_expression ) ( ( ( ',' ) (f_params= r_expression ) ) )* ;
public CompositeNode r_parameterList() throws RecognitionException {
CompositeNode cn = null;
CompositeNode f_params = null;
- cn = factory.createParameterListNode();
-
+
+ cn = factory.createParameterListNode();
+
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:440:2: ( (f_params= r_expression ) ( ( ( ',' ) (f_params= r_expression ) ) )* )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:440:2: (f_params= r_expression ) ( ( ( ',' ) (f_params= r_expression ) ) )*
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:524:2: ( (f_params= r_expression ) ( ( ( ',' ) (f_params= r_expression ) ) )* )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:524:2: (f_params= r_expression ) ( ( ( ',' ) (f_params= r_expression ) ) )*
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:440:2: (f_params= r_expression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:440:3: f_params= r_expression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:524:2: (f_params= r_expression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:524:3: f_params= r_expression
{
pushFollow(FOLLOW_r_expression_in_r_parameterList3782);
f_params=r_expression();
_fsp--;
if (failed) return cn;
if ( backtracking==0 ) {
- addToChildren(cn, f_params); ((ParameterListNode) cn).getParams().add(f_params);
+ addToChildren(cn, f_params);((BasicEList<CompositeNode>)((ParameterListNode) cn).getParams()).addUnique(f_params);
}
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:440:111: ( ( ( ',' ) (f_params= r_expression ) ) )*
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:524:145: ( ( ( ',' ) (f_params= r_expression ) ) )*
loop83:
do {
int alt83=2;
@@ -8348,13 +8432,13 @@ public class Xpand3NodeParser extends AbstractNodeParser {
switch (alt83) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:440:112: ( ( ',' ) (f_params= r_expression ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:524:146: ( ( ',' ) (f_params= r_expression ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:440:112: ( ( ',' ) (f_params= r_expression ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:440:113: ( ',' ) (f_params= r_expression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:524:146: ( ( ',' ) (f_params= r_expression ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:524:147: ( ',' ) (f_params= r_expression )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:440:113: ( ',' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:440:114: ','
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:524:147: ( ',' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:524:148: ','
{
match(input,32,FOLLOW_32_in_r_parameterList3790); if (failed) return cn;
if ( backtracking==0 ) {
@@ -8363,15 +8447,15 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:440:155: (f_params= r_expression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:440:156: f_params= r_expression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:524:189: (f_params= r_expression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:524:190: f_params= r_expression
{
pushFollow(FOLLOW_r_expression_in_r_parameterList3798);
f_params=r_expression();
_fsp--;
if (failed) return cn;
if ( backtracking==0 ) {
- addToChildren(cn, f_params); ((ParameterListNode) cn).getParams().add(f_params);
+ addToChildren(cn, f_params);((BasicEList<CompositeNode>)((ParameterListNode) cn).getParams()).addUnique(f_params);
}
}
@@ -8404,7 +8488,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_type
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:443:1: r_type returns [CompositeNode cn] : ( ( r_collectionType ) | ( r_simpleType ) );
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:527:1: r_type returns [CompositeNode cn] : ( ( r_collectionType ) | ( r_simpleType ) );
public CompositeNode r_type() throws RecognitionException {
CompositeNode cn = null;
@@ -8414,7 +8498,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:444:2: ( ( r_collectionType ) | ( r_simpleType ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:528:2: ( ( r_collectionType ) | ( r_simpleType ) )
int alt84=2;
int LA84_0 = input.LA(1);
@@ -8427,16 +8511,16 @@ public class Xpand3NodeParser extends AbstractNodeParser {
else {
if (backtracking>0) {failed=true; return cn;}
NoViableAltException nvae =
- new NoViableAltException("443:1: r_type returns [CompositeNode cn] : ( ( r_collectionType ) | ( r_simpleType ) );", 84, 0, input);
+ new NoViableAltException("527:1: r_type returns [CompositeNode cn] : ( ( r_collectionType ) | ( r_simpleType ) );", 84, 0, input);
throw nvae;
}
switch (alt84) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:444:2: ( r_collectionType )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:528:2: ( r_collectionType )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:444:2: ( r_collectionType )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:444:3: r_collectionType
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:528:2: ( r_collectionType )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:528:3: r_collectionType
{
pushFollow(FOLLOW_r_collectionType_in_r_type3820);
r_collectionType27=r_collectionType();
@@ -8452,10 +8536,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 2 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:445:4: ( r_simpleType )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:529:4: ( r_simpleType )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:445:4: ( r_simpleType )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:445:5: r_simpleType
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:529:4: ( r_simpleType )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:529:5: r_simpleType
{
pushFollow(FOLLOW_r_simpleType_in_r_type3829);
r_simpleType28=r_simpleType();
@@ -8485,23 +8569,24 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_collectionType
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:448:1: r_collectionType returns [CompositeNode cn] : ( ( ( 'Collection' ) | ( 'List' ) | ( 'Set' ) ) ) ( ( ( '[' ) (f_elementType= r_simpleType ) ( ']' ) ) )? ;
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:532:1: r_collectionType returns [CompositeNode cn] : ( ( ( 'Collection' ) | ( 'List' ) | ( 'Set' ) ) ) ( ( ( '[' ) (f_elementType= r_simpleType ) ( ']' ) ) )? ;
public CompositeNode r_collectionType() throws RecognitionException {
CompositeNode cn = null;
CompositeNode f_elementType = null;
- cn = factory.createCollectionTypeNode();
-
+
+ cn = factory.createCollectionTypeNode();
+
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:451:2: ( ( ( ( 'Collection' ) | ( 'List' ) | ( 'Set' ) ) ) ( ( ( '[' ) (f_elementType= r_simpleType ) ( ']' ) ) )? )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:451:2: ( ( ( 'Collection' ) | ( 'List' ) | ( 'Set' ) ) ) ( ( ( '[' ) (f_elementType= r_simpleType ) ( ']' ) ) )?
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:536:2: ( ( ( ( 'Collection' ) | ( 'List' ) | ( 'Set' ) ) ) ( ( ( '[' ) (f_elementType= r_simpleType ) ( ']' ) ) )? )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:536:2: ( ( ( 'Collection' ) | ( 'List' ) | ( 'Set' ) ) ) ( ( ( '[' ) (f_elementType= r_simpleType ) ( ']' ) ) )?
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:451:2: ( ( ( 'Collection' ) | ( 'List' ) | ( 'Set' ) ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:451:3: ( ( 'Collection' ) | ( 'List' ) | ( 'Set' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:536:2: ( ( ( 'Collection' ) | ( 'List' ) | ( 'Set' ) ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:536:3: ( ( 'Collection' ) | ( 'List' ) | ( 'Set' ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:451:3: ( ( 'Collection' ) | ( 'List' ) | ( 'Set' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:536:3: ( ( 'Collection' ) | ( 'List' ) | ( 'Set' ) )
int alt85=3;
switch ( input.LA(1) ) {
case 70:
@@ -8522,17 +8607,17 @@ public class Xpand3NodeParser extends AbstractNodeParser {
default:
if (backtracking>0) {failed=true; return cn;}
NoViableAltException nvae =
- new NoViableAltException("451:3: ( ( 'Collection' ) | ( 'List' ) | ( 'Set' ) )", 85, 0, input);
+ new NoViableAltException("536:3: ( ( 'Collection' ) | ( 'List' ) | ( 'Set' ) )", 85, 0, input);
throw nvae;
}
switch (alt85) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:451:4: ( 'Collection' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:536:4: ( 'Collection' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:451:4: ( 'Collection' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:451:5: 'Collection'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:536:4: ( 'Collection' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:536:5: 'Collection'
{
match(input,70,FOLLOW_70_in_r_collectionType3855); if (failed) return cn;
if ( backtracking==0 ) {
@@ -8545,10 +8630,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 2 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:452:4: ( 'List' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:537:4: ( 'List' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:452:4: ( 'List' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:452:5: 'List'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:537:4: ( 'List' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:537:5: 'List'
{
match(input,71,FOLLOW_71_in_r_collectionType3864); if (failed) return cn;
if ( backtracking==0 ) {
@@ -8561,10 +8646,10 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
break;
case 3 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:453:4: ( 'Set' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:538:4: ( 'Set' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:453:4: ( 'Set' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:453:5: 'Set'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:538:4: ( 'Set' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:538:5: 'Set'
{
match(input,72,FOLLOW_72_in_r_collectionType3873); if (failed) return cn;
if ( backtracking==0 ) {
@@ -8582,7 +8667,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:453:62: ( ( ( '[' ) (f_elementType= r_simpleType ) ( ']' ) ) )?
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:538:62: ( ( ( '[' ) (f_elementType= r_simpleType ) ( ']' ) ) )?
int alt86=2;
int LA86_0 = input.LA(1);
@@ -8591,13 +8676,13 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
switch (alt86) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:453:63: ( ( '[' ) (f_elementType= r_simpleType ) ( ']' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:538:63: ( ( '[' ) (f_elementType= r_simpleType ) ( ']' ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:453:63: ( ( '[' ) (f_elementType= r_simpleType ) ( ']' ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:453:64: ( '[' ) (f_elementType= r_simpleType ) ( ']' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:538:63: ( ( '[' ) (f_elementType= r_simpleType ) ( ']' ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:538:64: ( '[' ) (f_elementType= r_simpleType ) ( ']' )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:453:64: ( '[' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:453:65: '['
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:538:64: ( '[' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:538:65: '['
{
match(input,111,FOLLOW_111_in_r_collectionType3883); if (failed) return cn;
if ( backtracking==0 ) {
@@ -8606,8 +8691,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:453:106: (f_elementType= r_simpleType )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:453:107: f_elementType= r_simpleType
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:538:106: (f_elementType= r_simpleType )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:538:107: f_elementType= r_simpleType
{
pushFollow(FOLLOW_r_simpleType_in_r_collectionType3891);
f_elementType=r_simpleType();
@@ -8619,8 +8704,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:453:230: ( ']' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:453:231: ']'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:538:230: ( ']' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:538:231: ']'
{
match(input,112,FOLLOW_112_in_r_collectionType3897); if (failed) return cn;
if ( backtracking==0 ) {
@@ -8654,33 +8739,34 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_simpleType
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:456:1: r_simpleType returns [CompositeNode cn] : (f_names= r_identifier ) ( ( ( '::' ) (f_names= r_identifier ) ) )* ;
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:541:1: r_simpleType returns [CompositeNode cn] : (f_names= r_identifier ) ( ( ( '::' ) (f_names= r_identifier ) ) )* ;
public CompositeNode r_simpleType() throws RecognitionException {
CompositeNode cn = null;
CompositeNode f_names = null;
- cn = factory.createSimpleTypeNode();
-
+
+ cn = factory.createSimpleTypeNode();
+
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:459:2: ( (f_names= r_identifier ) ( ( ( '::' ) (f_names= r_identifier ) ) )* )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:459:2: (f_names= r_identifier ) ( ( ( '::' ) (f_names= r_identifier ) ) )*
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:545:2: ( (f_names= r_identifier ) ( ( ( '::' ) (f_names= r_identifier ) ) )* )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:545:2: (f_names= r_identifier ) ( ( ( '::' ) (f_names= r_identifier ) ) )*
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:459:2: (f_names= r_identifier )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:459:3: f_names= r_identifier
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:545:2: (f_names= r_identifier )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:545:3: f_names= r_identifier
{
pushFollow(FOLLOW_r_identifier_in_r_simpleType3926);
f_names=r_identifier();
_fsp--;
if (failed) return cn;
if ( backtracking==0 ) {
- addToChildren(cn, f_names); ((SimpleTypeNode) cn).getNames().add(f_names);
+ addToChildren(cn, f_names);((BasicEList<CompositeNode>)((SimpleTypeNode) cn).getNames()).addUnique(f_names);
}
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:459:104: ( ( ( '::' ) (f_names= r_identifier ) ) )*
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:545:138: ( ( ( '::' ) (f_names= r_identifier ) ) )*
loop87:
do {
int alt87=2;
@@ -8693,13 +8779,13 @@ public class Xpand3NodeParser extends AbstractNodeParser {
switch (alt87) {
case 1 :
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:459:105: ( ( '::' ) (f_names= r_identifier ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:545:139: ( ( '::' ) (f_names= r_identifier ) )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:459:105: ( ( '::' ) (f_names= r_identifier ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:459:106: ( '::' ) (f_names= r_identifier )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:545:139: ( ( '::' ) (f_names= r_identifier ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:545:140: ( '::' ) (f_names= r_identifier )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:459:106: ( '::' )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:459:107: '::'
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:545:140: ( '::' )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:545:141: '::'
{
match(input,64,FOLLOW_64_in_r_simpleType3934); if (failed) return cn;
if ( backtracking==0 ) {
@@ -8708,15 +8794,15 @@ public class Xpand3NodeParser extends AbstractNodeParser {
}
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:459:149: (f_names= r_identifier )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:459:150: f_names= r_identifier
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:545:183: (f_names= r_identifier )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:545:184: f_names= r_identifier
{
pushFollow(FOLLOW_r_identifier_in_r_simpleType3942);
f_names=r_identifier();
_fsp--;
if (failed) return cn;
if ( backtracking==0 ) {
- addToChildren(cn, f_names); ((SimpleTypeNode) cn).getNames().add(f_names);
+ addToChildren(cn, f_names);((BasicEList<CompositeNode>)((SimpleTypeNode) cn).getNames()).addUnique(f_names);
}
}
@@ -8749,18 +8835,19 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start r_identifier
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:462:1: r_identifier returns [CompositeNode cn] : ( Identifier ) ;
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:548:1: r_identifier returns [CompositeNode cn] : ( Identifier ) ;
public CompositeNode r_identifier() throws RecognitionException {
CompositeNode cn = null;
- cn = factory.createIdentifierNode();
-
+
+ cn = factory.createIdentifierNode();
+
try {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:465:2: ( ( Identifier ) )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:465:2: ( Identifier )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:552:2: ( ( Identifier ) )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:552:2: ( Identifier )
{
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:465:2: ( Identifier )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:465:3: Identifier
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:552:2: ( Identifier )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:552:3: Identifier
{
match(input,Identifier,FOLLOW_Identifier_in_r_identifier3969); if (failed) return cn;
if ( backtracking==0 ) {
@@ -8785,8 +8872,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start synpred1
public void synpred1_fragment() throws RecognitionException {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:199:60: ( r_type r_identifier r_identifier )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:199:61: r_type r_identifier r_identifier
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:225:60: ( r_type r_identifier r_identifier )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:225:61: r_type r_identifier r_identifier
{
pushFollow(FOLLOW_r_type_in_synpred11764);
r_type();
@@ -8807,8 +8894,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start synpred2
public void synpred2_fragment() throws RecognitionException {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:200:4: ( r_type r_identifier )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:200:5: r_type r_identifier
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:226:4: ( r_type r_identifier )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:226:5: r_type r_identifier
{
pushFollow(FOLLOW_r_type_in_synpred21801);
r_type();
@@ -8825,8 +8912,8 @@ public class Xpand3NodeParser extends AbstractNodeParser {
// $ANTLR start synpred3
public void synpred3_fragment() throws RecognitionException {
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:243:2: ( '(' r_type ')' r_chainExpression )
- // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:243:3: '(' r_type ')' r_chainExpression
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:280:2: ( '(' r_type ')' r_chainExpression )
+ // ./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g:280:3: '(' r_type ')' r_chainExpression
{
match(input,31,FOLLOW_31_in_synpred32213); if (failed) return ;
pushFollow(FOLLOW_r_type_in_synpred32215);
@@ -8951,7 +9038,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
this.transition = DFA45_transition;
}
public String getDescription() {
- return "199:59: ( ( r_type r_identifier r_identifier )=> ( (f_returnType= r_type ) (f_createdName= r_identifier ) (f_name= r_identifier ) ) | ( r_type r_identifier )=> ( (f_returnType= r_type ) (f_name= r_identifier ) ) | (f_name= r_identifier ) )";
+ return "225:59: ( ( r_type r_identifier r_identifier )=> ( (f_returnType= r_type ) (f_createdName= r_identifier ) (f_name= r_identifier ) ) | ( r_type r_identifier )=> ( (f_returnType= r_type ) (f_name= r_identifier ) ) | (f_name= r_identifier ) )";
}
public int specialStateTransition(int s, IntStream input) throws NoViableAltException {
int _s = s;
@@ -9104,7 +9191,7 @@ public class Xpand3NodeParser extends AbstractNodeParser {
this.transition = DFA53_transition;
}
public String getDescription() {
- return "239:1: r_castedExpression returns [CompositeNode cn] : ( ( '(' r_type ')' r_chainExpression )=> ( ( '(' ) (f_type= r_type ) ( ')' ) (f_target= r_chainExpression ) ) | (f_unnamed14= r_chainExpression ) );";
+ return "273:1: r_castedExpression returns [CompositeNode cn] : ( ( '(' r_type ')' r_chainExpression )=> ( ( '(' ) (f_type= r_type ) ( ')' ) (f_target= r_chainExpression ) ) | (f_unnamed14= r_chainExpression ) );";
}
public int specialStateTransition(int s, IntStream input) throws NoViableAltException {
int _s = s;
diff --git a/plugins/org.eclipse.xpand3.parser/src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node__.g b/plugins/org.eclipse.xpand3.parser/src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node__.g
index 3b6fd52..5710e06 100644
--- a/plugins/org.eclipse.xpand3.parser/src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node__.g
+++ b/plugins/org.eclipse.xpand3.parser/src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node__.g
@@ -95,20 +95,20 @@ T110 : '|' ;
T111 : '[' ;
T112 : ']' ;
-// $ANTLR src "./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g" 469
+// $ANTLR src "./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g" 556
IntLiteral :
('0' | '1'..'9' '0'..'9'*)
;
-// $ANTLR src "./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g" 474
+// $ANTLR src "./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g" 561
StringLiteral :
'\"' ( EscapeSequence | ~('\\'|'\"') )* '\"'
| '\'' ( EscapeSequence | ~('\''|'\\') )* '\''
;
-// $ANTLR src "./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g" 480
+// $ANTLR src "./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g" 567
fragment EscapeSequence :
'\\' ('b'|'t'|'n'|'f'|'r'|'\"'|'\''|'\\')
| UnicodeEscape
@@ -116,7 +116,7 @@ fragment EscapeSequence :
;
-// $ANTLR src "./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g" 487
+// $ANTLR src "./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g" 574
fragment OctalEscape :
'\\' ('0'..'3') ('0'..'7') ('0'..'7')
| '\\' ('0'..'7') ('0'..'7')
@@ -124,49 +124,49 @@ fragment OctalEscape :
;
-// $ANTLR src "./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g" 494
+// $ANTLR src "./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g" 581
fragment UnicodeEscape :
'\\' 'u' HexDigit HexDigit HexDigit HexDigit
;
-// $ANTLR src "./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g" 499
+// $ANTLR src "./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g" 586
fragment HexDigit :
('0'..'9'|'a'..'f'|'A'..'F')
;
-// $ANTLR src "./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g" 504
+// $ANTLR src "./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g" 591
DEFINE :
{xpandMode=true;} 'DEFINE'
;
-// $ANTLR src "./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g" 509
+// $ANTLR src "./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g" 596
ENDDEFINE :
'ENDDEFINE' {xpandMode=false;}
;
-// $ANTLR src "./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g" 514
+// $ANTLR src "./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g" 601
AROUND :
{xpandMode=true;}'AROUND'
;
-// $ANTLR src "./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g" 519
+// $ANTLR src "./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g" 606
ENDAROUND :
'ENDAROUND'{xpandMode=false;}
;
-// $ANTLR src "./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g" 524
+// $ANTLR src "./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g" 611
Identifier :
('^')? Letter (Letter|JavaIDDigit)*
;
-// $ANTLR src "./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g" 529
+// $ANTLR src "./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g" 616
fragment Letter :
'\u0024' |
'\u0041'..'\u005a' |
@@ -184,7 +184,7 @@ fragment Letter :
;
-// $ANTLR src "./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g" 546
+// $ANTLR src "./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g" 633
fragment JavaIDDigit :
'\u0030'..'\u0039' |
@@ -206,49 +206,49 @@ fragment JavaIDDigit :
;
-// $ANTLR src "./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g" 567
+// $ANTLR src "./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g" 654
WS :
(' '|'\r'|'\t'|'\u000C'|'\n') {$channel=HIDDEN;}
;
-// $ANTLR src "./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g" 572
+// $ANTLR src "./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g" 659
COMMENT :
'/*' ( options {greedy=false;} : . )* '*/' {$channel=HIDDEN;}
;
-// $ANTLR src "./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g" 577
+// $ANTLR src "./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g" 664
LINE_COMMENT :
'//' ~('\n'|'\r')* ('\r'? '\n'|EOF) {$channel=HIDDEN;}
;
-// $ANTLR src "./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g" 582
+// $ANTLR src "./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g" 669
REM_COMMENT_OUT :
{!xpandMode}?=> LG 'REM' RG ( options {greedy=false;} : . )* '\u00ABENDREM' RG {$channel=HIDDEN;}
;
-// $ANTLR src "./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g" 587
+// $ANTLR src "./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g" 674
REM_COMMENT :
{xpandMode}?=> 'REM' RG ( options {greedy=false;} : . )* '\u00ABENDREM' {$channel=HIDDEN;}
;
-// $ANTLR src "./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g" 592
+// $ANTLR src "./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g" 679
TEXT :
{xpandMode}?=> RG ~(LG)* (LG)?
;
-// $ANTLR src "./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g" 597
+// $ANTLR src "./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g" 684
LG :
'\u00AB'
;
-// $ANTLR src "./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g" 602
+// $ANTLR src "./src-gen/org/eclipse/xpand3/internal/frontend/parser/Xpand3Node.g" 689
RG :
'\u00BB'
;
diff --git a/tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/frontend/parser/performance.txt b/tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/frontend/parser/performance.txt
new file mode 100644
index 0000000..8e0c9b9
--- /dev/null
+++ b/tests/org.eclipse.xpand3.parser.tests/src/org/eclipse/xpand3/frontend/parser/performance.txt
@@ -0,0 +1,22 @@
+Time for 1 extensions: 1505
+Time for 10 extensions: 17
+Time for 100 extensions: 90
+Time for 1000 extensions: 290
+Time for 5000 extensions: 1385
+Time for 50000 extensions: 56730
+
+BasicEList.addUnique()
+Time for 1 extensions: 1839
+Time for 10 extensions: 19
+Time for 100 extensions: 86
+Time for 1000 extensions: 267
+Time for 5000 extensions: 949
+Time for 50000 extensions: 9985
+
+ListRecycler, non-containment list
+Time for 1 extensions: 1473
+Time for 10 extensions: 17
+Time for 100 extensions: 101
+Time for 1000 extensions: 286
+Time for 5000 extensions: 973
+Time for 50000 extensions: 10391 \ No newline at end of file