summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsefftinge2008-02-28 04:31:33 (EST)
committer sefftinge2008-02-28 04:31:33 (EST)
commit59d3f2ba75fd01e73a414bfc2fe3fc399650e19f (patch)
treee4afe47fa526ce4aae63436bf81c0d7ba82172c7
parent0e229d38fa709e239b2e54b641822f8ac146ba85 (diff)
downloadorg.eclipse.xpand-59d3f2ba75fd01e73a414bfc2fe3fc399650e19f.zip
org.eclipse.xpand-59d3f2ba75fd01e73a414bfc2fe3fc399650e19f.tar.gz
org.eclipse.xpand-59d3f2ba75fd01e73a414bfc2fe3fc399650e19f.tar.bz2
small changes
-rw-r--r--plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/parser/AbstractXpand3NodeParser.java18
-rw-r--r--plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/parser/Xpand3.g4
-rw-r--r--plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/parser/Xpand3Lexer.java190
-rw-r--r--plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/parser/Xpand3NodeParser.java228
-rw-r--r--plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/parser/Xpand3Parser.java5461
-rw-r--r--plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/parser/Xpand3__.g42
-rw-r--r--tests/org.eclipse.xpand3.tests/src/org/eclipse/xpand3/parser/Xpand3NodeParserTest.java19
7 files changed, 4304 insertions, 1658 deletions
diff --git a/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/parser/AbstractXpand3NodeParser.java b/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/parser/AbstractXpand3NodeParser.java
index 850dfec..1ff4c0e 100644
--- a/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/parser/AbstractXpand3NodeParser.java
+++ b/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/parser/AbstractXpand3NodeParser.java
@@ -2,11 +2,11 @@ package org.eclipse.xpand3.parser;
import java.util.Set;
-import org.antlr.runtime.BitSet;
import org.antlr.runtime.CommonToken;
-import org.antlr.runtime.IntStream;
import org.antlr.runtime.RecognitionException;
+import org.antlr.runtime.Token;
import org.antlr.runtime.TokenStream;
+import org.antlr.runtime.tree.CommonTreeAdaptor;
import org.eclipse.xpand3.node.CompositeNode;
import org.eclipse.xpand3.node.LeafNode;
import org.eclipse.xpand3.node.LexedToken;
@@ -20,6 +20,14 @@ public abstract class AbstractXpand3NodeParser extends Xpand3Parser {
public AbstractXpand3NodeParser(TokenStream input) {
super(input);
+ setTreeAdaptor(new CommonTreeAdaptor() {
+ @Override
+ public Object create(Token arg0) {
+ if (arg0 != null)
+ createLexedToken((CommonToken) arg0);
+ return super.create(arg0);
+ }
+ });
}
protected abstract Set<String> normalizableRules();
@@ -53,19 +61,15 @@ public abstract class AbstractXpand3NodeParser extends Xpand3Parser {
throw new RuntimeException(getErrorMessage(arg0, getTokenNames()), arg0);
}
- @Override
- public void match(IntStream arg0, int arg1, BitSet arg2)
- throws RecognitionException {
+ public void createLexedToken(CommonToken ct) {
LeafNode n = NodeFactory.eINSTANCE.createLeafNode();
current.getChildren().add(n);
LexedToken myToken = NodeFactory.eINSTANCE.createLexedToken();
n.setToken(myToken);
- CommonToken ct = (CommonToken) input.LT(1);
myToken.setText(ct.getText());
myToken.setStart(ct.getStartIndex());
myToken.setEnd(ct.getStopIndex());
myToken.setLine(ct.getLine());
- super.match(arg0, arg1, arg2);
}
public Node getRootNode() {
diff --git a/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/parser/Xpand3.g b/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/parser/Xpand3.g
index 9bee9d9..fdc704e 100644
--- a/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/parser/Xpand3.g
+++ b/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/parser/Xpand3.g
@@ -1,4 +1,5 @@
grammar Xpand3;
+
@lexer::members {
private boolean xpandMode = false;
}
@@ -11,9 +12,6 @@ package org.eclipse.xpand3.parser;
package org.eclipse.xpand3.parser;
}
-
-
-
r_file :
(r_nsImport)*
(r_abstractDeclaration )*
diff --git a/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/parser/Xpand3Lexer.java b/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/parser/Xpand3Lexer.java
index f2cb3b6..4d5d7c4 100644
--- a/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/parser/Xpand3Lexer.java
+++ b/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/parser/Xpand3Lexer.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0 src/org/eclipse/xpand3/parser/Xpand3.g 2008-02-28 08:51:40
+// $ANTLR 3.0 src/org/eclipse/xpand3/parser/Xpand3.g 2008-02-28 09:34:54
package org.eclipse.xpand3.parser;
@@ -1746,10 +1746,10 @@ public class Xpand3Lexer extends Lexer {
public void mIntLiteral() throws RecognitionException {
try {
int _type = IntLiteral;
- // src/org/eclipse/xpand3/parser/Xpand3.g:349:14: ( ( '0' | '1' .. '9' ( '0' .. '9' )* ) )
- // src/org/eclipse/xpand3/parser/Xpand3.g:349:14: ( '0' | '1' .. '9' ( '0' .. '9' )* )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:351:14: ( ( '0' | '1' .. '9' ( '0' .. '9' )* ) )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:351:14: ( '0' | '1' .. '9' ( '0' .. '9' )* )
{
- // src/org/eclipse/xpand3/parser/Xpand3.g:349:14: ( '0' | '1' .. '9' ( '0' .. '9' )* )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:351:14: ( '0' | '1' .. '9' ( '0' .. '9' )* )
int alt2=2;
int LA2_0 = input.LA(1);
@@ -1761,23 +1761,23 @@ public class Xpand3Lexer extends Lexer {
}
else {
NoViableAltException nvae =
- new NoViableAltException("349:14: ( '0' | '1' .. '9' ( '0' .. '9' )* )", 2, 0, input);
+ new NoViableAltException("351:14: ( '0' | '1' .. '9' ( '0' .. '9' )* )", 2, 0, input);
throw nvae;
}
switch (alt2) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:349:15: '0'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:351:15: '0'
{
match('0');
}
break;
case 2 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:349:21: '1' .. '9' ( '0' .. '9' )*
+ // src/org/eclipse/xpand3/parser/Xpand3.g:351:21: '1' .. '9' ( '0' .. '9' )*
{
matchRange('1','9');
- // src/org/eclipse/xpand3/parser/Xpand3.g:349:30: ( '0' .. '9' )*
+ // src/org/eclipse/xpand3/parser/Xpand3.g:351:30: ( '0' .. '9' )*
loop1:
do {
int alt1=2;
@@ -1790,7 +1790,7 @@ public class Xpand3Lexer extends Lexer {
switch (alt1) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:349:30: '0' .. '9'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:351:30: '0' .. '9'
{
matchRange('0','9');
@@ -1822,7 +1822,7 @@ public class Xpand3Lexer extends Lexer {
public void mStringLiteral() throws RecognitionException {
try {
int _type = StringLiteral;
- // src/org/eclipse/xpand3/parser/Xpand3.g:352:8: ( '\"' ( EscapeSequence | ~ ( '\\\\' | '\"' ) )* '\"' | '\\'' ( EscapeSequence | ~ ( '\\'' | '\\\\' ) )* '\\'' )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:354:8: ( '\"' ( EscapeSequence | ~ ( '\\\\' | '\"' ) )* '\"' | '\\'' ( EscapeSequence | ~ ( '\\'' | '\\\\' ) )* '\\'' )
int alt5=2;
int LA5_0 = input.LA(1);
@@ -1834,16 +1834,16 @@ public class Xpand3Lexer extends Lexer {
}
else {
NoViableAltException nvae =
- new NoViableAltException("351:1: StringLiteral : ( '\"' ( EscapeSequence | ~ ( '\\\\' | '\"' ) )* '\"' | '\\'' ( EscapeSequence | ~ ( '\\'' | '\\\\' ) )* '\\'' );", 5, 0, input);
+ new NoViableAltException("353:1: StringLiteral : ( '\"' ( EscapeSequence | ~ ( '\\\\' | '\"' ) )* '\"' | '\\'' ( EscapeSequence | ~ ( '\\'' | '\\\\' ) )* '\\'' );", 5, 0, input);
throw nvae;
}
switch (alt5) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:352:8: '\"' ( EscapeSequence | ~ ( '\\\\' | '\"' ) )* '\"'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:354:8: '\"' ( EscapeSequence | ~ ( '\\\\' | '\"' ) )* '\"'
{
match('\"');
- // src/org/eclipse/xpand3/parser/Xpand3.g:352:12: ( EscapeSequence | ~ ( '\\\\' | '\"' ) )*
+ // src/org/eclipse/xpand3/parser/Xpand3.g:354:12: ( EscapeSequence | ~ ( '\\\\' | '\"' ) )*
loop3:
do {
int alt3=3;
@@ -1859,14 +1859,14 @@ public class Xpand3Lexer extends Lexer {
switch (alt3) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:352:14: EscapeSequence
+ // src/org/eclipse/xpand3/parser/Xpand3.g:354:14: EscapeSequence
{
mEscapeSequence();
}
break;
case 2 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:352:31: ~ ( '\\\\' | '\"' )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:354:31: ~ ( '\\\\' | '\"' )
{
if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFE') ) {
input.consume();
@@ -1892,10 +1892,10 @@ public class Xpand3Lexer extends Lexer {
}
break;
case 2 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:353:8: '\\'' ( EscapeSequence | ~ ( '\\'' | '\\\\' ) )* '\\''
+ // src/org/eclipse/xpand3/parser/Xpand3.g:355:8: '\\'' ( EscapeSequence | ~ ( '\\'' | '\\\\' ) )* '\\''
{
match('\'');
- // src/org/eclipse/xpand3/parser/Xpand3.g:353:13: ( EscapeSequence | ~ ( '\\'' | '\\\\' ) )*
+ // src/org/eclipse/xpand3/parser/Xpand3.g:355:13: ( EscapeSequence | ~ ( '\\'' | '\\\\' ) )*
loop4:
do {
int alt4=3;
@@ -1911,14 +1911,14 @@ public class Xpand3Lexer extends Lexer {
switch (alt4) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:353:15: EscapeSequence
+ // src/org/eclipse/xpand3/parser/Xpand3.g:355:15: EscapeSequence
{
mEscapeSequence();
}
break;
case 2 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:353:32: ~ ( '\\'' | '\\\\' )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:355:32: ~ ( '\\'' | '\\\\' )
{
if ( (input.LA(1)>='\u0000' && input.LA(1)<='&')||(input.LA(1)>='(' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFE') ) {
input.consume();
@@ -1955,7 +1955,7 @@ public class Xpand3Lexer extends Lexer {
// $ANTLR start EscapeSequence
public void mEscapeSequence() throws RecognitionException {
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:358:9: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | UnicodeEscape | OctalEscape )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:360:9: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | UnicodeEscape | OctalEscape )
int alt6=3;
int LA6_0 = input.LA(1);
@@ -1992,7 +1992,7 @@ public class Xpand3Lexer extends Lexer {
break;
default:
NoViableAltException nvae =
- new NoViableAltException("356:1: fragment EscapeSequence : ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | UnicodeEscape | OctalEscape );", 6, 1, input);
+ new NoViableAltException("358:1: fragment EscapeSequence : ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | UnicodeEscape | OctalEscape );", 6, 1, input);
throw nvae;
}
@@ -2000,13 +2000,13 @@ public class Xpand3Lexer extends Lexer {
}
else {
NoViableAltException nvae =
- new NoViableAltException("356:1: fragment EscapeSequence : ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | UnicodeEscape | OctalEscape );", 6, 0, input);
+ new NoViableAltException("358:1: fragment EscapeSequence : ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | UnicodeEscape | OctalEscape );", 6, 0, input);
throw nvae;
}
switch (alt6) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:358:9: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:360:9: '\\\\' ( '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' ) {
@@ -2023,14 +2023,14 @@ public class Xpand3Lexer extends Lexer {
}
break;
case 2 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:359:9: UnicodeEscape
+ // src/org/eclipse/xpand3/parser/Xpand3.g:361:9: UnicodeEscape
{
mUnicodeEscape();
}
break;
case 3 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:360:9: OctalEscape
+ // src/org/eclipse/xpand3/parser/Xpand3.g:362:9: OctalEscape
{
mOctalEscape();
@@ -2047,7 +2047,7 @@ public class Xpand3Lexer extends Lexer {
// $ANTLR start OctalEscape
public void mOctalEscape() throws RecognitionException {
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:365:9: ( '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:367:9: ( '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) )
int alt7=3;
int LA7_0 = input.LA(1);
@@ -2080,38 +2080,38 @@ public class Xpand3Lexer extends Lexer {
}
else {
NoViableAltException nvae =
- new NoViableAltException("363:1: fragment OctalEscape : ( '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) );", 7, 1, input);
+ new NoViableAltException("365:1: fragment OctalEscape : ( '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) );", 7, 1, input);
throw nvae;
}
}
else {
NoViableAltException nvae =
- new NoViableAltException("363:1: fragment OctalEscape : ( '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) );", 7, 0, input);
+ new NoViableAltException("365:1: fragment OctalEscape : ( '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) );", 7, 0, input);
throw nvae;
}
switch (alt7) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:365:9: '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:367:9: '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' )
{
match('\\');
- // src/org/eclipse/xpand3/parser/Xpand3.g:365:14: ( '0' .. '3' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:365:15: '0' .. '3'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:367:14: ( '0' .. '3' )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:367:15: '0' .. '3'
{
matchRange('0','3');
}
- // src/org/eclipse/xpand3/parser/Xpand3.g:365:25: ( '0' .. '7' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:365:26: '0' .. '7'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:367:25: ( '0' .. '7' )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:367:26: '0' .. '7'
{
matchRange('0','7');
}
- // src/org/eclipse/xpand3/parser/Xpand3.g:365:36: ( '0' .. '7' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:365:37: '0' .. '7'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:367:36: ( '0' .. '7' )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:367:37: '0' .. '7'
{
matchRange('0','7');
@@ -2121,18 +2121,18 @@ public class Xpand3Lexer extends Lexer {
}
break;
case 2 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:366:9: '\\\\' ( '0' .. '7' ) ( '0' .. '7' )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:368:9: '\\\\' ( '0' .. '7' ) ( '0' .. '7' )
{
match('\\');
- // src/org/eclipse/xpand3/parser/Xpand3.g:366:14: ( '0' .. '7' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:366:15: '0' .. '7'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:368:14: ( '0' .. '7' )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:368:15: '0' .. '7'
{
matchRange('0','7');
}
- // src/org/eclipse/xpand3/parser/Xpand3.g:366:25: ( '0' .. '7' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:366:26: '0' .. '7'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:368:25: ( '0' .. '7' )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:368:26: '0' .. '7'
{
matchRange('0','7');
@@ -2142,11 +2142,11 @@ public class Xpand3Lexer extends Lexer {
}
break;
case 3 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:367:9: '\\\\' ( '0' .. '7' )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:369:9: '\\\\' ( '0' .. '7' )
{
match('\\');
- // src/org/eclipse/xpand3/parser/Xpand3.g:367:14: ( '0' .. '7' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:367:15: '0' .. '7'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:369:14: ( '0' .. '7' )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:369:15: '0' .. '7'
{
matchRange('0','7');
@@ -2166,8 +2166,8 @@ public class Xpand3Lexer extends Lexer {
// $ANTLR start UnicodeEscape
public void mUnicodeEscape() throws RecognitionException {
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:372:9: ( '\\\\' 'u' HexDigit HexDigit HexDigit HexDigit )
- // src/org/eclipse/xpand3/parser/Xpand3.g:372:9: '\\\\' 'u' HexDigit HexDigit HexDigit HexDigit
+ // src/org/eclipse/xpand3/parser/Xpand3.g:374:9: ( '\\\\' 'u' HexDigit HexDigit HexDigit HexDigit )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:374:9: '\\\\' 'u' HexDigit HexDigit HexDigit HexDigit
{
match('\\');
match('u');
@@ -2187,8 +2187,8 @@ public class Xpand3Lexer extends Lexer {
// $ANTLR start HexDigit
public void mHexDigit() throws RecognitionException {
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:375:12: ( ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )
- // src/org/eclipse/xpand3/parser/Xpand3.g:375:12: ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:377:12: ( ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:377:12: ( '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();
@@ -2213,8 +2213,8 @@ public class Xpand3Lexer extends Lexer {
public void mDEFINE() throws RecognitionException {
try {
int _type = DEFINE;
- // src/org/eclipse/xpand3/parser/Xpand3.g:378:11: ( 'DEFINE' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:378:11: 'DEFINE'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:380:11: ( 'DEFINE' )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:380:11: 'DEFINE'
{
xpandMode=true;
match("DEFINE");
@@ -2233,8 +2233,8 @@ public class Xpand3Lexer extends Lexer {
public void mENDDEFINE() throws RecognitionException {
try {
int _type = ENDDEFINE;
- // src/org/eclipse/xpand3/parser/Xpand3.g:380:4: ( 'ENDDEFINE' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:380:4: 'ENDDEFINE'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:382:4: ( 'ENDDEFINE' )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:382:4: 'ENDDEFINE'
{
match("ENDDEFINE");
@@ -2253,8 +2253,8 @@ public class Xpand3Lexer extends Lexer {
public void mAROUND() throws RecognitionException {
try {
int _type = AROUND;
- // src/org/eclipse/xpand3/parser/Xpand3.g:382:11: ( 'AROUND' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:382:11: 'AROUND'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:384:11: ( 'AROUND' )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:384:11: 'AROUND'
{
xpandMode=true;
match("AROUND");
@@ -2273,8 +2273,8 @@ public class Xpand3Lexer extends Lexer {
public void mENDAROUND() throws RecognitionException {
try {
int _type = ENDAROUND;
- // src/org/eclipse/xpand3/parser/Xpand3.g:383:13: ( 'ENDAROUND' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:383:13: 'ENDAROUND'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:385:13: ( 'ENDAROUND' )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:385:13: 'ENDAROUND'
{
match("ENDAROUND");
@@ -2293,10 +2293,10 @@ public class Xpand3Lexer extends Lexer {
public void mIdentifier() throws RecognitionException {
try {
int _type = Identifier;
- // src/org/eclipse/xpand3/parser/Xpand3.g:386:9: ( ( '^' )? Letter ( Letter | JavaIDDigit )* )
- // src/org/eclipse/xpand3/parser/Xpand3.g:386:9: ( '^' )? Letter ( Letter | JavaIDDigit )*
+ // src/org/eclipse/xpand3/parser/Xpand3.g:388:9: ( ( '^' )? Letter ( Letter | JavaIDDigit )* )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:388:9: ( '^' )? Letter ( Letter | JavaIDDigit )*
{
- // src/org/eclipse/xpand3/parser/Xpand3.g:386:9: ( '^' )?
+ // src/org/eclipse/xpand3/parser/Xpand3.g:388:9: ( '^' )?
int alt8=2;
int LA8_0 = input.LA(1);
@@ -2305,7 +2305,7 @@ public class Xpand3Lexer extends Lexer {
}
switch (alt8) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:386:10: '^'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:388:10: '^'
{
match('^');
@@ -2315,7 +2315,7 @@ public class Xpand3Lexer extends Lexer {
}
mLetter();
- // src/org/eclipse/xpand3/parser/Xpand3.g:386:23: ( Letter | JavaIDDigit )*
+ // src/org/eclipse/xpand3/parser/Xpand3.g:388:23: ( Letter | JavaIDDigit )*
loop9:
do {
int alt9=2;
@@ -2362,7 +2362,7 @@ public class Xpand3Lexer extends Lexer {
// $ANTLR start Letter
public void mLetter() throws RecognitionException {
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:391:8: ( '\\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/org/eclipse/xpand3/parser/Xpand3.g:393:8: ( '\\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/org/eclipse/xpand3/parser/Xpand3.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') ) {
@@ -2387,7 +2387,7 @@ public class Xpand3Lexer extends Lexer {
// $ANTLR start JavaIDDigit
public void mJavaIDDigit() throws RecognitionException {
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:408: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/org/eclipse/xpand3/parser/Xpand3.g:410: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/org/eclipse/xpand3/parser/Xpand3.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') ) {
@@ -2413,8 +2413,8 @@ public class Xpand3Lexer extends Lexer {
public void mWS() throws RecognitionException {
try {
int _type = WS;
- // src/org/eclipse/xpand3/parser/Xpand3.g:425:8: ( ( ' ' | '\\r' | '\\t' | '\\u000C' | '\\n' ) )
- // src/org/eclipse/xpand3/parser/Xpand3.g:425:8: ( ' ' | '\\r' | '\\t' | '\\u000C' | '\\n' )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:427:8: ( ( ' ' | '\\r' | '\\t' | '\\u000C' | '\\n' ) )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:427:8: ( ' ' | '\\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();
@@ -2441,12 +2441,12 @@ public class Xpand3Lexer extends Lexer {
public void mCOMMENT() throws RecognitionException {
try {
int _type = COMMENT;
- // src/org/eclipse/xpand3/parser/Xpand3.g:429:9: ( '/*' ( options {greedy=false; } : . )* '*/' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:429:9: '/*' ( options {greedy=false; } : . )* '*/'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:431:9: ( '/*' ( options {greedy=false; } : . )* '*/' )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:431:9: '/*' ( options {greedy=false; } : . )* '*/'
{
match("/*");
- // src/org/eclipse/xpand3/parser/Xpand3.g:429:14: ( options {greedy=false; } : . )*
+ // src/org/eclipse/xpand3/parser/Xpand3.g:431:14: ( options {greedy=false; } : . )*
loop10:
do {
int alt10=2;
@@ -2471,7 +2471,7 @@ public class Xpand3Lexer extends Lexer {
switch (alt10) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:429:42: .
+ // src/org/eclipse/xpand3/parser/Xpand3.g:431:42: .
{
matchAny();
@@ -2500,12 +2500,12 @@ public class Xpand3Lexer extends Lexer {
public void mLINE_COMMENT() throws RecognitionException {
try {
int _type = LINE_COMMENT;
- // src/org/eclipse/xpand3/parser/Xpand3.g:433:7: ( '//' (~ ( '\\n' | '\\r' ) )* ( ( '\\r' )? '\\n' | EOF ) )
- // src/org/eclipse/xpand3/parser/Xpand3.g:433:7: '//' (~ ( '\\n' | '\\r' ) )* ( ( '\\r' )? '\\n' | EOF )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:435:7: ( '//' (~ ( '\\n' | '\\r' ) )* ( ( '\\r' )? '\\n' | EOF ) )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:435:7: '//' (~ ( '\\n' | '\\r' ) )* ( ( '\\r' )? '\\n' | EOF )
{
match("//");
- // src/org/eclipse/xpand3/parser/Xpand3.g:433:12: (~ ( '\\n' | '\\r' ) )*
+ // src/org/eclipse/xpand3/parser/Xpand3.g:435:12: (~ ( '\\n' | '\\r' ) )*
loop11:
do {
int alt11=2;
@@ -2518,7 +2518,7 @@ public class Xpand3Lexer extends Lexer {
switch (alt11) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:433:12: ~ ( '\\n' | '\\r' )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:435:12: ~ ( '\\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();
@@ -2539,7 +2539,7 @@ public class Xpand3Lexer extends Lexer {
}
} while (true);
- // src/org/eclipse/xpand3/parser/Xpand3.g:433:26: ( ( '\\r' )? '\\n' | EOF )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:435:26: ( ( '\\r' )? '\\n' | EOF )
int alt13=2;
int LA13_0 = input.LA(1);
@@ -2550,9 +2550,9 @@ public class Xpand3Lexer extends Lexer {
alt13=2;}
switch (alt13) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:433:27: ( '\\r' )? '\\n'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:435:27: ( '\\r' )? '\\n'
{
- // src/org/eclipse/xpand3/parser/Xpand3.g:433:27: ( '\\r' )?
+ // src/org/eclipse/xpand3/parser/Xpand3.g:435:27: ( '\\r' )?
int alt12=2;
int LA12_0 = input.LA(1);
@@ -2561,7 +2561,7 @@ public class Xpand3Lexer extends Lexer {
}
switch (alt12) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:433:27: '\\r'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:435:27: '\\r'
{
match('\r');
@@ -2575,7 +2575,7 @@ public class Xpand3Lexer extends Lexer {
}
break;
case 2 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:433:38: EOF
+ // src/org/eclipse/xpand3/parser/Xpand3.g:435:38: EOF
{
match(EOF);
@@ -2599,8 +2599,8 @@ public class Xpand3Lexer extends Lexer {
public void mREM_COMMENT_OUT() throws RecognitionException {
try {
int _type = REM_COMMENT_OUT;
- // src/org/eclipse/xpand3/parser/Xpand3.g:438:4: ({...}? => LG 'REM' RG ( options {greedy=false; } : . )* '\\u00ABENDREM' RG )
- // src/org/eclipse/xpand3/parser/Xpand3.g:438:4: {...}? => LG 'REM' RG ( options {greedy=false; } : . )* '\\u00ABENDREM' RG
+ // src/org/eclipse/xpand3/parser/Xpand3.g:440:4: ({...}? => LG 'REM' RG ( options {greedy=false; } : . )* '\\u00ABENDREM' RG )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:440:4: {...}? => LG 'REM' RG ( options {greedy=false; } : . )* '\\u00ABENDREM' RG
{
if ( !(!xpandMode) ) {
throw new FailedPredicateException(input, "REM_COMMENT_OUT", "!xpandMode");
@@ -2609,7 +2609,7 @@ public class Xpand3Lexer extends Lexer {
match("REM");
mRG();
- // src/org/eclipse/xpand3/parser/Xpand3.g:438:32: ( options {greedy=false; } : . )*
+ // src/org/eclipse/xpand3/parser/Xpand3.g:440:32: ( options {greedy=false; } : . )*
loop14:
do {
int alt14=2;
@@ -2688,7 +2688,7 @@ public class Xpand3Lexer extends Lexer {
switch (alt14) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:438:60: .
+ // src/org/eclipse/xpand3/parser/Xpand3.g:440:60: .
{
matchAny();
@@ -2718,8 +2718,8 @@ public class Xpand3Lexer extends Lexer {
public void mREM_COMMENT() throws RecognitionException {
try {
int _type = REM_COMMENT;
- // src/org/eclipse/xpand3/parser/Xpand3.g:442:2: ({...}? => 'REM' RG ( options {greedy=false; } : . )* '\\u00ABENDREM' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:442:2: {...}? => 'REM' RG ( options {greedy=false; } : . )* '\\u00ABENDREM'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:444:2: ({...}? => 'REM' RG ( options {greedy=false; } : . )* '\\u00ABENDREM' )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:444:2: {...}? => 'REM' RG ( options {greedy=false; } : . )* '\\u00ABENDREM'
{
if ( !(xpandMode) ) {
throw new FailedPredicateException(input, "REM_COMMENT", "xpandMode");
@@ -2727,7 +2727,7 @@ public class Xpand3Lexer extends Lexer {
match("REM");
mRG();
- // src/org/eclipse/xpand3/parser/Xpand3.g:442:26: ( options {greedy=false; } : . )*
+ // src/org/eclipse/xpand3/parser/Xpand3.g:444:26: ( options {greedy=false; } : . )*
loop15:
do {
int alt15=2;
@@ -2797,7 +2797,7 @@ public class Xpand3Lexer extends Lexer {
switch (alt15) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:442:54: .
+ // src/org/eclipse/xpand3/parser/Xpand3.g:444:54: .
{
matchAny();
@@ -2826,14 +2826,14 @@ public class Xpand3Lexer extends Lexer {
public void mTEXT() throws RecognitionException {
try {
int _type = TEXT;
- // src/org/eclipse/xpand3/parser/Xpand3.g:447:3: ({...}? => RG (~ ( LG ) )* ( LG )? )
- // src/org/eclipse/xpand3/parser/Xpand3.g:447:3: {...}? => RG (~ ( LG ) )* ( LG )?
+ // src/org/eclipse/xpand3/parser/Xpand3.g:449:3: ({...}? => RG (~ ( LG ) )* ( LG )? )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:449:3: {...}? => RG (~ ( LG ) )* ( LG )?
{
if ( !(xpandMode) ) {
throw new FailedPredicateException(input, "TEXT", "xpandMode");
}
mRG();
- // src/org/eclipse/xpand3/parser/Xpand3.g:447:21: (~ ( LG ) )*
+ // src/org/eclipse/xpand3/parser/Xpand3.g:449:21: (~ ( LG ) )*
loop16:
do {
int alt16=2;
@@ -2846,7 +2846,7 @@ public class Xpand3Lexer extends Lexer {
switch (alt16) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:447:21: ~ ( LG )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:449:21: ~ ( LG )
{
if ( (input.LA(1)>='\u0000' && input.LA(1)<='\u00AA')||(input.LA(1)>='\u00AC' && input.LA(1)<='\uFFFE') ) {
input.consume();
@@ -2867,7 +2867,7 @@ public class Xpand3Lexer extends Lexer {
}
} while (true);
- // src/org/eclipse/xpand3/parser/Xpand3.g:447:28: ( LG )?
+ // src/org/eclipse/xpand3/parser/Xpand3.g:449:28: ( LG )?
int alt17=2;
int LA17_0 = input.LA(1);
@@ -2876,7 +2876,7 @@ public class Xpand3Lexer extends Lexer {
}
switch (alt17) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:447:29: LG
+ // src/org/eclipse/xpand3/parser/Xpand3.g:449:29: LG
{
mLG();
@@ -2899,8 +2899,8 @@ public class Xpand3Lexer extends Lexer {
public void mLG() throws RecognitionException {
try {
int _type = LG;
- // src/org/eclipse/xpand3/parser/Xpand3.g:451:4: ( '\\u00AB' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:451:4: '\\u00AB'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:453:4: ( '\\u00AB' )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:453:4: '\\u00AB'
{
match('\u00AB');
@@ -2917,8 +2917,8 @@ public class Xpand3Lexer extends Lexer {
public void mRG() throws RecognitionException {
try {
int _type = RG;
- // src/org/eclipse/xpand3/parser/Xpand3.g:453:4: ( '\\u00BB' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:453:4: '\\u00BB'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:455:4: ( '\\u00BB' )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:455:4: '\\u00BB'
{
match('\u00BB');
diff --git a/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/parser/Xpand3NodeParser.java b/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/parser/Xpand3NodeParser.java
index 3f1d247..097b1bd 100644
--- a/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/parser/Xpand3NodeParser.java
+++ b/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/parser/Xpand3NodeParser.java
@@ -43,626 +43,626 @@ public class Xpand3NodeParser extends AbstractXpand3NodeParser {
// Following code is generated (or at least should be)
@Override
- public void r_abstractDeclaration() throws RecognitionException {
+ public r_abstractDeclaration_return r_abstractDeclaration() throws RecognitionException {
try {
ruleStart("r_abstractDeclaration");
- super.r_abstractDeclaration();
+ return super.r_abstractDeclaration();
} finally {
ruleEnd();
}
}
@Override
- public void r_additiveExpression() throws RecognitionException {
+ public r_additiveExpression_return r_additiveExpression() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_additiveExpression");
- super.r_additiveExpression();
+ return super.r_additiveExpression();
} finally {
ruleEnd();
}
}
@Override
- public void r_andExpression() throws RecognitionException {
+ public r_andExpression_return r_andExpression() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_andExpression");
- super.r_andExpression();
+ return super.r_andExpression();
} finally {
ruleEnd();
}
}
@Override
- public void r_around() throws RecognitionException {
+ public r_around_return r_around() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_around");
- super.r_around();
+ return super.r_around();
} finally {
ruleEnd();
}
}
@Override
- public void r_booleanLiteral() throws RecognitionException {
+ public r_booleanLiteral_return r_booleanLiteral() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_booleanLiteral");
- super.r_booleanLiteral();
+ return super.r_booleanLiteral();
} finally {
ruleEnd();
}
}
@Override
- public void r_casePart() throws RecognitionException {
+ public r_casePart_return r_casePart() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_casePart");
- super.r_casePart();
+ return super.r_casePart();
} finally {
ruleEnd();
}
}
@Override
- public void r_castedExpression() throws RecognitionException {
+ public r_castedExpression_return r_castedExpression() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_castedExpression");
- super.r_castedExpression();
+ return super.r_castedExpression();
} finally {
ruleEnd();
}
}
@Override
- public void r_chainExpression() throws RecognitionException {
+ public r_chainExpression_return r_chainExpression() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_chainExpression");
- super.r_chainExpression();
+ return super.r_chainExpression();
} finally {
ruleEnd();
}
}
@Override
- public void r_check() throws RecognitionException {
+ public r_check_return r_check() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_check");
- super.r_check();
+ return super.r_check();
} finally {
ruleEnd();
}
}
@Override
- public void r_collectionExpression() throws RecognitionException {
+ public r_collectionExpression_return r_collectionExpression() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_collectionExpression");
- super.r_collectionExpression();
+ return super.r_collectionExpression();
} finally {
ruleEnd();
}
}
@Override
- public void r_collectionType() throws RecognitionException {
+ public r_collectionType_return r_collectionType() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_collectionType");
- super.r_collectionType();
+ return super.r_collectionType();
} finally {
ruleEnd();
}
}
@Override
- public void r_constructorCall() throws RecognitionException {
+ public r_constructorCall_return r_constructorCall() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_constructorCall");
- super.r_constructorCall();
+ return super.r_constructorCall();
} finally {
ruleEnd();
}
}
@Override
- public void r_declaredParameter() throws RecognitionException {
+ public r_declaredParameter_return r_declaredParameter() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_declaredParameter");
- super.r_declaredParameter();
+ return super.r_declaredParameter();
} finally {
ruleEnd();
}
}
@Override
- public void r_declaredParameterList() throws RecognitionException {
+ public r_declaredParameterList_return r_declaredParameterList() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_declaredParameterList");
- super.r_declaredParameterList();
+ return super.r_declaredParameterList();
} finally {
ruleEnd();
}
}
@Override
- public void r_expression() throws RecognitionException {
+ public r_expression_return r_expression() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_expression");
- super.r_expression();
+ return super.r_expression();
} finally {
ruleEnd();
}
}
@Override
- public void r_extension() throws RecognitionException {
+ public r_extension_return r_extension() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_extension");
- super.r_extension();
+ return super.r_extension();
} finally {
ruleEnd();
}
}
@Override
- public void r_featureCall() throws RecognitionException {
+ public r_featureCall_return r_featureCall() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_featureCall");
- super.r_featureCall();
+ return super.r_featureCall();
} finally {
ruleEnd();
}
}
@Override
- public void r_file() throws RecognitionException {
+ public r_file_return r_file() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_file");
- super.r_file();
+ return super.r_file();
} finally {
ruleEnd();
}
}
@Override
- public void r_globalVarExpression() throws RecognitionException {
+ public r_globalVarExpression_return r_globalVarExpression() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_globalVarExpression");
- super.r_globalVarExpression();
+ return super.r_globalVarExpression();
} finally {
ruleEnd();
}
}
@Override
- public void r_identifier() throws RecognitionException {
+ public r_identifier_return r_identifier() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_identifier");
- super.r_identifier();
+ return super.r_identifier();
} finally {
ruleEnd();
}
}
@Override
- public void r_ifExpression() throws RecognitionException {
+ public r_ifExpression_return r_ifExpression() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_ifExpression");
- super.r_ifExpression();
+ return super.r_ifExpression();
} finally {
ruleEnd();
}
}
@Override
- public void r_impliesExpression() throws RecognitionException {
+ public r_impliesExpression_return r_impliesExpression() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_impliesExpression");
- super.r_impliesExpression();
+ return super.r_impliesExpression();
} finally {
ruleEnd();
}
}
@Override
- public void r_infixExpression() throws RecognitionException {
+ public r_infixExpression_return r_infixExpression() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_infixExpression");
- super.r_infixExpression();
+ return super.r_infixExpression();
} finally {
ruleEnd();
}
}
@Override
- public void r_javaType() throws RecognitionException {
+ public r_javaType_return r_javaType() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_javaType");
- super.r_javaType();
+ return super.r_javaType();
} finally {
ruleEnd();
}
}
@Override
- public void r_letExpression() throws RecognitionException {
+ public r_letExpression_return r_letExpression() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_letExpression");
- super.r_letExpression();
+ return super.r_letExpression();
} finally {
ruleEnd();
}
}
@Override
- public void r_listLiteral() throws RecognitionException {
+ public r_listLiteral_return r_listLiteral() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_listLiteral");
- super.r_listLiteral();
+ return super.r_listLiteral();
} finally {
ruleEnd();
}
}
@Override
- public void r_multiplicativeExpression() throws RecognitionException {
+ public r_multiplicativeExpression_return r_multiplicativeExpression() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_multiplicativeExpression");
- super.r_multiplicativeExpression();
+ return super.r_multiplicativeExpression();
} finally {
ruleEnd();
}
}
@Override
- public void r_nsImport() throws RecognitionException {
+ public r_nsImport_return r_nsImport() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_nsImport");
- super.r_nsImport();
+ return super.r_nsImport();
} finally {
ruleEnd();
}
}
@Override
- public void r_nullLiteral() throws RecognitionException {
+ public r_nullLiteral_return r_nullLiteral() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_nullLiteral");
- super.r_nullLiteral();
+ return super.r_nullLiteral();
} finally {
ruleEnd();
}
}
@Override
- public void r_numberLiteral() throws RecognitionException {
+ public r_numberLiteral_return r_numberLiteral() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_numberLiteral");
- super.r_numberLiteral();
+ return super.r_numberLiteral();
} finally {
ruleEnd();
}
}
@Override
- public void r_orExpression() throws RecognitionException {
+ public r_orExpression_return r_orExpression() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_orExpression");
- super.r_orExpression();
+ return super.r_orExpression();
} finally {
ruleEnd();
}
}
@Override
- public void r_parameterList() throws RecognitionException {
+ public r_parameterList_return r_parameterList() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_parameterList");
- super.r_parameterList();
+ return super.r_parameterList();
} finally {
ruleEnd();
}
}
@Override
- public void r_paranthesizedExpression() throws RecognitionException {
+ public r_paranthesizedExpression_return r_paranthesizedExpression() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_paranthesizedExpression");
- super.r_paranthesizedExpression();
+ return super.r_paranthesizedExpression();
} finally {
ruleEnd();
}
}
@Override
- public void r_pointcut() throws RecognitionException {
+ public r_pointcut_return r_pointcut() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_pointcut");
- super.r_pointcut();
+ return super.r_pointcut();
} finally {
ruleEnd();
}
}
@Override
- public void r_primaryExpression() throws RecognitionException {
+ public r_primaryExpression_return r_primaryExpression() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_primaryExpression");
- super.r_primaryExpression();
+ return super.r_primaryExpression();
} finally {
ruleEnd();
}
}
@Override
- public void r_relationalExpression() throws RecognitionException {
+ public r_relationalExpression_return r_relationalExpression() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_relationalExpression");
- super.r_relationalExpression();
+ return super.r_relationalExpression();
} finally {
ruleEnd();
}
}
@Override
- public void r_simpleType() throws RecognitionException {
+ public r_simpleType_return r_simpleType() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_simpleType");
- super.r_simpleType();
+ return super.r_simpleType();
} finally {
ruleEnd();
}
}
@Override
- public void r_switchExpression() throws RecognitionException {
+ public r_switchExpression_return r_switchExpression() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_switchExpression");
- super.r_switchExpression();
+ return super.r_switchExpression();
} finally {
ruleEnd();
}
}
@Override
- public void r_type() throws RecognitionException {
+ public r_type_return r_type() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_type");
- super.r_type();
+ return super.r_type();
} finally {
ruleEnd();
}
}
@Override
- public void r_unaryExpression() throws RecognitionException {
+ public r_unaryExpression_return r_unaryExpression() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_unaryExpression");
- super.r_unaryExpression();
+ return super.r_unaryExpression();
} finally {
ruleEnd();
}
}
@Override
- public void r_definition() throws RecognitionException {
+ public r_definition_return r_definition() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_definition");
- super.r_definition();
+ return super.r_definition();
} finally {
ruleEnd();
}
}
@Override
- public void r_definitionAround() throws RecognitionException {
+ public r_definitionAround_return r_definitionAround() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_definitionAround");
- super.r_definitionAround();
+ return super.r_definitionAround();
} finally {
ruleEnd();
}
}
@Override
- public void r_elseIfStatement() throws RecognitionException {
+ public r_elseIfStatement_return r_elseIfStatement() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_elseIfStatement");
- super.r_elseIfStatement();
+ return super.r_elseIfStatement();
} finally {
ruleEnd();
}
}
@Override
- public void r_elseStatement() throws RecognitionException {
+ public r_elseStatement_return r_elseStatement() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_elseStatement");
- super.r_elseStatement();
+ return super.r_elseStatement();
} finally {
ruleEnd();
}
}
@Override
- public void r_errorStatement() throws RecognitionException {
+ public r_errorStatement_return r_errorStatement() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_errorStatement");
- super.r_errorStatement();
+ return super.r_errorStatement();
} finally {
ruleEnd();
}
}
@Override
- public void r_expandStatement() throws RecognitionException {
+ public r_expandStatement_return r_expandStatement() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_expandStatement");
- super.r_expandStatement();
+ return super.r_expandStatement();
} finally {
ruleEnd();
}
}
@Override
- public void r_expressionStmt() throws RecognitionException {
+ public r_expressionStmt_return r_expressionStmt() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_expressionStmt");
- super.r_expressionStmt();
+ return super.r_expressionStmt();
} finally {
ruleEnd();
}
}
@Override
- public void r_fileStatement() throws RecognitionException {
+ public r_fileStatement_return r_fileStatement() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_fileStatement");
- super.r_fileStatement();
+ return super.r_fileStatement();
} finally {
ruleEnd();
}
}
@Override
- public void r_foreachStatement() throws RecognitionException {
+ public r_foreachStatement_return r_foreachStatement() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_foreachStatement");
- super.r_foreachStatement();
+ return super.r_foreachStatement();
} finally {
ruleEnd();
}
}
@Override
- public void r_ifStatement() throws RecognitionException {
+ public r_ifStatement_return r_ifStatement() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_ifStatement");
- super.r_ifStatement();
+ return super.r_ifStatement();
} finally {
ruleEnd();
}
}
@Override
- public void r_letStatement() throws RecognitionException {
+ public r_letStatement_return r_letStatement() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_letStatement");
- super.r_letStatement();
+ return super.r_letStatement();
} finally {
ruleEnd();
}
}
@Override
- public void r_protectStatement() throws RecognitionException {
+ public r_protectStatement_return r_protectStatement() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_protectStatement");
- super.r_protectStatement();
+ return super.r_protectStatement();
} finally {
ruleEnd();
}
}
@Override
- public void r_sequence() throws RecognitionException {
+ public r_sequence_return r_sequence() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_sequence");
- super.r_sequence();
+ return super.r_sequence();
} finally {
ruleEnd();
}
}
@Override
- public void r_simpleStatement() throws RecognitionException {
+ public r_simpleStatement_return r_simpleStatement() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_simpleStatement");
- super.r_simpleStatement();
+ return super.r_simpleStatement();
} finally {
ruleEnd();
}
}
@Override
- public void r_statement() throws RecognitionException {
+ public r_statement_return r_statement() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_statement");
- super.r_statement();
+ return super.r_statement();
} finally {
ruleEnd();
}
}
@Override
- public void r_text() throws RecognitionException {
+ public r_text_return r_text() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_text");
- super.r_text();
+ return super.r_text();
} finally {
ruleEnd();
}
}
@Override
- public void r_textSequence() throws RecognitionException {
+ public r_textSequence_return r_textSequence() throws RecognitionException {
// Auto-generated method
try {
ruleStart("r_textSequence");
- super.r_textSequence();
+ return super.r_textSequence();
} finally {
ruleEnd();
}
diff --git a/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/parser/Xpand3Parser.java b/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/parser/Xpand3Parser.java
index 8689c0b..f32f420 100644
--- a/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/parser/Xpand3Parser.java
+++ b/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/parser/Xpand3Parser.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0 src/org/eclipse/xpand3/parser/Xpand3.g 2008-02-28 08:51:40
+// $ANTLR 3.0 src/org/eclipse/xpand3/parser/Xpand3.g 2008-02-28 09:34:54
package org.eclipse.xpand3.parser;
@@ -9,6 +9,9 @@ import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.util.HashMap;
+
+import org.antlr.runtime.tree.*;
+
public class Xpand3Parser extends Parser {
public static final String[] tokenNames = new String[] {
"<invalid>", "<EOR>", "<DOWN>", "<UP>", "LG", "RG", "DEFINE", "ENDDEFINE", "AROUND", "ENDAROUND", "TEXT", "StringLiteral", "IntLiteral", "Identifier", "EscapeSequence", "UnicodeEscape", "OctalEscape", "HexDigit", "Letter", "JavaIDDigit", "WS", "COMMENT", "LINE_COMMENT", "REM_COMMENT_OUT", "REM_COMMENT", "'IMPORT'", "'EXTENSION'", "'import'", "';'", "'extension'", "'reexport'", "'('", "','", "'*'", "')'", "'FOR'", "'-'", "'ERROR'", "'EXPAND'", "'FOREACH'", "'SEPARATOR'", "'FILE'", "'ENDFILE'", "'AS'", "'ITERATOR'", "'ENDFOREACH'", "'IF'", "'ENDIF'", "'ELSEIF'", "'ELSE'", "'LET'", "'ENDLET'", "'PROTECT'", "'CSTART'", "'CEND'", "'ID'", "'DISABLE'", "'ENDPROTECT'", "'context'", "'if'", "'WARNING'", "':'", "'around'", "'::'", "'private'", "'cached'", "'create'", "'JAVA'", "'.'", "'Collection'", "'List'", "'Set'", "'let'", "'='", "'->'", "'?'", "'then'", "'else'", "'switch'", "'default'", "'}'", "'case'", "'||'", "'&&'", "'implies'", "'=='", "'!='", "'>='", "'<='", "'>'", "'<'", "'+'", "'/'", "'!'", "'GLOBALVAR'", "'['", "']'", "'new'", "'false'", "'true'", "'null'", "'typeSelect'", "'collect'", "'select'", "'selectFirst'", "'reject'", "'exists'", "'notExists'", "'sortBy'", "'forAll'", "'|'"
@@ -41,20 +44,47 @@ public class Xpand3Parser extends Parser {
ruleMemo = new HashMap[58+1];
}
+ protected TreeAdaptor adaptor = new CommonTreeAdaptor();
+
+ public void setTreeAdaptor(TreeAdaptor adaptor) {
+ this.adaptor = adaptor;
+ }
+ public TreeAdaptor getTreeAdaptor() {
+ return adaptor;
+ }
public String[] getTokenNames() { return tokenNames; }
public String getGrammarFileName() { return "src/org/eclipse/xpand3/parser/Xpand3.g"; }
+ public static class r_file_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_file
- // src/org/eclipse/xpand3/parser/Xpand3.g:17:1: r_file : ( r_nsImport )* ( r_abstractDeclaration )* EOF ;
- public void r_file() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:19:1: r_file : ( r_nsImport )* ( r_abstractDeclaration )* EOF ;
+ public r_file_return r_file() throws RecognitionException {
+ r_file_return retval = new r_file_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ Token EOF3=null;
+ r_nsImport_return r_nsImport1 = null;
+
+ r_abstractDeclaration_return r_abstractDeclaration2 = null;
+
+
+ Object EOF3_tree=null;
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:18:2: ( ( r_nsImport )* ( r_abstractDeclaration )* EOF )
- // src/org/eclipse/xpand3/parser/Xpand3.g:18:2: ( r_nsImport )* ( r_abstractDeclaration )* EOF
+ // src/org/eclipse/xpand3/parser/Xpand3.g:20:2: ( ( r_nsImport )* ( r_abstractDeclaration )* EOF )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:20:2: ( r_nsImport )* ( r_abstractDeclaration )* EOF
{
- // src/org/eclipse/xpand3/parser/Xpand3.g:18:2: ( r_nsImport )*
+ root_0 = (Object)adaptor.nil();
+
+ // src/org/eclipse/xpand3/parser/Xpand3.g:20:2: ( r_nsImport )*
loop1:
do {
int alt1=2;
@@ -76,12 +106,13 @@ public class Xpand3Parser extends Parser {
switch (alt1) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:18:3: r_nsImport
+ // src/org/eclipse/xpand3/parser/Xpand3.g:20:3: r_nsImport
{
- pushFollow(FOLLOW_r_nsImport_in_r_file42);
- r_nsImport();
+ pushFollow(FOLLOW_r_nsImport_in_r_file50);
+ r_nsImport1=r_nsImport();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_nsImport1.getTree());
}
break;
@@ -91,7 +122,7 @@ public class Xpand3Parser extends Parser {
}
} while (true);
- // src/org/eclipse/xpand3/parser/Xpand3.g:19:2: ( r_abstractDeclaration )*
+ // src/org/eclipse/xpand3/parser/Xpand3.g:21:2: ( r_abstractDeclaration )*
loop2:
do {
int alt2=2;
@@ -104,12 +135,13 @@ public class Xpand3Parser extends Parser {
switch (alt2) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:19:3: r_abstractDeclaration
+ // src/org/eclipse/xpand3/parser/Xpand3.g:21:3: r_abstractDeclaration
{
- pushFollow(FOLLOW_r_abstractDeclaration_in_r_file48);
- r_abstractDeclaration();
+ pushFollow(FOLLOW_r_abstractDeclaration_in_r_file56);
+ r_abstractDeclaration2=r_abstractDeclaration();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_abstractDeclaration2.getTree());
}
break;
@@ -119,10 +151,21 @@ public class Xpand3Parser extends Parser {
}
} while (true);
- match(input,EOF,FOLLOW_EOF_in_r_file55); if (failed) return ;
+ EOF3=(Token)input.LT(1);
+ match(input,EOF,FOLLOW_EOF_in_r_file63); if (failed) return retval;
+ if ( backtracking==0 ) {
+ EOF3_tree = (Object)adaptor.create(EOF3);
+ adaptor.addChild(root_0, EOF3_tree);
+ }
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -130,16 +173,57 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_file
+ public static class r_nsImport_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_nsImport
- // src/org/eclipse/xpand3/parser/Xpand3.g:23:1: r_nsImport : ( LG 'IMPORT' r_type RG | LG 'EXTENSION' r_type RG | 'import' r_type ';' | 'extension' r_type ( 'reexport' )? ';' );
- public void r_nsImport() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:25:1: r_nsImport : ( LG 'IMPORT' r_type RG | LG 'EXTENSION' r_type RG | 'import' r_type ';' | 'extension' r_type ( 'reexport' )? ';' );
+ public r_nsImport_return r_nsImport() throws RecognitionException {
+ r_nsImport_return retval = new r_nsImport_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ Token LG4=null;
+ Token string_literal5=null;
+ Token RG7=null;
+ Token LG8=null;
+ Token string_literal9=null;
+ Token RG11=null;
+ Token string_literal12=null;
+ Token char_literal14=null;
+ Token string_literal15=null;
+ Token string_literal17=null;
+ Token char_literal18=null;
+ r_type_return r_type6 = null;
+
+ r_type_return r_type10 = null;
+
+ r_type_return r_type13 = null;
+
+ r_type_return r_type16 = null;
+
+
+ Object LG4_tree=null;
+ Object string_literal5_tree=null;
+ Object RG7_tree=null;
+ Object LG8_tree=null;
+ Object string_literal9_tree=null;
+ Object RG11_tree=null;
+ Object string_literal12_tree=null;
+ Object char_literal14_tree=null;
+ Object string_literal15_tree=null;
+ Object string_literal17_tree=null;
+ Object char_literal18_tree=null;
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:24:2: ( LG 'IMPORT' r_type RG | LG 'EXTENSION' r_type RG | 'import' r_type ';' | 'extension' r_type ( 'reexport' )? ';' )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:26:2: ( LG 'IMPORT' r_type RG | LG 'EXTENSION' r_type RG | 'import' r_type ';' | 'extension' r_type ( 'reexport' )? ';' )
int alt4=4;
switch ( input.LA(1) ) {
case LG:
@@ -153,9 +237,9 @@ public class Xpand3Parser extends Parser {
alt4=1;
}
else {
- if (backtracking>0) {failed=true; return ;}
+ if (backtracking>0) {failed=true; return retval;}
NoViableAltException nvae =
- new NoViableAltException("23:1: r_nsImport : ( LG 'IMPORT' r_type RG | LG 'EXTENSION' r_type RG | 'import' r_type ';' | 'extension' r_type ( 'reexport' )? ';' );", 4, 1, input);
+ new NoViableAltException("25:1: r_nsImport : ( LG 'IMPORT' r_type RG | LG 'EXTENSION' r_type RG | 'import' r_type ';' | 'extension' r_type ( 'reexport' )? ';' );", 4, 1, input);
throw nvae;
}
@@ -172,61 +256,118 @@ public class Xpand3Parser extends Parser {
}
break;
default:
- if (backtracking>0) {failed=true; return ;}
+ if (backtracking>0) {failed=true; return retval;}
NoViableAltException nvae =
- new NoViableAltException("23:1: r_nsImport : ( LG 'IMPORT' r_type RG | LG 'EXTENSION' r_type RG | 'import' r_type ';' | 'extension' r_type ( 'reexport' )? ';' );", 4, 0, input);
+ new NoViableAltException("25:1: r_nsImport : ( LG 'IMPORT' r_type RG | LG 'EXTENSION' r_type RG | 'import' r_type ';' | 'extension' r_type ( 'reexport' )? ';' );", 4, 0, input);
throw nvae;
}
switch (alt4) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:24:2: LG 'IMPORT' r_type RG
+ // src/org/eclipse/xpand3/parser/Xpand3.g:26:2: LG 'IMPORT' r_type RG
{
- match(input,LG,FOLLOW_LG_in_r_nsImport65); if (failed) return ;
- match(input,25,FOLLOW_25_in_r_nsImport67); if (failed) return ;
- pushFollow(FOLLOW_r_type_in_r_nsImport69);
- r_type();
+ root_0 = (Object)adaptor.nil();
+
+ LG4=(Token)input.LT(1);
+ match(input,LG,FOLLOW_LG_in_r_nsImport73); if (failed) return retval;
+ if ( backtracking==0 ) {
+ LG4_tree = (Object)adaptor.create(LG4);
+ adaptor.addChild(root_0, LG4_tree);
+ }
+ string_literal5=(Token)input.LT(1);
+ match(input,25,FOLLOW_25_in_r_nsImport75); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal5_tree = (Object)adaptor.create(string_literal5);
+ adaptor.addChild(root_0, string_literal5_tree);
+ }
+ pushFollow(FOLLOW_r_type_in_r_nsImport77);
+ r_type6=r_type();
_fsp--;
- if (failed) return ;
- match(input,RG,FOLLOW_RG_in_r_nsImport71); if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_type6.getTree());
+ RG7=(Token)input.LT(1);
+ match(input,RG,FOLLOW_RG_in_r_nsImport79); if (failed) return retval;
+ if ( backtracking==0 ) {
+ RG7_tree = (Object)adaptor.create(RG7);
+ adaptor.addChild(root_0, RG7_tree);
+ }
}
break;
case 2 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:25:2: LG 'EXTENSION' r_type RG
+ // src/org/eclipse/xpand3/parser/Xpand3.g:27:2: LG 'EXTENSION' r_type RG
{
- match(input,LG,FOLLOW_LG_in_r_nsImport76); if (failed) return ;
- match(input,26,FOLLOW_26_in_r_nsImport78); if (failed) return ;
- pushFollow(FOLLOW_r_type_in_r_nsImport80);
- r_type();
+ root_0 = (Object)adaptor.nil();
+
+ LG8=(Token)input.LT(1);
+ match(input,LG,FOLLOW_LG_in_r_nsImport84); if (failed) return retval;
+ if ( backtracking==0 ) {
+ LG8_tree = (Object)adaptor.create(LG8);
+ adaptor.addChild(root_0, LG8_tree);
+ }
+ string_literal9=(Token)input.LT(1);
+ match(input,26,FOLLOW_26_in_r_nsImport86); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal9_tree = (Object)adaptor.create(string_literal9);
+ adaptor.addChild(root_0, string_literal9_tree);
+ }
+ pushFollow(FOLLOW_r_type_in_r_nsImport88);
+ r_type10=r_type();
_fsp--;
- if (failed) return ;
- match(input,RG,FOLLOW_RG_in_r_nsImport82); if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_type10.getTree());
+ RG11=(Token)input.LT(1);
+ match(input,RG,FOLLOW_RG_in_r_nsImport90); if (failed) return retval;
+ if ( backtracking==0 ) {
+ RG11_tree = (Object)adaptor.create(RG11);
+ adaptor.addChild(root_0, RG11_tree);
+ }
}
break;
case 3 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:26:2: 'import' r_type ';'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:28:2: 'import' r_type ';'
{
- match(input,27,FOLLOW_27_in_r_nsImport87); if (failed) return ;
- pushFollow(FOLLOW_r_type_in_r_nsImport89);
- r_type();
+ root_0 = (Object)adaptor.nil();
+
+ string_literal12=(Token)input.LT(1);
+ match(input,27,FOLLOW_27_in_r_nsImport95); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal12_tree = (Object)adaptor.create(string_literal12);
+ adaptor.addChild(root_0, string_literal12_tree);
+ }
+ pushFollow(FOLLOW_r_type_in_r_nsImport97);
+ r_type13=r_type();
_fsp--;
- if (failed) return ;
- match(input,28,FOLLOW_28_in_r_nsImport92); if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_type13.getTree());
+ char_literal14=(Token)input.LT(1);
+ match(input,28,FOLLOW_28_in_r_nsImport100); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal14_tree = (Object)adaptor.create(char_literal14);
+ adaptor.addChild(root_0, char_literal14_tree);
+ }
}
break;
case 4 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:27:2: 'extension' r_type ( 'reexport' )? ';'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:29:2: 'extension' r_type ( 'reexport' )? ';'
{
- match(input,29,FOLLOW_29_in_r_nsImport98); if (failed) return ;
- pushFollow(FOLLOW_r_type_in_r_nsImport100);
- r_type();
+ root_0 = (Object)adaptor.nil();
+
+ string_literal15=(Token)input.LT(1);
+ match(input,29,FOLLOW_29_in_r_nsImport106); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal15_tree = (Object)adaptor.create(string_literal15);
+ adaptor.addChild(root_0, string_literal15_tree);
+ }
+ pushFollow(FOLLOW_r_type_in_r_nsImport108);
+ r_type16=r_type();
_fsp--;
- if (failed) return ;
- // src/org/eclipse/xpand3/parser/Xpand3.g:27:21: ( 'reexport' )?
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_type16.getTree());
+ // src/org/eclipse/xpand3/parser/Xpand3.g:29:21: ( 'reexport' )?
int alt3=2;
int LA3_0 = input.LA(1);
@@ -235,21 +376,37 @@ public class Xpand3Parser extends Parser {
}
switch (alt3) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:27:22: 'reexport'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:29:22: 'reexport'
{
- match(input,30,FOLLOW_30_in_r_nsImport103); if (failed) return ;
+ string_literal17=(Token)input.LT(1);
+ match(input,30,FOLLOW_30_in_r_nsImport111); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal17_tree = (Object)adaptor.create(string_literal17);
+ adaptor.addChild(root_0, string_literal17_tree);
+ }
}
break;
}
- match(input,28,FOLLOW_28_in_r_nsImport107); if (failed) return ;
+ char_literal18=(Token)input.LT(1);
+ match(input,28,FOLLOW_28_in_r_nsImport115); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal18_tree = (Object)adaptor.create(char_literal18);
+ adaptor.addChild(root_0, char_literal18_tree);
+ }
}
break;
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -257,16 +414,37 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_nsImport
+ public static class r_abstractDeclaration_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_abstractDeclaration
- // src/org/eclipse/xpand3/parser/Xpand3.g:30:1: r_abstractDeclaration : ( r_check | r_around | r_extension | r_definition | r_definitionAround );
- public void r_abstractDeclaration() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:32:1: r_abstractDeclaration : ( r_check | r_around | r_extension | r_definition | r_definitionAround );
+ public r_abstractDeclaration_return r_abstractDeclaration() throws RecognitionException {
+ r_abstractDeclaration_return retval = new r_abstractDeclaration_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ r_check_return r_check19 = null;
+
+ r_around_return r_around20 = null;
+
+ r_extension_return r_extension21 = null;
+
+ r_definition_return r_definition22 = null;
+
+ r_definitionAround_return r_definitionAround23 = null;
+
+
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:31:2: ( r_check | r_around | r_extension | r_definition | r_definitionAround )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:33:2: ( r_check | r_around | r_extension | r_definition | r_definitionAround )
int alt5=5;
switch ( input.LA(1) ) {
case 58:
@@ -301,75 +479,96 @@ public class Xpand3Parser extends Parser {
alt5=4;
}
else {
- if (backtracking>0) {failed=true; return ;}
+ if (backtracking>0) {failed=true; return retval;}
NoViableAltException nvae =
- new NoViableAltException("30:1: r_abstractDeclaration : ( r_check | r_around | r_extension | r_definition | r_definitionAround );", 5, 4, input);
+ new NoViableAltException("32:1: r_abstractDeclaration : ( r_check | r_around | r_extension | r_definition | r_definitionAround );", 5, 4, input);
throw nvae;
}
}
break;
default:
- if (backtracking>0) {failed=true; return ;}
+ if (backtracking>0) {failed=true; return retval;}
NoViableAltException nvae =
- new NoViableAltException("30:1: r_abstractDeclaration : ( r_check | r_around | r_extension | r_definition | r_definitionAround );", 5, 0, input);
+ new NoViableAltException("32:1: r_abstractDeclaration : ( r_check | r_around | r_extension | r_definition | r_definitionAround );", 5, 0, input);
throw nvae;
}
switch (alt5) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:31:2: r_check
+ // src/org/eclipse/xpand3/parser/Xpand3.g:33:2: r_check
{
- pushFollow(FOLLOW_r_check_in_r_abstractDeclaration118);
- r_check();
+ root_0 = (Object)adaptor.nil();
+
+ pushFollow(FOLLOW_r_check_in_r_abstractDeclaration126);
+ r_check19=r_check();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_check19.getTree());
}
break;
case 2 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:32:2: r_around
+ // src/org/eclipse/xpand3/parser/Xpand3.g:34:2: r_around
{
- pushFollow(FOLLOW_r_around_in_r_abstractDeclaration123);
- r_around();
+ root_0 = (Object)adaptor.nil();
+
+ pushFollow(FOLLOW_r_around_in_r_abstractDeclaration131);
+ r_around20=r_around();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_around20.getTree());
}
break;
case 3 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:33:2: r_extension
+ // src/org/eclipse/xpand3/parser/Xpand3.g:35:2: r_extension
{
- pushFollow(FOLLOW_r_extension_in_r_abstractDeclaration128);
- r_extension();
+ root_0 = (Object)adaptor.nil();
+
+ pushFollow(FOLLOW_r_extension_in_r_abstractDeclaration136);
+ r_extension21=r_extension();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_extension21.getTree());
}
break;
case 4 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:34:2: r_definition
+ // src/org/eclipse/xpand3/parser/Xpand3.g:36:2: r_definition
{
- pushFollow(FOLLOW_r_definition_in_r_abstractDeclaration133);
- r_definition();
+ root_0 = (Object)adaptor.nil();
+
+ pushFollow(FOLLOW_r_definition_in_r_abstractDeclaration141);
+ r_definition22=r_definition();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_definition22.getTree());
}
break;
case 5 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:35:2: r_definitionAround
+ // src/org/eclipse/xpand3/parser/Xpand3.g:37:2: r_definitionAround
{
- pushFollow(FOLLOW_r_definitionAround_in_r_abstractDeclaration138);
- r_definitionAround();
+ root_0 = (Object)adaptor.nil();
+
+ pushFollow(FOLLOW_r_definitionAround_in_r_abstractDeclaration146);
+ r_definitionAround23=r_definitionAround();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_definitionAround23.getTree());
}
break;
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -377,25 +576,77 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_abstractDeclaration
+ public static class r_definition_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_definition
- // src/org/eclipse/xpand3/parser/Xpand3.g:40:1: r_definition : LG DEFINE r_identifier ( '(' ( r_declaredParameterList ( ( ',' )? '*' )? | '*' )? ')' )? 'FOR' r_type r_sequence ENDDEFINE RG ;
- public void r_definition() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:42:1: r_definition : LG DEFINE r_identifier ( '(' ( r_declaredParameterList ( ( ',' )? '*' )? | '*' )? ')' )? 'FOR' r_type r_sequence ENDDEFINE RG ;
+ public r_definition_return r_definition() throws RecognitionException {
+ r_definition_return retval = new r_definition_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ Token LG24=null;
+ Token DEFINE25=null;
+ Token char_literal27=null;
+ Token char_literal29=null;
+ Token char_literal30=null;
+ Token char_literal31=null;
+ Token char_literal32=null;
+ Token string_literal33=null;
+ Token ENDDEFINE36=null;
+ Token RG37=null;
+ r_identifier_return r_identifier26 = null;
+
+ r_declaredParameterList_return r_declaredParameterList28 = null;
+
+ r_type_return r_type34 = null;
+
+ r_sequence_return r_sequence35 = null;
+
+
+ Object LG24_tree=null;
+ Object DEFINE25_tree=null;
+ Object char_literal27_tree=null;
+ Object char_literal29_tree=null;
+ Object char_literal30_tree=null;
+ Object char_literal31_tree=null;
+ Object char_literal32_tree=null;
+ Object string_literal33_tree=null;
+ Object ENDDEFINE36_tree=null;
+ Object RG37_tree=null;
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:41:2: ( LG DEFINE r_identifier ( '(' ( r_declaredParameterList ( ( ',' )? '*' )? | '*' )? ')' )? 'FOR' r_type r_sequence ENDDEFINE RG )
- // src/org/eclipse/xpand3/parser/Xpand3.g:41:2: LG DEFINE r_identifier ( '(' ( r_declaredParameterList ( ( ',' )? '*' )? | '*' )? ')' )? 'FOR' r_type r_sequence ENDDEFINE RG
+ // src/org/eclipse/xpand3/parser/Xpand3.g:43:2: ( LG DEFINE r_identifier ( '(' ( r_declaredParameterList ( ( ',' )? '*' )? | '*' )? ')' )? 'FOR' r_type r_sequence ENDDEFINE RG )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:43:2: LG DEFINE r_identifier ( '(' ( r_declaredParameterList ( ( ',' )? '*' )? | '*' )? ')' )? 'FOR' r_type r_sequence ENDDEFINE RG
{
- match(input,LG,FOLLOW_LG_in_r_definition150); if (failed) return ;
- match(input,DEFINE,FOLLOW_DEFINE_in_r_definition152); if (failed) return ;
- pushFollow(FOLLOW_r_identifier_in_r_definition154);
- r_identifier();
+ root_0 = (Object)adaptor.nil();
+
+ LG24=(Token)input.LT(1);
+ match(input,LG,FOLLOW_LG_in_r_definition158); if (failed) return retval;
+ if ( backtracking==0 ) {
+ LG24_tree = (Object)adaptor.create(LG24);
+ adaptor.addChild(root_0, LG24_tree);
+ }
+ DEFINE25=(Token)input.LT(1);
+ match(input,DEFINE,FOLLOW_DEFINE_in_r_definition160); if (failed) return retval;
+ if ( backtracking==0 ) {
+ DEFINE25_tree = (Object)adaptor.create(DEFINE25);
+ adaptor.addChild(root_0, DEFINE25_tree);
+ }
+ pushFollow(FOLLOW_r_identifier_in_r_definition162);
+ r_identifier26=r_identifier();
_fsp--;
- if (failed) return ;
- // src/org/eclipse/xpand3/parser/Xpand3.g:41:25: ( '(' ( r_declaredParameterList ( ( ',' )? '*' )? | '*' )? ')' )?
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_identifier26.getTree());
+ // src/org/eclipse/xpand3/parser/Xpand3.g:43:25: ( '(' ( r_declaredParameterList ( ( ',' )? '*' )? | '*' )? ')' )?
int alt9=2;
int LA9_0 = input.LA(1);
@@ -404,10 +655,15 @@ public class Xpand3Parser extends Parser {
}
switch (alt9) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:41:26: '(' ( r_declaredParameterList ( ( ',' )? '*' )? | '*' )? ')'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:43:26: '(' ( r_declaredParameterList ( ( ',' )? '*' )? | '*' )? ')'
{
- match(input,31,FOLLOW_31_in_r_definition157); if (failed) return ;
- // src/org/eclipse/xpand3/parser/Xpand3.g:41:30: ( r_declaredParameterList ( ( ',' )? '*' )? | '*' )?
+ char_literal27=(Token)input.LT(1);
+ match(input,31,FOLLOW_31_in_r_definition165); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal27_tree = (Object)adaptor.create(char_literal27);
+ adaptor.addChild(root_0, char_literal27_tree);
+ }
+ // src/org/eclipse/xpand3/parser/Xpand3.g:43:30: ( r_declaredParameterList ( ( ',' )? '*' )? | '*' )?
int alt8=3;
int LA8_0 = input.LA(1);
@@ -419,13 +675,14 @@ public class Xpand3Parser extends Parser {
}
switch (alt8) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:41:31: r_declaredParameterList ( ( ',' )? '*' )?
+ // src/org/eclipse/xpand3/parser/Xpand3.g:43:31: r_declaredParameterList ( ( ',' )? '*' )?
{
- pushFollow(FOLLOW_r_declaredParameterList_in_r_definition160);
- r_declaredParameterList();
+ pushFollow(FOLLOW_r_declaredParameterList_in_r_definition168);
+ r_declaredParameterList28=r_declaredParameterList();
_fsp--;
- if (failed) return ;
- // src/org/eclipse/xpand3/parser/Xpand3.g:41:55: ( ( ',' )? '*' )?
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_declaredParameterList28.getTree());
+ // src/org/eclipse/xpand3/parser/Xpand3.g:43:55: ( ( ',' )? '*' )?
int alt7=2;
int LA7_0 = input.LA(1);
@@ -434,9 +691,9 @@ public class Xpand3Parser extends Parser {
}
switch (alt7) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:41:56: ( ',' )? '*'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:43:56: ( ',' )? '*'
{
- // src/org/eclipse/xpand3/parser/Xpand3.g:41:56: ( ',' )?
+ // src/org/eclipse/xpand3/parser/Xpand3.g:43:56: ( ',' )?
int alt6=2;
int LA6_0 = input.LA(1);
@@ -445,16 +702,26 @@ public class Xpand3Parser extends Parser {
}
switch (alt6) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:41:56: ','
+ // src/org/eclipse/xpand3/parser/Xpand3.g:43:56: ','
{
- match(input,32,FOLLOW_32_in_r_definition163); if (failed) return ;
+ char_literal29=(Token)input.LT(1);
+ match(input,32,FOLLOW_32_in_r_definition171); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal29_tree = (Object)adaptor.create(char_literal29);
+ adaptor.addChild(root_0, char_literal29_tree);
+ }
}
break;
}
- match(input,33,FOLLOW_33_in_r_definition166); if (failed) return ;
+ char_literal30=(Token)input.LT(1);
+ match(input,33,FOLLOW_33_in_r_definition174); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal30_tree = (Object)adaptor.create(char_literal30);
+ adaptor.addChild(root_0, char_literal30_tree);
+ }
}
break;
@@ -465,36 +732,69 @@ public class Xpand3Parser extends Parser {
}
break;
case 2 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:41:69: '*'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:43:69: '*'
{
- match(input,33,FOLLOW_33_in_r_definition172); if (failed) return ;
+ char_literal31=(Token)input.LT(1);
+ match(input,33,FOLLOW_33_in_r_definition180); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal31_tree = (Object)adaptor.create(char_literal31);
+ adaptor.addChild(root_0, char_literal31_tree);
+ }
}
break;
}
- match(input,34,FOLLOW_34_in_r_definition176); if (failed) return ;
+ char_literal32=(Token)input.LT(1);
+ match(input,34,FOLLOW_34_in_r_definition184); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal32_tree = (Object)adaptor.create(char_literal32);
+ adaptor.addChild(root_0, char_literal32_tree);
+ }
}
break;
}
- match(input,35,FOLLOW_35_in_r_definition180); if (failed) return ;
- pushFollow(FOLLOW_r_type_in_r_definition182);
- r_type();
+ string_literal33=(Token)input.LT(1);
+ match(input,35,FOLLOW_35_in_r_definition188); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal33_tree = (Object)adaptor.create(string_literal33);
+ adaptor.addChild(root_0, string_literal33_tree);
+ }
+ pushFollow(FOLLOW_r_type_in_r_definition190);
+ r_type34=r_type();
_fsp--;
- if (failed) return ;
- pushFollow(FOLLOW_r_sequence_in_r_definition185);
- r_sequence();
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_type34.getTree());
+ pushFollow(FOLLOW_r_sequence_in_r_definition193);
+ r_sequence35=r_sequence();
_fsp--;
- if (failed) return ;
- match(input,ENDDEFINE,FOLLOW_ENDDEFINE_in_r_definition188); if (failed) return ;
- match(input,RG,FOLLOW_RG_in_r_definition190); if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_sequence35.getTree());
+ ENDDEFINE36=(Token)input.LT(1);
+ match(input,ENDDEFINE,FOLLOW_ENDDEFINE_in_r_definition196); if (failed) return retval;
+ if ( backtracking==0 ) {
+ ENDDEFINE36_tree = (Object)adaptor.create(ENDDEFINE36);
+ adaptor.addChild(root_0, ENDDEFINE36_tree);
+ }
+ RG37=(Token)input.LT(1);
+ match(input,RG,FOLLOW_RG_in_r_definition198); if (failed) return retval;
+ if ( backtracking==0 ) {
+ RG37_tree = (Object)adaptor.create(RG37);
+ adaptor.addChild(root_0, RG37_tree);
+ }
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -502,25 +802,77 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_definition
+ public static class r_definitionAround_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_definitionAround
- // src/org/eclipse/xpand3/parser/Xpand3.g:46:1: r_definitionAround : LG AROUND r_pointcut ( '(' ( r_declaredParameterList ( ( ',' )? '*' )? | '*' )? ')' )? 'FOR' r_type r_sequence ENDAROUND RG ;
- public void r_definitionAround() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:48:1: r_definitionAround : LG AROUND r_pointcut ( '(' ( r_declaredParameterList ( ( ',' )? '*' )? | '*' )? ')' )? 'FOR' r_type r_sequence ENDAROUND RG ;
+ public r_definitionAround_return r_definitionAround() throws RecognitionException {
+ r_definitionAround_return retval = new r_definitionAround_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ Token LG38=null;
+ Token AROUND39=null;
+ Token char_literal41=null;
+ Token char_literal43=null;
+ Token char_literal44=null;
+ Token char_literal45=null;
+ Token char_literal46=null;
+ Token string_literal47=null;
+ Token ENDAROUND50=null;
+ Token RG51=null;
+ r_pointcut_return r_pointcut40 = null;
+
+ r_declaredParameterList_return r_declaredParameterList42 = null;
+
+ r_type_return r_type48 = null;
+
+ r_sequence_return r_sequence49 = null;
+
+
+ Object LG38_tree=null;
+ Object AROUND39_tree=null;
+ Object char_literal41_tree=null;
+ Object char_literal43_tree=null;
+ Object char_literal44_tree=null;
+ Object char_literal45_tree=null;
+ Object char_literal46_tree=null;
+ Object string_literal47_tree=null;
+ Object ENDAROUND50_tree=null;
+ Object RG51_tree=null;
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:47:2: ( LG AROUND r_pointcut ( '(' ( r_declaredParameterList ( ( ',' )? '*' )? | '*' )? ')' )? 'FOR' r_type r_sequence ENDAROUND RG )
- // src/org/eclipse/xpand3/parser/Xpand3.g:47:2: LG AROUND r_pointcut ( '(' ( r_declaredParameterList ( ( ',' )? '*' )? | '*' )? ')' )? 'FOR' r_type r_sequence ENDAROUND RG
+ // src/org/eclipse/xpand3/parser/Xpand3.g:49:2: ( LG AROUND r_pointcut ( '(' ( r_declaredParameterList ( ( ',' )? '*' )? | '*' )? ')' )? 'FOR' r_type r_sequence ENDAROUND RG )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:49:2: LG AROUND r_pointcut ( '(' ( r_declaredParameterList ( ( ',' )? '*' )? | '*' )? ')' )? 'FOR' r_type r_sequence ENDAROUND RG
{
- match(input,LG,FOLLOW_LG_in_r_definitionAround202); if (failed) return ;
- match(input,AROUND,FOLLOW_AROUND_in_r_definitionAround204); if (failed) return ;
- pushFollow(FOLLOW_r_pointcut_in_r_definitionAround206);
- r_pointcut();
+ root_0 = (Object)adaptor.nil();
+
+ LG38=(Token)input.LT(1);
+ match(input,LG,FOLLOW_LG_in_r_definitionAround210); if (failed) return retval;
+ if ( backtracking==0 ) {
+ LG38_tree = (Object)adaptor.create(LG38);
+ adaptor.addChild(root_0, LG38_tree);
+ }
+ AROUND39=(Token)input.LT(1);
+ match(input,AROUND,FOLLOW_AROUND_in_r_definitionAround212); if (failed) return retval;
+ if ( backtracking==0 ) {
+ AROUND39_tree = (Object)adaptor.create(AROUND39);
+ adaptor.addChild(root_0, AROUND39_tree);
+ }
+ pushFollow(FOLLOW_r_pointcut_in_r_definitionAround214);
+ r_pointcut40=r_pointcut();
_fsp--;
- if (failed) return ;
- // src/org/eclipse/xpand3/parser/Xpand3.g:47:23: ( '(' ( r_declaredParameterList ( ( ',' )? '*' )? | '*' )? ')' )?
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_pointcut40.getTree());
+ // src/org/eclipse/xpand3/parser/Xpand3.g:49:23: ( '(' ( r_declaredParameterList ( ( ',' )? '*' )? | '*' )? ')' )?
int alt13=2;
int LA13_0 = input.LA(1);
@@ -529,10 +881,15 @@ public class Xpand3Parser extends Parser {
}
switch (alt13) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:47:24: '(' ( r_declaredParameterList ( ( ',' )? '*' )? | '*' )? ')'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:49:24: '(' ( r_declaredParameterList ( ( ',' )? '*' )? | '*' )? ')'
{
- match(input,31,FOLLOW_31_in_r_definitionAround209); if (failed) return ;
- // src/org/eclipse/xpand3/parser/Xpand3.g:47:28: ( r_declaredParameterList ( ( ',' )? '*' )? | '*' )?
+ char_literal41=(Token)input.LT(1);
+ match(input,31,FOLLOW_31_in_r_definitionAround217); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal41_tree = (Object)adaptor.create(char_literal41);
+ adaptor.addChild(root_0, char_literal41_tree);
+ }
+ // src/org/eclipse/xpand3/parser/Xpand3.g:49:28: ( r_declaredParameterList ( ( ',' )? '*' )? | '*' )?
int alt12=3;
int LA12_0 = input.LA(1);
@@ -544,13 +901,14 @@ public class Xpand3Parser extends Parser {
}
switch (alt12) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:47:29: r_declaredParameterList ( ( ',' )? '*' )?
+ // src/org/eclipse/xpand3/parser/Xpand3.g:49:29: r_declaredParameterList ( ( ',' )? '*' )?
{
- pushFollow(FOLLOW_r_declaredParameterList_in_r_definitionAround212);
- r_declaredParameterList();
+ pushFollow(FOLLOW_r_declaredParameterList_in_r_definitionAround220);
+ r_declaredParameterList42=r_declaredParameterList();
_fsp--;
- if (failed) return ;
- // src/org/eclipse/xpand3/parser/Xpand3.g:47:53: ( ( ',' )? '*' )?
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_declaredParameterList42.getTree());
+ // src/org/eclipse/xpand3/parser/Xpand3.g:49:53: ( ( ',' )? '*' )?
int alt11=2;
int LA11_0 = input.LA(1);
@@ -559,9 +917,9 @@ public class Xpand3Parser extends Parser {
}
switch (alt11) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:47:54: ( ',' )? '*'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:49:54: ( ',' )? '*'
{
- // src/org/eclipse/xpand3/parser/Xpand3.g:47:54: ( ',' )?
+ // src/org/eclipse/xpand3/parser/Xpand3.g:49:54: ( ',' )?
int alt10=2;
int LA10_0 = input.LA(1);
@@ -570,16 +928,26 @@ public class Xpand3Parser extends Parser {
}
switch (alt10) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:47:54: ','
+ // src/org/eclipse/xpand3/parser/Xpand3.g:49:54: ','
{
- match(input,32,FOLLOW_32_in_r_definitionAround215); if (failed) return ;
+ char_literal43=(Token)input.LT(1);
+ match(input,32,FOLLOW_32_in_r_definitionAround223); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal43_tree = (Object)adaptor.create(char_literal43);
+ adaptor.addChild(root_0, char_literal43_tree);
+ }
}
break;
}
- match(input,33,FOLLOW_33_in_r_definitionAround218); if (failed) return ;
+ char_literal44=(Token)input.LT(1);
+ match(input,33,FOLLOW_33_in_r_definitionAround226); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal44_tree = (Object)adaptor.create(char_literal44);
+ adaptor.addChild(root_0, char_literal44_tree);
+ }
}
break;
@@ -590,36 +958,69 @@ public class Xpand3Parser extends Parser {
}
break;
case 2 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:47:67: '*'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:49:67: '*'
{
- match(input,33,FOLLOW_33_in_r_definitionAround224); if (failed) return ;
+ char_literal45=(Token)input.LT(1);
+ match(input,33,FOLLOW_33_in_r_definitionAround232); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal45_tree = (Object)adaptor.create(char_literal45);
+ adaptor.addChild(root_0, char_literal45_tree);
+ }
}
break;
}
- match(input,34,FOLLOW_34_in_r_definitionAround228); if (failed) return ;
+ char_literal46=(Token)input.LT(1);
+ match(input,34,FOLLOW_34_in_r_definitionAround236); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal46_tree = (Object)adaptor.create(char_literal46);
+ adaptor.addChild(root_0, char_literal46_tree);
+ }
}
break;
}
- match(input,35,FOLLOW_35_in_r_definitionAround232); if (failed) return ;
- pushFollow(FOLLOW_r_type_in_r_definitionAround234);
- r_type();
+ string_literal47=(Token)input.LT(1);
+ match(input,35,FOLLOW_35_in_r_definitionAround240); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal47_tree = (Object)adaptor.create(string_literal47);
+ adaptor.addChild(root_0, string_literal47_tree);
+ }
+ pushFollow(FOLLOW_r_type_in_r_definitionAround242);
+ r_type48=r_type();
_fsp--;
- if (failed) return ;
- pushFollow(FOLLOW_r_sequence_in_r_definitionAround237);
- r_sequence();
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_type48.getTree());
+ pushFollow(FOLLOW_r_sequence_in_r_definitionAround245);
+ r_sequence49=r_sequence();
_fsp--;
- if (failed) return ;
- match(input,ENDAROUND,FOLLOW_ENDAROUND_in_r_definitionAround240); if (failed) return ;
- match(input,RG,FOLLOW_RG_in_r_definitionAround242); if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_sequence49.getTree());
+ ENDAROUND50=(Token)input.LT(1);
+ match(input,ENDAROUND,FOLLOW_ENDAROUND_in_r_definitionAround248); if (failed) return retval;
+ if ( backtracking==0 ) {
+ ENDAROUND50_tree = (Object)adaptor.create(ENDAROUND50);
+ adaptor.addChild(root_0, ENDAROUND50_tree);
+ }
+ RG51=(Token)input.LT(1);
+ match(input,RG,FOLLOW_RG_in_r_definitionAround250); if (failed) return retval;
+ if ( backtracking==0 ) {
+ RG51_tree = (Object)adaptor.create(RG51);
+ adaptor.addChild(root_0, RG51_tree);
+ }
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -627,23 +1028,43 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_definitionAround
+ public static class r_sequence_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_sequence
- // src/org/eclipse/xpand3/parser/Xpand3.g:52:1: r_sequence : r_textSequence ( r_statement r_textSequence )* ;
- public void r_sequence() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:54:1: r_sequence : r_textSequence ( r_statement r_textSequence )* ;
+ public r_sequence_return r_sequence() throws RecognitionException {
+ r_sequence_return retval = new r_sequence_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ r_textSequence_return r_textSequence52 = null;
+
+ r_statement_return r_statement53 = null;
+
+ r_textSequence_return r_textSequence54 = null;
+
+
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:53:3: ( r_textSequence ( r_statement r_textSequence )* )
- // src/org/eclipse/xpand3/parser/Xpand3.g:53:3: r_textSequence ( r_statement r_textSequence )*
+ // src/org/eclipse/xpand3/parser/Xpand3.g:55:3: ( r_textSequence ( r_statement r_textSequence )* )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:55:3: r_textSequence ( r_statement r_textSequence )*
{
- pushFollow(FOLLOW_r_textSequence_in_r_sequence254);
- r_textSequence();
+ root_0 = (Object)adaptor.nil();
+
+ pushFollow(FOLLOW_r_textSequence_in_r_sequence262);
+ r_textSequence52=r_textSequence();
_fsp--;
- if (failed) return ;
- // src/org/eclipse/xpand3/parser/Xpand3.g:54:3: ( r_statement r_textSequence )*
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_textSequence52.getTree());
+ // src/org/eclipse/xpand3/parser/Xpand3.g:56:3: ( r_statement r_textSequence )*
loop14:
do {
int alt14=2;
@@ -656,16 +1077,18 @@ public class Xpand3Parser extends Parser {
switch (alt14) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:54:4: r_statement r_textSequence
+ // src/org/eclipse/xpand3/parser/Xpand3.g:56:4: r_statement r_textSequence
{
- pushFollow(FOLLOW_r_statement_in_r_sequence260);
- r_statement();
+ pushFollow(FOLLOW_r_statement_in_r_sequence268);
+ r_statement53=r_statement();
_fsp--;
- if (failed) return ;
- pushFollow(FOLLOW_r_textSequence_in_r_sequence266);
- r_textSequence();
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_statement53.getTree());
+ pushFollow(FOLLOW_r_textSequence_in_r_sequence274);
+ r_textSequence54=r_textSequence();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_textSequence54.getTree());
}
break;
@@ -678,6 +1101,12 @@ public class Xpand3Parser extends Parser {
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -685,16 +1114,39 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_sequence
+ public static class r_statement_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_statement
- // src/org/eclipse/xpand3/parser/Xpand3.g:58:1: r_statement : ( r_simpleStatement | r_fileStatement | r_foreachStatement | r_ifStatement | r_letStatement | r_protectStatement );
- public void r_statement() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:60:1: r_statement : ( r_simpleStatement | r_fileStatement | r_foreachStatement | r_ifStatement | r_letStatement | r_protectStatement );
+ public r_statement_return r_statement() throws RecognitionException {
+ r_statement_return retval = new r_statement_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ r_simpleStatement_return r_simpleStatement55 = null;
+
+ r_fileStatement_return r_fileStatement56 = null;
+
+ r_foreachStatement_return r_foreachStatement57 = null;
+
+ r_ifStatement_return r_ifStatement58 = null;
+
+ r_letStatement_return r_letStatement59 = null;
+
+ r_protectStatement_return r_protectStatement60 = null;
+
+
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:59:3: ( r_simpleStatement | r_fileStatement | r_foreachStatement | r_ifStatement | r_letStatement | r_protectStatement )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:61:3: ( r_simpleStatement | r_fileStatement | r_foreachStatement | r_ifStatement | r_letStatement | r_protectStatement )
int alt15=6;
switch ( input.LA(1) ) {
case StringLiteral:
@@ -756,76 +1208,100 @@ public class Xpand3Parser extends Parser {
}
break;
default:
- if (backtracking>0) {failed=true; return ;}
+ if (backtracking>0) {failed=true; return retval;}
NoViableAltException nvae =
- new NoViableAltException("58:1: r_statement : ( r_simpleStatement | r_fileStatement | r_foreachStatement | r_ifStatement | r_letStatement | r_protectStatement );", 15, 0, input);
+ new NoViableAltException("60:1: r_statement : ( r_simpleStatement | r_fileStatement | r_foreachStatement | r_ifStatement | r_letStatement | r_protectStatement );", 15, 0, input);
throw nvae;
}
switch (alt15) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:59:3: r_simpleStatement
+ // src/org/eclipse/xpand3/parser/Xpand3.g:61:3: r_simpleStatement
{
- pushFollow(FOLLOW_r_simpleStatement_in_r_statement281);
- r_simpleStatement();
+ root_0 = (Object)adaptor.nil();
+
+ pushFollow(FOLLOW_r_simpleStatement_in_r_statement289);
+ r_simpleStatement55=r_simpleStatement();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_simpleStatement55.getTree());
}
break;
case 2 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:60:3: r_fileStatement
+ // src/org/eclipse/xpand3/parser/Xpand3.g:62:3: r_fileStatement
{
- pushFollow(FOLLOW_r_fileStatement_in_r_statement286);
- r_fileStatement();
+ root_0 = (Object)adaptor.nil();
+
+ pushFollow(FOLLOW_r_fileStatement_in_r_statement294);
+ r_fileStatement56=r_fileStatement();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_fileStatement56.getTree());
}
break;
case 3 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:61:3: r_foreachStatement
+ // src/org/eclipse/xpand3/parser/Xpand3.g:63:3: r_foreachStatement
{
- pushFollow(FOLLOW_r_foreachStatement_in_r_statement291);
- r_foreachStatement();
+ root_0 = (Object)adaptor.nil();
+
+ pushFollow(FOLLOW_r_foreachStatement_in_r_statement299);
+ r_foreachStatement57=r_foreachStatement();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_foreachStatement57.getTree());
}
break;
case 4 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:62:3: r_ifStatement
+ // src/org/eclipse/xpand3/parser/Xpand3.g:64:3: r_ifStatement
{
- pushFollow(FOLLOW_r_ifStatement_in_r_statement296);
- r_ifStatement();
+ root_0 = (Object)adaptor.nil();
+
+ pushFollow(FOLLOW_r_ifStatement_in_r_statement304);
+ r_ifStatement58=r_ifStatement();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_ifStatement58.getTree());
}
break;
case 5 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:63:3: r_letStatement
+ // src/org/eclipse/xpand3/parser/Xpand3.g:65:3: r_letStatement
{
- pushFollow(FOLLOW_r_letStatement_in_r_statement301);
- r_letStatement();
+ root_0 = (Object)adaptor.nil();
+
+ pushFollow(FOLLOW_r_letStatement_in_r_statement309);
+ r_letStatement59=r_letStatement();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_letStatement59.getTree());
}
break;
case 6 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:64:3: r_protectStatement
+ // src/org/eclipse/xpand3/parser/Xpand3.g:66:3: r_protectStatement
{
- pushFollow(FOLLOW_r_protectStatement_in_r_statement306);
- r_protectStatement();
+ root_0 = (Object)adaptor.nil();
+
+ pushFollow(FOLLOW_r_protectStatement_in_r_statement314);
+ r_protectStatement60=r_protectStatement();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_protectStatement60.getTree());
}
break;
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -833,23 +1309,41 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_statement
+ public static class r_textSequence_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_textSequence
- // src/org/eclipse/xpand3/parser/Xpand3.g:67:1: r_textSequence : r_text ( r_text )* ;
- public void r_textSequence() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:69:1: r_textSequence : r_text ( r_text )* ;
+ public r_textSequence_return r_textSequence() throws RecognitionException {
+ r_textSequence_return retval = new r_textSequence_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ r_text_return r_text61 = null;
+
+ r_text_return r_text62 = null;
+
+
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:68:2: ( r_text ( r_text )* )
- // src/org/eclipse/xpand3/parser/Xpand3.g:68:2: r_text ( r_text )*
+ // src/org/eclipse/xpand3/parser/Xpand3.g:70:2: ( r_text ( r_text )* )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:70:2: r_text ( r_text )*
{
- pushFollow(FOLLOW_r_text_in_r_textSequence317);
- r_text();
+ root_0 = (Object)adaptor.nil();
+
+ pushFollow(FOLLOW_r_text_in_r_textSequence325);
+ r_text61=r_text();
_fsp--;
- if (failed) return ;
- // src/org/eclipse/xpand3/parser/Xpand3.g:68:9: ( r_text )*
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_text61.getTree());
+ // src/org/eclipse/xpand3/parser/Xpand3.g:70:9: ( r_text )*
loop16:
do {
int alt16=2;
@@ -871,12 +1365,13 @@ public class Xpand3Parser extends Parser {
switch (alt16) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:68:10: r_text
+ // src/org/eclipse/xpand3/parser/Xpand3.g:70:10: r_text
{
- pushFollow(FOLLOW_r_text_in_r_textSequence320);
- r_text();
+ pushFollow(FOLLOW_r_text_in_r_textSequence328);
+ r_text62=r_text();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_text62.getTree());
}
break;
@@ -889,6 +1384,12 @@ public class Xpand3Parser extends Parser {
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -896,19 +1397,36 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_textSequence
+ public static class r_text_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_text
- // src/org/eclipse/xpand3/parser/Xpand3.g:71:1: r_text : ( '-' )? TEXT ;
- public void r_text() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:73:1: r_text : ( '-' )? TEXT ;
+ public r_text_return r_text() throws RecognitionException {
+ r_text_return retval = new r_text_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ Token char_literal63=null;
+ Token TEXT64=null;
+
+ Object char_literal63_tree=null;
+ Object TEXT64_tree=null;
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:72:2: ( ( '-' )? TEXT )
- // src/org/eclipse/xpand3/parser/Xpand3.g:72:2: ( '-' )? TEXT
+ // src/org/eclipse/xpand3/parser/Xpand3.g:74:2: ( ( '-' )? TEXT )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:74:2: ( '-' )? TEXT
{
- // src/org/eclipse/xpand3/parser/Xpand3.g:72:2: ( '-' )?
+ root_0 = (Object)adaptor.nil();
+
+ // src/org/eclipse/xpand3/parser/Xpand3.g:74:2: ( '-' )?
int alt17=2;
int LA17_0 = input.LA(1);
@@ -917,19 +1435,35 @@ public class Xpand3Parser extends Parser {
}
switch (alt17) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:72:2: '-'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:74:2: '-'
{
- match(input,36,FOLLOW_36_in_r_text332); if (failed) return ;
+ char_literal63=(Token)input.LT(1);
+ match(input,36,FOLLOW_36_in_r_text340); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal63_tree = (Object)adaptor.create(char_literal63);
+ adaptor.addChild(root_0, char_literal63_tree);
+ }
}
break;
}
- match(input,TEXT,FOLLOW_TEXT_in_r_text335); if (failed) return ;
+ TEXT64=(Token)input.LT(1);
+ match(input,TEXT,FOLLOW_TEXT_in_r_text343); if (failed) return retval;
+ if ( backtracking==0 ) {
+ TEXT64_tree = (Object)adaptor.create(TEXT64);
+ adaptor.addChild(root_0, TEXT64_tree);
+ }
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -937,16 +1471,33 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_text
+ public static class r_simpleStatement_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_simpleStatement
- // src/org/eclipse/xpand3/parser/Xpand3.g:75:1: r_simpleStatement : ( r_errorStatement | r_expandStatement | r_expressionStmt );
- public void r_simpleStatement() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:77:1: r_simpleStatement : ( r_errorStatement | r_expandStatement | r_expressionStmt );
+ public r_simpleStatement_return r_simpleStatement() throws RecognitionException {
+ r_simpleStatement_return retval = new r_simpleStatement_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ r_errorStatement_return r_errorStatement65 = null;
+
+ r_expandStatement_return r_expandStatement66 = null;
+
+ r_expressionStmt_return r_expressionStmt67 = null;
+
+
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:76:3: ( r_errorStatement | r_expandStatement | r_expressionStmt )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:78:3: ( r_errorStatement | r_expandStatement | r_expressionStmt )
int alt18=3;
switch ( input.LA(1) ) {
case 37:
@@ -991,46 +1542,61 @@ public class Xpand3Parser extends Parser {
}
break;
default:
- if (backtracking>0) {failed=true; return ;}
+ if (backtracking>0) {failed=true; return retval;}
NoViableAltException nvae =
- new NoViableAltException("75:1: r_simpleStatement : ( r_errorStatement | r_expandStatement | r_expressionStmt );", 18, 0, input);
+ new NoViableAltException("77:1: r_simpleStatement : ( r_errorStatement | r_expandStatement | r_expressionStmt );", 18, 0, input);
throw nvae;
}
switch (alt18) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:76:3: r_errorStatement
+ // src/org/eclipse/xpand3/parser/Xpand3.g:78:3: r_errorStatement
{
- pushFollow(FOLLOW_r_errorStatement_in_r_simpleStatement346);
- r_errorStatement();
+ root_0 = (Object)adaptor.nil();
+
+ pushFollow(FOLLOW_r_errorStatement_in_r_simpleStatement354);
+ r_errorStatement65=r_errorStatement();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_errorStatement65.getTree());
}
break;
case 2 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:77:3: r_expandStatement
+ // src/org/eclipse/xpand3/parser/Xpand3.g:79:3: r_expandStatement
{
- pushFollow(FOLLOW_r_expandStatement_in_r_simpleStatement350);
- r_expandStatement();
+ root_0 = (Object)adaptor.nil();
+
+ pushFollow(FOLLOW_r_expandStatement_in_r_simpleStatement358);
+ r_expandStatement66=r_expandStatement();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_expandStatement66.getTree());
}
break;
case 3 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:78:3: r_expressionStmt
+ // src/org/eclipse/xpand3/parser/Xpand3.g:80:3: r_expressionStmt
{
- pushFollow(FOLLOW_r_expressionStmt_in_r_simpleStatement354);
- r_expressionStmt();
+ root_0 = (Object)adaptor.nil();
+
+ pushFollow(FOLLOW_r_expressionStmt_in_r_simpleStatement362);
+ r_expressionStmt67=r_expressionStmt();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_expressionStmt67.getTree());
}
break;
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -1038,26 +1604,55 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_simpleStatement
+ public static class r_errorStatement_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_errorStatement
- // src/org/eclipse/xpand3/parser/Xpand3.g:81:1: r_errorStatement : 'ERROR' r_expression ;
- public void r_errorStatement() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:83:1: r_errorStatement : 'ERROR' r_expression ;
+ public r_errorStatement_return r_errorStatement() throws RecognitionException {
+ r_errorStatement_return retval = new r_errorStatement_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ Token string_literal68=null;
+ r_expression_return r_expression69 = null;
+
+
+ Object string_literal68_tree=null;
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:82:3: ( 'ERROR' r_expression )
- // src/org/eclipse/xpand3/parser/Xpand3.g:82:3: 'ERROR' r_expression
+ // src/org/eclipse/xpand3/parser/Xpand3.g:84:3: ( 'ERROR' r_expression )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:84:3: 'ERROR' r_expression
{
- match(input,37,FOLLOW_37_in_r_errorStatement365); if (failed) return ;
- pushFollow(FOLLOW_r_expression_in_r_errorStatement367);
- r_expression();
+ root_0 = (Object)adaptor.nil();
+
+ string_literal68=(Token)input.LT(1);
+ match(input,37,FOLLOW_37_in_r_errorStatement373); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal68_tree = (Object)adaptor.create(string_literal68);
+ adaptor.addChild(root_0, string_literal68_tree);
+ }
+ pushFollow(FOLLOW_r_expression_in_r_errorStatement375);
+ r_expression69=r_expression();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_expression69.getTree());
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -1065,24 +1660,65 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_errorStatement
+ public static class r_expandStatement_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_expandStatement
- // src/org/eclipse/xpand3/parser/Xpand3.g:85:1: r_expandStatement : 'EXPAND' r_simpleType ( '(' r_parameterList ')' )? ( ( 'FOR' r_expression ) | ( 'FOREACH' r_expression ( 'SEPARATOR' r_expression )? ) )? ;
- public void r_expandStatement() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:87:1: r_expandStatement : 'EXPAND' r_simpleType ( '(' r_parameterList ')' )? ( ( 'FOR' r_expression ) | ( 'FOREACH' r_expression ( 'SEPARATOR' r_expression )? ) )? ;
+ public r_expandStatement_return r_expandStatement() throws RecognitionException {
+ r_expandStatement_return retval = new r_expandStatement_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ Token string_literal70=null;
+ Token char_literal72=null;
+ Token char_literal74=null;
+ Token string_literal75=null;
+ Token string_literal77=null;
+ Token string_literal79=null;
+ r_simpleType_return r_simpleType71 = null;
+
+ r_parameterList_return r_parameterList73 = null;
+
+ r_expression_return r_expression76 = null;
+
+ r_expression_return r_expression78 = null;
+
+ r_expression_return r_expression80 = null;
+
+
+ Object string_literal70_tree=null;
+ Object char_literal72_tree=null;
+ Object char_literal74_tree=null;
+ Object string_literal75_tree=null;
+ Object string_literal77_tree=null;
+ Object string_literal79_tree=null;
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:86:3: ( 'EXPAND' r_simpleType ( '(' r_parameterList ')' )? ( ( 'FOR' r_expression ) | ( 'FOREACH' r_expression ( 'SEPARATOR' r_expression )? ) )? )
- // src/org/eclipse/xpand3/parser/Xpand3.g:86:3: 'EXPAND' r_simpleType ( '(' r_parameterList ')' )? ( ( 'FOR' r_expression ) | ( 'FOREACH' r_expression ( 'SEPARATOR' r_expression )? ) )?
+ // src/org/eclipse/xpand3/parser/Xpand3.g:88:3: ( 'EXPAND' r_simpleType ( '(' r_parameterList ')' )? ( ( 'FOR' r_expression ) | ( 'FOREACH' r_expression ( 'SEPARATOR' r_expression )? ) )? )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:88:3: 'EXPAND' r_simpleType ( '(' r_parameterList ')' )? ( ( 'FOR' r_expression ) | ( 'FOREACH' r_expression ( 'SEPARATOR' r_expression )? ) )?
{
- match(input,38,FOLLOW_38_in_r_expandStatement378); if (failed) return ;
- pushFollow(FOLLOW_r_simpleType_in_r_expandStatement380);
- r_simpleType();
+ root_0 = (Object)adaptor.nil();
+
+ string_literal70=(Token)input.LT(1);
+ match(input,38,FOLLOW_38_in_r_expandStatement386); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal70_tree = (Object)adaptor.create(string_literal70);
+ adaptor.addChild(root_0, string_literal70_tree);
+ }
+ pushFollow(FOLLOW_r_simpleType_in_r_expandStatement388);
+ r_simpleType71=r_simpleType();
_fsp--;
- if (failed) return ;
- // src/org/eclipse/xpand3/parser/Xpand3.g:86:25: ( '(' r_parameterList ')' )?
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_simpleType71.getTree());
+ // src/org/eclipse/xpand3/parser/Xpand3.g:88:25: ( '(' r_parameterList ')' )?
int alt19=2;
int LA19_0 = input.LA(1);
@@ -1091,21 +1727,32 @@ public class Xpand3Parser extends Parser {
}
switch (alt19) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:86:26: '(' r_parameterList ')'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:88:26: '(' r_parameterList ')'
{
- match(input,31,FOLLOW_31_in_r_expandStatement383); if (failed) return ;
- pushFollow(FOLLOW_r_parameterList_in_r_expandStatement385);
- r_parameterList();
+ char_literal72=(Token)input.LT(1);
+ match(input,31,FOLLOW_31_in_r_expandStatement391); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal72_tree = (Object)adaptor.create(char_literal72);
+ adaptor.addChild(root_0, char_literal72_tree);
+ }
+ pushFollow(FOLLOW_r_parameterList_in_r_expandStatement393);
+ r_parameterList73=r_parameterList();
_fsp--;
- if (failed) return ;
- match(input,34,FOLLOW_34_in_r_expandStatement387); if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_parameterList73.getTree());
+ char_literal74=(Token)input.LT(1);
+ match(input,34,FOLLOW_34_in_r_expandStatement395); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal74_tree = (Object)adaptor.create(char_literal74);
+ adaptor.addChild(root_0, char_literal74_tree);
+ }
}
break;
}
- // src/org/eclipse/xpand3/parser/Xpand3.g:86:52: ( ( 'FOR' r_expression ) | ( 'FOREACH' r_expression ( 'SEPARATOR' r_expression )? ) )?
+ // src/org/eclipse/xpand3/parser/Xpand3.g:88:52: ( ( 'FOR' r_expression ) | ( 'FOREACH' r_expression ( 'SEPARATOR' r_expression )? ) )?
int alt21=3;
int LA21_0 = input.LA(1);
@@ -1117,16 +1764,22 @@ public class Xpand3Parser extends Parser {
}
switch (alt21) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:86:53: ( 'FOR' r_expression )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:88:53: ( 'FOR' r_expression )
{
- // src/org/eclipse/xpand3/parser/Xpand3.g:86:53: ( 'FOR' r_expression )
- // src/org/eclipse/xpand3/parser/Xpand3.g:86:54: 'FOR' r_expression
+ // src/org/eclipse/xpand3/parser/Xpand3.g:88:53: ( 'FOR' r_expression )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:88:54: 'FOR' r_expression
{
- match(input,35,FOLLOW_35_in_r_expandStatement393); if (failed) return ;
- pushFollow(FOLLOW_r_expression_in_r_expandStatement395);
- r_expression();
+ string_literal75=(Token)input.LT(1);
+ match(input,35,FOLLOW_35_in_r_expandStatement401); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal75_tree = (Object)adaptor.create(string_literal75);
+ adaptor.addChild(root_0, string_literal75_tree);
+ }
+ pushFollow(FOLLOW_r_expression_in_r_expandStatement403);
+ r_expression76=r_expression();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_expression76.getTree());
}
@@ -1134,17 +1787,23 @@ public class Xpand3Parser extends Parser {
}
break;
case 2 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:87:5: ( 'FOREACH' r_expression ( 'SEPARATOR' r_expression )? )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:89:5: ( 'FOREACH' r_expression ( 'SEPARATOR' r_expression )? )
{
- // src/org/eclipse/xpand3/parser/Xpand3.g:87:5: ( 'FOREACH' r_expression ( 'SEPARATOR' r_expression )? )
- // src/org/eclipse/xpand3/parser/Xpand3.g:87:6: 'FOREACH' r_expression ( 'SEPARATOR' r_expression )?
+ // src/org/eclipse/xpand3/parser/Xpand3.g:89:5: ( 'FOREACH' r_expression ( 'SEPARATOR' r_expression )? )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:89:6: 'FOREACH' r_expression ( 'SEPARATOR' r_expression )?
{
- match(input,39,FOLLOW_39_in_r_expandStatement403); if (failed) return ;
- pushFollow(FOLLOW_r_expression_in_r_expandStatement404);
- r_expression();
+ string_literal77=(Token)input.LT(1);
+ match(input,39,FOLLOW_39_in_r_expandStatement411); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal77_tree = (Object)adaptor.create(string_literal77);
+ adaptor.addChild(root_0, string_literal77_tree);
+ }
+ pushFollow(FOLLOW_r_expression_in_r_expandStatement412);
+ r_expression78=r_expression();
_fsp--;
- if (failed) return ;
- // src/org/eclipse/xpand3/parser/Xpand3.g:87:28: ( 'SEPARATOR' r_expression )?
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_expression78.getTree());
+ // src/org/eclipse/xpand3/parser/Xpand3.g:89:28: ( 'SEPARATOR' r_expression )?
int alt20=2;
int LA20_0 = input.LA(1);
@@ -1153,13 +1812,19 @@ public class Xpand3Parser extends Parser {
}
switch (alt20) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:87:29: 'SEPARATOR' r_expression
+ // src/org/eclipse/xpand3/parser/Xpand3.g:89:29: 'SEPARATOR' r_expression
{
- match(input,40,FOLLOW_40_in_r_expandStatement407); if (failed) return ;
- pushFollow(FOLLOW_r_expression_in_r_expandStatement409);
- r_expression();
+ string_literal79=(Token)input.LT(1);
+ match(input,40,FOLLOW_40_in_r_expandStatement415); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal79_tree = (Object)adaptor.create(string_literal79);
+ adaptor.addChild(root_0, string_literal79_tree);
+ }
+ pushFollow(FOLLOW_r_expression_in_r_expandStatement417);
+ r_expression80=r_expression();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_expression80.getTree());
}
break;
@@ -1178,6 +1843,12 @@ public class Xpand3Parser extends Parser {
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -1185,25 +1856,47 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_expandStatement
+ public static class r_expressionStmt_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_expressionStmt
- // src/org/eclipse/xpand3/parser/Xpand3.g:90:1: r_expressionStmt : r_expression ;
- public void r_expressionStmt() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:92:1: r_expressionStmt : r_expression ;
+ public r_expressionStmt_return r_expressionStmt() throws RecognitionException {
+ r_expressionStmt_return retval = new r_expressionStmt_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ r_expression_return r_expression81 = null;
+
+
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:91:2: ( r_expression )
- // src/org/eclipse/xpand3/parser/Xpand3.g:91:2: r_expression
+ // src/org/eclipse/xpand3/parser/Xpand3.g:93:2: ( r_expression )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:93:2: r_expression
{
- pushFollow(FOLLOW_r_expression_in_r_expressionStmt425);
- r_expression();
+ root_0 = (Object)adaptor.nil();
+
+ pushFollow(FOLLOW_r_expression_in_r_expressionStmt433);
+ r_expression81=r_expression();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_expression81.getTree());
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -1211,24 +1904,53 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_expressionStmt
+ public static class r_fileStatement_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_fileStatement
- // src/org/eclipse/xpand3/parser/Xpand3.g:94:1: r_fileStatement : 'FILE' r_expression ( r_identifier )? r_sequence 'ENDFILE' ;
- public void r_fileStatement() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:96:1: r_fileStatement : 'FILE' r_expression ( r_identifier )? r_sequence 'ENDFILE' ;
+ public r_fileStatement_return r_fileStatement() throws RecognitionException {
+ r_fileStatement_return retval = new r_fileStatement_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ Token string_literal82=null;
+ Token string_literal86=null;
+ r_expression_return r_expression83 = null;
+
+ r_identifier_return r_identifier84 = null;
+
+ r_sequence_return r_sequence85 = null;
+
+
+ Object string_literal82_tree=null;
+ Object string_literal86_tree=null;
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:95:2: ( 'FILE' r_expression ( r_identifier )? r_sequence 'ENDFILE' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:95:2: 'FILE' r_expression ( r_identifier )? r_sequence 'ENDFILE'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:97:2: ( 'FILE' r_expression ( r_identifier )? r_sequence 'ENDFILE' )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:97:2: 'FILE' r_expression ( r_identifier )? r_sequence 'ENDFILE'
{
- match(input,41,FOLLOW_41_in_r_fileStatement435); if (failed) return ;
- pushFollow(FOLLOW_r_expression_in_r_fileStatement437);
- r_expression();
+ root_0 = (Object)adaptor.nil();
+
+ string_literal82=(Token)input.LT(1);
+ match(input,41,FOLLOW_41_in_r_fileStatement443); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal82_tree = (Object)adaptor.create(string_literal82);
+ adaptor.addChild(root_0, string_literal82_tree);
+ }
+ pushFollow(FOLLOW_r_expression_in_r_fileStatement445);
+ r_expression83=r_expression();
_fsp--;
- if (failed) return ;
- // src/org/eclipse/xpand3/parser/Xpand3.g:95:22: ( r_identifier )?
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_expression83.getTree());
+ // src/org/eclipse/xpand3/parser/Xpand3.g:97:22: ( r_identifier )?
int alt22=2;
int LA22_0 = input.LA(1);
@@ -1237,26 +1959,39 @@ public class Xpand3Parser extends Parser {
}
switch (alt22) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:95:23: r_identifier
+ // src/org/eclipse/xpand3/parser/Xpand3.g:97:23: r_identifier
{
- pushFollow(FOLLOW_r_identifier_in_r_fileStatement440);
- r_identifier();
+ pushFollow(FOLLOW_r_identifier_in_r_fileStatement448);
+ r_identifier84=r_identifier();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_identifier84.getTree());
}
break;
}
- pushFollow(FOLLOW_r_sequence_in_r_fileStatement446);
- r_sequence();
+ pushFollow(FOLLOW_r_sequence_in_r_fileStatement454);
+ r_sequence85=r_sequence();
_fsp--;
- if (failed) return ;
- match(input,42,FOLLOW_42_in_r_fileStatement450); if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_sequence85.getTree());
+ string_literal86=(Token)input.LT(1);
+ match(input,42,FOLLOW_42_in_r_fileStatement458); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal86_tree = (Object)adaptor.create(string_literal86);
+ adaptor.addChild(root_0, string_literal86_tree);
+ }
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -1264,29 +1999,74 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_fileStatement
+ public static class r_foreachStatement_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_foreachStatement
- // src/org/eclipse/xpand3/parser/Xpand3.g:100:1: r_foreachStatement : 'FOREACH' r_expression 'AS' r_identifier ( 'ITERATOR' r_identifier )? ( 'SEPARATOR' r_expression )? r_sequence 'ENDFOREACH' ;
- public void r_foreachStatement() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:102:1: r_foreachStatement : 'FOREACH' r_expression 'AS' r_identifier ( 'ITERATOR' r_identifier )? ( 'SEPARATOR' r_expression )? r_sequence 'ENDFOREACH' ;
+ public r_foreachStatement_return r_foreachStatement() throws RecognitionException {
+ r_foreachStatement_return retval = new r_foreachStatement_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ Token string_literal87=null;
+ Token string_literal89=null;
+ Token string_literal91=null;
+ Token string_literal93=null;
+ Token string_literal96=null;
+ r_expression_return r_expression88 = null;
+
+ r_identifier_return r_identifier90 = null;
+
+ r_identifier_return r_identifier92 = null;
+
+ r_expression_return r_expression94 = null;
+
+ r_sequence_return r_sequence95 = null;
+
+
+ Object string_literal87_tree=null;
+ Object string_literal89_tree=null;
+ Object string_literal91_tree=null;
+ Object string_literal93_tree=null;
+ Object string_literal96_tree=null;
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:101:3: ( 'FOREACH' r_expression 'AS' r_identifier ( 'ITERATOR' r_identifier )? ( 'SEPARATOR' r_expression )? r_sequence 'ENDFOREACH' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:101:3: 'FOREACH' r_expression 'AS' r_identifier ( 'ITERATOR' r_identifier )? ( 'SEPARATOR' r_expression )? r_sequence 'ENDFOREACH'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:103:3: ( 'FOREACH' r_expression 'AS' r_identifier ( 'ITERATOR' r_identifier )? ( 'SEPARATOR' r_expression )? r_sequence 'ENDFOREACH' )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:103:3: 'FOREACH' r_expression 'AS' r_identifier ( 'ITERATOR' r_identifier )? ( 'SEPARATOR' r_expression )? r_sequence 'ENDFOREACH'
{
- match(input,39,FOLLOW_39_in_r_foreachStatement462); if (failed) return ;
- pushFollow(FOLLOW_r_expression_in_r_foreachStatement464);
- r_expression();
+ root_0 = (Object)adaptor.nil();
+
+ string_literal87=(Token)input.LT(1);
+ match(input,39,FOLLOW_39_in_r_foreachStatement470); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal87_tree = (Object)adaptor.create(string_literal87);
+ adaptor.addChild(root_0, string_literal87_tree);
+ }
+ pushFollow(FOLLOW_r_expression_in_r_foreachStatement472);
+ r_expression88=r_expression();
_fsp--;
- if (failed) return ;
- match(input,43,FOLLOW_43_in_r_foreachStatement466); if (failed) return ;
- pushFollow(FOLLOW_r_identifier_in_r_foreachStatement468);
- r_identifier();
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_expression88.getTree());
+ string_literal89=(Token)input.LT(1);
+ match(input,43,FOLLOW_43_in_r_foreachStatement474); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal89_tree = (Object)adaptor.create(string_literal89);
+ adaptor.addChild(root_0, string_literal89_tree);
+ }
+ pushFollow(FOLLOW_r_identifier_in_r_foreachStatement476);
+ r_identifier90=r_identifier();
_fsp--;
- if (failed) return ;
- // src/org/eclipse/xpand3/parser/Xpand3.g:101:44: ( 'ITERATOR' r_identifier )?
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_identifier90.getTree());
+ // src/org/eclipse/xpand3/parser/Xpand3.g:103:44: ( 'ITERATOR' r_identifier )?
int alt23=2;
int LA23_0 = input.LA(1);
@@ -1295,20 +2075,26 @@ public class Xpand3Parser extends Parser {
}
switch (alt23) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:101:45: 'ITERATOR' r_identifier
+ // src/org/eclipse/xpand3/parser/Xpand3.g:103:45: 'ITERATOR' r_identifier
{
- match(input,44,FOLLOW_44_in_r_foreachStatement471); if (failed) return ;
- pushFollow(FOLLOW_r_identifier_in_r_foreachStatement473);
- r_identifier();
+ string_literal91=(Token)input.LT(1);
+ match(input,44,FOLLOW_44_in_r_foreachStatement479); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal91_tree = (Object)adaptor.create(string_literal91);
+ adaptor.addChild(root_0, string_literal91_tree);
+ }
+ pushFollow(FOLLOW_r_identifier_in_r_foreachStatement481);
+ r_identifier92=r_identifier();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_identifier92.getTree());
}
break;
}
- // src/org/eclipse/xpand3/parser/Xpand3.g:101:71: ( 'SEPARATOR' r_expression )?
+ // src/org/eclipse/xpand3/parser/Xpand3.g:103:71: ( 'SEPARATOR' r_expression )?
int alt24=2;
int LA24_0 = input.LA(1);
@@ -1317,27 +2103,45 @@ public class Xpand3Parser extends Parser {
}
switch (alt24) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:101:72: 'SEPARATOR' r_expression
+ // src/org/eclipse/xpand3/parser/Xpand3.g:103:72: 'SEPARATOR' r_expression
{
- match(input,40,FOLLOW_40_in_r_foreachStatement478); if (failed) return ;
- pushFollow(FOLLOW_r_expression_in_r_foreachStatement480);
- r_expression();
+ string_literal93=(Token)input.LT(1);
+ match(input,40,FOLLOW_40_in_r_foreachStatement486); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal93_tree = (Object)adaptor.create(string_literal93);
+ adaptor.addChild(root_0, string_literal93_tree);
+ }
+ pushFollow(FOLLOW_r_expression_in_r_foreachStatement488);
+ r_expression94=r_expression();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_expression94.getTree());
}
break;
}
- pushFollow(FOLLOW_r_sequence_in_r_foreachStatement488);
- r_sequence();
+ pushFollow(FOLLOW_r_sequence_in_r_foreachStatement496);
+ r_sequence95=r_sequence();
_fsp--;
- if (failed) return ;
- match(input,45,FOLLOW_45_in_r_foreachStatement493); if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_sequence95.getTree());
+ string_literal96=(Token)input.LT(1);
+ match(input,45,FOLLOW_45_in_r_foreachStatement501); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal96_tree = (Object)adaptor.create(string_literal96);
+ adaptor.addChild(root_0, string_literal96_tree);
+ }
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -1345,28 +2149,60 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_foreachStatement
+ public static class r_ifStatement_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_ifStatement
- // src/org/eclipse/xpand3/parser/Xpand3.g:106:1: r_ifStatement : 'IF' r_expression r_sequence ( r_elseIfStatement )* ( r_elseStatement )? 'ENDIF' ;
- public void r_ifStatement() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:108:1: r_ifStatement : 'IF' r_expression r_sequence ( r_elseIfStatement )* ( r_elseStatement )? 'ENDIF' ;
+ public r_ifStatement_return r_ifStatement() throws RecognitionException {
+ r_ifStatement_return retval = new r_ifStatement_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ Token string_literal97=null;
+ Token string_literal102=null;
+ r_expression_return r_expression98 = null;
+
+ r_sequence_return r_sequence99 = null;
+
+ r_elseIfStatement_return r_elseIfStatement100 = null;
+
+ r_elseStatement_return r_elseStatement101 = null;
+
+
+ Object string_literal97_tree=null;
+ Object string_literal102_tree=null;
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:107:6: ( 'IF' r_expression r_sequence ( r_elseIfStatement )* ( r_elseStatement )? 'ENDIF' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:107:6: 'IF' r_expression r_sequence ( r_elseIfStatement )* ( r_elseStatement )? 'ENDIF'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:109:6: ( 'IF' r_expression r_sequence ( r_elseIfStatement )* ( r_elseStatement )? 'ENDIF' )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:109:6: 'IF' r_expression r_sequence ( r_elseIfStatement )* ( r_elseStatement )? 'ENDIF'
{
- match(input,46,FOLLOW_46_in_r_ifStatement508); if (failed) return ;
- pushFollow(FOLLOW_r_expression_in_r_ifStatement510);
- r_expression();
+ root_0 = (Object)adaptor.nil();
+
+ string_literal97=(Token)input.LT(1);
+ match(input,46,FOLLOW_46_in_r_ifStatement516); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal97_tree = (Object)adaptor.create(string_literal97);
+ adaptor.addChild(root_0, string_literal97_tree);
+ }
+ pushFollow(FOLLOW_r_expression_in_r_ifStatement518);
+ r_expression98=r_expression();
_fsp--;
- if (failed) return ;
- pushFollow(FOLLOW_r_sequence_in_r_ifStatement514);
- r_sequence();
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_expression98.getTree());
+ pushFollow(FOLLOW_r_sequence_in_r_ifStatement522);
+ r_sequence99=r_sequence();
_fsp--;
- if (failed) return ;
- // src/org/eclipse/xpand3/parser/Xpand3.g:109:3: ( r_elseIfStatement )*
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_sequence99.getTree());
+ // src/org/eclipse/xpand3/parser/Xpand3.g:111:3: ( r_elseIfStatement )*
loop25:
do {
int alt25=2;
@@ -1379,12 +2215,13 @@ public class Xpand3Parser extends Parser {
switch (alt25) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:109:3: r_elseIfStatement
+ // src/org/eclipse/xpand3/parser/Xpand3.g:111:3: r_elseIfStatement
{
- pushFollow(FOLLOW_r_elseIfStatement_in_r_ifStatement519);
- r_elseIfStatement();
+ pushFollow(FOLLOW_r_elseIfStatement_in_r_ifStatement527);
+ r_elseIfStatement100=r_elseIfStatement();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_elseIfStatement100.getTree());
}
break;
@@ -1394,7 +2231,7 @@ public class Xpand3Parser extends Parser {
}
} while (true);
- // src/org/eclipse/xpand3/parser/Xpand3.g:110:3: ( r_elseStatement )?
+ // src/org/eclipse/xpand3/parser/Xpand3.g:112:3: ( r_elseStatement )?
int alt26=2;
int LA26_0 = input.LA(1);
@@ -1403,22 +2240,34 @@ public class Xpand3Parser extends Parser {
}
switch (alt26) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:110:3: r_elseStatement
+ // src/org/eclipse/xpand3/parser/Xpand3.g:112:3: r_elseStatement
{
- pushFollow(FOLLOW_r_elseStatement_in_r_ifStatement524);
- r_elseStatement();
+ pushFollow(FOLLOW_r_elseStatement_in_r_ifStatement532);
+ r_elseStatement101=r_elseStatement();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_elseStatement101.getTree());
}
break;
}
- match(input,47,FOLLOW_47_in_r_ifStatement529); if (failed) return ;
+ string_literal102=(Token)input.LT(1);
+ match(input,47,FOLLOW_47_in_r_ifStatement537); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal102_tree = (Object)adaptor.create(string_literal102);
+ adaptor.addChild(root_0, string_literal102_tree);
+ }
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -1426,30 +2275,62 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_ifStatement
+ public static class r_elseIfStatement_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_elseIfStatement
- // src/org/eclipse/xpand3/parser/Xpand3.g:114:1: r_elseIfStatement : 'ELSEIF' r_expression r_sequence ;
- public void r_elseIfStatement() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:116:1: r_elseIfStatement : 'ELSEIF' r_expression r_sequence ;
+ public r_elseIfStatement_return r_elseIfStatement() throws RecognitionException {
+ r_elseIfStatement_return retval = new r_elseIfStatement_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ Token string_literal103=null;
+ r_expression_return r_expression104 = null;
+
+ r_sequence_return r_sequence105 = null;
+
+
+ Object string_literal103_tree=null;
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:115:2: ( 'ELSEIF' r_expression r_sequence )
- // src/org/eclipse/xpand3/parser/Xpand3.g:115:2: 'ELSEIF' r_expression r_sequence
+ // src/org/eclipse/xpand3/parser/Xpand3.g:117:2: ( 'ELSEIF' r_expression r_sequence )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:117:2: 'ELSEIF' r_expression r_sequence
{
- match(input,48,FOLLOW_48_in_r_elseIfStatement539); if (failed) return ;
- pushFollow(FOLLOW_r_expression_in_r_elseIfStatement541);
- r_expression();
+ root_0 = (Object)adaptor.nil();
+
+ string_literal103=(Token)input.LT(1);
+ match(input,48,FOLLOW_48_in_r_elseIfStatement547); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal103_tree = (Object)adaptor.create(string_literal103);
+ adaptor.addChild(root_0, string_literal103_tree);
+ }
+ pushFollow(FOLLOW_r_expression_in_r_elseIfStatement549);
+ r_expression104=r_expression();
_fsp--;
- if (failed) return ;
- pushFollow(FOLLOW_r_sequence_in_r_elseIfStatement545);
- r_sequence();
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_expression104.getTree());
+ pushFollow(FOLLOW_r_sequence_in_r_elseIfStatement553);
+ r_sequence105=r_sequence();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_sequence105.getTree());
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -1457,26 +2338,55 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_elseIfStatement
+ public static class r_elseStatement_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_elseStatement
- // src/org/eclipse/xpand3/parser/Xpand3.g:119:1: r_elseStatement : 'ELSE' r_sequence ;
- public void r_elseStatement() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:121:1: r_elseStatement : 'ELSE' r_sequence ;
+ public r_elseStatement_return r_elseStatement() throws RecognitionException {
+ r_elseStatement_return retval = new r_elseStatement_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ Token string_literal106=null;
+ r_sequence_return r_sequence107 = null;
+
+
+ Object string_literal106_tree=null;
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:120:2: ( 'ELSE' r_sequence )
- // src/org/eclipse/xpand3/parser/Xpand3.g:120:2: 'ELSE' r_sequence
+ // src/org/eclipse/xpand3/parser/Xpand3.g:122:2: ( 'ELSE' r_sequence )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:122:2: 'ELSE' r_sequence
{
- match(input,49,FOLLOW_49_in_r_elseStatement557); if (failed) return ;
- pushFollow(FOLLOW_r_sequence_in_r_elseStatement561);
- r_sequence();
+ root_0 = (Object)adaptor.nil();
+
+ string_literal106=(Token)input.LT(1);
+ match(input,49,FOLLOW_49_in_r_elseStatement565); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal106_tree = (Object)adaptor.create(string_literal106);
+ adaptor.addChild(root_0, string_literal106_tree);
+ }
+ pushFollow(FOLLOW_r_sequence_in_r_elseStatement569);
+ r_sequence107=r_sequence();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_sequence107.getTree());
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -1484,36 +2394,85 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_elseStatement
+ public static class r_letStatement_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_letStatement
- // src/org/eclipse/xpand3/parser/Xpand3.g:124:1: r_letStatement : 'LET' r_expression 'AS' r_identifier r_sequence 'ENDLET' ;
- public void r_letStatement() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:126:1: r_letStatement : 'LET' r_expression 'AS' r_identifier r_sequence 'ENDLET' ;
+ public r_letStatement_return r_letStatement() throws RecognitionException {
+ r_letStatement_return retval = new r_letStatement_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ Token string_literal108=null;
+ Token string_literal110=null;
+ Token string_literal113=null;
+ r_expression_return r_expression109 = null;
+
+ r_identifier_return r_identifier111 = null;
+
+ r_sequence_return r_sequence112 = null;
+
+
+ Object string_literal108_tree=null;
+ Object string_literal110_tree=null;
+ Object string_literal113_tree=null;
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:125:3: ( 'LET' r_expression 'AS' r_identifier r_sequence 'ENDLET' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:125:3: 'LET' r_expression 'AS' r_identifier r_sequence 'ENDLET'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:127:3: ( 'LET' r_expression 'AS' r_identifier r_sequence 'ENDLET' )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:127:3: 'LET' r_expression 'AS' r_identifier r_sequence 'ENDLET'
{
- match(input,50,FOLLOW_50_in_r_letStatement573); if (failed) return ;
- pushFollow(FOLLOW_r_expression_in_r_letStatement575);
- r_expression();
+ root_0 = (Object)adaptor.nil();
+
+ string_literal108=(Token)input.LT(1);
+ match(input,50,FOLLOW_50_in_r_letStatement581); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal108_tree = (Object)adaptor.create(string_literal108);
+ adaptor.addChild(root_0, string_literal108_tree);
+ }
+ pushFollow(FOLLOW_r_expression_in_r_letStatement583);
+ r_expression109=r_expression();
_fsp--;
- if (failed) return ;
- match(input,43,FOLLOW_43_in_r_letStatement577); if (failed) return ;
- pushFollow(FOLLOW_r_identifier_in_r_letStatement579);
- r_identifier();
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_expression109.getTree());
+ string_literal110=(Token)input.LT(1);
+ match(input,43,FOLLOW_43_in_r_letStatement585); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal110_tree = (Object)adaptor.create(string_literal110);
+ adaptor.addChild(root_0, string_literal110_tree);
+ }
+ pushFollow(FOLLOW_r_identifier_in_r_letStatement587);
+ r_identifier111=r_identifier();
_fsp--;
- if (failed) return ;
- pushFollow(FOLLOW_r_sequence_in_r_letStatement585);
- r_sequence();
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_identifier111.getTree());
+ pushFollow(FOLLOW_r_sequence_in_r_letStatement593);
+ r_sequence112=r_sequence();
_fsp--;
- if (failed) return ;
- match(input,51,FOLLOW_51_in_r_letStatement590); if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_sequence112.getTree());
+ string_literal113=(Token)input.LT(1);
+ match(input,51,FOLLOW_51_in_r_letStatement598); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal113_tree = (Object)adaptor.create(string_literal113);
+ adaptor.addChild(root_0, string_literal113_tree);
+ }
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -1521,35 +2480,91 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_letStatement
+ public static class r_protectStatement_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_protectStatement
- // src/org/eclipse/xpand3/parser/Xpand3.g:130:1: r_protectStatement : 'PROTECT' 'CSTART' r_expression 'CEND' r_expression 'ID' r_expression ( 'DISABLE' )? r_sequence 'ENDPROTECT' ;
- public void r_protectStatement() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:132:1: r_protectStatement : 'PROTECT' 'CSTART' r_expression 'CEND' r_expression 'ID' r_expression ( 'DISABLE' )? r_sequence 'ENDPROTECT' ;
+ public r_protectStatement_return r_protectStatement() throws RecognitionException {
+ r_protectStatement_return retval = new r_protectStatement_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ Token string_literal114=null;
+ Token string_literal115=null;
+ Token string_literal117=null;
+ Token string_literal119=null;
+ Token string_literal121=null;
+ Token string_literal123=null;
+ r_expression_return r_expression116 = null;
+
+ r_expression_return r_expression118 = null;
+
+ r_expression_return r_expression120 = null;
+
+ r_sequence_return r_sequence122 = null;
+
+
+ Object string_literal114_tree=null;
+ Object string_literal115_tree=null;
+ Object string_literal117_tree=null;
+ Object string_literal119_tree=null;
+ Object string_literal121_tree=null;
+ Object string_literal123_tree=null;
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:131:2: ( 'PROTECT' 'CSTART' r_expression 'CEND' r_expression 'ID' r_expression ( 'DISABLE' )? r_sequence 'ENDPROTECT' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:131:2: 'PROTECT' 'CSTART' r_expression 'CEND' r_expression 'ID' r_expression ( 'DISABLE' )? r_sequence 'ENDPROTECT'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:133:2: ( 'PROTECT' 'CSTART' r_expression 'CEND' r_expression 'ID' r_expression ( 'DISABLE' )? r_sequence 'ENDPROTECT' )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:133:2: 'PROTECT' 'CSTART' r_expression 'CEND' r_expression 'ID' r_expression ( 'DISABLE' )? r_sequence 'ENDPROTECT'
{
- match(input,52,FOLLOW_52_in_r_protectStatement601); if (failed) return ;
- match(input,53,FOLLOW_53_in_r_protectStatement606); if (failed) return ;
- pushFollow(FOLLOW_r_expression_in_r_protectStatement608);
- r_expression();
+ root_0 = (Object)adaptor.nil();
+
+ string_literal114=(Token)input.LT(1);
+ match(input,52,FOLLOW_52_in_r_protectStatement609); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal114_tree = (Object)adaptor.create(string_literal114);
+ adaptor.addChild(root_0, string_literal114_tree);
+ }
+ string_literal115=(Token)input.LT(1);
+ match(input,53,FOLLOW_53_in_r_protectStatement614); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal115_tree = (Object)adaptor.create(string_literal115);
+ adaptor.addChild(root_0, string_literal115_tree);
+ }
+ pushFollow(FOLLOW_r_expression_in_r_protectStatement616);
+ r_expression116=r_expression();
_fsp--;
- if (failed) return ;
- match(input,54,FOLLOW_54_in_r_protectStatement613); if (failed) return ;
- pushFollow(FOLLOW_r_expression_in_r_protectStatement615);
- r_expression();
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_expression116.getTree());
+ string_literal117=(Token)input.LT(1);
+ match(input,54,FOLLOW_54_in_r_protectStatement621); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal117_tree = (Object)adaptor.create(string_literal117);
+ adaptor.addChild(root_0, string_literal117_tree);
+ }
+ pushFollow(FOLLOW_r_expression_in_r_protectStatement623);
+ r_expression118=r_expression();
_fsp--;
- if (failed) return ;
- match(input,55,FOLLOW_55_in_r_protectStatement628); if (failed) return ;
- pushFollow(FOLLOW_r_expression_in_r_protectStatement630);
- r_expression();
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_expression118.getTree());
+ string_literal119=(Token)input.LT(1);
+ match(input,55,FOLLOW_55_in_r_protectStatement636); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal119_tree = (Object)adaptor.create(string_literal119);
+ adaptor.addChild(root_0, string_literal119_tree);
+ }
+ pushFollow(FOLLOW_r_expression_in_r_protectStatement638);
+ r_expression120=r_expression();
_fsp--;
- if (failed) return ;
- // src/org/eclipse/xpand3/parser/Xpand3.g:134:29: ( 'DISABLE' )?
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_expression120.getTree());
+ // src/org/eclipse/xpand3/parser/Xpand3.g:136:29: ( 'DISABLE' )?
int alt27=2;
int LA27_0 = input.LA(1);
@@ -1558,23 +2573,40 @@ public class Xpand3Parser extends Parser {
}
switch (alt27) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:134:29: 'DISABLE'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:136:29: 'DISABLE'
{
- match(input,56,FOLLOW_56_in_r_protectStatement632); if (failed) return ;
+ string_literal121=(Token)input.LT(1);
+ match(input,56,FOLLOW_56_in_r_protectStatement640); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal121_tree = (Object)adaptor.create(string_literal121);
+ adaptor.addChild(root_0, string_literal121_tree);
+ }
}
break;
}
- pushFollow(FOLLOW_r_sequence_in_r_protectStatement638);
- r_sequence();
+ pushFollow(FOLLOW_r_sequence_in_r_protectStatement646);
+ r_sequence122=r_sequence();
_fsp--;
- if (failed) return ;
- match(input,57,FOLLOW_57_in_r_protectStatement642); if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_sequence122.getTree());
+ string_literal123=(Token)input.LT(1);
+ match(input,57,FOLLOW_57_in_r_protectStatement650); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal123_tree = (Object)adaptor.create(string_literal123);
+ adaptor.addChild(root_0, string_literal123_tree);
+ }
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -1582,24 +2614,61 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_protectStatement
+ public static class r_check_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_check
- // src/org/eclipse/xpand3/parser/Xpand3.g:141:1: r_check : 'context' r_type ( 'if' r_expression )? ( 'ERROR' | 'WARNING' ) r_expression ':' r_expression ';' ;
- public void r_check() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:143:1: r_check : 'context' r_type ( 'if' r_expression )? ( 'ERROR' | 'WARNING' ) r_expression ':' r_expression ';' ;
+ public r_check_return r_check() throws RecognitionException {
+ r_check_return retval = new r_check_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ Token string_literal124=null;
+ Token string_literal126=null;
+ Token set128=null;
+ Token char_literal130=null;
+ Token char_literal132=null;
+ r_type_return r_type125 = null;
+
+ r_expression_return r_expression127 = null;
+
+ r_expression_return r_expression129 = null;
+
+ r_expression_return r_expression131 = null;
+
+
+ Object string_literal124_tree=null;
+ Object string_literal126_tree=null;
+ Object set128_tree=null;
+ Object char_literal130_tree=null;
+ Object char_literal132_tree=null;
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:142:2: ( 'context' r_type ( 'if' r_expression )? ( 'ERROR' | 'WARNING' ) r_expression ':' r_expression ';' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:142:2: 'context' r_type ( 'if' r_expression )? ( 'ERROR' | 'WARNING' ) r_expression ':' r_expression ';'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:144:2: ( 'context' r_type ( 'if' r_expression )? ( 'ERROR' | 'WARNING' ) r_expression ':' r_expression ';' )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:144:2: 'context' r_type ( 'if' r_expression )? ( 'ERROR' | 'WARNING' ) r_expression ':' r_expression ';'
{
- match(input,58,FOLLOW_58_in_r_check654); if (failed) return ;
- pushFollow(FOLLOW_r_type_in_r_check656);
- r_type();
+ root_0 = (Object)adaptor.nil();
+
+ string_literal124=(Token)input.LT(1);
+ match(input,58,FOLLOW_58_in_r_check662); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal124_tree = (Object)adaptor.create(string_literal124);
+ adaptor.addChild(root_0, string_literal124_tree);
+ }
+ pushFollow(FOLLOW_r_type_in_r_check664);
+ r_type125=r_type();
_fsp--;
- if (failed) return ;
- // src/org/eclipse/xpand3/parser/Xpand3.g:142:19: ( 'if' r_expression )?
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_type125.getTree());
+ // src/org/eclipse/xpand3/parser/Xpand3.g:144:19: ( 'if' r_expression )?
int alt28=2;
int LA28_0 = input.LA(1);
@@ -1608,43 +2677,69 @@ public class Xpand3Parser extends Parser {
}
switch (alt28) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:142:20: 'if' r_expression
+ // src/org/eclipse/xpand3/parser/Xpand3.g:144:20: 'if' r_expression
{
- match(input,59,FOLLOW_59_in_r_check659); if (failed) return ;
- pushFollow(FOLLOW_r_expression_in_r_check661);
- r_expression();
+ string_literal126=(Token)input.LT(1);
+ match(input,59,FOLLOW_59_in_r_check667); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal126_tree = (Object)adaptor.create(string_literal126);
+ adaptor.addChild(root_0, string_literal126_tree);
+ }
+ pushFollow(FOLLOW_r_expression_in_r_check669);
+ r_expression127=r_expression();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_expression127.getTree());
}
break;
}
+ set128=(Token)input.LT(1);
if ( input.LA(1)==37||input.LA(1)==60 ) {
input.consume();
+ if ( backtracking==0 ) adaptor.addChild(root_0, adaptor.create(set128));
errorRecovery=false;failed=false;
}
else {
- if (backtracking>0) {failed=true; return ;}
+ if (backtracking>0) {failed=true; return retval;}
MismatchedSetException mse =
new MismatchedSetException(null,input);
- recoverFromMismatchedSet(input,mse,FOLLOW_set_in_r_check665); throw mse;
+ recoverFromMismatchedSet(input,mse,FOLLOW_set_in_r_check673); throw mse;
}
- pushFollow(FOLLOW_r_expression_in_r_check671);
- r_expression();
+ pushFollow(FOLLOW_r_expression_in_r_check679);
+ r_expression129=r_expression();
_fsp--;
- if (failed) return ;
- match(input,61,FOLLOW_61_in_r_check673); if (failed) return ;
- pushFollow(FOLLOW_r_expression_in_r_check677);
- r_expression();
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_expression129.getTree());
+ char_literal130=(Token)input.LT(1);
+ match(input,61,FOLLOW_61_in_r_check681); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal130_tree = (Object)adaptor.create(char_literal130);
+ adaptor.addChild(root_0, char_literal130_tree);
+ }
+ pushFollow(FOLLOW_r_expression_in_r_check685);
+ r_expression131=r_expression();
_fsp--;
- if (failed) return ;
- match(input,28,FOLLOW_28_in_r_check679); if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_expression131.getTree());
+ char_literal132=(Token)input.LT(1);
+ match(input,28,FOLLOW_28_in_r_check687); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal132_tree = (Object)adaptor.create(char_literal132);
+ adaptor.addChild(root_0, char_literal132_tree);
+ }
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -1652,25 +2747,71 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_check
+ public static class r_around_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_around
- // src/org/eclipse/xpand3/parser/Xpand3.g:146:1: r_around : 'around' r_pointcut '(' ( r_declaredParameterList ( ( ',' )? '*' )? | '*' )? ')' ':' r_expression ';' ;
- public void r_around() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:148:1: r_around : 'around' r_pointcut '(' ( r_declaredParameterList ( ( ',' )? '*' )? | '*' )? ')' ':' r_expression ';' ;
+ public r_around_return r_around() throws RecognitionException {
+ r_around_return retval = new r_around_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ Token string_literal133=null;
+ Token char_literal135=null;
+ Token char_literal137=null;
+ Token char_literal138=null;
+ Token char_literal139=null;
+ Token char_literal140=null;
+ Token char_literal141=null;
+ Token char_literal143=null;
+ r_pointcut_return r_pointcut134 = null;
+
+ r_declaredParameterList_return r_declaredParameterList136 = null;
+
+ r_expression_return r_expression142 = null;
+
+
+ Object string_literal133_tree=null;
+ Object char_literal135_tree=null;
+ Object char_literal137_tree=null;
+ Object char_literal138_tree=null;
+ Object char_literal139_tree=null;
+ Object char_literal140_tree=null;
+ Object char_literal141_tree=null;
+ Object char_literal143_tree=null;
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:147:5: ( 'around' r_pointcut '(' ( r_declaredParameterList ( ( ',' )? '*' )? | '*' )? ')' ':' r_expression ';' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:147:5: 'around' r_pointcut '(' ( r_declaredParameterList ( ( ',' )? '*' )? | '*' )? ')' ':' r_expression ';'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:149:5: ( 'around' r_pointcut '(' ( r_declaredParameterList ( ( ',' )? '*' )? | '*' )? ')' ':' r_expression ';' )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:149:5: 'around' r_pointcut '(' ( r_declaredParameterList ( ( ',' )? '*' )? | '*' )? ')' ':' r_expression ';'
{
- match(input,62,FOLLOW_62_in_r_around694); if (failed) return ;
- pushFollow(FOLLOW_r_pointcut_in_r_around696);
- r_pointcut();
+ root_0 = (Object)adaptor.nil();
+
+ string_literal133=(Token)input.LT(1);
+ match(input,62,FOLLOW_62_in_r_around702); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal133_tree = (Object)adaptor.create(string_literal133);
+ adaptor.addChild(root_0, string_literal133_tree);
+ }
+ pushFollow(FOLLOW_r_pointcut_in_r_around704);
+ r_pointcut134=r_pointcut();
_fsp--;
- if (failed) return ;
- match(input,31,FOLLOW_31_in_r_around698); if (failed) return ;
- // src/org/eclipse/xpand3/parser/Xpand3.g:147:29: ( r_declaredParameterList ( ( ',' )? '*' )? | '*' )?
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_pointcut134.getTree());
+ char_literal135=(Token)input.LT(1);
+ match(input,31,FOLLOW_31_in_r_around706); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal135_tree = (Object)adaptor.create(char_literal135);
+ adaptor.addChild(root_0, char_literal135_tree);
+ }
+ // src/org/eclipse/xpand3/parser/Xpand3.g:149:29: ( r_declaredParameterList ( ( ',' )? '*' )? | '*' )?
int alt31=3;
int LA31_0 = input.LA(1);
@@ -1682,13 +2823,14 @@ public class Xpand3Parser extends Parser {
}
switch (alt31) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:147:30: r_declaredParameterList ( ( ',' )? '*' )?
+ // src/org/eclipse/xpand3/parser/Xpand3.g:149:30: r_declaredParameterList ( ( ',' )? '*' )?
{
- pushFollow(FOLLOW_r_declaredParameterList_in_r_around701);
- r_declaredParameterList();
+ pushFollow(FOLLOW_r_declaredParameterList_in_r_around709);
+ r_declaredParameterList136=r_declaredParameterList();
_fsp--;
- if (failed) return ;
- // src/org/eclipse/xpand3/parser/Xpand3.g:147:54: ( ( ',' )? '*' )?
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_declaredParameterList136.getTree());
+ // src/org/eclipse/xpand3/parser/Xpand3.g:149:54: ( ( ',' )? '*' )?
int alt30=2;
int LA30_0 = input.LA(1);
@@ -1697,9 +2839,9 @@ public class Xpand3Parser extends Parser {
}
switch (alt30) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:147:55: ( ',' )? '*'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:149:55: ( ',' )? '*'
{
- // src/org/eclipse/xpand3/parser/Xpand3.g:147:55: ( ',' )?
+ // src/org/eclipse/xpand3/parser/Xpand3.g:149:55: ( ',' )?
int alt29=2;
int LA29_0 = input.LA(1);
@@ -1708,16 +2850,26 @@ public class Xpand3Parser extends Parser {
}
switch (alt29) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:147:55: ','
+ // src/org/eclipse/xpand3/parser/Xpand3.g:149:55: ','
{
- match(input,32,FOLLOW_32_in_r_around704); if (failed) return ;
+ char_literal137=(Token)input.LT(1);
+ match(input,32,FOLLOW_32_in_r_around712); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal137_tree = (Object)adaptor.create(char_literal137);
+ adaptor.addChild(root_0, char_literal137_tree);
+ }
}
break;
}
- match(input,33,FOLLOW_33_in_r_around707); if (failed) return ;
+ char_literal138=(Token)input.LT(1);
+ match(input,33,FOLLOW_33_in_r_around715); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal138_tree = (Object)adaptor.create(char_literal138);
+ adaptor.addChild(root_0, char_literal138_tree);
+ }
}
break;
@@ -1728,25 +2880,52 @@ public class Xpand3Parser extends Parser {
}
break;
case 2 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:147:68: '*'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:149:68: '*'
{
- match(input,33,FOLLOW_33_in_r_around713); if (failed) return ;
+ char_literal139=(Token)input.LT(1);
+ match(input,33,FOLLOW_33_in_r_around721); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal139_tree = (Object)adaptor.create(char_literal139);
+ adaptor.addChild(root_0, char_literal139_tree);
+ }
}
break;
}
- match(input,34,FOLLOW_34_in_r_around717); if (failed) return ;
- match(input,61,FOLLOW_61_in_r_around719); if (failed) return ;
- pushFollow(FOLLOW_r_expression_in_r_around726);
- r_expression();
+ char_literal140=(Token)input.LT(1);
+ match(input,34,FOLLOW_34_in_r_around725); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal140_tree = (Object)adaptor.create(char_literal140);
+ adaptor.addChild(root_0, char_literal140_tree);
+ }
+ char_literal141=(Token)input.LT(1);
+ match(input,61,FOLLOW_61_in_r_around727); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal141_tree = (Object)adaptor.create(char_literal141);
+ adaptor.addChild(root_0, char_literal141_tree);
+ }
+ pushFollow(FOLLOW_r_expression_in_r_around734);
+ r_expression142=r_expression();
_fsp--;
- if (failed) return ;
- match(input,28,FOLLOW_28_in_r_around728); if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_expression142.getTree());
+ char_literal143=(Token)input.LT(1);
+ match(input,28,FOLLOW_28_in_r_around736); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal143_tree = (Object)adaptor.create(char_literal143);
+ adaptor.addChild(root_0, char_literal143_tree);
+ }
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -1754,19 +2933,42 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_around
+ public static class r_pointcut_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_pointcut
- // src/org/eclipse/xpand3/parser/Xpand3.g:151:1: r_pointcut : ( '*' | r_identifier ) ( '*' | r_identifier | '::' )* ;
- public void r_pointcut() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:153:1: r_pointcut : ( '*' | r_identifier ) ( '*' | r_identifier | '::' )* ;
+ public r_pointcut_return r_pointcut() throws RecognitionException {
+ r_pointcut_return retval = new r_pointcut_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ Token char_literal144=null;
+ Token char_literal146=null;
+ Token string_literal148=null;
+ r_identifier_return r_identifier145 = null;
+
+ r_identifier_return r_identifier147 = null;
+
+
+ Object char_literal144_tree=null;
+ Object char_literal146_tree=null;
+ Object string_literal148_tree=null;
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:152:2: ( ( '*' | r_identifier ) ( '*' | r_identifier | '::' )* )
- // src/org/eclipse/xpand3/parser/Xpand3.g:152:2: ( '*' | r_identifier ) ( '*' | r_identifier | '::' )*
+ // src/org/eclipse/xpand3/parser/Xpand3.g:154:2: ( ( '*' | r_identifier ) ( '*' | r_identifier | '::' )* )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:154:2: ( '*' | r_identifier ) ( '*' | r_identifier | '::' )*
{
- // src/org/eclipse/xpand3/parser/Xpand3.g:152:2: ( '*' | r_identifier )
+ root_0 = (Object)adaptor.nil();
+
+ // src/org/eclipse/xpand3/parser/Xpand3.g:154:2: ( '*' | r_identifier )
int alt32=2;
int LA32_0 = input.LA(1);
@@ -1777,34 +2979,40 @@ public class Xpand3Parser extends Parser {
alt32=2;
}
else {
- if (backtracking>0) {failed=true; return ;}
+ if (backtracking>0) {failed=true; return retval;}
NoViableAltException nvae =
- new NoViableAltException("152:2: ( '*' | r_identifier )", 32, 0, input);
+ new NoViableAltException("154:2: ( '*' | r_identifier )", 32, 0, input);
throw nvae;
}
switch (alt32) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:152:4: '*'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:154:4: '*'
{
- match(input,33,FOLLOW_33_in_r_pointcut745); if (failed) return ;
+ char_literal144=(Token)input.LT(1);
+ match(input,33,FOLLOW_33_in_r_pointcut753); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal144_tree = (Object)adaptor.create(char_literal144);
+ adaptor.addChild(root_0, char_literal144_tree);
+ }
}
break;
case 2 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:153:4: r_identifier
+ // src/org/eclipse/xpand3/parser/Xpand3.g:155:4: r_identifier
{
- pushFollow(FOLLOW_r_identifier_in_r_pointcut751);
- r_identifier();
+ pushFollow(FOLLOW_r_identifier_in_r_pointcut759);
+ r_identifier145=r_identifier();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_identifier145.getTree());
}
break;
}
- // src/org/eclipse/xpand3/parser/Xpand3.g:154:4: ( '*' | r_identifier | '::' )*
+ // src/org/eclipse/xpand3/parser/Xpand3.g:156:4: ( '*' | r_identifier | '::' )*
loop33:
do {
int alt33=4;
@@ -1829,26 +3037,37 @@ public class Xpand3Parser extends Parser {
switch (alt33) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:154:6: '*'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:156:6: '*'
{
- match(input,33,FOLLOW_33_in_r_pointcut759); if (failed) return ;
+ char_literal146=(Token)input.LT(1);
+ match(input,33,FOLLOW_33_in_r_pointcut767); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal146_tree = (Object)adaptor.create(char_literal146);
+ adaptor.addChild(root_0, char_literal146_tree);
+ }
}
break;
case 2 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:155:6: r_identifier
+ // src/org/eclipse/xpand3/parser/Xpand3.g:157:6: r_identifier
{
- pushFollow(FOLLOW_r_identifier_in_r_pointcut767);
- r_identifier();
+ pushFollow(FOLLOW_r_identifier_in_r_pointcut775);
+ r_identifier147=r_identifier();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_identifier147.getTree());
}
break;
case 3 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:156:6: '::'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:158:6: '::'
{
- match(input,63,FOLLOW_63_in_r_pointcut775); if (failed) return ;
+ string_literal148=(Token)input.LT(1);
+ match(input,63,FOLLOW_63_in_r_pointcut783); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal148_tree = (Object)adaptor.create(string_literal148);
+ adaptor.addChild(root_0, string_literal148_tree);
+ }
}
break;
@@ -1861,6 +3080,12 @@ public class Xpand3Parser extends Parser {
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -1868,19 +3093,70 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_pointcut
+ public static class r_extension_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_extension
- // src/org/eclipse/xpand3/parser/Xpand3.g:159:1: r_extension : ( 'private' | 'cached' | 'create' )* ( r_type )? r_identifier ( r_identifier )? '(' ( r_declaredParameterList )? ')' ':' ( 'JAVA' r_javaType '.' r_identifier '(' ( r_javaType ( ',' r_javaType )* )? ')' | r_expression ) ';' ;
- public void r_extension() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:161:1: r_extension : ( 'private' | 'cached' | 'create' )* ( r_type )? r_identifier ( r_identifier )? '(' ( r_declaredParameterList )? ')' ':' ( 'JAVA' r_javaType '.' r_identifier '(' ( r_javaType ( ',' r_javaType )* )? ')' | r_expression ) ';' ;
+ public r_extension_return r_extension() throws RecognitionException {
+ r_extension_return retval = new r_extension_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ Token set149=null;
+ Token char_literal153=null;
+ Token char_literal155=null;
+ Token char_literal156=null;
+ Token string_literal157=null;
+ Token char_literal159=null;
+ Token char_literal161=null;
+ Token char_literal163=null;
+ Token char_literal165=null;
+ Token char_literal167=null;
+ r_type_return r_type150 = null;
+
+ r_identifier_return r_identifier151 = null;
+
+ r_identifier_return r_identifier152 = null;
+
+ r_declaredParameterList_return r_declaredParameterList154 = null;
+
+ r_javaType_return r_javaType158 = null;
+
+ r_identifier_return r_identifier160 = null;
+
+ r_javaType_return r_javaType162 = null;
+
+ r_javaType_return r_javaType164 = null;
+
+ r_expression_return r_expression166 = null;
+
+
+ Object set149_tree=null;
+ Object char_literal153_tree=null;
+ Object char_literal155_tree=null;
+ Object char_literal156_tree=null;
+ Object string_literal157_tree=null;
+ Object char_literal159_tree=null;
+ Object char_literal161_tree=null;
+ Object char_literal163_tree=null;
+ Object char_literal165_tree=null;
+ Object char_literal167_tree=null;
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:160:2: ( ( 'private' | 'cached' | 'create' )* ( r_type )? r_identifier ( r_identifier )? '(' ( r_declaredParameterList )? ')' ':' ( 'JAVA' r_javaType '.' r_identifier '(' ( r_javaType ( ',' r_javaType )* )? ')' | r_expression ) ';' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:160:2: ( 'private' | 'cached' | 'create' )* ( r_type )? r_identifier ( r_identifier )? '(' ( r_declaredParameterList )? ')' ':' ( 'JAVA' r_javaType '.' r_identifier '(' ( r_javaType ( ',' r_javaType )* )? ')' | r_expression ) ';'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:162:2: ( ( 'private' | 'cached' | 'create' )* ( r_type )? r_identifier ( r_identifier )? '(' ( r_declaredParameterList )? ')' ':' ( 'JAVA' r_javaType '.' r_identifier '(' ( r_javaType ( ',' r_javaType )* )? ')' | r_expression ) ';' )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:162:2: ( 'private' | 'cached' | 'create' )* ( r_type )? r_identifier ( r_identifier )? '(' ( r_declaredParameterList )? ')' ':' ( 'JAVA' r_javaType '.' r_identifier '(' ( r_javaType ( ',' r_javaType )* )? ')' | r_expression ) ';'
{
- // src/org/eclipse/xpand3/parser/Xpand3.g:160:2: ( 'private' | 'cached' | 'create' )*
+ root_0 = (Object)adaptor.nil();
+
+ // src/org/eclipse/xpand3/parser/Xpand3.g:162:2: ( 'private' | 'cached' | 'create' )*
loop34:
do {
int alt34=2;
@@ -1895,15 +3171,17 @@ public class Xpand3Parser extends Parser {
case 1 :
// src/org/eclipse/xpand3/parser/Xpand3.g:
{
+ set149=(Token)input.LT(1);
if ( (input.LA(1)>=64 && input.LA(1)<=66) ) {
input.consume();
+ if ( backtracking==0 ) adaptor.addChild(root_0, adaptor.create(set149));
errorRecovery=false;failed=false;
}
else {
- if (backtracking>0) {failed=true; return ;}
+ if (backtracking>0) {failed=true; return retval;}
MismatchedSetException mse =
new MismatchedSetException(null,input);
- recoverFromMismatchedSet(input,mse,FOLLOW_set_in_r_extension789); throw mse;
+ recoverFromMismatchedSet(input,mse,FOLLOW_set_in_r_extension797); throw mse;
}
@@ -1915,7 +3193,7 @@ public class Xpand3Parser extends Parser {
}
} while (true);
- // src/org/eclipse/xpand3/parser/Xpand3.g:160:33: ( r_type )?
+ // src/org/eclipse/xpand3/parser/Xpand3.g:162:33: ( r_type )?
int alt35=2;
int LA35_0 = input.LA(1);
@@ -1934,23 +3212,25 @@ public class Xpand3Parser extends Parser {
}
switch (alt35) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:160:33: r_type
+ // src/org/eclipse/xpand3/parser/Xpand3.g:162:33: r_type
{
- pushFollow(FOLLOW_r_type_in_r_extension798);
- r_type();
+ pushFollow(FOLLOW_r_type_in_r_extension806);
+ r_type150=r_type();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_type150.getTree());
}
break;
}
- pushFollow(FOLLOW_r_identifier_in_r_extension801);
- r_identifier();
+ pushFollow(FOLLOW_r_identifier_in_r_extension809);
+ r_identifier151=r_identifier();
_fsp--;
- if (failed) return ;
- // src/org/eclipse/xpand3/parser/Xpand3.g:160:54: ( r_identifier )?
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_identifier151.getTree());
+ // src/org/eclipse/xpand3/parser/Xpand3.g:162:54: ( r_identifier )?
int alt36=2;
int LA36_0 = input.LA(1);
@@ -1959,20 +3239,26 @@ public class Xpand3Parser extends Parser {
}
switch (alt36) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:160:54: r_identifier
+ // src/org/eclipse/xpand3/parser/Xpand3.g:162:54: r_identifier
{
- pushFollow(FOLLOW_r_identifier_in_r_extension803);
- r_identifier();
+ pushFollow(FOLLOW_r_identifier_in_r_extension811);
+ r_identifier152=r_identifier();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_identifier152.getTree());
}
break;
}
- match(input,31,FOLLOW_31_in_r_extension806); if (failed) return ;
- // src/org/eclipse/xpand3/parser/Xpand3.g:160:72: ( r_declaredParameterList )?
+ char_literal153=(Token)input.LT(1);
+ match(input,31,FOLLOW_31_in_r_extension814); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal153_tree = (Object)adaptor.create(char_literal153);
+ adaptor.addChild(root_0, char_literal153_tree);
+ }
+ // src/org/eclipse/xpand3/parser/Xpand3.g:162:72: ( r_declaredParameterList )?
int alt37=2;
int LA37_0 = input.LA(1);
@@ -1981,21 +3267,32 @@ public class Xpand3Parser extends Parser {
}
switch (alt37) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:160:72: r_declaredParameterList
+ // src/org/eclipse/xpand3/parser/Xpand3.g:162:72: r_declaredParameterList
{
- pushFollow(FOLLOW_r_declaredParameterList_in_r_extension808);
- r_declaredParameterList();
+ pushFollow(FOLLOW_r_declaredParameterList_in_r_extension816);
+ r_declaredParameterList154=r_declaredParameterList();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_declaredParameterList154.getTree());
}
break;
}
- match(input,34,FOLLOW_34_in_r_extension811); if (failed) return ;
- match(input,61,FOLLOW_61_in_r_extension813); if (failed) return ;
- // src/org/eclipse/xpand3/parser/Xpand3.g:161:3: ( 'JAVA' r_javaType '.' r_identifier '(' ( r_javaType ( ',' r_javaType )* )? ')' | r_expression )
+ char_literal155=(Token)input.LT(1);
+ match(input,34,FOLLOW_34_in_r_extension819); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal155_tree = (Object)adaptor.create(char_literal155);
+ adaptor.addChild(root_0, char_literal155_tree);
+ }
+ char_literal156=(Token)input.LT(1);
+ match(input,61,FOLLOW_61_in_r_extension821); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal156_tree = (Object)adaptor.create(char_literal156);
+ adaptor.addChild(root_0, char_literal156_tree);
+ }
+ // src/org/eclipse/xpand3/parser/Xpand3.g:163:3: ( 'JAVA' r_javaType '.' r_identifier '(' ( r_javaType ( ',' r_javaType )* )? ')' | r_expression )
int alt40=2;
int LA40_0 = input.LA(1);
@@ -2006,28 +3303,45 @@ public class Xpand3Parser extends Parser {
alt40=2;
}
else {
- if (backtracking>0) {failed=true; return ;}
+ if (backtracking>0) {failed=true; return retval;}
NoViableAltException nvae =
- new NoViableAltException("161:3: ( 'JAVA' r_javaType '.' r_identifier '(' ( r_javaType ( ',' r_javaType )* )? ')' | r_expression )", 40, 0, input);
+ new NoViableAltException("163:3: ( 'JAVA' r_javaType '.' r_identifier '(' ( r_javaType ( ',' r_javaType )* )? ')' | r_expression )", 40, 0, input);
throw nvae;
}
switch (alt40) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:161:4: 'JAVA' r_javaType '.' r_identifier '(' ( r_javaType ( ',' r_javaType )* )? ')'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:163:4: 'JAVA' r_javaType '.' r_identifier '(' ( r_javaType ( ',' r_javaType )* )? ')'
{
- match(input,67,FOLLOW_67_in_r_extension818); if (failed) return ;
- pushFollow(FOLLOW_r_javaType_in_r_extension820);
- r_javaType();
+ string_literal157=(Token)input.LT(1);
+ match(input,67,FOLLOW_67_in_r_extension826); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal157_tree = (Object)adaptor.create(string_literal157);
+ adaptor.addChild(root_0, string_literal157_tree);
+ }
+ pushFollow(FOLLOW_r_javaType_in_r_extension828);
+ r_javaType158=r_javaType();
_fsp--;
- if (failed) return ;
- match(input,68,FOLLOW_68_in_r_extension822); if (failed) return ;
- pushFollow(FOLLOW_r_identifier_in_r_extension824);
- r_identifier();
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_javaType158.getTree());
+ char_literal159=(Token)input.LT(1);
+ match(input,68,FOLLOW_68_in_r_extension830); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal159_tree = (Object)adaptor.create(char_literal159);
+ adaptor.addChild(root_0, char_literal159_tree);
+ }
+ pushFollow(FOLLOW_r_identifier_in_r_extension832);
+ r_identifier160=r_identifier();
_fsp--;
- if (failed) return ;
- match(input,31,FOLLOW_31_in_r_extension826); if (failed) return ;
- // src/org/eclipse/xpand3/parser/Xpand3.g:161:42: ( r_javaType ( ',' r_javaType )* )?
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_identifier160.getTree());
+ char_literal161=(Token)input.LT(1);
+ match(input,31,FOLLOW_31_in_r_extension834); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal161_tree = (Object)adaptor.create(char_literal161);
+ adaptor.addChild(root_0, char_literal161_tree);
+ }
+ // src/org/eclipse/xpand3/parser/Xpand3.g:163:42: ( r_javaType ( ',' r_javaType )* )?
int alt39=2;
int LA39_0 = input.LA(1);
@@ -2036,13 +3350,14 @@ public class Xpand3Parser extends Parser {
}
switch (alt39) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:161:43: r_javaType ( ',' r_javaType )*
+ // src/org/eclipse/xpand3/parser/Xpand3.g:163:43: r_javaType ( ',' r_javaType )*
{
- pushFollow(FOLLOW_r_javaType_in_r_extension828);
- r_javaType();
+ pushFollow(FOLLOW_r_javaType_in_r_extension836);
+ r_javaType162=r_javaType();
_fsp--;
- if (failed) return ;
- // src/org/eclipse/xpand3/parser/Xpand3.g:161:54: ( ',' r_javaType )*
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_javaType162.getTree());
+ // src/org/eclipse/xpand3/parser/Xpand3.g:163:54: ( ',' r_javaType )*
loop38:
do {
int alt38=2;
@@ -2055,13 +3370,19 @@ public class Xpand3Parser extends Parser {
switch (alt38) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:161:55: ',' r_javaType
+ // src/org/eclipse/xpand3/parser/Xpand3.g:163:55: ',' r_javaType
{
- match(input,32,FOLLOW_32_in_r_extension831); if (failed) return ;
- pushFollow(FOLLOW_r_javaType_in_r_extension833);
- r_javaType();
+ char_literal163=(Token)input.LT(1);
+ match(input,32,FOLLOW_32_in_r_extension839); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal163_tree = (Object)adaptor.create(char_literal163);
+ adaptor.addChild(root_0, char_literal163_tree);
+ }
+ pushFollow(FOLLOW_r_javaType_in_r_extension841);
+ r_javaType164=r_javaType();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_javaType164.getTree());
}
break;
@@ -2077,27 +3398,44 @@ public class Xpand3Parser extends Parser {
}
- match(input,34,FOLLOW_34_in_r_extension840); if (failed) return ;
+ char_literal165=(Token)input.LT(1);
+ match(input,34,FOLLOW_34_in_r_extension848); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal165_tree = (Object)adaptor.create(char_literal165);
+ adaptor.addChild(root_0, char_literal165_tree);
+ }
}
break;
case 2 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:162:4: r_expression
+ // src/org/eclipse/xpand3/parser/Xpand3.g:164:4: r_expression
{
- pushFollow(FOLLOW_r_expression_in_r_extension847);
- r_expression();
+ pushFollow(FOLLOW_r_expression_in_r_extension855);
+ r_expression166=r_expression();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_expression166.getTree());
}
break;
}
- match(input,28,FOLLOW_28_in_r_extension850); if (failed) return ;
+ char_literal167=(Token)input.LT(1);
+ match(input,28,FOLLOW_28_in_r_extension858); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal167_tree = (Object)adaptor.create(char_literal167);
+ adaptor.addChild(root_0, char_literal167_tree);
+ }
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -2105,23 +3443,49 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_extension
+ public static class r_javaType_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_javaType
- // src/org/eclipse/xpand3/parser/Xpand3.g:165:1: r_javaType : r_identifier ( '.' ( r_identifier | 'Collection' | 'List' | 'Set' ) )* ;
- public void r_javaType() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:167:1: r_javaType : r_identifier ( '.' ( r_identifier | 'Collection' | 'List' | 'Set' ) )* ;
+ public r_javaType_return r_javaType() throws RecognitionException {
+ r_javaType_return retval = new r_javaType_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ Token char_literal169=null;
+ Token string_literal171=null;
+ Token string_literal172=null;
+ Token string_literal173=null;
+ r_identifier_return r_identifier168 = null;
+
+ r_identifier_return r_identifier170 = null;
+
+
+ Object char_literal169_tree=null;
+ Object string_literal171_tree=null;
+ Object string_literal172_tree=null;
+ Object string_literal173_tree=null;
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:166:2: ( r_identifier ( '.' ( r_identifier | 'Collection' | 'List' | 'Set' ) )* )
- // src/org/eclipse/xpand3/parser/Xpand3.g:166:2: r_identifier ( '.' ( r_identifier | 'Collection' | 'List' | 'Set' ) )*
+ // src/org/eclipse/xpand3/parser/Xpand3.g:168:2: ( r_identifier ( '.' ( r_identifier | 'Collection' | 'List' | 'Set' ) )* )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:168:2: r_identifier ( '.' ( r_identifier | 'Collection' | 'List' | 'Set' ) )*
{
- pushFollow(FOLLOW_r_identifier_in_r_javaType861);
- r_identifier();
+ root_0 = (Object)adaptor.nil();
+
+ pushFollow(FOLLOW_r_identifier_in_r_javaType869);
+ r_identifier168=r_identifier();
_fsp--;
- if (failed) return ;
- // src/org/eclipse/xpand3/parser/Xpand3.g:167:2: ( '.' ( r_identifier | 'Collection' | 'List' | 'Set' ) )*
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_identifier168.getTree());
+ // src/org/eclipse/xpand3/parser/Xpand3.g:169:2: ( '.' ( r_identifier | 'Collection' | 'List' | 'Set' ) )*
loop42:
do {
int alt42=2;
@@ -2149,10 +3513,15 @@ public class Xpand3Parser extends Parser {
switch (alt42) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:167:3: '.' ( r_identifier | 'Collection' | 'List' | 'Set' )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:169:3: '.' ( r_identifier | 'Collection' | 'List' | 'Set' )
{
- match(input,68,FOLLOW_68_in_r_javaType867); if (failed) return ;
- // src/org/eclipse/xpand3/parser/Xpand3.g:167:7: ( r_identifier | 'Collection' | 'List' | 'Set' )
+ char_literal169=(Token)input.LT(1);
+ match(input,68,FOLLOW_68_in_r_javaType875); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal169_tree = (Object)adaptor.create(char_literal169);
+ adaptor.addChild(root_0, char_literal169_tree);
+ }
+ // src/org/eclipse/xpand3/parser/Xpand3.g:169:7: ( r_identifier | 'Collection' | 'List' | 'Set' )
int alt41=4;
switch ( input.LA(1) ) {
case Identifier:
@@ -2176,42 +3545,58 @@ public class Xpand3Parser extends Parser {
}
break;
default:
- if (backtracking>0) {failed=true; return ;}
+ if (backtracking>0) {failed=true; return retval;}
NoViableAltException nvae =
- new NoViableAltException("167:7: ( r_identifier | 'Collection' | 'List' | 'Set' )", 41, 0, input);
+ new NoViableAltException("169:7: ( r_identifier | 'Collection' | 'List' | 'Set' )", 41, 0, input);
throw nvae;
}
switch (alt41) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:167:8: r_identifier
+ // src/org/eclipse/xpand3/parser/Xpand3.g:169:8: r_identifier
{
- pushFollow(FOLLOW_r_identifier_in_r_javaType870);
- r_identifier();
+ pushFollow(FOLLOW_r_identifier_in_r_javaType878);
+ r_identifier170=r_identifier();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_identifier170.getTree());
}
break;
case 2 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:167:22: 'Collection'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:169:22: 'Collection'
{
- match(input,69,FOLLOW_69_in_r_javaType873); if (failed) return ;
+ string_literal171=(Token)input.LT(1);
+ match(input,69,FOLLOW_69_in_r_javaType881); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal171_tree = (Object)adaptor.create(string_literal171);
+ adaptor.addChild(root_0, string_literal171_tree);
+ }
}
break;
case 3 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:168:2: 'List'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:170:2: 'List'
{
- match(input,70,FOLLOW_70_in_r_javaType879); if (failed) return ;
+ string_literal172=(Token)input.LT(1);
+ match(input,70,FOLLOW_70_in_r_javaType887); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal172_tree = (Object)adaptor.create(string_literal172);
+ adaptor.addChild(root_0, string_literal172_tree);
+ }
}
break;
case 4 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:168:10: 'Set'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:170:10: 'Set'
{
- match(input,71,FOLLOW_71_in_r_javaType882); if (failed) return ;
+ string_literal173=(Token)input.LT(1);
+ match(input,71,FOLLOW_71_in_r_javaType890); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal173_tree = (Object)adaptor.create(string_literal173);
+ adaptor.addChild(root_0, string_literal173_tree);
+ }
}
break;
@@ -2230,6 +3615,12 @@ public class Xpand3Parser extends Parser {
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -2237,25 +3628,47 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_javaType
+ public static class r_expression_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_expression
- // src/org/eclipse/xpand3/parser/Xpand3.g:174:1: r_expression : r_letExpression ;
- public void r_expression() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:176:1: r_expression : r_letExpression ;
+ public r_expression_return r_expression() throws RecognitionException {
+ r_expression_return retval = new r_expression_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ r_letExpression_return r_letExpression174 = null;
+
+
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:175:2: ( r_letExpression )
- // src/org/eclipse/xpand3/parser/Xpand3.g:175:2: r_letExpression
+ // src/org/eclipse/xpand3/parser/Xpand3.g:177:2: ( r_letExpression )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:177:2: r_letExpression
{
- pushFollow(FOLLOW_r_letExpression_in_r_expression898);
- r_letExpression();
+ root_0 = (Object)adaptor.nil();
+
+ pushFollow(FOLLOW_r_letExpression_in_r_expression906);
+ r_letExpression174=r_letExpression();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_letExpression174.getTree());
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -2263,16 +3676,41 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_expression
+ public static class r_letExpression_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_letExpression
- // src/org/eclipse/xpand3/parser/Xpand3.g:178:1: r_letExpression : ( 'let' r_identifier '=' r_castedExpression ':' r_expression | r_castedExpression );
- public void r_letExpression() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:180:1: r_letExpression : ( 'let' r_identifier '=' r_castedExpression ':' r_expression | r_castedExpression );
+ public r_letExpression_return r_letExpression() throws RecognitionException {
+ r_letExpression_return retval = new r_letExpression_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ Token string_literal175=null;
+ Token char_literal177=null;
+ Token char_literal179=null;
+ r_identifier_return r_identifier176 = null;
+
+ r_castedExpression_return r_castedExpression178 = null;
+
+ r_expression_return r_expression180 = null;
+
+ r_castedExpression_return r_castedExpression181 = null;
+
+
+ Object string_literal175_tree=null;
+ Object char_literal177_tree=null;
+ Object char_literal179_tree=null;
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:179:4: ( 'let' r_identifier '=' r_castedExpression ':' r_expression | r_castedExpression )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:181:4: ( 'let' r_identifier '=' r_castedExpression ':' r_expression | r_castedExpression )
int alt43=2;
int LA43_0 = input.LA(1);
@@ -2283,46 +3721,75 @@ public class Xpand3Parser extends Parser {
alt43=2;
}
else {
- if (backtracking>0) {failed=true; return ;}
+ if (backtracking>0) {failed=true; return retval;}
NoViableAltException nvae =
- new NoViableAltException("178:1: r_letExpression : ( 'let' r_identifier '=' r_castedExpression ':' r_expression | r_castedExpression );", 43, 0, input);
+ new NoViableAltException("180:1: r_letExpression : ( 'let' r_identifier '=' r_castedExpression ':' r_expression | r_castedExpression );", 43, 0, input);
throw nvae;
}
switch (alt43) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:179:4: 'let' r_identifier '=' r_castedExpression ':' r_expression
+ // src/org/eclipse/xpand3/parser/Xpand3.g:181:4: 'let' r_identifier '=' r_castedExpression ':' r_expression
{
- match(input,72,FOLLOW_72_in_r_letExpression912); if (failed) return ;
- pushFollow(FOLLOW_r_identifier_in_r_letExpression914);
- r_identifier();
+ root_0 = (Object)adaptor.nil();
+
+ string_literal175=(Token)input.LT(1);
+ match(input,72,FOLLOW_72_in_r_letExpression920); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal175_tree = (Object)adaptor.create(string_literal175);
+ adaptor.addChild(root_0, string_literal175_tree);
+ }
+ pushFollow(FOLLOW_r_identifier_in_r_letExpression922);
+ r_identifier176=r_identifier();
_fsp--;
- if (failed) return ;
- match(input,73,FOLLOW_73_in_r_letExpression916); if (failed) return ;
- pushFollow(FOLLOW_r_castedExpression_in_r_letExpression918);
- r_castedExpression();
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_identifier176.getTree());
+ char_literal177=(Token)input.LT(1);
+ match(input,73,FOLLOW_73_in_r_letExpression924); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal177_tree = (Object)adaptor.create(char_literal177);
+ adaptor.addChild(root_0, char_literal177_tree);
+ }
+ pushFollow(FOLLOW_r_castedExpression_in_r_letExpression926);
+ r_castedExpression178=r_castedExpression();
_fsp--;
- if (failed) return ;
- match(input,61,FOLLOW_61_in_r_letExpression920); if (failed) return ;
- pushFollow(FOLLOW_r_expression_in_r_letExpression922);
- r_expression();
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_castedExpression178.getTree());
+ char_literal179=(Token)input.LT(1);
+ match(input,61,FOLLOW_61_in_r_letExpression928); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal179_tree = (Object)adaptor.create(char_literal179);
+ adaptor.addChild(root_0, char_literal179_tree);
+ }
+ pushFollow(FOLLOW_r_expression_in_r_letExpression930);
+ r_expression180=r_expression();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_expression180.getTree());
}
break;
case 2 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:180:4: r_castedExpression
+ // src/org/eclipse/xpand3/parser/Xpand3.g:182:4: r_castedExpression
{
- pushFollow(FOLLOW_r_castedExpression_in_r_letExpression928);
- r_castedExpression();
+ root_0 = (Object)adaptor.nil();
+
+ pushFollow(FOLLOW_r_castedExpression_in_r_letExpression936);
+ r_castedExpression181=r_castedExpression();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_castedExpression181.getTree());
}
break;
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -2330,47 +3797,91 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_letExpression
+ public static class r_castedExpression_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_castedExpression
- // src/org/eclipse/xpand3/parser/Xpand3.g:183:1: r_castedExpression : ( ( '(' r_type ')' r_castedExpression )=> '(' r_type ')' r_chainExpression | r_chainExpression );
- public void r_castedExpression() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:185:1: r_castedExpression : ( ( '(' r_type ')' r_castedExpression )=> '(' r_type ')' r_chainExpression | r_chainExpression );
+ public r_castedExpression_return r_castedExpression() throws RecognitionException {
+ r_castedExpression_return retval = new r_castedExpression_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ Token char_literal182=null;
+ Token char_literal184=null;
+ r_type_return r_type183 = null;
+
+ r_chainExpression_return r_chainExpression185 = null;
+
+ r_chainExpression_return r_chainExpression186 = null;
+
+
+ Object char_literal182_tree=null;
+ Object char_literal184_tree=null;
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:184:5: ( ( '(' r_type ')' r_castedExpression )=> '(' r_type ')' r_chainExpression | r_chainExpression )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:186:5: ( ( '(' r_type ')' r_castedExpression )=> '(' r_type ')' r_chainExpression | r_chainExpression )
int alt44=2;
alt44 = dfa44.predict(input);
switch (alt44) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:184:5: ( '(' r_type ')' r_castedExpression )=> '(' r_type ')' r_chainExpression
+ // src/org/eclipse/xpand3/parser/Xpand3.g:186:5: ( '(' r_type ')' r_castedExpression )=> '(' r_type ')' r_chainExpression
{
- match(input,31,FOLLOW_31_in_r_castedExpression954); if (failed) return ;
- pushFollow(FOLLOW_r_type_in_r_castedExpression956);
- r_type();
+ root_0 = (Object)adaptor.nil();
+
+ char_literal182=(Token)input.LT(1);
+ match(input,31,FOLLOW_31_in_r_castedExpression962); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal182_tree = (Object)adaptor.create(char_literal182);
+ adaptor.addChild(root_0, char_literal182_tree);
+ }
+ pushFollow(FOLLOW_r_type_in_r_castedExpression964);
+ r_type183=r_type();
_fsp--;
- if (failed) return ;
- match(input,34,FOLLOW_34_in_r_castedExpression958); if (failed) return ;
- pushFollow(FOLLOW_r_chainExpression_in_r_castedExpression960);
- r_chainExpression();
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_type183.getTree());
+ char_literal184=(Token)input.LT(1);
+ match(input,34,FOLLOW_34_in_r_castedExpression966); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal184_tree = (Object)adaptor.create(char_literal184);
+ adaptor.addChild(root_0, char_literal184_tree);
+ }
+ pushFollow(FOLLOW_r_chainExpression_in_r_castedExpression968);
+ r_chainExpression185=r_chainExpression();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_chainExpression185.getTree());
}
break;
case 2 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:186:4: r_chainExpression
+ // src/org/eclipse/xpand3/parser/Xpand3.g:188:4: r_chainExpression
{
- pushFollow(FOLLOW_r_chainExpression_in_r_castedExpression966);
- r_chainExpression();
+ root_0 = (Object)adaptor.nil();
+
+ pushFollow(FOLLOW_r_chainExpression_in_r_castedExpression974);
+ r_chainExpression186=r_chainExpression();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_chainExpression186.getTree());
}
break;
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -2378,23 +3889,43 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_castedExpression
+ public static class r_chainExpression_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_chainExpression
- // src/org/eclipse/xpand3/parser/Xpand3.g:189:1: r_chainExpression : r_ifExpression ( '->' r_ifExpression )* ;
- public void r_chainExpression() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:191:1: r_chainExpression : r_ifExpression ( '->' r_ifExpression )* ;
+ public r_chainExpression_return r_chainExpression() throws RecognitionException {
+ r_chainExpression_return retval = new r_chainExpression_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ Token string_literal188=null;
+ r_ifExpression_return r_ifExpression187 = null;
+
+ r_ifExpression_return r_ifExpression189 = null;
+
+
+ Object string_literal188_tree=null;
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:190:2: ( r_ifExpression ( '->' r_ifExpression )* )
- // src/org/eclipse/xpand3/parser/Xpand3.g:190:2: r_ifExpression ( '->' r_ifExpression )*
+ // src/org/eclipse/xpand3/parser/Xpand3.g:192:2: ( r_ifExpression ( '->' r_ifExpression )* )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:192:2: r_ifExpression ( '->' r_ifExpression )*
{
- pushFollow(FOLLOW_r_ifExpression_in_r_chainExpression978);
- r_ifExpression();
+ root_0 = (Object)adaptor.nil();
+
+ pushFollow(FOLLOW_r_ifExpression_in_r_chainExpression986);
+ r_ifExpression187=r_ifExpression();
_fsp--;
- if (failed) return ;
- // src/org/eclipse/xpand3/parser/Xpand3.g:190:18: ( '->' r_ifExpression )*
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_ifExpression187.getTree());
+ // src/org/eclipse/xpand3/parser/Xpand3.g:192:18: ( '->' r_ifExpression )*
loop45:
do {
int alt45=2;
@@ -2407,13 +3938,19 @@ public class Xpand3Parser extends Parser {
switch (alt45) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:190:20: '->' r_ifExpression
+ // src/org/eclipse/xpand3/parser/Xpand3.g:192:20: '->' r_ifExpression
{
- match(input,74,FOLLOW_74_in_r_chainExpression983); if (failed) return ;
- pushFollow(FOLLOW_r_ifExpression_in_r_chainExpression985);
- r_ifExpression();
+ string_literal188=(Token)input.LT(1);
+ match(input,74,FOLLOW_74_in_r_chainExpression991); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal188_tree = (Object)adaptor.create(string_literal188);
+ adaptor.addChild(root_0, string_literal188_tree);
+ }
+ pushFollow(FOLLOW_r_ifExpression_in_r_chainExpression993);
+ r_ifExpression189=r_ifExpression();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_ifExpression189.getTree());
}
break;
@@ -2426,6 +3963,12 @@ public class Xpand3Parser extends Parser {
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -2433,16 +3976,49 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_chainExpression
+ public static class r_ifExpression_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_ifExpression
- // src/org/eclipse/xpand3/parser/Xpand3.g:193:1: r_ifExpression : ( r_switchExpression ( '?' r_expression ':' r_switchExpression )? | 'if' r_expression 'then' r_switchExpression ( 'else' r_switchExpression )? );
- public void r_ifExpression() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:195:1: r_ifExpression : ( r_switchExpression ( '?' r_expression ':' r_switchExpression )? | 'if' r_expression 'then' r_switchExpression ( 'else' r_switchExpression )? );
+ public r_ifExpression_return r_ifExpression() throws RecognitionException {
+ r_ifExpression_return retval = new r_ifExpression_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ Token char_literal191=null;
+ Token char_literal193=null;
+ Token string_literal195=null;
+ Token string_literal197=null;
+ Token string_literal199=null;
+ r_switchExpression_return r_switchExpression190 = null;
+
+ r_expression_return r_expression192 = null;
+
+ r_switchExpression_return r_switchExpression194 = null;
+
+ r_expression_return r_expression196 = null;
+
+ r_switchExpression_return r_switchExpression198 = null;
+
+ r_switchExpression_return r_switchExpression200 = null;
+
+
+ Object char_literal191_tree=null;
+ Object char_literal193_tree=null;
+ Object string_literal195_tree=null;
+ Object string_literal197_tree=null;
+ Object string_literal199_tree=null;
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:194:2: ( r_switchExpression ( '?' r_expression ':' r_switchExpression )? | 'if' r_expression 'then' r_switchExpression ( 'else' r_switchExpression )? )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:196:2: ( r_switchExpression ( '?' r_expression ':' r_switchExpression )? | 'if' r_expression 'then' r_switchExpression ( 'else' r_switchExpression )? )
int alt48=2;
int LA48_0 = input.LA(1);
@@ -2453,21 +4029,24 @@ public class Xpand3Parser extends Parser {
alt48=2;
}
else {
- if (backtracking>0) {failed=true; return ;}
+ if (backtracking>0) {failed=true; return retval;}
NoViableAltException nvae =
- new NoViableAltException("193:1: r_ifExpression : ( r_switchExpression ( '?' r_expression ':' r_switchExpression )? | 'if' r_expression 'then' r_switchExpression ( 'else' r_switchExpression )? );", 48, 0, input);
+ new NoViableAltException("195:1: r_ifExpression : ( r_switchExpression ( '?' r_expression ':' r_switchExpression )? | 'if' r_expression 'then' r_switchExpression ( 'else' r_switchExpression )? );", 48, 0, input);
throw nvae;
}
switch (alt48) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:194:2: r_switchExpression ( '?' r_expression ':' r_switchExpression )?
+ // src/org/eclipse/xpand3/parser/Xpand3.g:196:2: r_switchExpression ( '?' r_expression ':' r_switchExpression )?
{
- pushFollow(FOLLOW_r_switchExpression_in_r_ifExpression999);
- r_switchExpression();
+ root_0 = (Object)adaptor.nil();
+
+ pushFollow(FOLLOW_r_switchExpression_in_r_ifExpression1007);
+ r_switchExpression190=r_switchExpression();
_fsp--;
- if (failed) return ;
- // src/org/eclipse/xpand3/parser/Xpand3.g:194:21: ( '?' r_expression ':' r_switchExpression )?
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_switchExpression190.getTree());
+ // src/org/eclipse/xpand3/parser/Xpand3.g:196:21: ( '?' r_expression ':' r_switchExpression )?
int alt46=2;
int LA46_0 = input.LA(1);
@@ -2476,18 +4055,30 @@ public class Xpand3Parser extends Parser {
}
switch (alt46) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:194:22: '?' r_expression ':' r_switchExpression
+ // src/org/eclipse/xpand3/parser/Xpand3.g:196:22: '?' r_expression ':' r_switchExpression
{
- match(input,75,FOLLOW_75_in_r_ifExpression1002); if (failed) return ;
- pushFollow(FOLLOW_r_expression_in_r_ifExpression1004);
- r_expression();
+ char_literal191=(Token)input.LT(1);
+ match(input,75,FOLLOW_75_in_r_ifExpression1010); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal191_tree = (Object)adaptor.create(char_literal191);
+ adaptor.addChild(root_0, char_literal191_tree);
+ }
+ pushFollow(FOLLOW_r_expression_in_r_ifExpression1012);
+ r_expression192=r_expression();
_fsp--;
- if (failed) return ;
- match(input,61,FOLLOW_61_in_r_ifExpression1006); if (failed) return ;
- pushFollow(FOLLOW_r_switchExpression_in_r_ifExpression1008);
- r_switchExpression();
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_expression192.getTree());
+ char_literal193=(Token)input.LT(1);
+ match(input,61,FOLLOW_61_in_r_ifExpression1014); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal193_tree = (Object)adaptor.create(char_literal193);
+ adaptor.addChild(root_0, char_literal193_tree);
+ }
+ pushFollow(FOLLOW_r_switchExpression_in_r_ifExpression1016);
+ r_switchExpression194=r_switchExpression();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_switchExpression194.getTree());
}
break;
@@ -2498,19 +4089,33 @@ public class Xpand3Parser extends Parser {
}
break;
case 2 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:195:3: 'if' r_expression 'then' r_switchExpression ( 'else' r_switchExpression )?
+ // src/org/eclipse/xpand3/parser/Xpand3.g:197:3: 'if' r_expression 'then' r_switchExpression ( 'else' r_switchExpression )?
{
- match(input,59,FOLLOW_59_in_r_ifExpression1015); if (failed) return ;
- pushFollow(FOLLOW_r_expression_in_r_ifExpression1017);
- r_expression();
+ root_0 = (Object)adaptor.nil();
+
+ string_literal195=(Token)input.LT(1);
+ match(input,59,FOLLOW_59_in_r_ifExpression1023); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal195_tree = (Object)adaptor.create(string_literal195);
+ adaptor.addChild(root_0, string_literal195_tree);
+ }
+ pushFollow(FOLLOW_r_expression_in_r_ifExpression1025);
+ r_expression196=r_expression();
_fsp--;
- if (failed) return ;
- match(input,76,FOLLOW_76_in_r_ifExpression1019); if (failed) return ;
- pushFollow(FOLLOW_r_switchExpression_in_r_ifExpression1021);
- r_switchExpression();
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_expression196.getTree());
+ string_literal197=(Token)input.LT(1);
+ match(input,76,FOLLOW_76_in_r_ifExpression1027); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal197_tree = (Object)adaptor.create(string_literal197);
+ adaptor.addChild(root_0, string_literal197_tree);
+ }
+ pushFollow(FOLLOW_r_switchExpression_in_r_ifExpression1029);
+ r_switchExpression198=r_switchExpression();
_fsp--;
- if (failed) return ;
- // src/org/eclipse/xpand3/parser/Xpand3.g:195:47: ( 'else' r_switchExpression )?
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_switchExpression198.getTree());
+ // src/org/eclipse/xpand3/parser/Xpand3.g:197:47: ( 'else' r_switchExpression )?
int alt47=2;
int LA47_0 = input.LA(1);
@@ -2519,13 +4124,19 @@ public class Xpand3Parser extends Parser {
}
switch (alt47) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:195:48: 'else' r_switchExpression
+ // src/org/eclipse/xpand3/parser/Xpand3.g:197:48: 'else' r_switchExpression
{
- match(input,77,FOLLOW_77_in_r_ifExpression1024); if (failed) return ;
- pushFollow(FOLLOW_r_switchExpression_in_r_ifExpression1026);
- r_switchExpression();
+ string_literal199=(Token)input.LT(1);
+ match(input,77,FOLLOW_77_in_r_ifExpression1032); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal199_tree = (Object)adaptor.create(string_literal199);
+ adaptor.addChild(root_0, string_literal199_tree);
+ }
+ pushFollow(FOLLOW_r_switchExpression_in_r_ifExpression1034);
+ r_switchExpression200=r_switchExpression();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_switchExpression200.getTree());
}
break;
@@ -2537,6 +4148,12 @@ public class Xpand3Parser extends Parser {
break;
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -2544,16 +4161,47 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_ifExpression
+ public static class r_switchExpression_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_switchExpression
- // src/org/eclipse/xpand3/parser/Xpand3.g:198:1: r_switchExpression : ( 'switch' ( '(' r_orExpression ')' )? ( r_casePart )* 'default' ':' r_orExpression '}' | r_orExpression );
- public void r_switchExpression() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:200:1: r_switchExpression : ( 'switch' ( '(' r_orExpression ')' )? ( r_casePart )* 'default' ':' r_orExpression '}' | r_orExpression );
+ public r_switchExpression_return r_switchExpression() throws RecognitionException {
+ r_switchExpression_return retval = new r_switchExpression_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ Token string_literal201=null;
+ Token char_literal202=null;
+ Token char_literal204=null;
+ Token string_literal206=null;
+ Token char_literal207=null;
+ Token char_literal209=null;
+ r_orExpression_return r_orExpression203 = null;
+
+ r_casePart_return r_casePart205 = null;
+
+ r_orExpression_return r_orExpression208 = null;
+
+ r_orExpression_return r_orExpression210 = null;
+
+
+ Object string_literal201_tree=null;
+ Object char_literal202_tree=null;
+ Object char_literal204_tree=null;
+ Object string_literal206_tree=null;
+ Object char_literal207_tree=null;
+ Object char_literal209_tree=null;
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:199:4: ( 'switch' ( '(' r_orExpression ')' )? ( r_casePart )* 'default' ':' r_orExpression '}' | r_orExpression )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:201:4: ( 'switch' ( '(' r_orExpression ')' )? ( r_casePart )* 'default' ':' r_orExpression '}' | r_orExpression )
int alt51=2;
int LA51_0 = input.LA(1);
@@ -2564,18 +4212,25 @@ public class Xpand3Parser extends Parser {
alt51=2;
}
else {
- if (backtracking>0) {failed=true; return ;}
+ if (backtracking>0) {failed=true; return retval;}
NoViableAltException nvae =
- new NoViableAltException("198:1: r_switchExpression : ( 'switch' ( '(' r_orExpression ')' )? ( r_casePart )* 'default' ':' r_orExpression '}' | r_orExpression );", 51, 0, input);
+ new NoViableAltException("200:1: r_switchExpression : ( 'switch' ( '(' r_orExpression ')' )? ( r_casePart )* 'default' ':' r_orExpression '}' | r_orExpression );", 51, 0, input);
throw nvae;
}
switch (alt51) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:199:4: 'switch' ( '(' r_orExpression ')' )? ( r_casePart )* 'default' ':' r_orExpression '}'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:201:4: 'switch' ( '(' r_orExpression ')' )? ( r_casePart )* 'default' ':' r_orExpression '}'
{
- match(input,78,FOLLOW_78_in_r_switchExpression1042); if (failed) return ;
- // src/org/eclipse/xpand3/parser/Xpand3.g:199:13: ( '(' r_orExpression ')' )?
+ root_0 = (Object)adaptor.nil();
+
+ string_literal201=(Token)input.LT(1);
+ match(input,78,FOLLOW_78_in_r_switchExpression1050); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal201_tree = (Object)adaptor.create(string_literal201);
+ adaptor.addChild(root_0, string_literal201_tree);
+ }
+ // src/org/eclipse/xpand3/parser/Xpand3.g:201:13: ( '(' r_orExpression ')' )?
int alt49=2;
int LA49_0 = input.LA(1);
@@ -2584,21 +4239,32 @@ public class Xpand3Parser extends Parser {
}
switch (alt49) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:199:14: '(' r_orExpression ')'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:201:14: '(' r_orExpression ')'
{
- match(input,31,FOLLOW_31_in_r_switchExpression1045); if (failed) return ;
- pushFollow(FOLLOW_r_orExpression_in_r_switchExpression1047);
- r_orExpression();
+ char_literal202=(Token)input.LT(1);
+ match(input,31,FOLLOW_31_in_r_switchExpression1053); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal202_tree = (Object)adaptor.create(char_literal202);
+ adaptor.addChild(root_0, char_literal202_tree);
+ }
+ pushFollow(FOLLOW_r_orExpression_in_r_switchExpression1055);
+ r_orExpression203=r_orExpression();
_fsp--;
- if (failed) return ;
- match(input,34,FOLLOW_34_in_r_switchExpression1049); if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_orExpression203.getTree());
+ char_literal204=(Token)input.LT(1);
+ match(input,34,FOLLOW_34_in_r_switchExpression1057); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal204_tree = (Object)adaptor.create(char_literal204);
+ adaptor.addChild(root_0, char_literal204_tree);
+ }
}
break;
}
- // src/org/eclipse/xpand3/parser/Xpand3.g:200:2: ( r_casePart )*
+ // src/org/eclipse/xpand3/parser/Xpand3.g:202:2: ( r_casePart )*
loop50:
do {
int alt50=2;
@@ -2611,12 +4277,13 @@ public class Xpand3Parser extends Parser {
switch (alt50) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:200:2: r_casePart
+ // src/org/eclipse/xpand3/parser/Xpand3.g:202:2: r_casePart
{
- pushFollow(FOLLOW_r_casePart_in_r_switchExpression1054);
- r_casePart();
+ pushFollow(FOLLOW_r_casePart_in_r_switchExpression1062);
+ r_casePart205=r_casePart();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_casePart205.getTree());
}
break;
@@ -2626,28 +4293,53 @@ public class Xpand3Parser extends Parser {
}
} while (true);
- match(input,79,FOLLOW_79_in_r_switchExpression1060); if (failed) return ;
- match(input,61,FOLLOW_61_in_r_switchExpression1062); if (failed) return ;
- pushFollow(FOLLOW_r_orExpression_in_r_switchExpression1064);
- r_orExpression();
+ string_literal206=(Token)input.LT(1);
+ match(input,79,FOLLOW_79_in_r_switchExpression1068); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal206_tree = (Object)adaptor.create(string_literal206);
+ adaptor.addChild(root_0, string_literal206_tree);
+ }
+ char_literal207=(Token)input.LT(1);
+ match(input,61,FOLLOW_61_in_r_switchExpression1070); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal207_tree = (Object)adaptor.create(char_literal207);
+ adaptor.addChild(root_0, char_literal207_tree);
+ }
+ pushFollow(FOLLOW_r_orExpression_in_r_switchExpression1072);
+ r_orExpression208=r_orExpression();
_fsp--;
- if (failed) return ;
- match(input,80,FOLLOW_80_in_r_switchExpression1069); if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_orExpression208.getTree());
+ char_literal209=(Token)input.LT(1);
+ match(input,80,FOLLOW_80_in_r_switchExpression1077); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal209_tree = (Object)adaptor.create(char_literal209);
+ adaptor.addChild(root_0, char_literal209_tree);
+ }
}
break;
case 2 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:203:4: r_orExpression
+ // src/org/eclipse/xpand3/parser/Xpand3.g:205:4: r_orExpression
{
- pushFollow(FOLLOW_r_orExpression_in_r_switchExpression1074);
- r_orExpression();
+ root_0 = (Object)adaptor.nil();
+
+ pushFollow(FOLLOW_r_orExpression_in_r_switchExpression1082);
+ r_orExpression210=r_orExpression();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_orExpression210.getTree());
}
break;
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -2655,31 +4347,70 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_switchExpression
+ public static class r_casePart_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_casePart
- // src/org/eclipse/xpand3/parser/Xpand3.g:206:1: r_casePart : 'case' r_expression ':' r_expression ;
- public void r_casePart() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:208:1: r_casePart : 'case' r_expression ':' r_expression ;
+ public r_casePart_return r_casePart() throws RecognitionException {
+ r_casePart_return retval = new r_casePart_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ Token string_literal211=null;
+ Token char_literal213=null;
+ r_expression_return r_expression212 = null;
+
+ r_expression_return r_expression214 = null;
+
+
+ Object string_literal211_tree=null;
+ Object char_literal213_tree=null;
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:207:2: ( 'case' r_expression ':' r_expression )
- // src/org/eclipse/xpand3/parser/Xpand3.g:207:2: 'case' r_expression ':' r_expression
+ // src/org/eclipse/xpand3/parser/Xpand3.g:209:2: ( 'case' r_expression ':' r_expression )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:209:2: 'case' r_expression ':' r_expression
{
- match(input,81,FOLLOW_81_in_r_casePart1085); if (failed) return ;
- pushFollow(FOLLOW_r_expression_in_r_casePart1087);
- r_expression();
+ root_0 = (Object)adaptor.nil();
+
+ string_literal211=(Token)input.LT(1);
+ match(input,81,FOLLOW_81_in_r_casePart1093); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal211_tree = (Object)adaptor.create(string_literal211);
+ adaptor.addChild(root_0, string_literal211_tree);
+ }
+ pushFollow(FOLLOW_r_expression_in_r_casePart1095);
+ r_expression212=r_expression();
_fsp--;
- if (failed) return ;
- match(input,61,FOLLOW_61_in_r_casePart1089); if (failed) return ;
- pushFollow(FOLLOW_r_expression_in_r_casePart1091);
- r_expression();
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_expression212.getTree());
+ char_literal213=(Token)input.LT(1);
+ match(input,61,FOLLOW_61_in_r_casePart1097); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal213_tree = (Object)adaptor.create(char_literal213);
+ adaptor.addChild(root_0, char_literal213_tree);
+ }
+ pushFollow(FOLLOW_r_expression_in_r_casePart1099);
+ r_expression214=r_expression();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_expression214.getTree());
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -2687,23 +4418,43 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_casePart
+ public static class r_orExpression_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_orExpression
- // src/org/eclipse/xpand3/parser/Xpand3.g:209:1: r_orExpression : r_andExpression ( '||' r_andExpression )* ;
- public void r_orExpression() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:211:1: r_orExpression : r_andExpression ( '||' r_andExpression )* ;
+ public r_orExpression_return r_orExpression() throws RecognitionException {
+ r_orExpression_return retval = new r_orExpression_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ Token string_literal216=null;
+ r_andExpression_return r_andExpression215 = null;
+
+ r_andExpression_return r_andExpression217 = null;
+
+
+ Object string_literal216_tree=null;
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:210:4: ( r_andExpression ( '||' r_andExpression )* )
- // src/org/eclipse/xpand3/parser/Xpand3.g:210:4: r_andExpression ( '||' r_andExpression )*
+ // src/org/eclipse/xpand3/parser/Xpand3.g:212:4: ( r_andExpression ( '||' r_andExpression )* )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:212:4: r_andExpression ( '||' r_andExpression )*
{
- pushFollow(FOLLOW_r_andExpression_in_r_orExpression1103);
- r_andExpression();
+ root_0 = (Object)adaptor.nil();
+
+ pushFollow(FOLLOW_r_andExpression_in_r_orExpression1111);
+ r_andExpression215=r_andExpression();
_fsp--;
- if (failed) return ;
- // src/org/eclipse/xpand3/parser/Xpand3.g:210:21: ( '||' r_andExpression )*
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_andExpression215.getTree());
+ // src/org/eclipse/xpand3/parser/Xpand3.g:212:21: ( '||' r_andExpression )*
loop52:
do {
int alt52=2;
@@ -2716,13 +4467,19 @@ public class Xpand3Parser extends Parser {
switch (alt52) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:210:22: '||' r_andExpression
+ // src/org/eclipse/xpand3/parser/Xpand3.g:212:22: '||' r_andExpression
{
- match(input,82,FOLLOW_82_in_r_orExpression1107); if (failed) return ;
- pushFollow(FOLLOW_r_andExpression_in_r_orExpression1109);
- r_andExpression();
+ string_literal216=(Token)input.LT(1);
+ match(input,82,FOLLOW_82_in_r_orExpression1115); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal216_tree = (Object)adaptor.create(string_literal216);
+ adaptor.addChild(root_0, string_literal216_tree);
+ }
+ pushFollow(FOLLOW_r_andExpression_in_r_orExpression1117);
+ r_andExpression217=r_andExpression();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_andExpression217.getTree());
}
break;
@@ -2735,6 +4492,12 @@ public class Xpand3Parser extends Parser {
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -2742,23 +4505,43 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_orExpression
+ public static class r_andExpression_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_andExpression
- // src/org/eclipse/xpand3/parser/Xpand3.g:213:1: r_andExpression : r_impliesExpression ( '&&' r_impliesExpression )* ;
- public void r_andExpression() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:215:1: r_andExpression : r_impliesExpression ( '&&' r_impliesExpression )* ;
+ public r_andExpression_return r_andExpression() throws RecognitionException {
+ r_andExpression_return retval = new r_andExpression_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ Token string_literal219=null;
+ r_impliesExpression_return r_impliesExpression218 = null;
+
+ r_impliesExpression_return r_impliesExpression220 = null;
+
+
+ Object string_literal219_tree=null;
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:214:2: ( r_impliesExpression ( '&&' r_impliesExpression )* )
- // src/org/eclipse/xpand3/parser/Xpand3.g:214:2: r_impliesExpression ( '&&' r_impliesExpression )*
+ // src/org/eclipse/xpand3/parser/Xpand3.g:216:2: ( r_impliesExpression ( '&&' r_impliesExpression )* )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:216:2: r_impliesExpression ( '&&' r_impliesExpression )*
{
- pushFollow(FOLLOW_r_impliesExpression_in_r_andExpression1124);
- r_impliesExpression();
+ root_0 = (Object)adaptor.nil();
+
+ pushFollow(FOLLOW_r_impliesExpression_in_r_andExpression1132);
+ r_impliesExpression218=r_impliesExpression();
_fsp--;
- if (failed) return ;
- // src/org/eclipse/xpand3/parser/Xpand3.g:214:23: ( '&&' r_impliesExpression )*
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_impliesExpression218.getTree());
+ // src/org/eclipse/xpand3/parser/Xpand3.g:216:23: ( '&&' r_impliesExpression )*
loop53:
do {
int alt53=2;
@@ -2771,13 +4554,19 @@ public class Xpand3Parser extends Parser {
switch (alt53) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:214:24: '&&' r_impliesExpression
+ // src/org/eclipse/xpand3/parser/Xpand3.g:216:24: '&&' r_impliesExpression
{
- match(input,83,FOLLOW_83_in_r_andExpression1128); if (failed) return ;
- pushFollow(FOLLOW_r_impliesExpression_in_r_andExpression1130);
- r_impliesExpression();
+ string_literal219=(Token)input.LT(1);
+ match(input,83,FOLLOW_83_in_r_andExpression1136); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal219_tree = (Object)adaptor.create(string_literal219);
+ adaptor.addChild(root_0, string_literal219_tree);
+ }
+ pushFollow(FOLLOW_r_impliesExpression_in_r_andExpression1138);
+ r_impliesExpression220=r_impliesExpression();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_impliesExpression220.getTree());
}
break;
@@ -2790,6 +4579,12 @@ public class Xpand3Parser extends Parser {
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -2797,23 +4592,43 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_andExpression
+ public static class r_impliesExpression_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_impliesExpression
- // src/org/eclipse/xpand3/parser/Xpand3.g:217:1: r_impliesExpression : r_relationalExpression ( 'implies' r_relationalExpression )* ;
- public void r_impliesExpression() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:219:1: r_impliesExpression : r_relationalExpression ( 'implies' r_relationalExpression )* ;
+ public r_impliesExpression_return r_impliesExpression() throws RecognitionException {
+ r_impliesExpression_return retval = new r_impliesExpression_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ Token string_literal222=null;
+ r_relationalExpression_return r_relationalExpression221 = null;
+
+ r_relationalExpression_return r_relationalExpression223 = null;
+
+
+ Object string_literal222_tree=null;
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:218:2: ( r_relationalExpression ( 'implies' r_relationalExpression )* )
- // src/org/eclipse/xpand3/parser/Xpand3.g:218:2: r_relationalExpression ( 'implies' r_relationalExpression )*
+ // src/org/eclipse/xpand3/parser/Xpand3.g:220:2: ( r_relationalExpression ( 'implies' r_relationalExpression )* )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:220:2: r_relationalExpression ( 'implies' r_relationalExpression )*
{
- pushFollow(FOLLOW_r_relationalExpression_in_r_impliesExpression1145);
- r_relationalExpression();
+ root_0 = (Object)adaptor.nil();
+
+ pushFollow(FOLLOW_r_relationalExpression_in_r_impliesExpression1153);
+ r_relationalExpression221=r_relationalExpression();
_fsp--;
- if (failed) return ;
- // src/org/eclipse/xpand3/parser/Xpand3.g:218:26: ( 'implies' r_relationalExpression )*
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_relationalExpression221.getTree());
+ // src/org/eclipse/xpand3/parser/Xpand3.g:220:26: ( 'implies' r_relationalExpression )*
loop54:
do {
int alt54=2;
@@ -2826,13 +4641,19 @@ public class Xpand3Parser extends Parser {
switch (alt54) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:218:27: 'implies' r_relationalExpression
+ // src/org/eclipse/xpand3/parser/Xpand3.g:220:27: 'implies' r_relationalExpression
{
- match(input,84,FOLLOW_84_in_r_impliesExpression1149); if (failed) return ;
- pushFollow(FOLLOW_r_relationalExpression_in_r_impliesExpression1151);
- r_relationalExpression();
+ string_literal222=(Token)input.LT(1);
+ match(input,84,FOLLOW_84_in_r_impliesExpression1157); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal222_tree = (Object)adaptor.create(string_literal222);
+ adaptor.addChild(root_0, string_literal222_tree);
+ }
+ pushFollow(FOLLOW_r_relationalExpression_in_r_impliesExpression1159);
+ r_relationalExpression223=r_relationalExpression();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_relationalExpression223.getTree());
}
break;
@@ -2845,6 +4666,12 @@ public class Xpand3Parser extends Parser {
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -2852,23 +4679,43 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_impliesExpression
+ public static class r_relationalExpression_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_relationalExpression
- // src/org/eclipse/xpand3/parser/Xpand3.g:221:1: r_relationalExpression : r_additiveExpression ( ( '==' | '!=' | '>=' | '<=' | '>' | '<' ) r_additiveExpression )* ;
- public void r_relationalExpression() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:223:1: r_relationalExpression : r_additiveExpression ( ( '==' | '!=' | '>=' | '<=' | '>' | '<' ) r_additiveExpression )* ;
+ public r_relationalExpression_return r_relationalExpression() throws RecognitionException {
+ r_relationalExpression_return retval = new r_relationalExpression_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ Token set225=null;
+ r_additiveExpression_return r_additiveExpression224 = null;
+
+ r_additiveExpression_return r_additiveExpression226 = null;
+
+
+ Object set225_tree=null;
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:222:2: ( r_additiveExpression ( ( '==' | '!=' | '>=' | '<=' | '>' | '<' ) r_additiveExpression )* )
- // src/org/eclipse/xpand3/parser/Xpand3.g:222:2: r_additiveExpression ( ( '==' | '!=' | '>=' | '<=' | '>' | '<' ) r_additiveExpression )*
+ // src/org/eclipse/xpand3/parser/Xpand3.g:224:2: ( r_additiveExpression ( ( '==' | '!=' | '>=' | '<=' | '>' | '<' ) r_additiveExpression )* )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:224:2: r_additiveExpression ( ( '==' | '!=' | '>=' | '<=' | '>' | '<' ) r_additiveExpression )*
{
- pushFollow(FOLLOW_r_additiveExpression_in_r_relationalExpression1167);
- r_additiveExpression();
+ root_0 = (Object)adaptor.nil();
+
+ pushFollow(FOLLOW_r_additiveExpression_in_r_relationalExpression1175);
+ r_additiveExpression224=r_additiveExpression();
_fsp--;
- if (failed) return ;
- // src/org/eclipse/xpand3/parser/Xpand3.g:223:2: ( ( '==' | '!=' | '>=' | '<=' | '>' | '<' ) r_additiveExpression )*
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_additiveExpression224.getTree());
+ // src/org/eclipse/xpand3/parser/Xpand3.g:225:2: ( ( '==' | '!=' | '>=' | '<=' | '>' | '<' ) r_additiveExpression )*
loop55:
do {
int alt55=2;
@@ -2881,23 +4728,26 @@ public class Xpand3Parser extends Parser {
switch (alt55) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:223:3: ( '==' | '!=' | '>=' | '<=' | '>' | '<' ) r_additiveExpression
+ // src/org/eclipse/xpand3/parser/Xpand3.g:225:3: ( '==' | '!=' | '>=' | '<=' | '>' | '<' ) r_additiveExpression
{
+ set225=(Token)input.LT(1);
if ( (input.LA(1)>=85 && input.LA(1)<=90) ) {
input.consume();
+ if ( backtracking==0 ) adaptor.addChild(root_0, adaptor.create(set225));
errorRecovery=false;failed=false;
}
else {
- if (backtracking>0) {failed=true; return ;}
+ if (backtracking>0) {failed=true; return retval;}
MismatchedSetException mse =
new MismatchedSetException(null,input);
- recoverFromMismatchedSet(input,mse,FOLLOW_set_in_r_relationalExpression1172); throw mse;
+ recoverFromMismatchedSet(input,mse,FOLLOW_set_in_r_relationalExpression1180); throw mse;
}
- pushFollow(FOLLOW_r_additiveExpression_in_r_relationalExpression1196);
- r_additiveExpression();
+ pushFollow(FOLLOW_r_additiveExpression_in_r_relationalExpression1204);
+ r_additiveExpression226=r_additiveExpression();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_additiveExpression226.getTree());
}
break;
@@ -2910,6 +4760,12 @@ public class Xpand3Parser extends Parser {
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -2917,23 +4773,43 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_relationalExpression
+ public static class r_additiveExpression_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_additiveExpression
- // src/org/eclipse/xpand3/parser/Xpand3.g:226:1: r_additiveExpression : r_multiplicativeExpression ( ( '+' | '-' ) r_multiplicativeExpression )* ;
- public void r_additiveExpression() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:228:1: r_additiveExpression : r_multiplicativeExpression ( ( '+' | '-' ) r_multiplicativeExpression )* ;
+ public r_additiveExpression_return r_additiveExpression() throws RecognitionException {
+ r_additiveExpression_return retval = new r_additiveExpression_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ Token set228=null;
+ r_multiplicativeExpression_return r_multiplicativeExpression227 = null;
+
+ r_multiplicativeExpression_return r_multiplicativeExpression229 = null;
+
+
+ Object set228_tree=null;
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:227:2: ( r_multiplicativeExpression ( ( '+' | '-' ) r_multiplicativeExpression )* )
- // src/org/eclipse/xpand3/parser/Xpand3.g:227:2: r_multiplicativeExpression ( ( '+' | '-' ) r_multiplicativeExpression )*
+ // src/org/eclipse/xpand3/parser/Xpand3.g:229:2: ( r_multiplicativeExpression ( ( '+' | '-' ) r_multiplicativeExpression )* )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:229:2: r_multiplicativeExpression ( ( '+' | '-' ) r_multiplicativeExpression )*
{
- pushFollow(FOLLOW_r_multiplicativeExpression_in_r_additiveExpression1209);
- r_multiplicativeExpression();
+ root_0 = (Object)adaptor.nil();
+
+ pushFollow(FOLLOW_r_multiplicativeExpression_in_r_additiveExpression1217);
+ r_multiplicativeExpression227=r_multiplicativeExpression();
_fsp--;
- if (failed) return ;
- // src/org/eclipse/xpand3/parser/Xpand3.g:228:4: ( ( '+' | '-' ) r_multiplicativeExpression )*
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_multiplicativeExpression227.getTree());
+ // src/org/eclipse/xpand3/parser/Xpand3.g:230:4: ( ( '+' | '-' ) r_multiplicativeExpression )*
loop56:
do {
int alt56=2;
@@ -2955,23 +4831,26 @@ public class Xpand3Parser extends Parser {
switch (alt56) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:228:5: ( '+' | '-' ) r_multiplicativeExpression
+ // src/org/eclipse/xpand3/parser/Xpand3.g:230:5: ( '+' | '-' ) r_multiplicativeExpression
{
+ set228=(Token)input.LT(1);
if ( input.LA(1)==36||input.LA(1)==91 ) {
input.consume();
+ if ( backtracking==0 ) adaptor.addChild(root_0, adaptor.create(set228));
errorRecovery=false;failed=false;
}
else {
- if (backtracking>0) {failed=true; return ;}
+ if (backtracking>0) {failed=true; return retval;}
MismatchedSetException mse =
new MismatchedSetException(null,input);
- recoverFromMismatchedSet(input,mse,FOLLOW_set_in_r_additiveExpression1216); throw mse;
+ recoverFromMismatchedSet(input,mse,FOLLOW_set_in_r_additiveExpression1224); throw mse;
}
- pushFollow(FOLLOW_r_multiplicativeExpression_in_r_additiveExpression1223);
- r_multiplicativeExpression();
+ pushFollow(FOLLOW_r_multiplicativeExpression_in_r_additiveExpression1231);
+ r_multiplicativeExpression229=r_multiplicativeExpression();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_multiplicativeExpression229.getTree());
}
break;
@@ -2984,6 +4863,12 @@ public class Xpand3Parser extends Parser {
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -2991,23 +4876,43 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_additiveExpression
+ public static class r_multiplicativeExpression_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_multiplicativeExpression
- // src/org/eclipse/xpand3/parser/Xpand3.g:231:1: r_multiplicativeExpression : r_unaryExpression ( ( '*' | '/' ) r_unaryExpression )* ;
- public void r_multiplicativeExpression() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:233:1: r_multiplicativeExpression : r_unaryExpression ( ( '*' | '/' ) r_unaryExpression )* ;
+ public r_multiplicativeExpression_return r_multiplicativeExpression() throws RecognitionException {
+ r_multiplicativeExpression_return retval = new r_multiplicativeExpression_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ Token set231=null;
+ r_unaryExpression_return r_unaryExpression230 = null;
+
+ r_unaryExpression_return r_unaryExpression232 = null;
+
+
+ Object set231_tree=null;
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:232:2: ( r_unaryExpression ( ( '*' | '/' ) r_unaryExpression )* )
- // src/org/eclipse/xpand3/parser/Xpand3.g:232:2: r_unaryExpression ( ( '*' | '/' ) r_unaryExpression )*
+ // src/org/eclipse/xpand3/parser/Xpand3.g:234:2: ( r_unaryExpression ( ( '*' | '/' ) r_unaryExpression )* )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:234:2: r_unaryExpression ( ( '*' | '/' ) r_unaryExpression )*
{
- pushFollow(FOLLOW_r_unaryExpression_in_r_multiplicativeExpression1236);
- r_unaryExpression();
+ root_0 = (Object)adaptor.nil();
+
+ pushFollow(FOLLOW_r_unaryExpression_in_r_multiplicativeExpression1244);
+ r_unaryExpression230=r_unaryExpression();
_fsp--;
- if (failed) return ;
- // src/org/eclipse/xpand3/parser/Xpand3.g:233:2: ( ( '*' | '/' ) r_unaryExpression )*
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_unaryExpression230.getTree());
+ // src/org/eclipse/xpand3/parser/Xpand3.g:235:2: ( ( '*' | '/' ) r_unaryExpression )*
loop57:
do {
int alt57=2;
@@ -3020,23 +4925,26 @@ public class Xpand3Parser extends Parser {
switch (alt57) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:233:3: ( '*' | '/' ) r_unaryExpression
+ // src/org/eclipse/xpand3/parser/Xpand3.g:235:3: ( '*' | '/' ) r_unaryExpression
{
+ set231=(Token)input.LT(1);
if ( input.LA(1)==33||input.LA(1)==92 ) {
input.consume();
+ if ( backtracking==0 ) adaptor.addChild(root_0, adaptor.create(set231));
errorRecovery=false;failed=false;
}
else {
- if (backtracking>0) {failed=true; return ;}
+ if (backtracking>0) {failed=true; return retval;}
MismatchedSetException mse =
new MismatchedSetException(null,input);
- recoverFromMismatchedSet(input,mse,FOLLOW_set_in_r_multiplicativeExpression1241); throw mse;
+ recoverFromMismatchedSet(input,mse,FOLLOW_set_in_r_multiplicativeExpression1249); throw mse;
}
- pushFollow(FOLLOW_r_unaryExpression_in_r_multiplicativeExpression1249);
- r_unaryExpression();
+ pushFollow(FOLLOW_r_unaryExpression_in_r_multiplicativeExpression1257);
+ r_unaryExpression232=r_unaryExpression();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_unaryExpression232.getTree());
}
break;
@@ -3049,6 +4957,12 @@ public class Xpand3Parser extends Parser {
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -3056,16 +4970,37 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_multiplicativeExpression
+ public static class r_unaryExpression_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_unaryExpression
- // src/org/eclipse/xpand3/parser/Xpand3.g:237:1: r_unaryExpression : ( r_infixExpression | '!' r_infixExpression | '-' r_infixExpression );
- public void r_unaryExpression() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:239:1: r_unaryExpression : ( r_infixExpression | '!' r_infixExpression | '-' r_infixExpression );
+ public r_unaryExpression_return r_unaryExpression() throws RecognitionException {
+ r_unaryExpression_return retval = new r_unaryExpression_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ Token char_literal234=null;
+ Token char_literal236=null;
+ r_infixExpression_return r_infixExpression233 = null;
+
+ r_infixExpression_return r_infixExpression235 = null;
+
+ r_infixExpression_return r_infixExpression237 = null;
+
+
+ Object char_literal234_tree=null;
+ Object char_literal236_tree=null;
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:238:2: ( r_infixExpression | '!' r_infixExpression | '-' r_infixExpression )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:240:2: ( r_infixExpression | '!' r_infixExpression | '-' r_infixExpression )
int alt58=3;
switch ( input.LA(1) ) {
case StringLiteral:
@@ -3105,48 +5040,73 @@ public class Xpand3Parser extends Parser {
}
break;
default:
- if (backtracking>0) {failed=true; return ;}
+ if (backtracking>0) {failed=true; return retval;}
NoViableAltException nvae =
- new NoViableAltException("237:1: r_unaryExpression : ( r_infixExpression | '!' r_infixExpression | '-' r_infixExpression );", 58, 0, input);
+ new NoViableAltException("239:1: r_unaryExpression : ( r_infixExpression | '!' r_infixExpression | '-' r_infixExpression );", 58, 0, input);
throw nvae;
}
switch (alt58) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:238:2: r_infixExpression
+ // src/org/eclipse/xpand3/parser/Xpand3.g:240:2: r_infixExpression
{
- pushFollow(FOLLOW_r_infixExpression_in_r_unaryExpression1263);
- r_infixExpression();
+ root_0 = (Object)adaptor.nil();
+
+ pushFollow(FOLLOW_r_infixExpression_in_r_unaryExpression1271);
+ r_infixExpression233=r_infixExpression();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_infixExpression233.getTree());
}
break;
case 2 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:239:3: '!' r_infixExpression
+ // src/org/eclipse/xpand3/parser/Xpand3.g:241:3: '!' r_infixExpression
{
- match(input,93,FOLLOW_93_in_r_unaryExpression1268); if (failed) return ;
- pushFollow(FOLLOW_r_infixExpression_in_r_unaryExpression1270);
- r_infixExpression();
+ root_0 = (Object)adaptor.nil();
+
+ char_literal234=(Token)input.LT(1);
+ match(input,93,FOLLOW_93_in_r_unaryExpression1276); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal234_tree = (Object)adaptor.create(char_literal234);
+ adaptor.addChild(root_0, char_literal234_tree);
+ }
+ pushFollow(FOLLOW_r_infixExpression_in_r_unaryExpression1278);
+ r_infixExpression235=r_infixExpression();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_infixExpression235.getTree());
}
break;
case 3 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:240:3: '-' r_infixExpression
+ // src/org/eclipse/xpand3/parser/Xpand3.g:242:3: '-' r_infixExpression
{
- match(input,36,FOLLOW_36_in_r_unaryExpression1275); if (failed) return ;
- pushFollow(FOLLOW_r_infixExpression_in_r_unaryExpression1277);
- r_infixExpression();
+ root_0 = (Object)adaptor.nil();
+
+ char_literal236=(Token)input.LT(1);
+ match(input,36,FOLLOW_36_in_r_unaryExpression1283); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal236_tree = (Object)adaptor.create(char_literal236);
+ adaptor.addChild(root_0, char_literal236_tree);
+ }
+ pushFollow(FOLLOW_r_infixExpression_in_r_unaryExpression1285);
+ r_infixExpression237=r_infixExpression();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_infixExpression237.getTree());
}
break;
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -3154,23 +5114,43 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_unaryExpression
+ public static class r_infixExpression_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_infixExpression
- // src/org/eclipse/xpand3/parser/Xpand3.g:243:1: r_infixExpression : r_primaryExpression ( '.' r_featureCall )* ;
- public void r_infixExpression() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:245:1: r_infixExpression : r_primaryExpression ( '.' r_featureCall )* ;
+ public r_infixExpression_return r_infixExpression() throws RecognitionException {
+ r_infixExpression_return retval = new r_infixExpression_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ Token char_literal239=null;
+ r_primaryExpression_return r_primaryExpression238 = null;
+
+ r_featureCall_return r_featureCall240 = null;
+
+
+ Object char_literal239_tree=null;
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:244:2: ( r_primaryExpression ( '.' r_featureCall )* )
- // src/org/eclipse/xpand3/parser/Xpand3.g:244:2: r_primaryExpression ( '.' r_featureCall )*
+ // src/org/eclipse/xpand3/parser/Xpand3.g:246:2: ( r_primaryExpression ( '.' r_featureCall )* )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:246:2: r_primaryExpression ( '.' r_featureCall )*
{
- pushFollow(FOLLOW_r_primaryExpression_in_r_infixExpression1288);
- r_primaryExpression();
+ root_0 = (Object)adaptor.nil();
+
+ pushFollow(FOLLOW_r_primaryExpression_in_r_infixExpression1296);
+ r_primaryExpression238=r_primaryExpression();
_fsp--;
- if (failed) return ;
- // src/org/eclipse/xpand3/parser/Xpand3.g:244:23: ( '.' r_featureCall )*
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_primaryExpression238.getTree());
+ // src/org/eclipse/xpand3/parser/Xpand3.g:246:23: ( '.' r_featureCall )*
loop59:
do {
int alt59=2;
@@ -3183,13 +5163,19 @@ public class Xpand3Parser extends Parser {
switch (alt59) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:244:25: '.' r_featureCall
+ // src/org/eclipse/xpand3/parser/Xpand3.g:246:25: '.' r_featureCall
{
- match(input,68,FOLLOW_68_in_r_infixExpression1293); if (failed) return ;
- pushFollow(FOLLOW_r_featureCall_in_r_infixExpression1295);
- r_featureCall();
+ char_literal239=(Token)input.LT(1);
+ match(input,68,FOLLOW_68_in_r_infixExpression1301); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal239_tree = (Object)adaptor.create(char_literal239);
+ adaptor.addChild(root_0, char_literal239_tree);
+ }
+ pushFollow(FOLLOW_r_featureCall_in_r_infixExpression1303);
+ r_featureCall240=r_featureCall();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_featureCall240.getTree());
}
break;
@@ -3202,6 +5188,12 @@ public class Xpand3Parser extends Parser {
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -3209,16 +5201,45 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_infixExpression
+ public static class r_primaryExpression_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_primaryExpression
- // src/org/eclipse/xpand3/parser/Xpand3.g:247:1: r_primaryExpression : ( StringLiteral | r_featureCall | r_booleanLiteral | r_numberLiteral | r_nullLiteral | r_listLiteral | r_constructorCall | r_globalVarExpression | r_paranthesizedExpression );
- public void r_primaryExpression() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:249:1: r_primaryExpression : ( StringLiteral | r_featureCall | r_booleanLiteral | r_numberLiteral | r_nullLiteral | r_listLiteral | r_constructorCall | r_globalVarExpression | r_paranthesizedExpression );
+ public r_primaryExpression_return r_primaryExpression() throws RecognitionException {
+ r_primaryExpression_return retval = new r_primaryExpression_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ Token StringLiteral241=null;
+ r_featureCall_return r_featureCall242 = null;
+
+ r_booleanLiteral_return r_booleanLiteral243 = null;
+
+ r_numberLiteral_return r_numberLiteral244 = null;
+
+ r_nullLiteral_return r_nullLiteral245 = null;
+
+ r_listLiteral_return r_listLiteral246 = null;
+
+ r_constructorCall_return r_constructorCall247 = null;
+
+ r_globalVarExpression_return r_globalVarExpression248 = null;
+
+ r_paranthesizedExpression_return r_paranthesizedExpression249 = null;
+
+
+ Object StringLiteral241_tree=null;
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:248:4: ( StringLiteral | r_featureCall | r_booleanLiteral | r_numberLiteral | r_nullLiteral | r_listLiteral | r_constructorCall | r_globalVarExpression | r_paranthesizedExpression )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:250:4: ( StringLiteral | r_featureCall | r_booleanLiteral | r_numberLiteral | r_nullLiteral | r_listLiteral | r_constructorCall | r_globalVarExpression | r_paranthesizedExpression )
int alt60=9;
switch ( input.LA(1) ) {
case StringLiteral:
@@ -3280,103 +5301,140 @@ public class Xpand3Parser extends Parser {
}
break;
default:
- if (backtracking>0) {failed=true; return ;}
+ if (backtracking>0) {failed=true; return retval;}
NoViableAltException nvae =
- new NoViableAltException("247:1: r_primaryExpression : ( StringLiteral | r_featureCall | r_booleanLiteral | r_numberLiteral | r_nullLiteral | r_listLiteral | r_constructorCall | r_globalVarExpression | r_paranthesizedExpression );", 60, 0, input);
+ new NoViableAltException("249:1: r_primaryExpression : ( StringLiteral | r_featureCall | r_booleanLiteral | r_numberLiteral | r_nullLiteral | r_listLiteral | r_constructorCall | r_globalVarExpression | r_paranthesizedExpression );", 60, 0, input);
throw nvae;
}
switch (alt60) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:248:4: StringLiteral
+ // src/org/eclipse/xpand3/parser/Xpand3.g:250:4: StringLiteral
{
- match(input,StringLiteral,FOLLOW_StringLiteral_in_r_primaryExpression1313); if (failed) return ;
+ root_0 = (Object)adaptor.nil();
+
+ StringLiteral241=(Token)input.LT(1);
+ match(input,StringLiteral,FOLLOW_StringLiteral_in_r_primaryExpression1321); if (failed) return retval;
+ if ( backtracking==0 ) {
+ StringLiteral241_tree = (Object)adaptor.create(StringLiteral241);
+ adaptor.addChild(root_0, StringLiteral241_tree);
+ }
}
break;
case 2 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:249:5: r_featureCall
+ // src/org/eclipse/xpand3/parser/Xpand3.g:251:5: r_featureCall
{
- pushFollow(FOLLOW_r_featureCall_in_r_primaryExpression1321);
- r_featureCall();
+ root_0 = (Object)adaptor.nil();
+
+ pushFollow(FOLLOW_r_featureCall_in_r_primaryExpression1329);
+ r_featureCall242=r_featureCall();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_featureCall242.getTree());
}
break;
case 3 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:250:5: r_booleanLiteral
+ // src/org/eclipse/xpand3/parser/Xpand3.g:252:5: r_booleanLiteral
{
- pushFollow(FOLLOW_r_booleanLiteral_in_r_primaryExpression1328);
- r_booleanLiteral();
+ root_0 = (Object)adaptor.nil();
+
+ pushFollow(FOLLOW_r_booleanLiteral_in_r_primaryExpression1336);
+ r_booleanLiteral243=r_booleanLiteral();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_booleanLiteral243.getTree());
}
break;
case 4 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:251:5: r_numberLiteral
+ // src/org/eclipse/xpand3/parser/Xpand3.g:253:5: r_numberLiteral
{
- pushFollow(FOLLOW_r_numberLiteral_in_r_primaryExpression1335);
- r_numberLiteral();
+ root_0 = (Object)adaptor.nil();
+
+ pushFollow(FOLLOW_r_numberLiteral_in_r_primaryExpression1343);
+ r_numberLiteral244=r_numberLiteral();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_numberLiteral244.getTree());
}
break;
case 5 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:252:5: r_nullLiteral
+ // src/org/eclipse/xpand3/parser/Xpand3.g:254:5: r_nullLiteral
{
- pushFollow(FOLLOW_r_nullLiteral_in_r_primaryExpression1342);
- r_nullLiteral();
+ root_0 = (Object)adaptor.nil();
+
+ pushFollow(FOLLOW_r_nullLiteral_in_r_primaryExpression1350);
+ r_nullLiteral245=r_nullLiteral();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_nullLiteral245.getTree());
}
break;
case 6 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:253:5: r_listLiteral
+ // src/org/eclipse/xpand3/parser/Xpand3.g:255:5: r_listLiteral
{
- pushFollow(FOLLOW_r_listLiteral_in_r_primaryExpression1349);
- r_listLiteral();
+ root_0 = (Object)adaptor.nil();
+
+ pushFollow(FOLLOW_r_listLiteral_in_r_primaryExpression1357);
+ r_listLiteral246=r_listLiteral();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_listLiteral246.getTree());
}
break;
case 7 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:254:5: r_constructorCall
+ // src/org/eclipse/xpand3/parser/Xpand3.g:256:5: r_constructorCall
{
- pushFollow(FOLLOW_r_constructorCall_in_r_primaryExpression1356);
- r_constructorCall();
+ root_0 = (Object)adaptor.nil();
+
+ pushFollow(FOLLOW_r_constructorCall_in_r_primaryExpression1364);
+ r_constructorCall247=r_constructorCall();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_constructorCall247.getTree());
}
break;
case 8 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:255:5: r_globalVarExpression
+ // src/org/eclipse/xpand3/parser/Xpand3.g:257:5: r_globalVarExpression
{
- pushFollow(FOLLOW_r_globalVarExpression_in_r_primaryExpression1363);
- r_globalVarExpression();
+ root_0 = (Object)adaptor.nil();
+
+ pushFollow(FOLLOW_r_globalVarExpression_in_r_primaryExpression1371);
+ r_globalVarExpression248=r_globalVarExpression();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_globalVarExpression248.getTree());
}
break;
case 9 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:256:5: r_paranthesizedExpression
+ // src/org/eclipse/xpand3/parser/Xpand3.g:258:5: r_paranthesizedExpression
{
- pushFollow(FOLLOW_r_paranthesizedExpression_in_r_primaryExpression1370);
- r_paranthesizedExpression();
+ root_0 = (Object)adaptor.nil();
+
+ pushFollow(FOLLOW_r_paranthesizedExpression_in_r_primaryExpression1378);
+ r_paranthesizedExpression249=r_paranthesizedExpression();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_paranthesizedExpression249.getTree());
}
break;
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -3384,27 +5442,63 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_primaryExpression
+ public static class r_paranthesizedExpression_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_paranthesizedExpression
- // src/org/eclipse/xpand3/parser/Xpand3.g:259:1: r_paranthesizedExpression : '(' r_expression ')' ;
- public void r_paranthesizedExpression() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:261:1: r_paranthesizedExpression : '(' r_expression ')' ;
+ public r_paranthesizedExpression_return r_paranthesizedExpression() throws RecognitionException {
+ r_paranthesizedExpression_return retval = new r_paranthesizedExpression_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ Token char_literal250=null;
+ Token char_literal252=null;
+ r_expression_return r_expression251 = null;
+
+
+ Object char_literal250_tree=null;
+ Object char_literal252_tree=null;
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:260:5: ( '(' r_expression ')' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:260:5: '(' r_expression ')'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:262:5: ( '(' r_expression ')' )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:262:5: '(' r_expression ')'
{
- match(input,31,FOLLOW_31_in_r_paranthesizedExpression1384); if (failed) return ;
- pushFollow(FOLLOW_r_expression_in_r_paranthesizedExpression1386);
- r_expression();
+ root_0 = (Object)adaptor.nil();
+
+ char_literal250=(Token)input.LT(1);
+ match(input,31,FOLLOW_31_in_r_paranthesizedExpression1392); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal250_tree = (Object)adaptor.create(char_literal250);
+ adaptor.addChild(root_0, char_literal250_tree);
+ }
+ pushFollow(FOLLOW_r_expression_in_r_paranthesizedExpression1394);
+ r_expression251=r_expression();
_fsp--;
- if (failed) return ;
- match(input,34,FOLLOW_34_in_r_paranthesizedExpression1388); if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_expression251.getTree());
+ char_literal252=(Token)input.LT(1);
+ match(input,34,FOLLOW_34_in_r_paranthesizedExpression1396); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal252_tree = (Object)adaptor.create(char_literal252);
+ adaptor.addChild(root_0, char_literal252_tree);
+ }
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -3412,26 +5506,55 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_paranthesizedExpression
+ public static class r_globalVarExpression_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_globalVarExpression
- // src/org/eclipse/xpand3/parser/Xpand3.g:263:1: r_globalVarExpression : 'GLOBALVAR' r_identifier ;
- public void r_globalVarExpression() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:265:1: r_globalVarExpression : 'GLOBALVAR' r_identifier ;
+ public r_globalVarExpression_return r_globalVarExpression() throws RecognitionException {
+ r_globalVarExpression_return retval = new r_globalVarExpression_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ Token string_literal253=null;
+ r_identifier_return r_identifier254 = null;
+
+
+ Object string_literal253_tree=null;
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:264:5: ( 'GLOBALVAR' r_identifier )
- // src/org/eclipse/xpand3/parser/Xpand3.g:264:5: 'GLOBALVAR' r_identifier
+ // src/org/eclipse/xpand3/parser/Xpand3.g:266:5: ( 'GLOBALVAR' r_identifier )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:266:5: 'GLOBALVAR' r_identifier
{
- match(input,94,FOLLOW_94_in_r_globalVarExpression1403); if (failed) return ;
- pushFollow(FOLLOW_r_identifier_in_r_globalVarExpression1405);
- r_identifier();
+ root_0 = (Object)adaptor.nil();
+
+ string_literal253=(Token)input.LT(1);
+ match(input,94,FOLLOW_94_in_r_globalVarExpression1411); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal253_tree = (Object)adaptor.create(string_literal253);
+ adaptor.addChild(root_0, string_literal253_tree);
+ }
+ pushFollow(FOLLOW_r_identifier_in_r_globalVarExpression1413);
+ r_identifier254=r_identifier();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_identifier254.getTree());
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -3439,16 +5562,39 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_globalVarExpression
+ public static class r_featureCall_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_featureCall
- // src/org/eclipse/xpand3/parser/Xpand3.g:266:1: r_featureCall : ( r_identifier '(' ( r_parameterList )? ')' | r_type | r_collectionExpression );
- public void r_featureCall() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:268:1: r_featureCall : ( r_identifier '(' ( r_parameterList )? ')' | r_type | r_collectionExpression );
+ public r_featureCall_return r_featureCall() throws RecognitionException {
+ r_featureCall_return retval = new r_featureCall_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ Token char_literal256=null;
+ Token char_literal258=null;
+ r_identifier_return r_identifier255 = null;
+
+ r_parameterList_return r_parameterList257 = null;
+
+ r_type_return r_type259 = null;
+
+ r_collectionExpression_return r_collectionExpression260 = null;
+
+
+ Object char_literal256_tree=null;
+ Object char_literal258_tree=null;
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:267:5: ( r_identifier '(' ( r_parameterList )? ')' | r_type | r_collectionExpression )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:269:5: ( r_identifier '(' ( r_parameterList )? ')' | r_type | r_collectionExpression )
int alt62=3;
switch ( input.LA(1) ) {
case Identifier:
@@ -3462,9 +5608,9 @@ public class Xpand3Parser extends Parser {
alt62=1;
}
else {
- if (backtracking>0) {failed=true; return ;}
+ if (backtracking>0) {failed=true; return retval;}
NoViableAltException nvae =
- new NoViableAltException("266:1: r_featureCall : ( r_identifier '(' ( r_parameterList )? ')' | r_type | r_collectionExpression );", 62, 1, input);
+ new NoViableAltException("268:1: r_featureCall : ( r_identifier '(' ( r_parameterList )? ')' | r_type | r_collectionExpression );", 62, 1, input);
throw nvae;
}
@@ -3491,23 +5637,31 @@ public class Xpand3Parser extends Parser {
}
break;
default:
- if (backtracking>0) {failed=true; return ;}
+ if (backtracking>0) {failed=true; return retval;}
NoViableAltException nvae =
- new NoViableAltException("266:1: r_featureCall : ( r_identifier '(' ( r_parameterList )? ')' | r_type | r_collectionExpression );", 62, 0, input);
+ new NoViableAltException("268:1: r_featureCall : ( r_identifier '(' ( r_parameterList )? ')' | r_type | r_collectionExpression );", 62, 0, input);
throw nvae;
}
switch (alt62) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:267:5: r_identifier '(' ( r_parameterList )? ')'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:269:5: r_identifier '(' ( r_parameterList )? ')'
{
- pushFollow(FOLLOW_r_identifier_in_r_featureCall1419);
- r_identifier();
+ root_0 = (Object)adaptor.nil();
+
+ pushFollow(FOLLOW_r_identifier_in_r_featureCall1427);
+ r_identifier255=r_identifier();
_fsp--;
- if (failed) return ;
- match(input,31,FOLLOW_31_in_r_featureCall1421); if (failed) return ;
- // src/org/eclipse/xpand3/parser/Xpand3.g:267:22: ( r_parameterList )?
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_identifier255.getTree());
+ char_literal256=(Token)input.LT(1);
+ match(input,31,FOLLOW_31_in_r_featureCall1429); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal256_tree = (Object)adaptor.create(char_literal256);
+ adaptor.addChild(root_0, char_literal256_tree);
+ }
+ // src/org/eclipse/xpand3/parser/Xpand3.g:269:22: ( r_parameterList )?
int alt61=2;
int LA61_0 = input.LA(1);
@@ -3516,44 +5670,62 @@ public class Xpand3Parser extends Parser {
}
switch (alt61) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:267:23: r_parameterList
+ // src/org/eclipse/xpand3/parser/Xpand3.g:269:23: r_parameterList
{
- pushFollow(FOLLOW_r_parameterList_in_r_featureCall1424);
- r_parameterList();
+ pushFollow(FOLLOW_r_parameterList_in_r_featureCall1432);
+ r_parameterList257=r_parameterList();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_parameterList257.getTree());
}
break;
}
- match(input,34,FOLLOW_34_in_r_featureCall1428); if (failed) return ;
+ char_literal258=(Token)input.LT(1);
+ match(input,34,FOLLOW_34_in_r_featureCall1436); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal258_tree = (Object)adaptor.create(char_literal258);
+ adaptor.addChild(root_0, char_literal258_tree);
+ }
}
break;
case 2 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:268:5: r_type
+ // src/org/eclipse/xpand3/parser/Xpand3.g:270:5: r_type
{
- pushFollow(FOLLOW_r_type_in_r_featureCall1435);
- r_type();
+ root_0 = (Object)adaptor.nil();
+
+ pushFollow(FOLLOW_r_type_in_r_featureCall1443);
+ r_type259=r_type();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_type259.getTree());
}
break;
case 3 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:269:5: r_collectionExpression
+ // src/org/eclipse/xpand3/parser/Xpand3.g:271:5: r_collectionExpression
{
- pushFollow(FOLLOW_r_collectionExpression_in_r_featureCall1443);
- r_collectionExpression();
+ root_0 = (Object)adaptor.nil();
+
+ pushFollow(FOLLOW_r_collectionExpression_in_r_featureCall1451);
+ r_collectionExpression260=r_collectionExpression();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_collectionExpression260.getTree());
}
break;
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -3561,20 +5733,48 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_featureCall
+ public static class r_listLiteral_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_listLiteral
- // src/org/eclipse/xpand3/parser/Xpand3.g:272:1: r_listLiteral : '[' ( r_expression ( ',' r_expression )* )? ']' ;
- public void r_listLiteral() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:274:1: r_listLiteral : '[' ( r_expression ( ',' r_expression )* )? ']' ;
+ public r_listLiteral_return r_listLiteral() throws RecognitionException {
+ r_listLiteral_return retval = new r_listLiteral_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ Token char_literal261=null;
+ Token char_literal263=null;
+ Token char_literal265=null;
+ r_expression_return r_expression262 = null;
+
+ r_expression_return r_expression264 = null;
+
+
+ Object char_literal261_tree=null;
+ Object char_literal263_tree=null;
+ Object char_literal265_tree=null;
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:273:2: ( '[' ( r_expression ( ',' r_expression )* )? ']' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:273:2: '[' ( r_expression ( ',' r_expression )* )? ']'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:275:2: ( '[' ( r_expression ( ',' r_expression )* )? ']' )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:275:2: '[' ( r_expression ( ',' r_expression )* )? ']'
{
- match(input,95,FOLLOW_95_in_r_listLiteral1455); if (failed) return ;
- // src/org/eclipse/xpand3/parser/Xpand3.g:273:5: ( r_expression ( ',' r_expression )* )?
+ root_0 = (Object)adaptor.nil();
+
+ char_literal261=(Token)input.LT(1);
+ match(input,95,FOLLOW_95_in_r_listLiteral1463); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal261_tree = (Object)adaptor.create(char_literal261);
+ adaptor.addChild(root_0, char_literal261_tree);
+ }
+ // src/org/eclipse/xpand3/parser/Xpand3.g:275:5: ( r_expression ( ',' r_expression )* )?
int alt64=2;
int LA64_0 = input.LA(1);
@@ -3583,13 +5783,14 @@ public class Xpand3Parser extends Parser {
}
switch (alt64) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:273:6: r_expression ( ',' r_expression )*
+ // src/org/eclipse/xpand3/parser/Xpand3.g:275:6: r_expression ( ',' r_expression )*
{
- pushFollow(FOLLOW_r_expression_in_r_listLiteral1457);
- r_expression();
+ pushFollow(FOLLOW_r_expression_in_r_listLiteral1465);
+ r_expression262=r_expression();
_fsp--;
- if (failed) return ;
- // src/org/eclipse/xpand3/parser/Xpand3.g:273:19: ( ',' r_expression )*
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_expression262.getTree());
+ // src/org/eclipse/xpand3/parser/Xpand3.g:275:19: ( ',' r_expression )*
loop63:
do {
int alt63=2;
@@ -3602,13 +5803,19 @@ public class Xpand3Parser extends Parser {
switch (alt63) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:273:20: ',' r_expression
+ // src/org/eclipse/xpand3/parser/Xpand3.g:275:20: ',' r_expression
{
- match(input,32,FOLLOW_32_in_r_listLiteral1460); if (failed) return ;
- pushFollow(FOLLOW_r_expression_in_r_listLiteral1462);
- r_expression();
+ char_literal263=(Token)input.LT(1);
+ match(input,32,FOLLOW_32_in_r_listLiteral1468); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal263_tree = (Object)adaptor.create(char_literal263);
+ adaptor.addChild(root_0, char_literal263_tree);
+ }
+ pushFollow(FOLLOW_r_expression_in_r_listLiteral1470);
+ r_expression264=r_expression();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_expression264.getTree());
}
break;
@@ -3624,10 +5831,21 @@ public class Xpand3Parser extends Parser {
}
- match(input,96,FOLLOW_96_in_r_listLiteral1467); if (failed) return ;
+ char_literal265=(Token)input.LT(1);
+ match(input,96,FOLLOW_96_in_r_listLiteral1475); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal265_tree = (Object)adaptor.create(char_literal265);
+ adaptor.addChild(root_0, char_literal265_tree);
+ }
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -3635,26 +5853,55 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_listLiteral
+ public static class r_constructorCall_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_constructorCall
- // src/org/eclipse/xpand3/parser/Xpand3.g:276:1: r_constructorCall : 'new' r_simpleType ;
- public void r_constructorCall() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:278:1: r_constructorCall : 'new' r_simpleType ;
+ public r_constructorCall_return r_constructorCall() throws RecognitionException {
+ r_constructorCall_return retval = new r_constructorCall_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ Token string_literal266=null;
+ r_simpleType_return r_simpleType267 = null;
+
+
+ Object string_literal266_tree=null;
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:277:2: ( 'new' r_simpleType )
- // src/org/eclipse/xpand3/parser/Xpand3.g:277:2: 'new' r_simpleType
+ // src/org/eclipse/xpand3/parser/Xpand3.g:279:2: ( 'new' r_simpleType )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:279:2: 'new' r_simpleType
{
- match(input,97,FOLLOW_97_in_r_constructorCall1478); if (failed) return ;
- pushFollow(FOLLOW_r_simpleType_in_r_constructorCall1480);
- r_simpleType();
+ root_0 = (Object)adaptor.nil();
+
+ string_literal266=(Token)input.LT(1);
+ match(input,97,FOLLOW_97_in_r_constructorCall1486); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal266_tree = (Object)adaptor.create(string_literal266);
+ adaptor.addChild(root_0, string_literal266_tree);
+ }
+ pushFollow(FOLLOW_r_simpleType_in_r_constructorCall1488);
+ r_simpleType267=r_simpleType();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_simpleType267.getTree());
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -3662,24 +5909,41 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_constructorCall
+ public static class r_booleanLiteral_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_booleanLiteral
- // src/org/eclipse/xpand3/parser/Xpand3.g:281:1: r_booleanLiteral : ( 'false' | 'true' );
- public void r_booleanLiteral() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:283:1: r_booleanLiteral : ( 'false' | 'true' );
+ public r_booleanLiteral_return r_booleanLiteral() throws RecognitionException {
+ r_booleanLiteral_return retval = new r_booleanLiteral_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ Token set268=null;
+
+ Object set268_tree=null;
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:282:2: ( 'false' | 'true' )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:284:2: ( 'false' | 'true' )
// src/org/eclipse/xpand3/parser/Xpand3.g:
{
+ root_0 = (Object)adaptor.nil();
+
+ set268=(Token)input.LT(1);
if ( (input.LA(1)>=98 && input.LA(1)<=99) ) {
input.consume();
+ if ( backtracking==0 ) adaptor.addChild(root_0, adaptor.create(set268));
errorRecovery=false;failed=false;
}
else {
- if (backtracking>0) {failed=true; return ;}
+ if (backtracking>0) {failed=true; return retval;}
MismatchedSetException mse =
new MismatchedSetException(null,input);
recoverFromMismatchedSet(input,mse,FOLLOW_set_in_r_booleanLiteral0); throw mse;
@@ -3688,6 +5952,12 @@ public class Xpand3Parser extends Parser {
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -3695,22 +5965,48 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_booleanLiteral
+ public static class r_nullLiteral_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_nullLiteral
- // src/org/eclipse/xpand3/parser/Xpand3.g:285:1: r_nullLiteral : 'null' ;
- public void r_nullLiteral() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:287:1: r_nullLiteral : 'null' ;
+ public r_nullLiteral_return r_nullLiteral() throws RecognitionException {
+ r_nullLiteral_return retval = new r_nullLiteral_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ Token string_literal269=null;
+
+ Object string_literal269_tree=null;
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:286:2: ( 'null' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:286:2: 'null'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:288:2: ( 'null' )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:288:2: 'null'
{
- match(input,100,FOLLOW_100_in_r_nullLiteral1506); if (failed) return ;
+ root_0 = (Object)adaptor.nil();
+
+ string_literal269=(Token)input.LT(1);
+ match(input,100,FOLLOW_100_in_r_nullLiteral1514); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal269_tree = (Object)adaptor.create(string_literal269);
+ adaptor.addChild(root_0, string_literal269_tree);
+ }
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -3718,16 +6014,35 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_nullLiteral
+ public static class r_numberLiteral_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_numberLiteral
- // src/org/eclipse/xpand3/parser/Xpand3.g:289:1: r_numberLiteral : ( IntLiteral | IntLiteral '.' IntLiteral );
- public void r_numberLiteral() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:291:1: r_numberLiteral : ( IntLiteral | IntLiteral '.' IntLiteral );
+ public r_numberLiteral_return r_numberLiteral() throws RecognitionException {
+ r_numberLiteral_return retval = new r_numberLiteral_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ Token IntLiteral270=null;
+ Token IntLiteral271=null;
+ Token char_literal272=null;
+ Token IntLiteral273=null;
+
+ Object IntLiteral270_tree=null;
+ Object IntLiteral271_tree=null;
+ Object char_literal272_tree=null;
+ Object IntLiteral273_tree=null;
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:290:4: ( IntLiteral | IntLiteral '.' IntLiteral )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:292:4: ( IntLiteral | IntLiteral '.' IntLiteral )
int alt65=2;
int LA65_0 = input.LA(1);
@@ -3744,9 +6059,9 @@ public class Xpand3Parser extends Parser {
alt65=1;
}
else {
- if (backtracking>0) {failed=true; return ;}
+ if (backtracking>0) {failed=true; return retval;}
NoViableAltException nvae =
- new NoViableAltException("289:1: r_numberLiteral : ( IntLiteral | IntLiteral '.' IntLiteral );", 65, 2, input);
+ new NoViableAltException("291:1: r_numberLiteral : ( IntLiteral | IntLiteral '.' IntLiteral );", 65, 2, input);
throw nvae;
}
@@ -3755,39 +6070,69 @@ public class Xpand3Parser extends Parser {
alt65=1;
}
else {
- if (backtracking>0) {failed=true; return ;}
+ if (backtracking>0) {failed=true; return retval;}
NoViableAltException nvae =
- new NoViableAltException("289:1: r_numberLiteral : ( IntLiteral | IntLiteral '.' IntLiteral );", 65, 1, input);
+ new NoViableAltException("291:1: r_numberLiteral : ( IntLiteral | IntLiteral '.' IntLiteral );", 65, 1, input);
throw nvae;
}
}
else {
- if (backtracking>0) {failed=true; return ;}
+ if (backtracking>0) {failed=true; return retval;}
NoViableAltException nvae =
- new NoViableAltException("289:1: r_numberLiteral : ( IntLiteral | IntLiteral '.' IntLiteral );", 65, 0, input);
+ new NoViableAltException("291:1: r_numberLiteral : ( IntLiteral | IntLiteral '.' IntLiteral );", 65, 0, input);
throw nvae;
}
switch (alt65) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:290:4: IntLiteral
+ // src/org/eclipse/xpand3/parser/Xpand3.g:292:4: IntLiteral
{
- match(input,IntLiteral,FOLLOW_IntLiteral_in_r_numberLiteral1519); if (failed) return ;
+ root_0 = (Object)adaptor.nil();
+
+ IntLiteral270=(Token)input.LT(1);
+ match(input,IntLiteral,FOLLOW_IntLiteral_in_r_numberLiteral1527); if (failed) return retval;
+ if ( backtracking==0 ) {
+ IntLiteral270_tree = (Object)adaptor.create(IntLiteral270);
+ adaptor.addChild(root_0, IntLiteral270_tree);
+ }
}
break;
case 2 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:291:4: IntLiteral '.' IntLiteral
+ // src/org/eclipse/xpand3/parser/Xpand3.g:293:4: IntLiteral '.' IntLiteral
{
- match(input,IntLiteral,FOLLOW_IntLiteral_in_r_numberLiteral1525); if (failed) return ;
- match(input,68,FOLLOW_68_in_r_numberLiteral1527); if (failed) return ;
- match(input,IntLiteral,FOLLOW_IntLiteral_in_r_numberLiteral1529); if (failed) return ;
+ root_0 = (Object)adaptor.nil();
+
+ IntLiteral271=(Token)input.LT(1);
+ match(input,IntLiteral,FOLLOW_IntLiteral_in_r_numberLiteral1533); if (failed) return retval;
+ if ( backtracking==0 ) {
+ IntLiteral271_tree = (Object)adaptor.create(IntLiteral271);
+ adaptor.addChild(root_0, IntLiteral271_tree);
+ }
+ char_literal272=(Token)input.LT(1);
+ match(input,68,FOLLOW_68_in_r_numberLiteral1535); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal272_tree = (Object)adaptor.create(char_literal272);
+ adaptor.addChild(root_0, char_literal272_tree);
+ }
+ IntLiteral273=(Token)input.LT(1);
+ match(input,IntLiteral,FOLLOW_IntLiteral_in_r_numberLiteral1537); if (failed) return retval;
+ if ( backtracking==0 ) {
+ IntLiteral273_tree = (Object)adaptor.create(IntLiteral273);
+ adaptor.addChild(root_0, IntLiteral273_tree);
+ }
}
break;
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -3795,16 +6140,47 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_numberLiteral
+ public static class r_collectionExpression_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_collectionExpression
- // src/org/eclipse/xpand3/parser/Xpand3.g:294:1: r_collectionExpression : ( 'typeSelect' '(' r_type ')' | ( 'collect' | 'select' | 'selectFirst' | 'reject' | 'exists' | 'notExists' | 'sortBy' | 'forAll' ) '(' ( r_identifier '|' )? r_expression ')' );
- public void r_collectionExpression() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:296:1: r_collectionExpression : ( 'typeSelect' '(' r_type ')' | ( 'collect' | 'select' | 'selectFirst' | 'reject' | 'exists' | 'notExists' | 'sortBy' | 'forAll' ) '(' ( r_identifier '|' )? r_expression ')' );
+ public r_collectionExpression_return r_collectionExpression() throws RecognitionException {
+ r_collectionExpression_return retval = new r_collectionExpression_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ Token string_literal274=null;
+ Token char_literal275=null;
+ Token char_literal277=null;
+ Token set278=null;
+ Token char_literal279=null;
+ Token char_literal281=null;
+ Token char_literal283=null;
+ r_type_return r_type276 = null;
+
+ r_identifier_return r_identifier280 = null;
+
+ r_expression_return r_expression282 = null;
+
+
+ Object string_literal274_tree=null;
+ Object char_literal275_tree=null;
+ Object char_literal277_tree=null;
+ Object set278_tree=null;
+ Object char_literal279_tree=null;
+ Object char_literal281_tree=null;
+ Object char_literal283_tree=null;
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:295:3: ( 'typeSelect' '(' r_type ')' | ( 'collect' | 'select' | 'selectFirst' | 'reject' | 'exists' | 'notExists' | 'sortBy' | 'forAll' ) '(' ( r_identifier '|' )? r_expression ')' )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:297:3: ( 'typeSelect' '(' r_type ')' | ( 'collect' | 'select' | 'selectFirst' | 'reject' | 'exists' | 'notExists' | 'sortBy' | 'forAll' ) '(' ( r_identifier '|' )? r_expression ')' )
int alt67=2;
int LA67_0 = input.LA(1);
@@ -3815,42 +6191,69 @@ public class Xpand3Parser extends Parser {
alt67=2;
}
else {
- if (backtracking>0) {failed=true; return ;}
+ if (backtracking>0) {failed=true; return retval;}
NoViableAltException nvae =
- new NoViableAltException("294:1: r_collectionExpression : ( 'typeSelect' '(' r_type ')' | ( 'collect' | 'select' | 'selectFirst' | 'reject' | 'exists' | 'notExists' | 'sortBy' | 'forAll' ) '(' ( r_identifier '|' )? r_expression ')' );", 67, 0, input);
+ new NoViableAltException("296:1: r_collectionExpression : ( 'typeSelect' '(' r_type ')' | ( 'collect' | 'select' | 'selectFirst' | 'reject' | 'exists' | 'notExists' | 'sortBy' | 'forAll' ) '(' ( r_identifier '|' )? r_expression ')' );", 67, 0, input);
throw nvae;
}
switch (alt67) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:295:3: 'typeSelect' '(' r_type ')'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:297:3: 'typeSelect' '(' r_type ')'
{
- match(input,101,FOLLOW_101_in_r_collectionExpression1542); if (failed) return ;
- match(input,31,FOLLOW_31_in_r_collectionExpression1546); if (failed) return ;
- pushFollow(FOLLOW_r_type_in_r_collectionExpression1548);
- r_type();
+ root_0 = (Object)adaptor.nil();
+
+ string_literal274=(Token)input.LT(1);
+ match(input,101,FOLLOW_101_in_r_collectionExpression1550); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal274_tree = (Object)adaptor.create(string_literal274);
+ adaptor.addChild(root_0, string_literal274_tree);
+ }
+ char_literal275=(Token)input.LT(1);
+ match(input,31,FOLLOW_31_in_r_collectionExpression1554); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal275_tree = (Object)adaptor.create(char_literal275);
+ adaptor.addChild(root_0, char_literal275_tree);
+ }
+ pushFollow(FOLLOW_r_type_in_r_collectionExpression1556);
+ r_type276=r_type();
_fsp--;
- if (failed) return ;
- match(input,34,FOLLOW_34_in_r_collectionExpression1550); if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_type276.getTree());
+ char_literal277=(Token)input.LT(1);
+ match(input,34,FOLLOW_34_in_r_collectionExpression1558); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal277_tree = (Object)adaptor.create(char_literal277);
+ adaptor.addChild(root_0, char_literal277_tree);
+ }
}
break;
case 2 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:298:4: ( 'collect' | 'select' | 'selectFirst' | 'reject' | 'exists' | 'notExists' | 'sortBy' | 'forAll' ) '(' ( r_identifier '|' )? r_expression ')'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:300:4: ( 'collect' | 'select' | 'selectFirst' | 'reject' | 'exists' | 'notExists' | 'sortBy' | 'forAll' ) '(' ( r_identifier '|' )? r_expression ')'
{
+ root_0 = (Object)adaptor.nil();
+
+ set278=(Token)input.LT(1);
if ( (input.LA(1)>=102 && input.LA(1)<=109) ) {
input.consume();
+ if ( backtracking==0 ) adaptor.addChild(root_0, adaptor.create(set278));
errorRecovery=false;failed=false;
}
else {
- if (backtracking>0) {failed=true; return ;}
+ if (backtracking>0) {failed=true; return retval;}
MismatchedSetException mse =
new MismatchedSetException(null,input);
- recoverFromMismatchedSet(input,mse,FOLLOW_set_in_r_collectionExpression1559); throw mse;
+ recoverFromMismatchedSet(input,mse,FOLLOW_set_in_r_collectionExpression1567); throw mse;
}
- match(input,31,FOLLOW_31_in_r_collectionExpression1609); if (failed) return ;
- // src/org/eclipse/xpand3/parser/Xpand3.g:305:19: ( r_identifier '|' )?
+ char_literal279=(Token)input.LT(1);
+ match(input,31,FOLLOW_31_in_r_collectionExpression1617); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal279_tree = (Object)adaptor.create(char_literal279);
+ adaptor.addChild(root_0, char_literal279_tree);
+ }
+ // src/org/eclipse/xpand3/parser/Xpand3.g:307:19: ( r_identifier '|' )?
int alt66=2;
int LA66_0 = input.LA(1);
@@ -3863,29 +6266,47 @@ public class Xpand3Parser extends Parser {
}
switch (alt66) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:305:20: r_identifier '|'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:307:20: r_identifier '|'
{
- pushFollow(FOLLOW_r_identifier_in_r_collectionExpression1612);
- r_identifier();
+ pushFollow(FOLLOW_r_identifier_in_r_collectionExpression1620);
+ r_identifier280=r_identifier();
_fsp--;
- if (failed) return ;
- match(input,110,FOLLOW_110_in_r_collectionExpression1614); if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_identifier280.getTree());
+ char_literal281=(Token)input.LT(1);
+ match(input,110,FOLLOW_110_in_r_collectionExpression1622); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal281_tree = (Object)adaptor.create(char_literal281);
+ adaptor.addChild(root_0, char_literal281_tree);
+ }
}
break;
}
- pushFollow(FOLLOW_r_expression_in_r_collectionExpression1618);
- r_expression();
+ pushFollow(FOLLOW_r_expression_in_r_collectionExpression1626);
+ r_expression282=r_expression();
_fsp--;
- if (failed) return ;
- match(input,34,FOLLOW_34_in_r_collectionExpression1620); if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_expression282.getTree());
+ char_literal283=(Token)input.LT(1);
+ match(input,34,FOLLOW_34_in_r_collectionExpression1628); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal283_tree = (Object)adaptor.create(char_literal283);
+ adaptor.addChild(root_0, char_literal283_tree);
+ }
}
break;
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -3893,23 +6314,43 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_collectionExpression
+ public static class r_declaredParameterList_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_declaredParameterList
- // src/org/eclipse/xpand3/parser/Xpand3.g:311:1: r_declaredParameterList : r_declaredParameter ( ',' r_declaredParameter )* ;
- public void r_declaredParameterList() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:313:1: r_declaredParameterList : r_declaredParameter ( ',' r_declaredParameter )* ;
+ public r_declaredParameterList_return r_declaredParameterList() throws RecognitionException {
+ r_declaredParameterList_return retval = new r_declaredParameterList_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ Token char_literal285=null;
+ r_declaredParameter_return r_declaredParameter284 = null;
+
+ r_declaredParameter_return r_declaredParameter286 = null;
+
+
+ Object char_literal285_tree=null;
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:312:2: ( r_declaredParameter ( ',' r_declaredParameter )* )
- // src/org/eclipse/xpand3/parser/Xpand3.g:312:2: r_declaredParameter ( ',' r_declaredParameter )*
+ // src/org/eclipse/xpand3/parser/Xpand3.g:314:2: ( r_declaredParameter ( ',' r_declaredParameter )* )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:314:2: r_declaredParameter ( ',' r_declaredParameter )*
{
- pushFollow(FOLLOW_r_declaredParameter_in_r_declaredParameterList1637);
- r_declaredParameter();
+ root_0 = (Object)adaptor.nil();
+
+ pushFollow(FOLLOW_r_declaredParameter_in_r_declaredParameterList1645);
+ r_declaredParameter284=r_declaredParameter();
_fsp--;
- if (failed) return ;
- // src/org/eclipse/xpand3/parser/Xpand3.g:312:22: ( ',' r_declaredParameter )*
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_declaredParameter284.getTree());
+ // src/org/eclipse/xpand3/parser/Xpand3.g:314:22: ( ',' r_declaredParameter )*
loop68:
do {
int alt68=2;
@@ -3928,13 +6369,19 @@ public class Xpand3Parser extends Parser {
switch (alt68) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:312:23: ',' r_declaredParameter
+ // src/org/eclipse/xpand3/parser/Xpand3.g:314:23: ',' r_declaredParameter
{
- match(input,32,FOLLOW_32_in_r_declaredParameterList1640); if (failed) return ;
- pushFollow(FOLLOW_r_declaredParameter_in_r_declaredParameterList1642);
- r_declaredParameter();
+ char_literal285=(Token)input.LT(1);
+ match(input,32,FOLLOW_32_in_r_declaredParameterList1648); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal285_tree = (Object)adaptor.create(char_literal285);
+ adaptor.addChild(root_0, char_literal285_tree);
+ }
+ pushFollow(FOLLOW_r_declaredParameter_in_r_declaredParameterList1650);
+ r_declaredParameter286=r_declaredParameter();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_declaredParameter286.getTree());
}
break;
@@ -3947,6 +6394,12 @@ public class Xpand3Parser extends Parser {
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -3954,29 +6407,54 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_declaredParameterList
+ public static class r_declaredParameter_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_declaredParameter
- // src/org/eclipse/xpand3/parser/Xpand3.g:315:1: r_declaredParameter : r_type r_identifier ;
- public void r_declaredParameter() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:317:1: r_declaredParameter : r_type r_identifier ;
+ public r_declaredParameter_return r_declaredParameter() throws RecognitionException {
+ r_declaredParameter_return retval = new r_declaredParameter_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ r_type_return r_type287 = null;
+
+ r_identifier_return r_identifier288 = null;
+
+
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:316:2: ( r_type r_identifier )
- // src/org/eclipse/xpand3/parser/Xpand3.g:316:2: r_type r_identifier
+ // src/org/eclipse/xpand3/parser/Xpand3.g:318:2: ( r_type r_identifier )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:318:2: r_type r_identifier
{
- pushFollow(FOLLOW_r_type_in_r_declaredParameter1655);
- r_type();
+ root_0 = (Object)adaptor.nil();
+
+ pushFollow(FOLLOW_r_type_in_r_declaredParameter1663);
+ r_type287=r_type();
_fsp--;
- if (failed) return ;
- pushFollow(FOLLOW_r_identifier_in_r_declaredParameter1657);
- r_identifier();
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_type287.getTree());
+ pushFollow(FOLLOW_r_identifier_in_r_declaredParameter1665);
+ r_identifier288=r_identifier();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_identifier288.getTree());
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -3984,23 +6462,43 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_declaredParameter
+ public static class r_parameterList_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_parameterList
- // src/org/eclipse/xpand3/parser/Xpand3.g:319:1: r_parameterList : r_expression ( ',' r_expression )* ;
- public void r_parameterList() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:321:1: r_parameterList : r_expression ( ',' r_expression )* ;
+ public r_parameterList_return r_parameterList() throws RecognitionException {
+ r_parameterList_return retval = new r_parameterList_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ Token char_literal290=null;
+ r_expression_return r_expression289 = null;
+
+ r_expression_return r_expression291 = null;
+
+
+ Object char_literal290_tree=null;
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:320:5: ( r_expression ( ',' r_expression )* )
- // src/org/eclipse/xpand3/parser/Xpand3.g:320:5: r_expression ( ',' r_expression )*
+ // src/org/eclipse/xpand3/parser/Xpand3.g:322:5: ( r_expression ( ',' r_expression )* )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:322:5: r_expression ( ',' r_expression )*
{
- pushFollow(FOLLOW_r_expression_in_r_parameterList1672);
- r_expression();
+ root_0 = (Object)adaptor.nil();
+
+ pushFollow(FOLLOW_r_expression_in_r_parameterList1680);
+ r_expression289=r_expression();
_fsp--;
- if (failed) return ;
- // src/org/eclipse/xpand3/parser/Xpand3.g:320:19: ( ',' r_expression )*
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_expression289.getTree());
+ // src/org/eclipse/xpand3/parser/Xpand3.g:322:19: ( ',' r_expression )*
loop69:
do {
int alt69=2;
@@ -4013,13 +6511,19 @@ public class Xpand3Parser extends Parser {
switch (alt69) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:320:20: ',' r_expression
+ // src/org/eclipse/xpand3/parser/Xpand3.g:322:20: ',' r_expression
{
- match(input,32,FOLLOW_32_in_r_parameterList1676); if (failed) return ;
- pushFollow(FOLLOW_r_expression_in_r_parameterList1678);
- r_expression();
+ char_literal290=(Token)input.LT(1);
+ match(input,32,FOLLOW_32_in_r_parameterList1684); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal290_tree = (Object)adaptor.create(char_literal290);
+ adaptor.addChild(root_0, char_literal290_tree);
+ }
+ pushFollow(FOLLOW_r_expression_in_r_parameterList1686);
+ r_expression291=r_expression();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_expression291.getTree());
}
break;
@@ -4032,6 +6536,12 @@ public class Xpand3Parser extends Parser {
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -4039,16 +6549,31 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_parameterList
+ public static class r_type_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_type
- // src/org/eclipse/xpand3/parser/Xpand3.g:325:1: r_type : ( r_collectionType | r_simpleType );
- public void r_type() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:327:1: r_type : ( r_collectionType | r_simpleType );
+ public r_type_return r_type() throws RecognitionException {
+ r_type_return retval = new r_type_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ r_collectionType_return r_collectionType292 = null;
+
+ r_simpleType_return r_simpleType293 = null;
+
+
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:326:2: ( r_collectionType | r_simpleType )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:328:2: ( r_collectionType | r_simpleType )
int alt70=2;
int LA70_0 = input.LA(1);
@@ -4059,35 +6584,47 @@ public class Xpand3Parser extends Parser {
alt70=2;
}
else {
- if (backtracking>0) {failed=true; return ;}
+ if (backtracking>0) {failed=true; return retval;}
NoViableAltException nvae =
- new NoViableAltException("325:1: r_type : ( r_collectionType | r_simpleType );", 70, 0, input);
+ new NoViableAltException("327:1: r_type : ( r_collectionType | r_simpleType );", 70, 0, input);
throw nvae;
}
switch (alt70) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:326:2: r_collectionType
+ // src/org/eclipse/xpand3/parser/Xpand3.g:328:2: r_collectionType
{
- pushFollow(FOLLOW_r_collectionType_in_r_type1695);
- r_collectionType();
+ root_0 = (Object)adaptor.nil();
+
+ pushFollow(FOLLOW_r_collectionType_in_r_type1703);
+ r_collectionType292=r_collectionType();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_collectionType292.getTree());
}
break;
case 2 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:327:2: r_simpleType
+ // src/org/eclipse/xpand3/parser/Xpand3.g:329:2: r_simpleType
{
- pushFollow(FOLLOW_r_simpleType_in_r_type1700);
- r_simpleType();
+ root_0 = (Object)adaptor.nil();
+
+ pushFollow(FOLLOW_r_simpleType_in_r_type1708);
+ r_simpleType293=r_simpleType();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_simpleType293.getTree());
}
break;
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -4095,30 +6632,53 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_type
+ public static class r_collectionType_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_collectionType
- // src/org/eclipse/xpand3/parser/Xpand3.g:330:1: r_collectionType : ( 'Collection' | 'List' | 'Set' ) ( '[' r_simpleType ']' )? ;
- public void r_collectionType() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:332:1: r_collectionType : ( 'Collection' | 'List' | 'Set' ) ( '[' r_simpleType ']' )? ;
+ public r_collectionType_return r_collectionType() throws RecognitionException {
+ r_collectionType_return retval = new r_collectionType_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ Token set294=null;
+ Token char_literal295=null;
+ Token char_literal297=null;
+ r_simpleType_return r_simpleType296 = null;
+
+
+ Object set294_tree=null;
+ Object char_literal295_tree=null;
+ Object char_literal297_tree=null;
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:331:3: ( ( 'Collection' | 'List' | 'Set' ) ( '[' r_simpleType ']' )? )
- // src/org/eclipse/xpand3/parser/Xpand3.g:331:3: ( 'Collection' | 'List' | 'Set' ) ( '[' r_simpleType ']' )?
+ // src/org/eclipse/xpand3/parser/Xpand3.g:333:3: ( ( 'Collection' | 'List' | 'Set' ) ( '[' r_simpleType ']' )? )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:333:3: ( 'Collection' | 'List' | 'Set' ) ( '[' r_simpleType ']' )?
{
+ root_0 = (Object)adaptor.nil();
+
+ set294=(Token)input.LT(1);
if ( (input.LA(1)>=69 && input.LA(1)<=71) ) {
input.consume();
+ if ( backtracking==0 ) adaptor.addChild(root_0, adaptor.create(set294));
errorRecovery=false;failed=false;
}
else {
- if (backtracking>0) {failed=true; return ;}
+ if (backtracking>0) {failed=true; return retval;}
MismatchedSetException mse =
new MismatchedSetException(null,input);
- recoverFromMismatchedSet(input,mse,FOLLOW_set_in_r_collectionType1715); throw mse;
+ recoverFromMismatchedSet(input,mse,FOLLOW_set_in_r_collectionType1723); throw mse;
}
- // src/org/eclipse/xpand3/parser/Xpand3.g:332:3: ( '[' r_simpleType ']' )?
+ // src/org/eclipse/xpand3/parser/Xpand3.g:334:3: ( '[' r_simpleType ']' )?
int alt71=2;
int LA71_0 = input.LA(1);
@@ -4127,14 +6687,25 @@ public class Xpand3Parser extends Parser {
}
switch (alt71) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:332:4: '[' r_simpleType ']'
+ // src/org/eclipse/xpand3/parser/Xpand3.g:334:4: '[' r_simpleType ']'
{
- match(input,95,FOLLOW_95_in_r_collectionType1733); if (failed) return ;
- pushFollow(FOLLOW_r_simpleType_in_r_collectionType1735);
- r_simpleType();
+ char_literal295=(Token)input.LT(1);
+ match(input,95,FOLLOW_95_in_r_collectionType1741); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal295_tree = (Object)adaptor.create(char_literal295);
+ adaptor.addChild(root_0, char_literal295_tree);
+ }
+ pushFollow(FOLLOW_r_simpleType_in_r_collectionType1743);
+ r_simpleType296=r_simpleType();
_fsp--;
- if (failed) return ;
- match(input,96,FOLLOW_96_in_r_collectionType1737); if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_simpleType296.getTree());
+ char_literal297=(Token)input.LT(1);
+ match(input,96,FOLLOW_96_in_r_collectionType1745); if (failed) return retval;
+ if ( backtracking==0 ) {
+ char_literal297_tree = (Object)adaptor.create(char_literal297);
+ adaptor.addChild(root_0, char_literal297_tree);
+ }
}
break;
@@ -4144,6 +6715,12 @@ public class Xpand3Parser extends Parser {
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -4151,23 +6728,43 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_collectionType
+ public static class r_simpleType_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_simpleType
- // src/org/eclipse/xpand3/parser/Xpand3.g:335:1: r_simpleType : r_identifier ( '::' r_identifier )* ;
- public void r_simpleType() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:337:1: r_simpleType : r_identifier ( '::' r_identifier )* ;
+ public r_simpleType_return r_simpleType() throws RecognitionException {
+ r_simpleType_return retval = new r_simpleType_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ Token string_literal299=null;
+ r_identifier_return r_identifier298 = null;
+
+ r_identifier_return r_identifier300 = null;
+
+
+ Object string_literal299_tree=null;
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:336:2: ( r_identifier ( '::' r_identifier )* )
- // src/org/eclipse/xpand3/parser/Xpand3.g:336:2: r_identifier ( '::' r_identifier )*
+ // src/org/eclipse/xpand3/parser/Xpand3.g:338:2: ( r_identifier ( '::' r_identifier )* )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:338:2: r_identifier ( '::' r_identifier )*
{
- pushFollow(FOLLOW_r_identifier_in_r_simpleType1750);
- r_identifier();
+ root_0 = (Object)adaptor.nil();
+
+ pushFollow(FOLLOW_r_identifier_in_r_simpleType1758);
+ r_identifier298=r_identifier();
_fsp--;
- if (failed) return ;
- // src/org/eclipse/xpand3/parser/Xpand3.g:337:2: ( '::' r_identifier )*
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_identifier298.getTree());
+ // src/org/eclipse/xpand3/parser/Xpand3.g:339:2: ( '::' r_identifier )*
loop72:
do {
int alt72=2;
@@ -4180,13 +6777,19 @@ public class Xpand3Parser extends Parser {
switch (alt72) {
case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:337:3: '::' r_identifier
+ // src/org/eclipse/xpand3/parser/Xpand3.g:339:3: '::' r_identifier
{
- match(input,63,FOLLOW_63_in_r_simpleType1755); if (failed) return ;
- pushFollow(FOLLOW_r_identifier_in_r_simpleType1757);
- r_identifier();
+ string_literal299=(Token)input.LT(1);
+ match(input,63,FOLLOW_63_in_r_simpleType1763); if (failed) return retval;
+ if ( backtracking==0 ) {
+ string_literal299_tree = (Object)adaptor.create(string_literal299);
+ adaptor.addChild(root_0, string_literal299_tree);
+ }
+ pushFollow(FOLLOW_r_identifier_in_r_simpleType1765);
+ r_identifier300=r_identifier();
_fsp--;
- if (failed) return ;
+ if (failed) return retval;
+ if ( backtracking==0 ) adaptor.addChild(root_0, r_identifier300.getTree());
}
break;
@@ -4199,6 +6802,12 @@ public class Xpand3Parser extends Parser {
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -4206,22 +6815,48 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_simpleType
+ public static class r_identifier_return extends ParserRuleReturnScope {
+ Object tree;
+ public Object getTree() { return tree; }
+ };
// $ANTLR start r_identifier
- // src/org/eclipse/xpand3/parser/Xpand3.g:340:1: r_identifier : Identifier ;
- public void r_identifier() throws RecognitionException {
+ // src/org/eclipse/xpand3/parser/Xpand3.g:342:1: r_identifier : Identifier ;
+ public r_identifier_return r_identifier() throws RecognitionException {
+ r_identifier_return retval = new r_identifier_return();
+ retval.start = input.LT(1);
+
+ Object root_0 = null;
+
+ Token Identifier301=null;
+
+ Object Identifier301_tree=null;
+
try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:341:4: ( Identifier )
- // src/org/eclipse/xpand3/parser/Xpand3.g:341:4: Identifier
+ // src/org/eclipse/xpand3/parser/Xpand3.g:343:4: ( Identifier )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:343:4: Identifier
{
- match(input,Identifier,FOLLOW_Identifier_in_r_identifier1773); if (failed) return ;
+ root_0 = (Object)adaptor.nil();
+
+ Identifier301=(Token)input.LT(1);
+ match(input,Identifier,FOLLOW_Identifier_in_r_identifier1781); if (failed) return retval;
+ if ( backtracking==0 ) {
+ Identifier301_tree = (Object)adaptor.create(Identifier301);
+ adaptor.addChild(root_0, Identifier301_tree);
+ }
}
+ retval.stop = input.LT(-1);
+
+ if ( backtracking==0 ) {
+ retval.tree = (Object)adaptor.rulePostProcessing(root_0);
+ adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
+ }
}
catch (RecognitionException re) {
reportError(re);
@@ -4229,22 +6864,22 @@ public class Xpand3Parser extends Parser {
}
finally {
}
- return ;
+ return retval;
}
// $ANTLR end r_identifier
// $ANTLR start synpred1
public void synpred1_fragment() throws RecognitionException {
- // src/org/eclipse/xpand3/parser/Xpand3.g:184:5: ( '(' r_type ')' r_castedExpression )
- // src/org/eclipse/xpand3/parser/Xpand3.g:184:6: '(' r_type ')' r_castedExpression
+ // src/org/eclipse/xpand3/parser/Xpand3.g:186:5: ( '(' r_type ')' r_castedExpression )
+ // src/org/eclipse/xpand3/parser/Xpand3.g:186:6: '(' r_type ')' r_castedExpression
{
- match(input,31,FOLLOW_31_in_synpred1943); if (failed) return ;
- pushFollow(FOLLOW_r_type_in_synpred1945);
+ match(input,31,FOLLOW_31_in_synpred1951); if (failed) return ;
+ pushFollow(FOLLOW_r_type_in_synpred1953);
r_type();
_fsp--;
if (failed) return ;
- match(input,34,FOLLOW_34_in_synpred1947); if (failed) return ;
- pushFollow(FOLLOW_r_castedExpression_in_synpred1949);
+ match(input,34,FOLLOW_34_in_synpred1955); if (failed) return ;
+ pushFollow(FOLLOW_r_castedExpression_in_synpred1957);
r_castedExpression();
_fsp--;
if (failed) return ;
@@ -4384,7 +7019,7 @@ public class Xpand3Parser extends Parser {
this.transition = DFA44_transition;
}
public String getDescription() {
- return "183:1: r_castedExpression : ( ( '(' r_type ')' r_castedExpression )=> '(' r_type ')' r_chainExpression | r_chainExpression );";
+ return "185:1: r_castedExpression : ( ( '(' r_type ')' r_castedExpression )=> '(' r_type ')' r_chainExpression | r_chainExpression );";
}
public int specialStateTransition(int s, IntStream input) throws NoViableAltException {
int _s = s;
@@ -4639,310 +7274,310 @@ public class Xpand3Parser extends Parser {
}
- public static final BitSet FOLLOW_r_nsImport_in_r_file42 = new BitSet(new long[]{0x4400000028002010L,0x00000000000000E7L});
- public static final BitSet FOLLOW_r_abstractDeclaration_in_r_file48 = new BitSet(new long[]{0x4400000000002010L,0x00000000000000E7L});
- public static final BitSet FOLLOW_EOF_in_r_file55 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_LG_in_r_nsImport65 = new BitSet(new long[]{0x0000000002000000L});
- public static final BitSet FOLLOW_25_in_r_nsImport67 = new BitSet(new long[]{0x0000000000002000L,0x00000000000000E0L});
- public static final BitSet FOLLOW_r_type_in_r_nsImport69 = new BitSet(new long[]{0x0000000000000020L});
- public static final BitSet FOLLOW_RG_in_r_nsImport71 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_LG_in_r_nsImport76 = new BitSet(new long[]{0x0000000004000000L});
- public static final BitSet FOLLOW_26_in_r_nsImport78 = new BitSet(new long[]{0x0000000000002000L,0x00000000000000E0L});
- public static final BitSet FOLLOW_r_type_in_r_nsImport80 = new BitSet(new long[]{0x0000000000000020L});
- public static final BitSet FOLLOW_RG_in_r_nsImport82 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_27_in_r_nsImport87 = new BitSet(new long[]{0x0000000000002000L,0x00000000000000E0L});
- public static final BitSet FOLLOW_r_type_in_r_nsImport89 = new BitSet(new long[]{0x0000000010000000L});
- public static final BitSet FOLLOW_28_in_r_nsImport92 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_29_in_r_nsImport98 = new BitSet(new long[]{0x0000000000002000L,0x00000000000000E0L});
- public static final BitSet FOLLOW_r_type_in_r_nsImport100 = new BitSet(new long[]{0x0000000050000000L});
- public static final BitSet FOLLOW_30_in_r_nsImport103 = new BitSet(new long[]{0x0000000010000000L});
- public static final BitSet FOLLOW_28_in_r_nsImport107 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_r_check_in_r_abstractDeclaration118 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_r_around_in_r_abstractDeclaration123 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_r_extension_in_r_abstractDeclaration128 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_r_definition_in_r_abstractDeclaration133 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_r_definitionAround_in_r_abstractDeclaration138 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_LG_in_r_definition150 = new BitSet(new long[]{0x0000000000000040L});
- public static final BitSet FOLLOW_DEFINE_in_r_definition152 = new BitSet(new long[]{0x0000000000002000L});
- public static final BitSet FOLLOW_r_identifier_in_r_definition154 = new BitSet(new long[]{0x0000000880000000L});
- public static final BitSet FOLLOW_31_in_r_definition157 = new BitSet(new long[]{0x0000000600002000L,0x00000000000000E0L});
- public static final BitSet FOLLOW_r_declaredParameterList_in_r_definition160 = new BitSet(new long[]{0x0000000700000000L});
- public static final BitSet FOLLOW_32_in_r_definition163 = new BitSet(new long[]{0x0000000200000000L});
- public static final BitSet FOLLOW_33_in_r_definition166 = new BitSet(new long[]{0x0000000400000000L});
- public static final BitSet FOLLOW_33_in_r_definition172 = new BitSet(new long[]{0x0000000400000000L});
- public static final BitSet FOLLOW_34_in_r_definition176 = new BitSet(new long[]{0x0000000800000000L});
- public static final BitSet FOLLOW_35_in_r_definition180 = new BitSet(new long[]{0x0000000000002000L,0x00000000000000E0L});
- public static final BitSet FOLLOW_r_type_in_r_definition182 = new BitSet(new long[]{0x0000001000000400L});
- public static final BitSet FOLLOW_r_sequence_in_r_definition185 = new BitSet(new long[]{0x0000000000000080L});
- public static final BitSet FOLLOW_ENDDEFINE_in_r_definition188 = new BitSet(new long[]{0x0000000000000020L});
- public static final BitSet FOLLOW_RG_in_r_definition190 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_LG_in_r_definitionAround202 = new BitSet(new long[]{0x0000000000000100L});
- public static final BitSet FOLLOW_AROUND_in_r_definitionAround204 = new BitSet(new long[]{0x0000000200002000L});
- public static final BitSet FOLLOW_r_pointcut_in_r_definitionAround206 = new BitSet(new long[]{0x0000000880000000L});
- public static final BitSet FOLLOW_31_in_r_definitionAround209 = new BitSet(new long[]{0x0000000600002000L,0x00000000000000E0L});
- public static final BitSet FOLLOW_r_declaredParameterList_in_r_definitionAround212 = new BitSet(new long[]{0x0000000700000000L});
- public static final BitSet FOLLOW_32_in_r_definitionAround215 = new BitSet(new long[]{0x0000000200000000L});
- public static final BitSet FOLLOW_33_in_r_definitionAround218 = new BitSet(new long[]{0x0000000400000000L});
- public static final BitSet FOLLOW_33_in_r_definitionAround224 = new BitSet(new long[]{0x0000000400000000L});
- public static final BitSet FOLLOW_34_in_r_definitionAround228 = new BitSet(new long[]{0x0000000800000000L});
- public static final BitSet FOLLOW_35_in_r_definitionAround232 = new BitSet(new long[]{0x0000000000002000L,0x00000000000000E0L});
- public static final BitSet FOLLOW_r_type_in_r_definitionAround234 = new BitSet(new long[]{0x0000001000000400L});
- public static final BitSet FOLLOW_r_sequence_in_r_definitionAround237 = new BitSet(new long[]{0x0000000000000200L});
- public static final BitSet FOLLOW_ENDAROUND_in_r_definitionAround240 = new BitSet(new long[]{0x0000000000000020L});
- public static final BitSet FOLLOW_RG_in_r_definitionAround242 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_r_textSequence_in_r_sequence254 = new BitSet(new long[]{0x081442F080003802L,0x00003FFEE00041E0L});
- public static final BitSet FOLLOW_r_statement_in_r_sequence260 = new BitSet(new long[]{0x0000001000000400L});
- public static final BitSet FOLLOW_r_textSequence_in_r_sequence266 = new BitSet(new long[]{0x081442F080003802L,0x00003FFEE00041E0L});
- public static final BitSet FOLLOW_r_simpleStatement_in_r_statement281 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_r_fileStatement_in_r_statement286 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_r_foreachStatement_in_r_statement291 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_r_ifStatement_in_r_statement296 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_r_letStatement_in_r_statement301 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_r_protectStatement_in_r_statement306 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_r_text_in_r_textSequence317 = new BitSet(new long[]{0x0000001000000402L});
- public static final BitSet FOLLOW_r_text_in_r_textSequence320 = new BitSet(new long[]{0x0000001000000402L});
- public static final BitSet FOLLOW_36_in_r_text332 = new BitSet(new long[]{0x0000000000000400L});
- public static final BitSet FOLLOW_TEXT_in_r_text335 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_r_errorStatement_in_r_simpleStatement346 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_r_expandStatement_in_r_simpleStatement350 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_r_expressionStmt_in_r_simpleStatement354 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_37_in_r_errorStatement365 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
- public static final BitSet FOLLOW_r_expression_in_r_errorStatement367 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_38_in_r_expandStatement378 = new BitSet(new long[]{0x0000000000002000L});
- public static final BitSet FOLLOW_r_simpleType_in_r_expandStatement380 = new BitSet(new long[]{0x0000008880000002L});
- public static final BitSet FOLLOW_31_in_r_expandStatement383 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
- public static final BitSet FOLLOW_r_parameterList_in_r_expandStatement385 = new BitSet(new long[]{0x0000000400000000L});
- public static final BitSet FOLLOW_34_in_r_expandStatement387 = new BitSet(new long[]{0x0000008800000002L});
- public static final BitSet FOLLOW_35_in_r_expandStatement393 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
- public static final BitSet FOLLOW_r_expression_in_r_expandStatement395 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_39_in_r_expandStatement403 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
- public static final BitSet FOLLOW_r_expression_in_r_expandStatement404 = new BitSet(new long[]{0x0000010000000002L});
- public static final BitSet FOLLOW_40_in_r_expandStatement407 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
- public static final BitSet FOLLOW_r_expression_in_r_expandStatement409 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_r_expression_in_r_expressionStmt425 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_41_in_r_fileStatement435 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
- public static final BitSet FOLLOW_r_expression_in_r_fileStatement437 = new BitSet(new long[]{0x0000001000002400L});
- public static final BitSet FOLLOW_r_identifier_in_r_fileStatement440 = new BitSet(new long[]{0x0000001000000400L});
- public static final BitSet FOLLOW_r_sequence_in_r_fileStatement446 = new BitSet(new long[]{0x0000040000000000L});
- public static final BitSet FOLLOW_42_in_r_fileStatement450 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_39_in_r_foreachStatement462 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
- public static final BitSet FOLLOW_r_expression_in_r_foreachStatement464 = new BitSet(new long[]{0x0000080000000000L});
- public static final BitSet FOLLOW_43_in_r_foreachStatement466 = new BitSet(new long[]{0x0000000000002000L});
- public static final BitSet FOLLOW_r_identifier_in_r_foreachStatement468 = new BitSet(new long[]{0x0000111000000400L});
- public static final BitSet FOLLOW_44_in_r_foreachStatement471 = new BitSet(new long[]{0x0000000000002000L});
- public static final BitSet FOLLOW_r_identifier_in_r_foreachStatement473 = new BitSet(new long[]{0x0000011000000400L});
- public static final BitSet FOLLOW_40_in_r_foreachStatement478 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
- public static final BitSet FOLLOW_r_expression_in_r_foreachStatement480 = new BitSet(new long[]{0x0000001000000400L});
- public static final BitSet FOLLOW_r_sequence_in_r_foreachStatement488 = new BitSet(new long[]{0x0000200000000000L});
- public static final BitSet FOLLOW_45_in_r_foreachStatement493 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_46_in_r_ifStatement508 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
- public static final BitSet FOLLOW_r_expression_in_r_ifStatement510 = new BitSet(new long[]{0x0000001000000400L});
- public static final BitSet FOLLOW_r_sequence_in_r_ifStatement514 = new BitSet(new long[]{0x0003800000000000L});
- public static final BitSet FOLLOW_r_elseIfStatement_in_r_ifStatement519 = new BitSet(new long[]{0x0003800000000000L});
- public static final BitSet FOLLOW_r_elseStatement_in_r_ifStatement524 = new BitSet(new long[]{0x0000800000000000L});
- public static final BitSet FOLLOW_47_in_r_ifStatement529 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_48_in_r_elseIfStatement539 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
- public static final BitSet FOLLOW_r_expression_in_r_elseIfStatement541 = new BitSet(new long[]{0x0000001000000400L});
- public static final BitSet FOLLOW_r_sequence_in_r_elseIfStatement545 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_49_in_r_elseStatement557 = new BitSet(new long[]{0x0000001000000400L});
- public static final BitSet FOLLOW_r_sequence_in_r_elseStatement561 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_50_in_r_letStatement573 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
- public static final BitSet FOLLOW_r_expression_in_r_letStatement575 = new BitSet(new long[]{0x0000080000000000L});
- public static final BitSet FOLLOW_43_in_r_letStatement577 = new BitSet(new long[]{0x0000000000002000L});
- public static final BitSet FOLLOW_r_identifier_in_r_letStatement579 = new BitSet(new long[]{0x0000001000000400L});
- public static final BitSet FOLLOW_r_sequence_in_r_letStatement585 = new BitSet(new long[]{0x0008000000000000L});
- public static final BitSet FOLLOW_51_in_r_letStatement590 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_52_in_r_protectStatement601 = new BitSet(new long[]{0x0020000000000000L});
- public static final BitSet FOLLOW_53_in_r_protectStatement606 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
- public static final BitSet FOLLOW_r_expression_in_r_protectStatement608 = new BitSet(new long[]{0x0040000000000000L});
- public static final BitSet FOLLOW_54_in_r_protectStatement613 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
- public static final BitSet FOLLOW_r_expression_in_r_protectStatement615 = new BitSet(new long[]{0x0080000000000000L});
- public static final BitSet FOLLOW_55_in_r_protectStatement628 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
- public static final BitSet FOLLOW_r_expression_in_r_protectStatement630 = new BitSet(new long[]{0x0100001000000400L});
- public static final BitSet FOLLOW_56_in_r_protectStatement632 = new BitSet(new long[]{0x0000001000000400L});
- public static final BitSet FOLLOW_r_sequence_in_r_protectStatement638 = new BitSet(new long[]{0x0200000000000000L});
- public static final BitSet FOLLOW_57_in_r_protectStatement642 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_58_in_r_check654 = new BitSet(new long[]{0x0000000000002000L,0x00000000000000E0L});
- public static final BitSet FOLLOW_r_type_in_r_check656 = new BitSet(new long[]{0x1800002000000000L});
- public static final BitSet FOLLOW_59_in_r_check659 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
- public static final BitSet FOLLOW_r_expression_in_r_check661 = new BitSet(new long[]{0x1000002000000000L});
- public static final BitSet FOLLOW_set_in_r_check665 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
- public static final BitSet FOLLOW_r_expression_in_r_check671 = new BitSet(new long[]{0x2000000000000000L});
- public static final BitSet FOLLOW_61_in_r_check673 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
- public static final BitSet FOLLOW_r_expression_in_r_check677 = new BitSet(new long[]{0x0000000010000000L});
- public static final BitSet FOLLOW_28_in_r_check679 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_62_in_r_around694 = new BitSet(new long[]{0x0000000200002000L});
- public static final BitSet FOLLOW_r_pointcut_in_r_around696 = new BitSet(new long[]{0x0000000080000000L});
- public static final BitSet FOLLOW_31_in_r_around698 = new BitSet(new long[]{0x0000000600002000L,0x00000000000000E0L});
- public static final BitSet FOLLOW_r_declaredParameterList_in_r_around701 = new BitSet(new long[]{0x0000000700000000L});
- public static final BitSet FOLLOW_32_in_r_around704 = new BitSet(new long[]{0x0000000200000000L});
- public static final BitSet FOLLOW_33_in_r_around707 = new BitSet(new long[]{0x0000000400000000L});
- public static final BitSet FOLLOW_33_in_r_around713 = new BitSet(new long[]{0x0000000400000000L});
- public static final BitSet FOLLOW_34_in_r_around717 = new BitSet(new long[]{0x2000000000000000L});
- public static final BitSet FOLLOW_61_in_r_around719 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
- public static final BitSet FOLLOW_r_expression_in_r_around726 = new BitSet(new long[]{0x0000000010000000L});
- public static final BitSet FOLLOW_28_in_r_around728 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_33_in_r_pointcut745 = new BitSet(new long[]{0x8000000200002002L});
- public static final BitSet FOLLOW_r_identifier_in_r_pointcut751 = new BitSet(new long[]{0x8000000200002002L});
- public static final BitSet FOLLOW_33_in_r_pointcut759 = new BitSet(new long[]{0x8000000200002002L});
- public static final BitSet FOLLOW_r_identifier_in_r_pointcut767 = new BitSet(new long[]{0x8000000200002002L});
- public static final BitSet FOLLOW_63_in_r_pointcut775 = new BitSet(new long[]{0x8000000200002002L});
- public static final BitSet FOLLOW_set_in_r_extension789 = new BitSet(new long[]{0x0000000000002000L,0x00000000000000E7L});
- public static final BitSet FOLLOW_r_type_in_r_extension798 = new BitSet(new long[]{0x0000000000002000L});
- public static final BitSet FOLLOW_r_identifier_in_r_extension801 = new BitSet(new long[]{0x0000000080002000L});
- public static final BitSet FOLLOW_r_identifier_in_r_extension803 = new BitSet(new long[]{0x0000000080000000L});
- public static final BitSet FOLLOW_31_in_r_extension806 = new BitSet(new long[]{0x0000000400002000L,0x00000000000000E0L});
- public static final BitSet FOLLOW_r_declaredParameterList_in_r_extension808 = new BitSet(new long[]{0x0000000400000000L});
- public static final BitSet FOLLOW_34_in_r_extension811 = new BitSet(new long[]{0x2000000000000000L});
- public static final BitSet FOLLOW_61_in_r_extension813 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E8L});
- public static final BitSet FOLLOW_67_in_r_extension818 = new BitSet(new long[]{0x0000000000002000L});
- public static final BitSet FOLLOW_r_javaType_in_r_extension820 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000010L});
- public static final BitSet FOLLOW_68_in_r_extension822 = new BitSet(new long[]{0x0000000000002000L});
- public static final BitSet FOLLOW_r_identifier_in_r_extension824 = new BitSet(new long[]{0x0000000080000000L});
- public static final BitSet FOLLOW_31_in_r_extension826 = new BitSet(new long[]{0x0000000400002000L});
- public static final BitSet FOLLOW_r_javaType_in_r_extension828 = new BitSet(new long[]{0x0000000500000000L});
- public static final BitSet FOLLOW_32_in_r_extension831 = new BitSet(new long[]{0x0000000000002000L});
- public static final BitSet FOLLOW_r_javaType_in_r_extension833 = new BitSet(new long[]{0x0000000500000000L});
- public static final BitSet FOLLOW_34_in_r_extension840 = new BitSet(new long[]{0x0000000010000000L});
- public static final BitSet FOLLOW_r_expression_in_r_extension847 = new BitSet(new long[]{0x0000000010000000L});
- public static final BitSet FOLLOW_28_in_r_extension850 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_r_identifier_in_r_javaType861 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000010L});
- public static final BitSet FOLLOW_68_in_r_javaType867 = new BitSet(new long[]{0x0000000000002000L,0x00000000000000E0L});
- public static final BitSet FOLLOW_r_identifier_in_r_javaType870 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000010L});
- public static final BitSet FOLLOW_69_in_r_javaType873 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000010L});
- public static final BitSet FOLLOW_70_in_r_javaType879 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000010L});
- public static final BitSet FOLLOW_71_in_r_javaType882 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000010L});
- public static final BitSet FOLLOW_r_letExpression_in_r_expression898 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_72_in_r_letExpression912 = new BitSet(new long[]{0x0000000000002000L});
- public static final BitSet FOLLOW_r_identifier_in_r_letExpression914 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000200L});
- public static final BitSet FOLLOW_73_in_r_letExpression916 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00040E0L});
- public static final BitSet FOLLOW_r_castedExpression_in_r_letExpression918 = new BitSet(new long[]{0x2000000000000000L});
- public static final BitSet FOLLOW_61_in_r_letExpression920 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
- public static final BitSet FOLLOW_r_expression_in_r_letExpression922 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_r_castedExpression_in_r_letExpression928 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_31_in_r_castedExpression954 = new BitSet(new long[]{0x0000000000002000L,0x00000000000000E0L});
- public static final BitSet FOLLOW_r_type_in_r_castedExpression956 = new BitSet(new long[]{0x0000000400000000L});
- public static final BitSet FOLLOW_34_in_r_castedExpression958 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00040E0L});
- public static final BitSet FOLLOW_r_chainExpression_in_r_castedExpression960 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_r_chainExpression_in_r_castedExpression966 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_r_ifExpression_in_r_chainExpression978 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000400L});
- public static final BitSet FOLLOW_74_in_r_chainExpression983 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00040E0L});
- public static final BitSet FOLLOW_r_ifExpression_in_r_chainExpression985 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000400L});
- public static final BitSet FOLLOW_r_switchExpression_in_r_ifExpression999 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000800L});
- public static final BitSet FOLLOW_75_in_r_ifExpression1002 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
- public static final BitSet FOLLOW_r_expression_in_r_ifExpression1004 = new BitSet(new long[]{0x2000000000000000L});
- public static final BitSet FOLLOW_61_in_r_ifExpression1006 = new BitSet(new long[]{0x0000001080003800L,0x00003FFEE00040E0L});
- public static final BitSet FOLLOW_r_switchExpression_in_r_ifExpression1008 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_59_in_r_ifExpression1015 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
- public static final BitSet FOLLOW_r_expression_in_r_ifExpression1017 = new BitSet(new long[]{0x0000000000000000L,0x0000000000001000L});
- public static final BitSet FOLLOW_76_in_r_ifExpression1019 = new BitSet(new long[]{0x0000001080003800L,0x00003FFEE00040E0L});
- public static final BitSet FOLLOW_r_switchExpression_in_r_ifExpression1021 = new BitSet(new long[]{0x0000000000000002L,0x0000000000002000L});
- public static final BitSet FOLLOW_77_in_r_ifExpression1024 = new BitSet(new long[]{0x0000001080003800L,0x00003FFEE00040E0L});
- public static final BitSet FOLLOW_r_switchExpression_in_r_ifExpression1026 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_78_in_r_switchExpression1042 = new BitSet(new long[]{0x0000000080000000L,0x0000000000028000L});
- public static final BitSet FOLLOW_31_in_r_switchExpression1045 = new BitSet(new long[]{0x0000001080003800L,0x00003FFEE00000E0L});
- public static final BitSet FOLLOW_r_orExpression_in_r_switchExpression1047 = new BitSet(new long[]{0x0000000400000000L});
- public static final BitSet FOLLOW_34_in_r_switchExpression1049 = new BitSet(new long[]{0x0000000000000000L,0x0000000000028000L});
- public static final BitSet FOLLOW_r_casePart_in_r_switchExpression1054 = new BitSet(new long[]{0x0000000000000000L,0x0000000000028000L});
- public static final BitSet FOLLOW_79_in_r_switchExpression1060 = new BitSet(new long[]{0x2000000000000000L});
- public static final BitSet FOLLOW_61_in_r_switchExpression1062 = new BitSet(new long[]{0x0000001080003800L,0x00003FFEE00000E0L});
- public static final BitSet FOLLOW_r_orExpression_in_r_switchExpression1064 = new BitSet(new long[]{0x0000000000000000L,0x0000000000010000L});
- public static final BitSet FOLLOW_80_in_r_switchExpression1069 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_r_orExpression_in_r_switchExpression1074 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_81_in_r_casePart1085 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
- public static final BitSet FOLLOW_r_expression_in_r_casePart1087 = new BitSet(new long[]{0x2000000000000000L});
- public static final BitSet FOLLOW_61_in_r_casePart1089 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
- public static final BitSet FOLLOW_r_expression_in_r_casePart1091 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_r_andExpression_in_r_orExpression1103 = new BitSet(new long[]{0x0000000000000002L,0x0000000000040000L});
- public static final BitSet FOLLOW_82_in_r_orExpression1107 = new BitSet(new long[]{0x0000001080003800L,0x00003FFEE00000E0L});
- public static final BitSet FOLLOW_r_andExpression_in_r_orExpression1109 = new BitSet(new long[]{0x0000000000000002L,0x0000000000040000L});
- public static final BitSet FOLLOW_r_impliesExpression_in_r_andExpression1124 = new BitSet(new long[]{0x0000000000000002L,0x0000000000080000L});
- public static final BitSet FOLLOW_83_in_r_andExpression1128 = new BitSet(new long[]{0x0000001080003800L,0x00003FFEE00000E0L});
- public static final BitSet FOLLOW_r_impliesExpression_in_r_andExpression1130 = new BitSet(new long[]{0x0000000000000002L,0x0000000000080000L});
- public static final BitSet FOLLOW_r_relationalExpression_in_r_impliesExpression1145 = new BitSet(new long[]{0x0000000000000002L,0x0000000000100000L});
- public static final BitSet FOLLOW_84_in_r_impliesExpression1149 = new BitSet(new long[]{0x0000001080003800L,0x00003FFEE00000E0L});
- public static final BitSet FOLLOW_r_relationalExpression_in_r_impliesExpression1151 = new BitSet(new long[]{0x0000000000000002L,0x0000000000100000L});
- public static final BitSet FOLLOW_r_additiveExpression_in_r_relationalExpression1167 = new BitSet(new long[]{0x0000000000000002L,0x0000000007E00000L});
- public static final BitSet FOLLOW_set_in_r_relationalExpression1172 = new BitSet(new long[]{0x0000001080003800L,0x00003FFEE00000E0L});
- public static final BitSet FOLLOW_r_additiveExpression_in_r_relationalExpression1196 = new BitSet(new long[]{0x0000000000000002L,0x0000000007E00000L});
- public static final BitSet FOLLOW_r_multiplicativeExpression_in_r_additiveExpression1209 = new BitSet(new long[]{0x0000001000000002L,0x0000000008000000L});
- public static final BitSet FOLLOW_set_in_r_additiveExpression1216 = new BitSet(new long[]{0x0000001080003800L,0x00003FFEE00000E0L});
- public static final BitSet FOLLOW_r_multiplicativeExpression_in_r_additiveExpression1223 = new BitSet(new long[]{0x0000001000000002L,0x0000000008000000L});
- public static final BitSet FOLLOW_r_unaryExpression_in_r_multiplicativeExpression1236 = new BitSet(new long[]{0x0000000200000002L,0x0000000010000000L});
- public static final BitSet FOLLOW_set_in_r_multiplicativeExpression1241 = new BitSet(new long[]{0x0000001080003800L,0x00003FFEE00000E0L});
- public static final BitSet FOLLOW_r_unaryExpression_in_r_multiplicativeExpression1249 = new BitSet(new long[]{0x0000000200000002L,0x0000000010000000L});
- public static final BitSet FOLLOW_r_infixExpression_in_r_unaryExpression1263 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_93_in_r_unaryExpression1268 = new BitSet(new long[]{0x0000000080003800L,0x00003FFEC00000E0L});
- public static final BitSet FOLLOW_r_infixExpression_in_r_unaryExpression1270 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_36_in_r_unaryExpression1275 = new BitSet(new long[]{0x0000000080003800L,0x00003FFEC00000E0L});
- public static final BitSet FOLLOW_r_infixExpression_in_r_unaryExpression1277 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_r_primaryExpression_in_r_infixExpression1288 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000010L});
- public static final BitSet FOLLOW_68_in_r_infixExpression1293 = new BitSet(new long[]{0x0000000000002000L,0x00003FE0000000E0L});
- public static final BitSet FOLLOW_r_featureCall_in_r_infixExpression1295 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000010L});
- public static final BitSet FOLLOW_StringLiteral_in_r_primaryExpression1313 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_r_featureCall_in_r_primaryExpression1321 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_r_booleanLiteral_in_r_primaryExpression1328 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_r_numberLiteral_in_r_primaryExpression1335 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_r_nullLiteral_in_r_primaryExpression1342 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_r_listLiteral_in_r_primaryExpression1349 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_r_constructorCall_in_r_primaryExpression1356 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_r_globalVarExpression_in_r_primaryExpression1363 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_r_paranthesizedExpression_in_r_primaryExpression1370 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_31_in_r_paranthesizedExpression1384 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
- public static final BitSet FOLLOW_r_expression_in_r_paranthesizedExpression1386 = new BitSet(new long[]{0x0000000400000000L});
- public static final BitSet FOLLOW_34_in_r_paranthesizedExpression1388 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_94_in_r_globalVarExpression1403 = new BitSet(new long[]{0x0000000000002000L});
- public static final BitSet FOLLOW_r_identifier_in_r_globalVarExpression1405 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_r_identifier_in_r_featureCall1419 = new BitSet(new long[]{0x0000000080000000L});
- public static final BitSet FOLLOW_31_in_r_featureCall1421 = new BitSet(new long[]{0x0800001480003800L,0x00003FFEE00041E0L});
- public static final BitSet FOLLOW_r_parameterList_in_r_featureCall1424 = new BitSet(new long[]{0x0000000400000000L});
- public static final BitSet FOLLOW_34_in_r_featureCall1428 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_r_type_in_r_featureCall1435 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_r_collectionExpression_in_r_featureCall1443 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_95_in_r_listLiteral1455 = new BitSet(new long[]{0x0800001080003800L,0x00003FFFE00041E0L});
- public static final BitSet FOLLOW_r_expression_in_r_listLiteral1457 = new BitSet(new long[]{0x0000000100000000L,0x0000000100000000L});
- public static final BitSet FOLLOW_32_in_r_listLiteral1460 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
- public static final BitSet FOLLOW_r_expression_in_r_listLiteral1462 = new BitSet(new long[]{0x0000000100000000L,0x0000000100000000L});
- public static final BitSet FOLLOW_96_in_r_listLiteral1467 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_97_in_r_constructorCall1478 = new BitSet(new long[]{0x0000000000002000L});
- public static final BitSet FOLLOW_r_simpleType_in_r_constructorCall1480 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_r_nsImport_in_r_file50 = new BitSet(new long[]{0x4400000028002010L,0x00000000000000E7L});
+ public static final BitSet FOLLOW_r_abstractDeclaration_in_r_file56 = new BitSet(new long[]{0x4400000000002010L,0x00000000000000E7L});
+ public static final BitSet FOLLOW_EOF_in_r_file63 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_LG_in_r_nsImport73 = new BitSet(new long[]{0x0000000002000000L});
+ public static final BitSet FOLLOW_25_in_r_nsImport75 = new BitSet(new long[]{0x0000000000002000L,0x00000000000000E0L});
+ public static final BitSet FOLLOW_r_type_in_r_nsImport77 = new BitSet(new long[]{0x0000000000000020L});
+ public static final BitSet FOLLOW_RG_in_r_nsImport79 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_LG_in_r_nsImport84 = new BitSet(new long[]{0x0000000004000000L});
+ public static final BitSet FOLLOW_26_in_r_nsImport86 = new BitSet(new long[]{0x0000000000002000L,0x00000000000000E0L});
+ public static final BitSet FOLLOW_r_type_in_r_nsImport88 = new BitSet(new long[]{0x0000000000000020L});
+ public static final BitSet FOLLOW_RG_in_r_nsImport90 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_27_in_r_nsImport95 = new BitSet(new long[]{0x0000000000002000L,0x00000000000000E0L});
+ public static final BitSet FOLLOW_r_type_in_r_nsImport97 = new BitSet(new long[]{0x0000000010000000L});
+ public static final BitSet FOLLOW_28_in_r_nsImport100 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_29_in_r_nsImport106 = new BitSet(new long[]{0x0000000000002000L,0x00000000000000E0L});
+ public static final BitSet FOLLOW_r_type_in_r_nsImport108 = new BitSet(new long[]{0x0000000050000000L});
+ public static final BitSet FOLLOW_30_in_r_nsImport111 = new BitSet(new long[]{0x0000000010000000L});
+ public static final BitSet FOLLOW_28_in_r_nsImport115 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_r_check_in_r_abstractDeclaration126 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_r_around_in_r_abstractDeclaration131 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_r_extension_in_r_abstractDeclaration136 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_r_definition_in_r_abstractDeclaration141 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_r_definitionAround_in_r_abstractDeclaration146 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_LG_in_r_definition158 = new BitSet(new long[]{0x0000000000000040L});
+ public static final BitSet FOLLOW_DEFINE_in_r_definition160 = new BitSet(new long[]{0x0000000000002000L});
+ public static final BitSet FOLLOW_r_identifier_in_r_definition162 = new BitSet(new long[]{0x0000000880000000L});
+ public static final BitSet FOLLOW_31_in_r_definition165 = new BitSet(new long[]{0x0000000600002000L,0x00000000000000E0L});
+ public static final BitSet FOLLOW_r_declaredParameterList_in_r_definition168 = new BitSet(new long[]{0x0000000700000000L});
+ public static final BitSet FOLLOW_32_in_r_definition171 = new BitSet(new long[]{0x0000000200000000L});
+ public static final BitSet FOLLOW_33_in_r_definition174 = new BitSet(new long[]{0x0000000400000000L});
+ public static final BitSet FOLLOW_33_in_r_definition180 = new BitSet(new long[]{0x0000000400000000L});
+ public static final BitSet FOLLOW_34_in_r_definition184 = new BitSet(new long[]{0x0000000800000000L});
+ public static final BitSet FOLLOW_35_in_r_definition188 = new BitSet(new long[]{0x0000000000002000L,0x00000000000000E0L});
+ public static final BitSet FOLLOW_r_type_in_r_definition190 = new BitSet(new long[]{0x0000001000000400L});
+ public static final BitSet FOLLOW_r_sequence_in_r_definition193 = new BitSet(new long[]{0x0000000000000080L});
+ public static final BitSet FOLLOW_ENDDEFINE_in_r_definition196 = new BitSet(new long[]{0x0000000000000020L});
+ public static final BitSet FOLLOW_RG_in_r_definition198 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_LG_in_r_definitionAround210 = new BitSet(new long[]{0x0000000000000100L});
+ public static final BitSet FOLLOW_AROUND_in_r_definitionAround212 = new BitSet(new long[]{0x0000000200002000L});
+ public static final BitSet FOLLOW_r_pointcut_in_r_definitionAround214 = new BitSet(new long[]{0x0000000880000000L});
+ public static final BitSet FOLLOW_31_in_r_definitionAround217 = new BitSet(new long[]{0x0000000600002000L,0x00000000000000E0L});
+ public static final BitSet FOLLOW_r_declaredParameterList_in_r_definitionAround220 = new BitSet(new long[]{0x0000000700000000L});
+ public static final BitSet FOLLOW_32_in_r_definitionAround223 = new BitSet(new long[]{0x0000000200000000L});
+ public static final BitSet FOLLOW_33_in_r_definitionAround226 = new BitSet(new long[]{0x0000000400000000L});
+ public static final BitSet FOLLOW_33_in_r_definitionAround232 = new BitSet(new long[]{0x0000000400000000L});
+ public static final BitSet FOLLOW_34_in_r_definitionAround236 = new BitSet(new long[]{0x0000000800000000L});
+ public static final BitSet FOLLOW_35_in_r_definitionAround240 = new BitSet(new long[]{0x0000000000002000L,0x00000000000000E0L});
+ public static final BitSet FOLLOW_r_type_in_r_definitionAround242 = new BitSet(new long[]{0x0000001000000400L});
+ public static final BitSet FOLLOW_r_sequence_in_r_definitionAround245 = new BitSet(new long[]{0x0000000000000200L});
+ public static final BitSet FOLLOW_ENDAROUND_in_r_definitionAround248 = new BitSet(new long[]{0x0000000000000020L});
+ public static final BitSet FOLLOW_RG_in_r_definitionAround250 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_r_textSequence_in_r_sequence262 = new BitSet(new long[]{0x081442F080003802L,0x00003FFEE00041E0L});
+ public static final BitSet FOLLOW_r_statement_in_r_sequence268 = new BitSet(new long[]{0x0000001000000400L});
+ public static final BitSet FOLLOW_r_textSequence_in_r_sequence274 = new BitSet(new long[]{0x081442F080003802L,0x00003FFEE00041E0L});
+ public static final BitSet FOLLOW_r_simpleStatement_in_r_statement289 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_r_fileStatement_in_r_statement294 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_r_foreachStatement_in_r_statement299 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_r_ifStatement_in_r_statement304 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_r_letStatement_in_r_statement309 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_r_protectStatement_in_r_statement314 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_r_text_in_r_textSequence325 = new BitSet(new long[]{0x0000001000000402L});
+ public static final BitSet FOLLOW_r_text_in_r_textSequence328 = new BitSet(new long[]{0x0000001000000402L});
+ public static final BitSet FOLLOW_36_in_r_text340 = new BitSet(new long[]{0x0000000000000400L});
+ public static final BitSet FOLLOW_TEXT_in_r_text343 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_r_errorStatement_in_r_simpleStatement354 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_r_expandStatement_in_r_simpleStatement358 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_r_expressionStmt_in_r_simpleStatement362 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_37_in_r_errorStatement373 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
+ public static final BitSet FOLLOW_r_expression_in_r_errorStatement375 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_38_in_r_expandStatement386 = new BitSet(new long[]{0x0000000000002000L});
+ public static final BitSet FOLLOW_r_simpleType_in_r_expandStatement388 = new BitSet(new long[]{0x0000008880000002L});
+ public static final BitSet FOLLOW_31_in_r_expandStatement391 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
+ public static final BitSet FOLLOW_r_parameterList_in_r_expandStatement393 = new BitSet(new long[]{0x0000000400000000L});
+ public static final BitSet FOLLOW_34_in_r_expandStatement395 = new BitSet(new long[]{0x0000008800000002L});
+ public static final BitSet FOLLOW_35_in_r_expandStatement401 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
+ public static final BitSet FOLLOW_r_expression_in_r_expandStatement403 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_39_in_r_expandStatement411 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
+ public static final BitSet FOLLOW_r_expression_in_r_expandStatement412 = new BitSet(new long[]{0x0000010000000002L});
+ public static final BitSet FOLLOW_40_in_r_expandStatement415 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
+ public static final BitSet FOLLOW_r_expression_in_r_expandStatement417 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_r_expression_in_r_expressionStmt433 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_41_in_r_fileStatement443 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
+ public static final BitSet FOLLOW_r_expression_in_r_fileStatement445 = new BitSet(new long[]{0x0000001000002400L});
+ public static final BitSet FOLLOW_r_identifier_in_r_fileStatement448 = new BitSet(new long[]{0x0000001000000400L});
+ public static final BitSet FOLLOW_r_sequence_in_r_fileStatement454 = new BitSet(new long[]{0x0000040000000000L});
+ public static final BitSet FOLLOW_42_in_r_fileStatement458 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_39_in_r_foreachStatement470 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
+ public static final BitSet FOLLOW_r_expression_in_r_foreachStatement472 = new BitSet(new long[]{0x0000080000000000L});
+ public static final BitSet FOLLOW_43_in_r_foreachStatement474 = new BitSet(new long[]{0x0000000000002000L});
+ public static final BitSet FOLLOW_r_identifier_in_r_foreachStatement476 = new BitSet(new long[]{0x0000111000000400L});
+ public static final BitSet FOLLOW_44_in_r_foreachStatement479 = new BitSet(new long[]{0x0000000000002000L});
+ public static final BitSet FOLLOW_r_identifier_in_r_foreachStatement481 = new BitSet(new long[]{0x0000011000000400L});
+ public static final BitSet FOLLOW_40_in_r_foreachStatement486 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
+ public static final BitSet FOLLOW_r_expression_in_r_foreachStatement488 = new BitSet(new long[]{0x0000001000000400L});
+ public static final BitSet FOLLOW_r_sequence_in_r_foreachStatement496 = new BitSet(new long[]{0x0000200000000000L});
+ public static final BitSet FOLLOW_45_in_r_foreachStatement501 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_46_in_r_ifStatement516 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
+ public static final BitSet FOLLOW_r_expression_in_r_ifStatement518 = new BitSet(new long[]{0x0000001000000400L});
+ public static final BitSet FOLLOW_r_sequence_in_r_ifStatement522 = new BitSet(new long[]{0x0003800000000000L});
+ public static final BitSet FOLLOW_r_elseIfStatement_in_r_ifStatement527 = new BitSet(new long[]{0x0003800000000000L});
+ public static final BitSet FOLLOW_r_elseStatement_in_r_ifStatement532 = new BitSet(new long[]{0x0000800000000000L});
+ public static final BitSet FOLLOW_47_in_r_ifStatement537 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_48_in_r_elseIfStatement547 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
+ public static final BitSet FOLLOW_r_expression_in_r_elseIfStatement549 = new BitSet(new long[]{0x0000001000000400L});
+ public static final BitSet FOLLOW_r_sequence_in_r_elseIfStatement553 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_49_in_r_elseStatement565 = new BitSet(new long[]{0x0000001000000400L});
+ public static final BitSet FOLLOW_r_sequence_in_r_elseStatement569 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_50_in_r_letStatement581 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
+ public static final BitSet FOLLOW_r_expression_in_r_letStatement583 = new BitSet(new long[]{0x0000080000000000L});
+ public static final BitSet FOLLOW_43_in_r_letStatement585 = new BitSet(new long[]{0x0000000000002000L});
+ public static final BitSet FOLLOW_r_identifier_in_r_letStatement587 = new BitSet(new long[]{0x0000001000000400L});
+ public static final BitSet FOLLOW_r_sequence_in_r_letStatement593 = new BitSet(new long[]{0x0008000000000000L});
+ public static final BitSet FOLLOW_51_in_r_letStatement598 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_52_in_r_protectStatement609 = new BitSet(new long[]{0x0020000000000000L});
+ public static final BitSet FOLLOW_53_in_r_protectStatement614 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
+ public static final BitSet FOLLOW_r_expression_in_r_protectStatement616 = new BitSet(new long[]{0x0040000000000000L});
+ public static final BitSet FOLLOW_54_in_r_protectStatement621 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
+ public static final BitSet FOLLOW_r_expression_in_r_protectStatement623 = new BitSet(new long[]{0x0080000000000000L});
+ public static final BitSet FOLLOW_55_in_r_protectStatement636 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
+ public static final BitSet FOLLOW_r_expression_in_r_protectStatement638 = new BitSet(new long[]{0x0100001000000400L});
+ public static final BitSet FOLLOW_56_in_r_protectStatement640 = new BitSet(new long[]{0x0000001000000400L});
+ public static final BitSet FOLLOW_r_sequence_in_r_protectStatement646 = new BitSet(new long[]{0x0200000000000000L});
+ public static final BitSet FOLLOW_57_in_r_protectStatement650 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_58_in_r_check662 = new BitSet(new long[]{0x0000000000002000L,0x00000000000000E0L});
+ public static final BitSet FOLLOW_r_type_in_r_check664 = new BitSet(new long[]{0x1800002000000000L});
+ public static final BitSet FOLLOW_59_in_r_check667 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
+ public static final BitSet FOLLOW_r_expression_in_r_check669 = new BitSet(new long[]{0x1000002000000000L});
+ public static final BitSet FOLLOW_set_in_r_check673 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
+ public static final BitSet FOLLOW_r_expression_in_r_check679 = new BitSet(new long[]{0x2000000000000000L});
+ public static final BitSet FOLLOW_61_in_r_check681 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
+ public static final BitSet FOLLOW_r_expression_in_r_check685 = new BitSet(new long[]{0x0000000010000000L});
+ public static final BitSet FOLLOW_28_in_r_check687 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_62_in_r_around702 = new BitSet(new long[]{0x0000000200002000L});
+ public static final BitSet FOLLOW_r_pointcut_in_r_around704 = new BitSet(new long[]{0x0000000080000000L});
+ public static final BitSet FOLLOW_31_in_r_around706 = new BitSet(new long[]{0x0000000600002000L,0x00000000000000E0L});
+ public static final BitSet FOLLOW_r_declaredParameterList_in_r_around709 = new BitSet(new long[]{0x0000000700000000L});
+ public static final BitSet FOLLOW_32_in_r_around712 = new BitSet(new long[]{0x0000000200000000L});
+ public static final BitSet FOLLOW_33_in_r_around715 = new BitSet(new long[]{0x0000000400000000L});
+ public static final BitSet FOLLOW_33_in_r_around721 = new BitSet(new long[]{0x0000000400000000L});
+ public static final BitSet FOLLOW_34_in_r_around725 = new BitSet(new long[]{0x2000000000000000L});
+ public static final BitSet FOLLOW_61_in_r_around727 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
+ public static final BitSet FOLLOW_r_expression_in_r_around734 = new BitSet(new long[]{0x0000000010000000L});
+ public static final BitSet FOLLOW_28_in_r_around736 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_33_in_r_pointcut753 = new BitSet(new long[]{0x8000000200002002L});
+ public static final BitSet FOLLOW_r_identifier_in_r_pointcut759 = new BitSet(new long[]{0x8000000200002002L});
+ public static final BitSet FOLLOW_33_in_r_pointcut767 = new BitSet(new long[]{0x8000000200002002L});
+ public static final BitSet FOLLOW_r_identifier_in_r_pointcut775 = new BitSet(new long[]{0x8000000200002002L});
+ public static final BitSet FOLLOW_63_in_r_pointcut783 = new BitSet(new long[]{0x8000000200002002L});
+ public static final BitSet FOLLOW_set_in_r_extension797 = new BitSet(new long[]{0x0000000000002000L,0x00000000000000E7L});
+ public static final BitSet FOLLOW_r_type_in_r_extension806 = new BitSet(new long[]{0x0000000000002000L});
+ public static final BitSet FOLLOW_r_identifier_in_r_extension809 = new BitSet(new long[]{0x0000000080002000L});
+ public static final BitSet FOLLOW_r_identifier_in_r_extension811 = new BitSet(new long[]{0x0000000080000000L});
+ public static final BitSet FOLLOW_31_in_r_extension814 = new BitSet(new long[]{0x0000000400002000L,0x00000000000000E0L});
+ public static final BitSet FOLLOW_r_declaredParameterList_in_r_extension816 = new BitSet(new long[]{0x0000000400000000L});
+ public static final BitSet FOLLOW_34_in_r_extension819 = new BitSet(new long[]{0x2000000000000000L});
+ public static final BitSet FOLLOW_61_in_r_extension821 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E8L});
+ public static final BitSet FOLLOW_67_in_r_extension826 = new BitSet(new long[]{0x0000000000002000L});
+ public static final BitSet FOLLOW_r_javaType_in_r_extension828 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000010L});
+ public static final BitSet FOLLOW_68_in_r_extension830 = new BitSet(new long[]{0x0000000000002000L});
+ public static final BitSet FOLLOW_r_identifier_in_r_extension832 = new BitSet(new long[]{0x0000000080000000L});
+ public static final BitSet FOLLOW_31_in_r_extension834 = new BitSet(new long[]{0x0000000400002000L});
+ public static final BitSet FOLLOW_r_javaType_in_r_extension836 = new BitSet(new long[]{0x0000000500000000L});
+ public static final BitSet FOLLOW_32_in_r_extension839 = new BitSet(new long[]{0x0000000000002000L});
+ public static final BitSet FOLLOW_r_javaType_in_r_extension841 = new BitSet(new long[]{0x0000000500000000L});
+ public static final BitSet FOLLOW_34_in_r_extension848 = new BitSet(new long[]{0x0000000010000000L});
+ public static final BitSet FOLLOW_r_expression_in_r_extension855 = new BitSet(new long[]{0x0000000010000000L});
+ public static final BitSet FOLLOW_28_in_r_extension858 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_r_identifier_in_r_javaType869 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000010L});
+ public static final BitSet FOLLOW_68_in_r_javaType875 = new BitSet(new long[]{0x0000000000002000L,0x00000000000000E0L});
+ public static final BitSet FOLLOW_r_identifier_in_r_javaType878 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000010L});
+ public static final BitSet FOLLOW_69_in_r_javaType881 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000010L});
+ public static final BitSet FOLLOW_70_in_r_javaType887 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000010L});
+ public static final BitSet FOLLOW_71_in_r_javaType890 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000010L});
+ public static final BitSet FOLLOW_r_letExpression_in_r_expression906 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_72_in_r_letExpression920 = new BitSet(new long[]{0x0000000000002000L});
+ public static final BitSet FOLLOW_r_identifier_in_r_letExpression922 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000200L});
+ public static final BitSet FOLLOW_73_in_r_letExpression924 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00040E0L});
+ public static final BitSet FOLLOW_r_castedExpression_in_r_letExpression926 = new BitSet(new long[]{0x2000000000000000L});
+ public static final BitSet FOLLOW_61_in_r_letExpression928 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
+ public static final BitSet FOLLOW_r_expression_in_r_letExpression930 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_r_castedExpression_in_r_letExpression936 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_31_in_r_castedExpression962 = new BitSet(new long[]{0x0000000000002000L,0x00000000000000E0L});
+ public static final BitSet FOLLOW_r_type_in_r_castedExpression964 = new BitSet(new long[]{0x0000000400000000L});
+ public static final BitSet FOLLOW_34_in_r_castedExpression966 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00040E0L});
+ public static final BitSet FOLLOW_r_chainExpression_in_r_castedExpression968 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_r_chainExpression_in_r_castedExpression974 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_r_ifExpression_in_r_chainExpression986 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000400L});
+ public static final BitSet FOLLOW_74_in_r_chainExpression991 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00040E0L});
+ public static final BitSet FOLLOW_r_ifExpression_in_r_chainExpression993 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000400L});
+ public static final BitSet FOLLOW_r_switchExpression_in_r_ifExpression1007 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000800L});
+ public static final BitSet FOLLOW_75_in_r_ifExpression1010 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
+ public static final BitSet FOLLOW_r_expression_in_r_ifExpression1012 = new BitSet(new long[]{0x2000000000000000L});
+ public static final BitSet FOLLOW_61_in_r_ifExpression1014 = new BitSet(new long[]{0x0000001080003800L,0x00003FFEE00040E0L});
+ public static final BitSet FOLLOW_r_switchExpression_in_r_ifExpression1016 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_59_in_r_ifExpression1023 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
+ public static final BitSet FOLLOW_r_expression_in_r_ifExpression1025 = new BitSet(new long[]{0x0000000000000000L,0x0000000000001000L});
+ public static final BitSet FOLLOW_76_in_r_ifExpression1027 = new BitSet(new long[]{0x0000001080003800L,0x00003FFEE00040E0L});
+ public static final BitSet FOLLOW_r_switchExpression_in_r_ifExpression1029 = new BitSet(new long[]{0x0000000000000002L,0x0000000000002000L});
+ public static final BitSet FOLLOW_77_in_r_ifExpression1032 = new BitSet(new long[]{0x0000001080003800L,0x00003FFEE00040E0L});
+ public static final BitSet FOLLOW_r_switchExpression_in_r_ifExpression1034 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_78_in_r_switchExpression1050 = new BitSet(new long[]{0x0000000080000000L,0x0000000000028000L});
+ public static final BitSet FOLLOW_31_in_r_switchExpression1053 = new BitSet(new long[]{0x0000001080003800L,0x00003FFEE00000E0L});
+ public static final BitSet FOLLOW_r_orExpression_in_r_switchExpression1055 = new BitSet(new long[]{0x0000000400000000L});
+ public static final BitSet FOLLOW_34_in_r_switchExpression1057 = new BitSet(new long[]{0x0000000000000000L,0x0000000000028000L});
+ public static final BitSet FOLLOW_r_casePart_in_r_switchExpression1062 = new BitSet(new long[]{0x0000000000000000L,0x0000000000028000L});
+ public static final BitSet FOLLOW_79_in_r_switchExpression1068 = new BitSet(new long[]{0x2000000000000000L});
+ public static final BitSet FOLLOW_61_in_r_switchExpression1070 = new BitSet(new long[]{0x0000001080003800L,0x00003FFEE00000E0L});
+ public static final BitSet FOLLOW_r_orExpression_in_r_switchExpression1072 = new BitSet(new long[]{0x0000000000000000L,0x0000000000010000L});
+ public static final BitSet FOLLOW_80_in_r_switchExpression1077 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_r_orExpression_in_r_switchExpression1082 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_81_in_r_casePart1093 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
+ public static final BitSet FOLLOW_r_expression_in_r_casePart1095 = new BitSet(new long[]{0x2000000000000000L});
+ public static final BitSet FOLLOW_61_in_r_casePart1097 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
+ public static final BitSet FOLLOW_r_expression_in_r_casePart1099 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_r_andExpression_in_r_orExpression1111 = new BitSet(new long[]{0x0000000000000002L,0x0000000000040000L});
+ public static final BitSet FOLLOW_82_in_r_orExpression1115 = new BitSet(new long[]{0x0000001080003800L,0x00003FFEE00000E0L});
+ public static final BitSet FOLLOW_r_andExpression_in_r_orExpression1117 = new BitSet(new long[]{0x0000000000000002L,0x0000000000040000L});
+ public static final BitSet FOLLOW_r_impliesExpression_in_r_andExpression1132 = new BitSet(new long[]{0x0000000000000002L,0x0000000000080000L});
+ public static final BitSet FOLLOW_83_in_r_andExpression1136 = new BitSet(new long[]{0x0000001080003800L,0x00003FFEE00000E0L});
+ public static final BitSet FOLLOW_r_impliesExpression_in_r_andExpression1138 = new BitSet(new long[]{0x0000000000000002L,0x0000000000080000L});
+ public static final BitSet FOLLOW_r_relationalExpression_in_r_impliesExpression1153 = new BitSet(new long[]{0x0000000000000002L,0x0000000000100000L});
+ public static final BitSet FOLLOW_84_in_r_impliesExpression1157 = new BitSet(new long[]{0x0000001080003800L,0x00003FFEE00000E0L});
+ public static final BitSet FOLLOW_r_relationalExpression_in_r_impliesExpression1159 = new BitSet(new long[]{0x0000000000000002L,0x0000000000100000L});
+ public static final BitSet FOLLOW_r_additiveExpression_in_r_relationalExpression1175 = new BitSet(new long[]{0x0000000000000002L,0x0000000007E00000L});
+ public static final BitSet FOLLOW_set_in_r_relationalExpression1180 = new BitSet(new long[]{0x0000001080003800L,0x00003FFEE00000E0L});
+ public static final BitSet FOLLOW_r_additiveExpression_in_r_relationalExpression1204 = new BitSet(new long[]{0x0000000000000002L,0x0000000007E00000L});
+ public static final BitSet FOLLOW_r_multiplicativeExpression_in_r_additiveExpression1217 = new BitSet(new long[]{0x0000001000000002L,0x0000000008000000L});
+ public static final BitSet FOLLOW_set_in_r_additiveExpression1224 = new BitSet(new long[]{0x0000001080003800L,0x00003FFEE00000E0L});
+ public static final BitSet FOLLOW_r_multiplicativeExpression_in_r_additiveExpression1231 = new BitSet(new long[]{0x0000001000000002L,0x0000000008000000L});
+ public static final BitSet FOLLOW_r_unaryExpression_in_r_multiplicativeExpression1244 = new BitSet(new long[]{0x0000000200000002L,0x0000000010000000L});
+ public static final BitSet FOLLOW_set_in_r_multiplicativeExpression1249 = new BitSet(new long[]{0x0000001080003800L,0x00003FFEE00000E0L});
+ public static final BitSet FOLLOW_r_unaryExpression_in_r_multiplicativeExpression1257 = new BitSet(new long[]{0x0000000200000002L,0x0000000010000000L});
+ public static final BitSet FOLLOW_r_infixExpression_in_r_unaryExpression1271 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_93_in_r_unaryExpression1276 = new BitSet(new long[]{0x0000000080003800L,0x00003FFEC00000E0L});
+ public static final BitSet FOLLOW_r_infixExpression_in_r_unaryExpression1278 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_36_in_r_unaryExpression1283 = new BitSet(new long[]{0x0000000080003800L,0x00003FFEC00000E0L});
+ public static final BitSet FOLLOW_r_infixExpression_in_r_unaryExpression1285 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_r_primaryExpression_in_r_infixExpression1296 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000010L});
+ public static final BitSet FOLLOW_68_in_r_infixExpression1301 = new BitSet(new long[]{0x0000000000002000L,0x00003FE0000000E0L});
+ public static final BitSet FOLLOW_r_featureCall_in_r_infixExpression1303 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000010L});
+ public static final BitSet FOLLOW_StringLiteral_in_r_primaryExpression1321 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_r_featureCall_in_r_primaryExpression1329 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_r_booleanLiteral_in_r_primaryExpression1336 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_r_numberLiteral_in_r_primaryExpression1343 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_r_nullLiteral_in_r_primaryExpression1350 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_r_listLiteral_in_r_primaryExpression1357 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_r_constructorCall_in_r_primaryExpression1364 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_r_globalVarExpression_in_r_primaryExpression1371 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_r_paranthesizedExpression_in_r_primaryExpression1378 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_31_in_r_paranthesizedExpression1392 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
+ public static final BitSet FOLLOW_r_expression_in_r_paranthesizedExpression1394 = new BitSet(new long[]{0x0000000400000000L});
+ public static final BitSet FOLLOW_34_in_r_paranthesizedExpression1396 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_94_in_r_globalVarExpression1411 = new BitSet(new long[]{0x0000000000002000L});
+ public static final BitSet FOLLOW_r_identifier_in_r_globalVarExpression1413 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_r_identifier_in_r_featureCall1427 = new BitSet(new long[]{0x0000000080000000L});
+ public static final BitSet FOLLOW_31_in_r_featureCall1429 = new BitSet(new long[]{0x0800001480003800L,0x00003FFEE00041E0L});
+ public static final BitSet FOLLOW_r_parameterList_in_r_featureCall1432 = new BitSet(new long[]{0x0000000400000000L});
+ public static final BitSet FOLLOW_34_in_r_featureCall1436 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_r_type_in_r_featureCall1443 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_r_collectionExpression_in_r_featureCall1451 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_95_in_r_listLiteral1463 = new BitSet(new long[]{0x0800001080003800L,0x00003FFFE00041E0L});
+ public static final BitSet FOLLOW_r_expression_in_r_listLiteral1465 = new BitSet(new long[]{0x0000000100000000L,0x0000000100000000L});
+ public static final BitSet FOLLOW_32_in_r_listLiteral1468 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
+ public static final BitSet FOLLOW_r_expression_in_r_listLiteral1470 = new BitSet(new long[]{0x0000000100000000L,0x0000000100000000L});
+ public static final BitSet FOLLOW_96_in_r_listLiteral1475 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_97_in_r_constructorCall1486 = new BitSet(new long[]{0x0000000000002000L});
+ public static final BitSet FOLLOW_r_simpleType_in_r_constructorCall1488 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_set_in_r_booleanLiteral0 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_100_in_r_nullLiteral1506 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_IntLiteral_in_r_numberLiteral1519 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_IntLiteral_in_r_numberLiteral1525 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000010L});
- public static final BitSet FOLLOW_68_in_r_numberLiteral1527 = new BitSet(new long[]{0x0000000000001000L});
- public static final BitSet FOLLOW_IntLiteral_in_r_numberLiteral1529 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_101_in_r_collectionExpression1542 = new BitSet(new long[]{0x0000000080000000L});
- public static final BitSet FOLLOW_31_in_r_collectionExpression1546 = new BitSet(new long[]{0x0000000000002000L,0x00000000000000E0L});
- public static final BitSet FOLLOW_r_type_in_r_collectionExpression1548 = new BitSet(new long[]{0x0000000400000000L});
- public static final BitSet FOLLOW_34_in_r_collectionExpression1550 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_set_in_r_collectionExpression1559 = new BitSet(new long[]{0x0000000080000000L});
- public static final BitSet FOLLOW_31_in_r_collectionExpression1609 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
- public static final BitSet FOLLOW_r_identifier_in_r_collectionExpression1612 = new BitSet(new long[]{0x0000000000000000L,0x0000400000000000L});
- public static final BitSet FOLLOW_110_in_r_collectionExpression1614 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
- public static final BitSet FOLLOW_r_expression_in_r_collectionExpression1618 = new BitSet(new long[]{0x0000000400000000L});
- public static final BitSet FOLLOW_34_in_r_collectionExpression1620 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_r_declaredParameter_in_r_declaredParameterList1637 = new BitSet(new long[]{0x0000000100000002L});
- public static final BitSet FOLLOW_32_in_r_declaredParameterList1640 = new BitSet(new long[]{0x0000000000002000L,0x00000000000000E0L});
- public static final BitSet FOLLOW_r_declaredParameter_in_r_declaredParameterList1642 = new BitSet(new long[]{0x0000000100000002L});
- public static final BitSet FOLLOW_r_type_in_r_declaredParameter1655 = new BitSet(new long[]{0x0000000000002000L});
- public static final BitSet FOLLOW_r_identifier_in_r_declaredParameter1657 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_r_expression_in_r_parameterList1672 = new BitSet(new long[]{0x0000000100000002L});
- public static final BitSet FOLLOW_32_in_r_parameterList1676 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
- public static final BitSet FOLLOW_r_expression_in_r_parameterList1678 = new BitSet(new long[]{0x0000000100000002L});
- public static final BitSet FOLLOW_r_collectionType_in_r_type1695 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_r_simpleType_in_r_type1700 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_set_in_r_collectionType1715 = new BitSet(new long[]{0x0000000000000002L,0x0000000080000000L});
- public static final BitSet FOLLOW_95_in_r_collectionType1733 = new BitSet(new long[]{0x0000000000002000L});
- public static final BitSet FOLLOW_r_simpleType_in_r_collectionType1735 = new BitSet(new long[]{0x0000000000000000L,0x0000000100000000L});
- public static final BitSet FOLLOW_96_in_r_collectionType1737 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_r_identifier_in_r_simpleType1750 = new BitSet(new long[]{0x8000000000000002L});
- public static final BitSet FOLLOW_63_in_r_simpleType1755 = new BitSet(new long[]{0x0000000000002000L});
- public static final BitSet FOLLOW_r_identifier_in_r_simpleType1757 = new BitSet(new long[]{0x8000000000000002L});
- public static final BitSet FOLLOW_Identifier_in_r_identifier1773 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_31_in_synpred1943 = new BitSet(new long[]{0x0000000000002000L,0x00000000000000E0L});
- public static final BitSet FOLLOW_r_type_in_synpred1945 = new BitSet(new long[]{0x0000000400000000L});
- public static final BitSet FOLLOW_34_in_synpred1947 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00040E0L});
- public static final BitSet FOLLOW_r_castedExpression_in_synpred1949 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_100_in_r_nullLiteral1514 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_IntLiteral_in_r_numberLiteral1527 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_IntLiteral_in_r_numberLiteral1533 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000010L});
+ public static final BitSet FOLLOW_68_in_r_numberLiteral1535 = new BitSet(new long[]{0x0000000000001000L});
+ public static final BitSet FOLLOW_IntLiteral_in_r_numberLiteral1537 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_101_in_r_collectionExpression1550 = new BitSet(new long[]{0x0000000080000000L});
+ public static final BitSet FOLLOW_31_in_r_collectionExpression1554 = new BitSet(new long[]{0x0000000000002000L,0x00000000000000E0L});
+ public static final BitSet FOLLOW_r_type_in_r_collectionExpression1556 = new BitSet(new long[]{0x0000000400000000L});
+ public static final BitSet FOLLOW_34_in_r_collectionExpression1558 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_set_in_r_collectionExpression1567 = new BitSet(new long[]{0x0000000080000000L});
+ public static final BitSet FOLLOW_31_in_r_collectionExpression1617 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
+ public static final BitSet FOLLOW_r_identifier_in_r_collectionExpression1620 = new BitSet(new long[]{0x0000000000000000L,0x0000400000000000L});
+ public static final BitSet FOLLOW_110_in_r_collectionExpression1622 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
+ public static final BitSet FOLLOW_r_expression_in_r_collectionExpression1626 = new BitSet(new long[]{0x0000000400000000L});
+ public static final BitSet FOLLOW_34_in_r_collectionExpression1628 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_r_declaredParameter_in_r_declaredParameterList1645 = new BitSet(new long[]{0x0000000100000002L});
+ public static final BitSet FOLLOW_32_in_r_declaredParameterList1648 = new BitSet(new long[]{0x0000000000002000L,0x00000000000000E0L});
+ public static final BitSet FOLLOW_r_declaredParameter_in_r_declaredParameterList1650 = new BitSet(new long[]{0x0000000100000002L});
+ public static final BitSet FOLLOW_r_type_in_r_declaredParameter1663 = new BitSet(new long[]{0x0000000000002000L});
+ public static final BitSet FOLLOW_r_identifier_in_r_declaredParameter1665 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_r_expression_in_r_parameterList1680 = new BitSet(new long[]{0x0000000100000002L});
+ public static final BitSet FOLLOW_32_in_r_parameterList1684 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00041E0L});
+ public static final BitSet FOLLOW_r_expression_in_r_parameterList1686 = new BitSet(new long[]{0x0000000100000002L});
+ public static final BitSet FOLLOW_r_collectionType_in_r_type1703 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_r_simpleType_in_r_type1708 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_set_in_r_collectionType1723 = new BitSet(new long[]{0x0000000000000002L,0x0000000080000000L});
+ public static final BitSet FOLLOW_95_in_r_collectionType1741 = new BitSet(new long[]{0x0000000000002000L});
+ public static final BitSet FOLLOW_r_simpleType_in_r_collectionType1743 = new BitSet(new long[]{0x0000000000000000L,0x0000000100000000L});
+ public static final BitSet FOLLOW_96_in_r_collectionType1745 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_r_identifier_in_r_simpleType1758 = new BitSet(new long[]{0x8000000000000002L});
+ public static final BitSet FOLLOW_63_in_r_simpleType1763 = new BitSet(new long[]{0x0000000000002000L});
+ public static final BitSet FOLLOW_r_identifier_in_r_simpleType1765 = new BitSet(new long[]{0x8000000000000002L});
+ public static final BitSet FOLLOW_Identifier_in_r_identifier1781 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_31_in_synpred1951 = new BitSet(new long[]{0x0000000000002000L,0x00000000000000E0L});
+ public static final BitSet FOLLOW_r_type_in_synpred1953 = new BitSet(new long[]{0x0000000400000000L});
+ public static final BitSet FOLLOW_34_in_synpred1955 = new BitSet(new long[]{0x0800001080003800L,0x00003FFEE00040E0L});
+ public static final BitSet FOLLOW_r_castedExpression_in_synpred1957 = new BitSet(new long[]{0x0000000000000002L});
} \ No newline at end of file
diff --git a/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/parser/Xpand3__.g b/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/parser/Xpand3__.g
index 95e3391..09cb09e 100644
--- a/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/parser/Xpand3__.g
+++ b/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/parser/Xpand3__.g
@@ -93,16 +93,16 @@ T108 : 'sortBy' ;
T109 : 'forAll' ;
T110 : '|' ;
-// $ANTLR src "src/org/eclipse/xpand3/parser/Xpand3.g" 349
+// $ANTLR src "src/org/eclipse/xpand3/parser/Xpand3.g" 351
IntLiteral : ('0' | '1'..'9' '0'..'9'*) ;
-// $ANTLR src "src/org/eclipse/xpand3/parser/Xpand3.g" 351
+// $ANTLR src "src/org/eclipse/xpand3/parser/Xpand3.g" 353
StringLiteral
: '"' ( EscapeSequence | ~('\\'|'"') )* '"'
| '\'' ( EscapeSequence | ~('\''|'\\') )* '\''
;
-// $ANTLR src "src/org/eclipse/xpand3/parser/Xpand3.g" 356
+// $ANTLR src "src/org/eclipse/xpand3/parser/Xpand3.g" 358
fragment
EscapeSequence
: '\\' ('b'|'t'|'n'|'f'|'r'|'\"'|'\''|'\\')
@@ -110,7 +110,7 @@ EscapeSequence
| OctalEscape
;
-// $ANTLR src "src/org/eclipse/xpand3/parser/Xpand3.g" 363
+// $ANTLR src "src/org/eclipse/xpand3/parser/Xpand3.g" 365
fragment
OctalEscape
: '\\' ('0'..'3') ('0'..'7') ('0'..'7')
@@ -118,33 +118,33 @@ OctalEscape
| '\\' ('0'..'7')
;
-// $ANTLR src "src/org/eclipse/xpand3/parser/Xpand3.g" 370
+// $ANTLR src "src/org/eclipse/xpand3/parser/Xpand3.g" 372
fragment
UnicodeEscape
: '\\' 'u' HexDigit HexDigit HexDigit HexDigit
;
-// $ANTLR src "src/org/eclipse/xpand3/parser/Xpand3.g" 374
+// $ANTLR src "src/org/eclipse/xpand3/parser/Xpand3.g" 376
fragment
HexDigit : ('0'..'9'|'a'..'f'|'A'..'F') ;
-// $ANTLR src "src/org/eclipse/xpand3/parser/Xpand3.g" 378
+// $ANTLR src "src/org/eclipse/xpand3/parser/Xpand3.g" 380
DEFINE : {xpandMode=true;} 'DEFINE';
-// $ANTLR src "src/org/eclipse/xpand3/parser/Xpand3.g" 379
+// $ANTLR src "src/org/eclipse/xpand3/parser/Xpand3.g" 381
ENDDEFINE
: 'ENDDEFINE' {xpandMode=false;};
-// $ANTLR src "src/org/eclipse/xpand3/parser/Xpand3.g" 382
+// $ANTLR src "src/org/eclipse/xpand3/parser/Xpand3.g" 384
AROUND : {xpandMode=true;}'AROUND';
-// $ANTLR src "src/org/eclipse/xpand3/parser/Xpand3.g" 383
+// $ANTLR src "src/org/eclipse/xpand3/parser/Xpand3.g" 385
ENDAROUND : 'ENDAROUND'{xpandMode=false;};
-// $ANTLR src "src/org/eclipse/xpand3/parser/Xpand3.g" 385
+// $ANTLR src "src/org/eclipse/xpand3/parser/Xpand3.g" 387
Identifier
: ('^')? Letter (Letter|JavaIDDigit)*
;
-// $ANTLR src "src/org/eclipse/xpand3/parser/Xpand3.g" 389
+// $ANTLR src "src/org/eclipse/xpand3/parser/Xpand3.g" 391
fragment
Letter
: '\u0024' |
@@ -162,7 +162,7 @@ Letter
'\uf900'..'\ufaff'
;
-// $ANTLR src "src/org/eclipse/xpand3/parser/Xpand3.g" 406
+// $ANTLR src "src/org/eclipse/xpand3/parser/Xpand3.g" 408
fragment
JavaIDDigit
: '\u0030'..'\u0039' |
@@ -182,40 +182,40 @@ JavaIDDigit
'\u1040'..'\u1049'
;
-// $ANTLR src "src/org/eclipse/xpand3/parser/Xpand3.g" 425
+// $ANTLR src "src/org/eclipse/xpand3/parser/Xpand3.g" 427
WS : (' '|'\r'|'\t'|'\u000C'|'\n') {$channel=HIDDEN;}
;
-// $ANTLR src "src/org/eclipse/xpand3/parser/Xpand3.g" 428
+// $ANTLR src "src/org/eclipse/xpand3/parser/Xpand3.g" 430
COMMENT
: '/*' ( options {greedy=false;} : . )* '*/' {$channel=HIDDEN;}
;
-// $ANTLR src "src/org/eclipse/xpand3/parser/Xpand3.g" 432
+// $ANTLR src "src/org/eclipse/xpand3/parser/Xpand3.g" 434
LINE_COMMENT
: '//' ~('\n'|'\r')* ('\r'? '\n'|EOF) {$channel=HIDDEN;}
;
-// $ANTLR src "src/org/eclipse/xpand3/parser/Xpand3.g" 437
+// $ANTLR src "src/org/eclipse/xpand3/parser/Xpand3.g" 439
REM_COMMENT_OUT
: {!xpandMode}?=> LG 'REM' RG ( options {greedy=false;} : . )* '\u00ABENDREM' RG {$channel=HIDDEN;}
;
-// $ANTLR src "src/org/eclipse/xpand3/parser/Xpand3.g" 441
+// $ANTLR src "src/org/eclipse/xpand3/parser/Xpand3.g" 443
REM_COMMENT :
{xpandMode}?=> 'REM' RG ( options {greedy=false;} : . )* '\u00ABENDREM' {$channel=HIDDEN;}
;
-// $ANTLR src "src/org/eclipse/xpand3/parser/Xpand3.g" 446
+// $ANTLR src "src/org/eclipse/xpand3/parser/Xpand3.g" 448
TEXT :
{xpandMode}?=> RG ~(LG)* (LG)?
;
-// $ANTLR src "src/org/eclipse/xpand3/parser/Xpand3.g" 450
+// $ANTLR src "src/org/eclipse/xpand3/parser/Xpand3.g" 452
LG
: '\u00AB';
-// $ANTLR src "src/org/eclipse/xpand3/parser/Xpand3.g" 452
+// $ANTLR src "src/org/eclipse/xpand3/parser/Xpand3.g" 454
RG
: '\u00BB';
diff --git a/tests/org.eclipse.xpand3.tests/src/org/eclipse/xpand3/parser/Xpand3NodeParserTest.java b/tests/org.eclipse.xpand3.tests/src/org/eclipse/xpand3/parser/Xpand3NodeParserTest.java
index 8762826..5d55e38 100644
--- a/tests/org.eclipse.xpand3.tests/src/org/eclipse/xpand3/parser/Xpand3NodeParserTest.java
+++ b/tests/org.eclipse.xpand3.tests/src/org/eclipse/xpand3/parser/Xpand3NodeParserTest.java
@@ -1,22 +1,31 @@
package org.eclipse.xpand3.parser;
+import static org.eclipse.xpand3.parser.SyntaxUtil.LG;
+import static org.eclipse.xpand3.parser.SyntaxUtil.RG;
import junit.framework.TestCase;
import org.antlr.runtime.ANTLRStringStream;
import org.antlr.runtime.CommonTokenStream;
import org.eclipse.xpand3.node.Node;
import org.eclipse.xpand3.node.NodeUtil;
-import static org.eclipse.xpand3.parser.SyntaxUtil.*;
+import org.eclipse.xpand3.parser.Xpand3Parser.r_file_return;
public class Xpand3NodeParserTest extends TestCase {
private Node parse(String s) throws Exception {
ANTLRStringStream stream = new ANTLRStringStream(s);
Xpand3Lexer lexer = new Xpand3Lexer(stream);
CommonTokenStream tokenStream = new CommonTokenStream(lexer);
- AbstractXpand3NodeParser xpand3NodeParser = new Xpand3NodeParser(
- tokenStream);
- xpand3NodeParser.r_file();
- return xpand3NodeParser.getRootNode();
+ Xpand3NodeParser parser = new Xpand3NodeParser(tokenStream);
+ r_file_return r_file = parser.r_file();
+ return parser.getRootNode();
+ }
+
+ public void testname() throws Exception {
+ Node x = parse(LG + "IMPORT foo" + RG
+ + "import foo; myFunction(String this) : doStuff('holla');"
+ + LG + "DEFINE foo FOR Entity" + RG + "bla" + LG + "ENDDEFINE"
+ + RG);
+ System.out.println(NodeUtil.toString(x));
}
public void testFoo() throws Exception {