[jboss-svn-commits] JBL Code SVN: r7944 - in labs/jbossrules/trunk/drools-compiler: . src/main/java/org/drools/lang src/main/java/org/drools/semantics/java src/main/resources/org/drools/lang src/test/java/org/drools/lang
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Wed Nov 29 14:29:50 EST 2006
Author: mark.proctor at jboss.com
Date: 2006-11-29 14:29:39 -0500 (Wed, 29 Nov 2006)
New Revision: 7944
Modified:
labs/jbossrules/trunk/drools-compiler/.classpath
labs/jbossrules/trunk/drools-compiler/.project
labs/jbossrules/trunk/drools-compiler/pom.xml
labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/lang/DRLLexer.java
labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/lang/DRLParser.java
labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/semantics/java/RuleBuilder.java
labs/jbossrules/trunk/drools-compiler/src/main/resources/org/drools/lang/DRL.g
labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/lang/RuleParserTest.java
Log:
JBRULES-339 'from'
-update as part of the JFDI integration
Modified: labs/jbossrules/trunk/drools-compiler/.classpath
===================================================================
--- labs/jbossrules/trunk/drools-compiler/.classpath 2006-11-29 19:26:26 UTC (rev 7943)
+++ labs/jbossrules/trunk/drools-compiler/.classpath 2006-11-29 19:29:39 UTC (rev 7944)
@@ -2,23 +2,28 @@
<classpath>
<classpathentry kind="src" path="src/main/java"/>
<classpathentry kind="src" path="src/main/resources"/>
- <classpathentry output="target/test-classes" kind="src" path="src/test/java"/>
- <classpathentry output="target/test-classes" kind="src" path="src/test/resources"/>
+ <classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
+ <classpathentry kind="src" output="target/test-classes" path="src/test/resources"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="var" path="M2_REPO/commons-io/commons-io/1.1/commons-io-1.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/antlr/antlr/3.0b5/antlr-3.0b5.jar"/>
+ <classpathentry kind="var" path="M2_REPO/xpp3/xpp3/1.1.3.4.O/xpp3-1.1.3.4.O.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/eclipse/jdt/core/3.2.0.666/core-3.2.0.666.jar"/>
+ <classpathentry kind="var" path="M2_REPO/antlr/stringtemplate/3.0/stringtemplate-3.0.jar"/>
+ <classpathentry kind="var" path="M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/commons-collections/commons-collections/3.1/commons-collections-3.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/apache/commons/commons-jci-janino/2.4.3/commons-jci-janino-2.4.3.jar"/>
+ <classpathentry kind="var" path="M2_REPO/xstream/xstream/1.1.3/xstream-1.1.3.jar"/>
+ <classpathentry kind="var" path="M2_REPO/jung/jung/1.7.2/jung-1.7.2.jar"/>
+ <classpathentry kind="var" path="M2_REPO/colt/colt/1.2.0/colt-1.2.0.jar"/>
+ <classpathentry kind="var" path="M2_REPO/xerces/xercesImpl/2.6.2/xercesImpl-2.6.2.jar"/>
<classpathentry kind="var" path="M2_REPO/commons-lang/commons-lang/2.1/commons-lang-2.1.jar"/>
- <classpathentry kind="var" path="M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/concurrent/concurrent/1.3.4/concurrent-1.3.4.jar"/>
<classpathentry kind="var" path="M2_REPO/janino/janino/2.4.3/janino-2.4.3.jar"/>
- <classpathentry kind="var" path="M2_REPO/org/apache/commons/commons-jci-janino/2.4.3/commons-jci-janino-2.4.3.jar"/>
- <classpathentry kind="var" path="M2_REPO/org/eclipse/jdt/core/3.2.0.666/core-3.2.0.666.jar"/>
- <classpathentry kind="var" path="M2_REPO/antlr/stringtemplate/2.3b6/stringtemplate-2.3b6.jar"/>
- <classpathentry kind="src" path="/drools-core"/>
- <classpathentry kind="var" path="M2_REPO/org/antlr/antlr/3.0ea8/antlr-3.0ea8.jar"/>
<classpathentry kind="var" path="M2_REPO/commons-logging/commons-logging-api/1.0.4/commons-logging-api-1.0.4.jar"/>
- <classpathentry kind="var" path="M2_REPO/xstream/xstream/1.1.3/xstream-1.1.3.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/apache/commons/commons-jci-eclipse/3.2.0.666/commons-jci-eclipse-3.2.0.666.jar"/>
<classpathentry kind="var" path="M2_REPO/org/apache/commons/commons-jci-core/1.0-406301/commons-jci-core-1.0-406301.jar"/>
- <classpathentry kind="var" path="M2_REPO/org/apache/commons/commons-jci-eclipse/3.2.0.666/commons-jci-eclipse-3.2.0.666.jar"/>
- <classpathentry kind="var" path="M2_REPO/commons-io/commons-io/1.1/commons-io-1.1.jar"/>
- <classpathentry kind="var" path="M2_REPO/xpp3/xpp3/1.1.3.4.O/xpp3-1.1.3.4.O.jar"/>
- <classpathentry kind="var" path="M2_REPO/antlr/antlr/2.7.6/antlr-2.7.6.jar"/>
+ <classpathentry kind="var" path="M2_REPO/antlr/antlr/2.7.7/antlr-2.7.7.jar"/>
+ <classpathentry combineaccessrules="false" kind="src" path="/drools-core"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
Modified: labs/jbossrules/trunk/drools-compiler/.project
===================================================================
--- labs/jbossrules/trunk/drools-compiler/.project 2006-11-29 19:26:26 UTC (rev 7943)
+++ labs/jbossrules/trunk/drools-compiler/.project 2006-11-29 19:29:39 UTC (rev 7944)
@@ -1,9 +1,7 @@
<projectDescription>
<name>drools-compiler</name>
<comment/>
- <projects>
- <project>drools-core</project>
- </projects>
+ <projects/>
<buildSpec>
<buildCommand>
<name>org.eclipse.wst.common.modulecore.ComponentStructuralBuilder</name>
Modified: labs/jbossrules/trunk/drools-compiler/pom.xml
===================================================================
--- labs/jbossrules/trunk/drools-compiler/pom.xml 2006-11-29 19:26:26 UTC (rev 7943)
+++ labs/jbossrules/trunk/drools-compiler/pom.xml 2006-11-29 19:29:39 UTC (rev 7944)
@@ -49,20 +49,14 @@
<dependency>
<groupId>antlr</groupId>
<artifactId>stringtemplate</artifactId>
- <version>2.3b6</version>
+ <version>3.0</version>
</dependency>
<dependency>
<groupId>org.antlr</groupId>
<artifactId>antlr</artifactId>
<version>3.0b5</version>
- </dependency>
-
- <dependency>
- <groupId>antlr</groupId>
- <artifactId>antlr</artifactId>
- <version>2.7.7</version>
- </dependency>
+ </dependency>
<dependency>
<groupId>org.eclipse.jdt</groupId>
Modified: labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/lang/DRLLexer.java
===================================================================
--- labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/lang/DRLLexer.java 2006-11-29 19:26:26 UTC (rev 7943)
+++ labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/lang/DRLLexer.java 2006-11-29 19:29:39 UTC (rev 7944)
@@ -1,8 +1,8 @@
-// $ANTLR 3.0b5 D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g 2006-11-29 09:26:14
+// $ANTLR 3.0b5 D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g 2006-11-29 15:56:08
+
+ package org.drools.lang;
- package org.drools.lang;
-
import org.antlr.runtime.*;
import java.util.Stack;
import java.util.List;
@@ -24,21 +24,20 @@
public static final int T45=45;
public static final int T34=34;
public static final int T64=64;
- public static final int T25=25;
public static final int T37=37;
public static final int EscapeSequence=13;
public static final int INT=7;
- public static final int T26=26;
- public static final int IGNORE=24;
+ public static final int IGNORE=26;
public static final int T32=32;
public static final int T51=51;
+ public static final int LEFT_SQUARE=22;
public static final int SH_STYLE_SINGLE_LINE_COMMENT=17;
public static final int T46=46;
public static final int T38=38;
public static final int T41=41;
public static final int T69=69;
public static final int T39=39;
- public static final int NO_PAREN=22;
+ public static final int NO_PAREN=24;
public static final int ID=4;
public static final int T62=62;
public static final int T44=44;
@@ -78,83 +77,21 @@
public static final int T60=60;
public static final int T31=31;
public static final int OctalEscape=16;
- public static final int MULTI_LINE_COMMENT=23;
+ public static final int MULTI_LINE_COMMENT=25;
public static final int T49=49;
public static final int T27=27;
public static final int T52=52;
public static final int RIGHT_PAREN=21;
public static final int T30=30;
+ public static final int RIGHT_SQUARE=23;
public static final int C_STYLE_SINGLE_LINE_COMMENT=18;
public DRLLexer() {;}
public DRLLexer(CharStream input) {
super(input);
ruleMemo = new HashMap[75+1];
}
- public String getGrammarFileName() { return "D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g"; }
+ public String getGrammarFileName() { return "D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g"; }
- // $ANTLR start T25
- public void mT25() throws RecognitionException {
- try {
- ruleNestingLevel++;
- int _type = T25;
- int _start = getCharIndex();
- int _line = getLine();
- int _charPosition = getCharPositionInLine();
- int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:6:7: ( ';' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:6:7: ';'
- {
- match(';'); if (failed) return ;
-
- }
-
-
- if ( backtracking==0 ) {
-
- if ( token==null && ruleNestingLevel==1 ) {
- emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
- }
-
-
- } }
- finally {
- ruleNestingLevel--;
- }
- }
- // $ANTLR end T25
-
- // $ANTLR start T26
- public void mT26() throws RecognitionException {
- try {
- ruleNestingLevel++;
- int _type = T26;
- int _start = getCharIndex();
- int _line = getLine();
- int _charPosition = getCharPositionInLine();
- int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:7:7: ( 'package' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:7:7: 'package'
- {
- match("package"); if (failed) return ;
-
-
- }
-
-
- if ( backtracking==0 ) {
-
- if ( token==null && ruleNestingLevel==1 ) {
- emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
- }
-
-
- } }
- finally {
- ruleNestingLevel--;
- }
- }
- // $ANTLR end T26
-
// $ANTLR start T27
public void mT27() throws RecognitionException {
try {
@@ -164,12 +101,11 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:8:7: ( 'import' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:8:7: 'import'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:6:7: ( ';' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:6:7: ';'
{
- match("import"); if (failed) return ;
+ match(';'); if (failed) return ;
-
}
@@ -196,10 +132,10 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:9:7: ( 'function' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:9:7: 'function'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:7:7: ( 'package' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:7:7: 'package'
{
- match("function"); if (failed) return ;
+ match("package"); if (failed) return ;
}
@@ -228,11 +164,12 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:10:7: ( '.' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:10:7: '.'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:8:7: ( 'import' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:8:7: 'import'
{
- match('.'); if (failed) return ;
+ match("import"); if (failed) return ;
+
}
@@ -259,10 +196,10 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:11:7: ( '.*' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:11:7: '.*'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:9:7: ( 'function' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:9:7: 'function'
{
- match(".*"); if (failed) return ;
+ match("function"); if (failed) return ;
}
@@ -291,12 +228,11 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:12:7: ( 'global' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:12:7: 'global'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:10:7: ( '.' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:10:7: '.'
{
- match("global"); if (failed) return ;
+ match('.'); if (failed) return ;
-
}
@@ -323,11 +259,12 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:13:7: ( ',' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:13:7: ','
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:11:7: ( '.*' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:11:7: '.*'
{
- match(','); if (failed) return ;
+ match(".*"); if (failed) return ;
+
}
@@ -354,10 +291,10 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:14:7: ( 'query' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:14:7: 'query'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:12:7: ( 'global' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:12:7: 'global'
{
- match("query"); if (failed) return ;
+ match("global"); if (failed) return ;
}
@@ -386,12 +323,11 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:15:7: ( 'end' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:15:7: 'end'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:13:7: ( ',' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:13:7: ','
{
- match("end"); if (failed) return ;
+ match(','); if (failed) return ;
-
}
@@ -418,10 +354,10 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:16:7: ( 'template' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:16:7: 'template'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:14:7: ( 'query' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:14:7: 'query'
{
- match("template"); if (failed) return ;
+ match("query"); if (failed) return ;
}
@@ -450,10 +386,10 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:17:7: ( 'rule' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:17:7: 'rule'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:15:7: ( 'end' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:15:7: 'end'
{
- match("rule"); if (failed) return ;
+ match("end"); if (failed) return ;
}
@@ -482,10 +418,10 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:18:7: ( 'when' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:18:7: 'when'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:16:7: ( 'template' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:16:7: 'template'
{
- match("when"); if (failed) return ;
+ match("template"); if (failed) return ;
}
@@ -514,11 +450,12 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:19:7: ( ':' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:19:7: ':'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:17:7: ( 'rule' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:17:7: 'rule'
{
- match(':'); if (failed) return ;
+ match("rule"); if (failed) return ;
+
}
@@ -545,10 +482,10 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:20:7: ( 'attributes' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:20:7: 'attributes'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:18:7: ( 'when' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:18:7: 'when'
{
- match("attributes"); if (failed) return ;
+ match("when"); if (failed) return ;
}
@@ -577,12 +514,11 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:21:7: ( 'salience' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:21:7: 'salience'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:19:7: ( ':' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:19:7: ':'
{
- match("salience"); if (failed) return ;
+ match(':'); if (failed) return ;
-
}
@@ -609,10 +545,10 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:22:7: ( 'no-loop' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:22:7: 'no-loop'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:20:7: ( 'attributes' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:20:7: 'attributes'
{
- match("no-loop"); if (failed) return ;
+ match("attributes"); if (failed) return ;
}
@@ -641,10 +577,10 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:23:7: ( 'auto-focus' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:23:7: 'auto-focus'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:21:7: ( 'salience' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:21:7: 'salience'
{
- match("auto-focus"); if (failed) return ;
+ match("salience"); if (failed) return ;
}
@@ -673,10 +609,10 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:24:7: ( 'activation-group' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:24:7: 'activation-group'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:22:7: ( 'no-loop' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:22:7: 'no-loop'
{
- match("activation-group"); if (failed) return ;
+ match("no-loop"); if (failed) return ;
}
@@ -705,10 +641,10 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:25:7: ( 'agenda-group' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:25:7: 'agenda-group'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:23:7: ( 'auto-focus' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:23:7: 'auto-focus'
{
- match("agenda-group"); if (failed) return ;
+ match("auto-focus"); if (failed) return ;
}
@@ -737,10 +673,10 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:26:7: ( 'duration' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:26:7: 'duration'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:24:7: ( 'activation-group' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:24:7: 'activation-group'
{
- match("duration"); if (failed) return ;
+ match("activation-group"); if (failed) return ;
}
@@ -769,10 +705,10 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:27:7: ( 'from' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:27:7: 'from'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:25:7: ( 'agenda-group' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:25:7: 'agenda-group'
{
- match("from"); if (failed) return ;
+ match("agenda-group"); if (failed) return ;
}
@@ -801,11 +737,12 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:28:7: ( '[' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:28:7: '['
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:26:7: ( 'duration' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:26:7: 'duration'
{
- match('['); if (failed) return ;
+ match("duration"); if (failed) return ;
+
}
@@ -832,11 +769,12 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:29:7: ( ']' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:29:7: ']'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:27:7: ( 'from' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:27:7: 'from'
{
- match(']'); if (failed) return ;
+ match("from"); if (failed) return ;
+
}
@@ -863,8 +801,8 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:30:7: ( 'accumulate' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:30:7: 'accumulate'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:28:7: ( 'accumulate' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:28:7: 'accumulate'
{
match("accumulate"); if (failed) return ;
@@ -895,8 +833,8 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:31:7: ( 'init' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:31:7: 'init'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:29:7: ( 'init' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:29:7: 'init'
{
match("init"); if (failed) return ;
@@ -927,8 +865,8 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:32:7: ( 'action' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:32:7: 'action'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:30:7: ( 'action' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:30:7: 'action'
{
match("action"); if (failed) return ;
@@ -959,8 +897,8 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:33:7: ( 'result' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:33:7: 'result'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:31:7: ( 'result' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:31:7: 'result'
{
match("result"); if (failed) return ;
@@ -991,8 +929,8 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:34:7: ( 'collect' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:34:7: 'collect'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:32:7: ( 'collect' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:32:7: 'collect'
{
match("collect"); if (failed) return ;
@@ -1023,8 +961,8 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:35:7: ( 'null' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:35:7: 'null'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:33:7: ( 'null' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:33:7: 'null'
{
match("null"); if (failed) return ;
@@ -1055,10 +993,10 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:36:7: ( '=>' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:36:7: '=>'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:34:7: ( 'or' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:34:7: 'or'
{
- match("=>"); if (failed) return ;
+ match("or"); if (failed) return ;
}
@@ -1087,11 +1025,12 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:37:7: ( '}' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:37:7: '}'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:35:7: ( '||' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:35:7: '||'
{
- match('}'); if (failed) return ;
+ match("||"); if (failed) return ;
+
}
@@ -1118,12 +1057,11 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:38:7: ( 'or' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:38:7: 'or'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:36:7: ( '&' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:36:7: '&'
{
- match("or"); if (failed) return ;
+ match('&'); if (failed) return ;
-
}
@@ -1150,12 +1088,11 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:39:7: ( '||' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:39:7: '||'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:37:7: ( '|' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:37:7: '|'
{
- match("||"); if (failed) return ;
+ match('|'); if (failed) return ;
-
}
@@ -1182,11 +1119,12 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:40:7: ( '&' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:40:7: '&'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:38:7: ( '==' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:38:7: '=='
{
- match('&'); if (failed) return ;
+ match("=="); if (failed) return ;
+
}
@@ -1213,10 +1151,10 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:41:7: ( '|' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:41:7: '|'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:39:7: ( '>' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:39:7: '>'
{
- match('|'); if (failed) return ;
+ match('>'); if (failed) return ;
}
@@ -1244,10 +1182,10 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:42:7: ( '==' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:42:7: '=='
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:40:7: ( '>=' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:40:7: '>='
{
- match("=="); if (failed) return ;
+ match(">="); if (failed) return ;
}
@@ -1276,10 +1214,10 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:43:7: ( '>' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:43:7: '>'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:41:7: ( '<' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:41:7: '<'
{
- match('>'); if (failed) return ;
+ match('<'); if (failed) return ;
}
@@ -1307,10 +1245,10 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:44:7: ( '>=' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:44:7: '>='
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:42:7: ( '<=' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:42:7: '<='
{
- match(">="); if (failed) return ;
+ match("<="); if (failed) return ;
}
@@ -1339,11 +1277,12 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:45:7: ( '<' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:45:7: '<'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:43:7: ( '!=' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:43:7: '!='
{
- match('<'); if (failed) return ;
+ match("!="); if (failed) return ;
+
}
@@ -1370,10 +1309,10 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:46:7: ( '<=' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:46:7: '<='
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:44:7: ( 'contains' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:44:7: 'contains'
{
- match("<="); if (failed) return ;
+ match("contains"); if (failed) return ;
}
@@ -1402,10 +1341,10 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:47:7: ( '!=' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:47:7: '!='
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:45:7: ( 'matches' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:45:7: 'matches'
{
- match("!="); if (failed) return ;
+ match("matches"); if (failed) return ;
}
@@ -1434,10 +1373,10 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:48:7: ( 'contains' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:48:7: 'contains'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:46:7: ( 'excludes' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:46:7: 'excludes'
{
- match("contains"); if (failed) return ;
+ match("excludes"); if (failed) return ;
}
@@ -1466,10 +1405,10 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:49:7: ( 'matches' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:49:7: 'matches'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:47:7: ( '->' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:47:7: '->'
{
- match("matches"); if (failed) return ;
+ match("->"); if (failed) return ;
}
@@ -1498,12 +1437,11 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:50:7: ( 'excludes' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:50:7: 'excludes'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:48:7: ( '[' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:48:7: '['
{
- match("excludes"); if (failed) return ;
+ match('['); if (failed) return ;
-
}
@@ -1530,12 +1468,11 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:51:7: ( '->' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:51:7: '->'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:49:7: ( ']' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:49:7: ']'
{
- match("->"); if (failed) return ;
+ match(']'); if (failed) return ;
-
}
@@ -1562,8 +1499,8 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:52:7: ( 'and' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:52:7: 'and'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:50:7: ( 'and' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:50:7: 'and'
{
match("and"); if (failed) return ;
@@ -1594,8 +1531,8 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:53:7: ( '&&' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:53:7: '&&'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:51:7: ( '&&' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:51:7: '&&'
{
match("&&"); if (failed) return ;
@@ -1626,8 +1563,8 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:54:7: ( 'exists' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:54:7: 'exists'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:52:7: ( 'exists' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:52:7: 'exists'
{
match("exists"); if (failed) return ;
@@ -1658,8 +1595,8 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:55:7: ( 'not' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:55:7: 'not'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:53:7: ( 'not' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:53:7: 'not'
{
match("not"); if (failed) return ;
@@ -1690,8 +1627,8 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:56:7: ( 'eval' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:56:7: 'eval'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:54:7: ( 'eval' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:54:7: 'eval'
{
match("eval"); if (failed) return ;
@@ -1722,8 +1659,8 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:57:7: ( 'use' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:57:7: 'use'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:55:7: ( 'use' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:55:7: 'use'
{
match("use"); if (failed) return ;
@@ -1754,19 +1691,19 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1234:6: ( 'then' ( options {greedy=false; } : . )* ('\\n'|'\\r') ( (' '|'\\t'|'\\f'))* 'end' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1234:6: 'then' ( options {greedy=false; } : . )* ('\\n'|'\\r') ( (' '|'\\t'|'\\f'))* 'end'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1231:6: ( 'then' ( options {greedy=false; } : . )* ('\\n'|'\\r') ( (' '|'\\t'|'\\f'))* 'end' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1231:6: 'then' ( options {greedy=false; } : . )* ('\\n'|'\\r') ( (' '|'\\t'|'\\f'))* 'end'
{
match("then"); if (failed) return ;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1234:13: ( options {greedy=false; } : . )*
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1231:13: ( options {greedy=false; } : . )*
loop1:
do {
int alt1=2;
alt1 = dfa1.predict(input);
switch (alt1) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1234:39: .
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1231:39: .
{
matchAny(); if (failed) return ;
@@ -1789,7 +1726,7 @@
recover(mse); throw mse;
}
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1234:55: ( (' '|'\\t'|'\\f'))*
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1231:55: ( (' '|'\\t'|'\\f'))*
loop2:
do {
int alt2=2;
@@ -1801,7 +1738,7 @@
switch (alt2) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1234:56: (' '|'\\t'|'\\f')
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1231:56: (' '|'\\t'|'\\f')
{
if ( input.LA(1)=='\t'||input.LA(1)=='\f'||input.LA(1)==' ' ) {
input.consume();
@@ -1852,10 +1789,10 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1237:17: ( ( ' ' | '\\t' | '\\f' | EOL ) )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1237:17: ( ' ' | '\\t' | '\\f' | EOL )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1234:17: ( ( ' ' | '\\t' | '\\f' | EOL ) )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1234:17: ( ' ' | '\\t' | '\\f' | EOL )
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1237:17: ( ' ' | '\\t' | '\\f' | EOL )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1234:17: ( ' ' | '\\t' | '\\f' | EOL )
int alt3=4;
switch ( input.LA(1) ) {
case ' ':
@@ -1874,35 +1811,35 @@
default:
if (backtracking>0) {failed=true; return ;}
NoViableAltException nvae =
- new NoViableAltException("1237:17: ( ' ' | '\\t' | '\\f' | EOL )", 3, 0, input);
+ new NoViableAltException("1234:17: ( ' ' | '\\t' | '\\f' | EOL )", 3, 0, input);
throw nvae;
}
switch (alt3) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1237:19: ' '
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1234:19: ' '
{
match(' '); if (failed) return ;
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1238:19: '\\t'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1235:19: '\\t'
{
match('\t'); if (failed) return ;
}
break;
case 3 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1239:19: '\\f'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1236:19: '\\f'
{
match('\f'); if (failed) return ;
}
break;
case 4 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1240:19: EOL
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1237:19: EOL
{
mEOL(); if (failed) return ;
@@ -1936,10 +1873,10 @@
public void mEOL() throws RecognitionException {
try {
ruleNestingLevel++;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1247:6: ( ( ( '\\r\\n' )=> '\\r\\n' | '\\r' | '\\n' ) )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1247:6: ( ( '\\r\\n' )=> '\\r\\n' | '\\r' | '\\n' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1244:6: ( ( ( '\\r\\n' )=> '\\r\\n' | '\\r' | '\\n' ) )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1244:6: ( ( '\\r\\n' )=> '\\r\\n' | '\\r' | '\\n' )
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1247:6: ( ( '\\r\\n' )=> '\\r\\n' | '\\r' | '\\n' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1244:6: ( ( '\\r\\n' )=> '\\r\\n' | '\\r' | '\\n' )
int alt4=3;
int LA4_0 = input.LA(1);
if ( (LA4_0=='\r') ) {
@@ -1956,13 +1893,13 @@
else {
if (backtracking>0) {failed=true; return ;}
NoViableAltException nvae =
- new NoViableAltException("1247:6: ( ( '\\r\\n' )=> '\\r\\n' | '\\r' | '\\n' )", 4, 0, input);
+ new NoViableAltException("1244:6: ( ( '\\r\\n' )=> '\\r\\n' | '\\r' | '\\n' )", 4, 0, input);
throw nvae;
}
switch (alt4) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1247:14: ( '\\r\\n' )=> '\\r\\n'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1244:14: ( '\\r\\n' )=> '\\r\\n'
{
match("\r\n"); if (failed) return ;
@@ -1970,14 +1907,14 @@
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1248:25: '\\r'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1245:25: '\\r'
{
match('\r'); if (failed) return ;
}
break;
case 3 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1249:25: '\\n'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1246:25: '\\n'
{
match('\n'); if (failed) return ;
@@ -2005,10 +1942,10 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1254:4: ( ( '-' )? ( '0' .. '9' )+ )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1254:4: ( '-' )? ( '0' .. '9' )+
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1251:4: ( ( '-' )? ( '0' .. '9' )+ )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1251:4: ( '-' )? ( '0' .. '9' )+
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1254:4: ( '-' )?
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1251:4: ( '-' )?
int alt5=2;
int LA5_0 = input.LA(1);
if ( (LA5_0=='-') ) {
@@ -2016,7 +1953,7 @@
}
switch (alt5) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1254:5: '-'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1251:5: '-'
{
match('-'); if (failed) return ;
@@ -2025,7 +1962,7 @@
}
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1254:10: ( '0' .. '9' )+
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1251:10: ( '0' .. '9' )+
int cnt6=0;
loop6:
do {
@@ -2038,7 +1975,7 @@
switch (alt6) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1254:11: '0' .. '9'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1251:11: '0' .. '9'
{
matchRange('0','9'); if (failed) return ;
@@ -2082,10 +2019,10 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1258:4: ( ( '-' )? ( '0' .. '9' )+ '.' ( '0' .. '9' )+ )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1258:4: ( '-' )? ( '0' .. '9' )+ '.' ( '0' .. '9' )+
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1255:4: ( ( '-' )? ( '0' .. '9' )+ '.' ( '0' .. '9' )+ )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1255:4: ( '-' )? ( '0' .. '9' )+ '.' ( '0' .. '9' )+
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1258:4: ( '-' )?
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1255:4: ( '-' )?
int alt7=2;
int LA7_0 = input.LA(1);
if ( (LA7_0=='-') ) {
@@ -2093,7 +2030,7 @@
}
switch (alt7) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1258:5: '-'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1255:5: '-'
{
match('-'); if (failed) return ;
@@ -2102,7 +2039,7 @@
}
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1258:10: ( '0' .. '9' )+
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1255:10: ( '0' .. '9' )+
int cnt8=0;
loop8:
do {
@@ -2115,7 +2052,7 @@
switch (alt8) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1258:11: '0' .. '9'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1255:11: '0' .. '9'
{
matchRange('0','9'); if (failed) return ;
@@ -2133,7 +2070,7 @@
} while (true);
match('.'); if (failed) return ;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1258:26: ( '0' .. '9' )+
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1255:26: ( '0' .. '9' )+
int cnt9=0;
loop9:
do {
@@ -2146,7 +2083,7 @@
switch (alt9) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1258:27: '0' .. '9'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1255:27: '0' .. '9'
{
matchRange('0','9'); if (failed) return ;
@@ -2190,7 +2127,7 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1262:8: ( ( '\"' ( EscapeSequence | ~ ('\\\\'|'\"'))* '\"' ) | ( '\\'' ( EscapeSequence | ~ ('\\\\'|'\\''))* '\\'' ) )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1259:8: ( ( '\"' ( EscapeSequence | ~ ('\\\\'|'\"'))* '\"' ) | ( '\\'' ( EscapeSequence | ~ ('\\\\'|'\\''))* '\\'' ) )
int alt12=2;
int LA12_0 = input.LA(1);
if ( (LA12_0=='\"') ) {
@@ -2202,19 +2139,19 @@
else {
if (backtracking>0) {failed=true; return ;}
NoViableAltException nvae =
- new NoViableAltException("1261:1: STRING : ( ( '\"' ( EscapeSequence | ~ ('\\\\'|'\"'))* '\"' ) | ( '\\'' ( EscapeSequence | ~ ('\\\\'|'\\''))* '\\'' ) );", 12, 0, input);
+ new NoViableAltException("1258:1: STRING : ( ( '\"' ( EscapeSequence | ~ ('\\\\'|'\"'))* '\"' ) | ( '\\'' ( EscapeSequence | ~ ('\\\\'|'\\''))* '\\'' ) );", 12, 0, input);
throw nvae;
}
switch (alt12) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1262:8: ( '\"' ( EscapeSequence | ~ ('\\\\'|'\"'))* '\"' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1259:8: ( '\"' ( EscapeSequence | ~ ('\\\\'|'\"'))* '\"' )
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1262:8: ( '\"' ( EscapeSequence | ~ ('\\\\'|'\"'))* '\"' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1262:9: '\"' ( EscapeSequence | ~ ('\\\\'|'\"'))* '\"'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1259:8: ( '\"' ( EscapeSequence | ~ ('\\\\'|'\"'))* '\"' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1259:9: '\"' ( EscapeSequence | ~ ('\\\\'|'\"'))* '\"'
{
match('\"'); if (failed) return ;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1262:13: ( EscapeSequence | ~ ('\\\\'|'\"'))*
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1259:13: ( EscapeSequence | ~ ('\\\\'|'\"'))*
loop10:
do {
int alt10=3;
@@ -2229,14 +2166,14 @@
switch (alt10) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1262:15: EscapeSequence
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1259:15: EscapeSequence
{
mEscapeSequence(); if (failed) return ;
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1262:32: ~ ('\\\\'|'\"')
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1259:32: ~ ('\\\\'|'\"')
{
if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFE') ) {
input.consume();
@@ -2266,13 +2203,13 @@
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1263:8: ( '\\'' ( EscapeSequence | ~ ('\\\\'|'\\''))* '\\'' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1260:8: ( '\\'' ( EscapeSequence | ~ ('\\\\'|'\\''))* '\\'' )
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1263:8: ( '\\'' ( EscapeSequence | ~ ('\\\\'|'\\''))* '\\'' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1263:9: '\\'' ( EscapeSequence | ~ ('\\\\'|'\\''))* '\\''
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1260:8: ( '\\'' ( EscapeSequence | ~ ('\\\\'|'\\''))* '\\'' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1260:9: '\\'' ( EscapeSequence | ~ ('\\\\'|'\\''))* '\\''
{
match('\''); if (failed) return ;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1263:14: ( EscapeSequence | ~ ('\\\\'|'\\''))*
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1260:14: ( EscapeSequence | ~ ('\\\\'|'\\''))*
loop11:
do {
int alt11=3;
@@ -2287,14 +2224,14 @@
switch (alt11) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1263:16: EscapeSequence
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1260:16: EscapeSequence
{
mEscapeSequence(); if (failed) return ;
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1263:33: ~ ('\\\\'|'\\'')
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1260:33: ~ ('\\\\'|'\\'')
{
if ( (input.LA(1)>='\u0000' && input.LA(1)<='&')||(input.LA(1)>='(' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFE') ) {
input.consume();
@@ -2344,8 +2281,8 @@
public void mHexDigit() throws RecognitionException {
try {
ruleNestingLevel++;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1267:12: ( ('0'..'9'|'a'..'f'|'A'..'F'))
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1267:12: ('0'..'9'|'a'..'f'|'A'..'F')
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1264:12: ( ('0'..'9'|'a'..'f'|'A'..'F'))
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1264: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();
@@ -2372,14 +2309,11 @@
public void mEscapeSequence() throws RecognitionException {
try {
ruleNestingLevel++;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1271:9: ( '\\\\' ('b'|'t'|'n'|'f'|'r'|'\\\"'|'\\''|'\\\\') | UnicodeEscape | OctalEscape )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1268:9: ( '\\\\' ('b'|'t'|'n'|'f'|'r'|'\\\"'|'\\''|'\\\\') | UnicodeEscape | OctalEscape )
int alt13=3;
int LA13_0 = input.LA(1);
if ( (LA13_0=='\\') ) {
switch ( input.LA(2) ) {
- case 'u':
- alt13=2;
- break;
case '\"':
case '\'':
case '\\':
@@ -2390,6 +2324,9 @@
case 't':
alt13=1;
break;
+ case 'u':
+ alt13=2;
+ break;
case '0':
case '1':
case '2':
@@ -2403,7 +2340,7 @@
default:
if (backtracking>0) {failed=true; return ;}
NoViableAltException nvae =
- new NoViableAltException("1269:1: fragment EscapeSequence : ( '\\\\' ('b'|'t'|'n'|'f'|'r'|'\\\"'|'\\''|'\\\\') | UnicodeEscape | OctalEscape );", 13, 1, input);
+ new NoViableAltException("1266:1: fragment EscapeSequence : ( '\\\\' ('b'|'t'|'n'|'f'|'r'|'\\\"'|'\\''|'\\\\') | UnicodeEscape | OctalEscape );", 13, 1, input);
throw nvae;
}
@@ -2412,13 +2349,13 @@
else {
if (backtracking>0) {failed=true; return ;}
NoViableAltException nvae =
- new NoViableAltException("1269:1: fragment EscapeSequence : ( '\\\\' ('b'|'t'|'n'|'f'|'r'|'\\\"'|'\\''|'\\\\') | UnicodeEscape | OctalEscape );", 13, 0, input);
+ new NoViableAltException("1266:1: fragment EscapeSequence : ( '\\\\' ('b'|'t'|'n'|'f'|'r'|'\\\"'|'\\''|'\\\\') | UnicodeEscape | OctalEscape );", 13, 0, input);
throw nvae;
}
switch (alt13) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1271:9: '\\\\' ('b'|'t'|'n'|'f'|'r'|'\\\"'|'\\''|'\\\\')
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1268:9: '\\\\' ('b'|'t'|'n'|'f'|'r'|'\\\"'|'\\''|'\\\\')
{
match('\\'); if (failed) return ;
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' ) {
@@ -2436,14 +2373,14 @@
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1272:9: UnicodeEscape
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1269:9: UnicodeEscape
{
mUnicodeEscape(); if (failed) return ;
}
break;
case 3 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1273:9: OctalEscape
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1270:9: OctalEscape
{
mOctalEscape(); if (failed) return ;
@@ -2462,7 +2399,7 @@
public void mOctalEscape() throws RecognitionException {
try {
ruleNestingLevel++;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1278:9: ( '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1275:9: ( '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) )
int alt14=3;
int LA14_0 = input.LA(1);
if ( (LA14_0=='\\') ) {
@@ -2491,7 +2428,7 @@
else {
if (backtracking>0) {failed=true; return ;}
NoViableAltException nvae =
- new NoViableAltException("1276:1: fragment OctalEscape : ( '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) );", 14, 1, input);
+ new NoViableAltException("1273:1: fragment OctalEscape : ( '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) );", 14, 1, input);
throw nvae;
}
@@ -2499,31 +2436,31 @@
else {
if (backtracking>0) {failed=true; return ;}
NoViableAltException nvae =
- new NoViableAltException("1276:1: fragment OctalEscape : ( '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) );", 14, 0, input);
+ new NoViableAltException("1273:1: fragment OctalEscape : ( '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) );", 14, 0, input);
throw nvae;
}
switch (alt14) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1278:9: '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1275:9: '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' )
{
match('\\'); if (failed) return ;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1278:14: ( '0' .. '3' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1278:15: '0' .. '3'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1275:14: ( '0' .. '3' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1275:15: '0' .. '3'
{
matchRange('0','3'); if (failed) return ;
}
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1278:25: ( '0' .. '7' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1278:26: '0' .. '7'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1275:25: ( '0' .. '7' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1275:26: '0' .. '7'
{
matchRange('0','7'); if (failed) return ;
}
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1278:36: ( '0' .. '7' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1278:37: '0' .. '7'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1275:36: ( '0' .. '7' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1275:37: '0' .. '7'
{
matchRange('0','7'); if (failed) return ;
@@ -2533,18 +2470,18 @@
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1279:9: '\\\\' ( '0' .. '7' ) ( '0' .. '7' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1276:9: '\\\\' ( '0' .. '7' ) ( '0' .. '7' )
{
match('\\'); if (failed) return ;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1279:14: ( '0' .. '7' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1279:15: '0' .. '7'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1276:14: ( '0' .. '7' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1276:15: '0' .. '7'
{
matchRange('0','7'); if (failed) return ;
}
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1279:25: ( '0' .. '7' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1279:26: '0' .. '7'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1276:25: ( '0' .. '7' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1276:26: '0' .. '7'
{
matchRange('0','7'); if (failed) return ;
@@ -2554,11 +2491,11 @@
}
break;
case 3 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1280:9: '\\\\' ( '0' .. '7' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1277:9: '\\\\' ( '0' .. '7' )
{
match('\\'); if (failed) return ;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1280:14: ( '0' .. '7' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1280:15: '0' .. '7'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1277:14: ( '0' .. '7' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1277:15: '0' .. '7'
{
matchRange('0','7'); if (failed) return ;
@@ -2580,8 +2517,8 @@
public void mUnicodeEscape() throws RecognitionException {
try {
ruleNestingLevel++;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1285:9: ( '\\\\' 'u' HexDigit HexDigit HexDigit HexDigit )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1285:9: '\\\\' 'u' HexDigit HexDigit HexDigit HexDigit
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1282:9: ( '\\\\' 'u' HexDigit HexDigit HexDigit HexDigit )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1282:9: '\\\\' 'u' HexDigit HexDigit HexDigit HexDigit
{
match('\\'); if (failed) return ;
match('u'); if (failed) return ;
@@ -2608,10 +2545,10 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1289:4: ( ( 'true' | 'false' ) )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1289:4: ( 'true' | 'false' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1286:4: ( ( 'true' | 'false' ) )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1286:4: ( 'true' | 'false' )
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1289:4: ( 'true' | 'false' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1286:4: ( 'true' | 'false' )
int alt15=2;
int LA15_0 = input.LA(1);
if ( (LA15_0=='t') ) {
@@ -2623,13 +2560,13 @@
else {
if (backtracking>0) {failed=true; return ;}
NoViableAltException nvae =
- new NoViableAltException("1289:4: ( 'true' | 'false' )", 15, 0, input);
+ new NoViableAltException("1286:4: ( 'true' | 'false' )", 15, 0, input);
throw nvae;
}
switch (alt15) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1289:5: 'true'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1286:5: 'true'
{
match("true"); if (failed) return ;
@@ -2637,7 +2574,7 @@
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1289:12: 'false'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1286:12: 'false'
{
match("false"); if (failed) return ;
@@ -2674,8 +2611,8 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1293:4: ( ('a'..'z'|'A'..'Z'|'_'|'$'|'\\u00c0'..'\\u00ff') ( ('a'..'z'|'A'..'Z'|'_'|'0'..'9'|'\\u00c0'..'\\u00ff'))* )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1293:4: ('a'..'z'|'A'..'Z'|'_'|'$'|'\\u00c0'..'\\u00ff') ( ('a'..'z'|'A'..'Z'|'_'|'0'..'9'|'\\u00c0'..'\\u00ff'))*
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1290:4: ( ('a'..'z'|'A'..'Z'|'_'|'$'|'\\u00c0'..'\\u00ff') ( ('a'..'z'|'A'..'Z'|'_'|'0'..'9'|'\\u00c0'..'\\u00ff'))* )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1290:4: ('a'..'z'|'A'..'Z'|'_'|'$'|'\\u00c0'..'\\u00ff') ( ('a'..'z'|'A'..'Z'|'_'|'0'..'9'|'\\u00c0'..'\\u00ff'))*
{
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)<='\u00FF') ) {
input.consume();
@@ -2688,7 +2625,7 @@
recover(mse); throw mse;
}
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1293:52: ( ('a'..'z'|'A'..'Z'|'_'|'0'..'9'|'\\u00c0'..'\\u00ff'))*
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1290:52: ( ('a'..'z'|'A'..'Z'|'_'|'0'..'9'|'\\u00c0'..'\\u00ff'))*
loop16:
do {
int alt16=2;
@@ -2700,7 +2637,7 @@
switch (alt16) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1293:53: ('a'..'z'|'A'..'Z'|'_'|'0'..'9'|'\\u00c0'..'\\u00ff')
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1290:53: ('a'..'z'|'A'..'Z'|'_'|'0'..'9'|'\\u00c0'..'\\u00ff')
{
if ( (input.LA(1)>='0' && input.LA(1)<='9')||(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)<='\u00FF') ) {
input.consume();
@@ -2749,11 +2686,11 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1298:4: ( '#' ( options {greedy=false; } : . )* EOL )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1298:4: '#' ( options {greedy=false; } : . )* EOL
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1295:4: ( '#' ( options {greedy=false; } : . )* EOL )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1295:4: '#' ( options {greedy=false; } : . )* EOL
{
match('#'); if (failed) return ;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1298:8: ( options {greedy=false; } : . )*
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1295:8: ( options {greedy=false; } : . )*
loop17:
do {
int alt17=2;
@@ -2771,7 +2708,7 @@
switch (alt17) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1298:35: .
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1295:35: .
{
matchAny(); if (failed) return ;
@@ -2814,12 +2751,12 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1304:4: ( '//' ( options {greedy=false; } : . )* EOL )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1304:4: '//' ( options {greedy=false; } : . )* EOL
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1301:4: ( '//' ( options {greedy=false; } : . )* EOL )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1301:4: '//' ( options {greedy=false; } : . )* EOL
{
match("//"); if (failed) return ;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1304:9: ( options {greedy=false; } : . )*
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1301:9: ( options {greedy=false; } : . )*
loop18:
do {
int alt18=2;
@@ -2837,7 +2774,7 @@
switch (alt18) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1304:36: .
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1301:36: .
{
matchAny(); if (failed) return ;
@@ -2880,11 +2817,11 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1311:2: ( '{' ( CURLY_CHUNK | NO_CURLY )* '}' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1311:2: '{' ( CURLY_CHUNK | NO_CURLY )* '}'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1308:2: ( '{' ( CURLY_CHUNK | NO_CURLY )* '}' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1308:2: '{' ( CURLY_CHUNK | NO_CURLY )* '}'
{
match('{'); if (failed) return ;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1311:6: ( CURLY_CHUNK | NO_CURLY )*
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1308:6: ( CURLY_CHUNK | NO_CURLY )*
loop19:
do {
int alt19=3;
@@ -2899,14 +2836,14 @@
switch (alt19) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1311:8: CURLY_CHUNK
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1308:8: CURLY_CHUNK
{
mCURLY_CHUNK(); if (failed) return ;
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1311:22: NO_CURLY
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1308:22: NO_CURLY
{
mNO_CURLY(); if (failed) return ;
@@ -2946,8 +2883,8 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1315:11: ( '(' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1315:11: '('
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1312:11: ( '(' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1312:11: '('
{
match('('); if (failed) return ;
@@ -2977,8 +2914,8 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1319:11: ( ')' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1319:11: ')'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1316:11: ( ')' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1316:11: ')'
{
match(')'); if (failed) return ;
@@ -2999,12 +2936,74 @@
}
// $ANTLR end RIGHT_PAREN
+ // $ANTLR start LEFT_SQUARE
+ public void mLEFT_SQUARE() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = LEFT_SQUARE;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1320:11: ( '(' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1320:11: '('
+ {
+ match('('); if (failed) return ;
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end LEFT_SQUARE
+
+ // $ANTLR start RIGHT_SQUARE
+ public void mRIGHT_SQUARE() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = RIGHT_SQUARE;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1324:11: ( ')' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1324:11: ')'
+ {
+ match(')'); if (failed) return ;
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end RIGHT_SQUARE
+
// $ANTLR start NO_PAREN
public void mNO_PAREN() throws RecognitionException {
try {
ruleNestingLevel++;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1324:4: (~ ('('|')'))
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1324:4: ~ ('('|')')
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1329:4: (~ ('('|')'))
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1329:4: ~ ('('|')')
{
if ( (input.LA(1)>='\u0000' && input.LA(1)<='\'')||(input.LA(1)>='*' && input.LA(1)<='\uFFFE') ) {
input.consume();
@@ -3031,8 +3030,8 @@
public void mNO_CURLY() throws RecognitionException {
try {
ruleNestingLevel++;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1329:4: (~ ('{'|'}'))
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1329:4: ~ ('{'|'}')
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1334:4: (~ ('{'|'}'))
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1334:4: ~ ('{'|'}')
{
if ( (input.LA(1)>='\u0000' && input.LA(1)<='z')||input.LA(1)=='|'||(input.LA(1)>='~' && input.LA(1)<='\uFFFE') ) {
input.consume();
@@ -3064,12 +3063,12 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1333:4: ( '/*' ( options {greedy=false; } : . )* '*/' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1333:4: '/*' ( options {greedy=false; } : . )* '*/'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1338:4: ( '/*' ( options {greedy=false; } : . )* '*/' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1338:4: '/*' ( options {greedy=false; } : . )* '*/'
{
match("/*"); if (failed) return ;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1333:9: ( options {greedy=false; } : . )*
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1338:9: ( options {greedy=false; } : . )*
loop20:
do {
int alt20=2;
@@ -3092,7 +3091,7 @@
switch (alt20) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1333:35: .
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1338:35: .
{
matchAny(); if (failed) return ;
@@ -3136,8 +3135,8 @@
int _line = getLine();
int _charPosition = getCharPositionInLine();
int _channel = Token.DEFAULT_CHANNEL;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1338:11: ( . )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1338:11: .
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1343:11: ( . )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1343:11: .
{
matchAny(); if (failed) return ;
@@ -3159,467 +3158,467 @@
// $ANTLR end IGNORE
public void mTokens() throws RecognitionException {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:10: ( T25 | T26 | T27 | T28 | T29 | T30 | T31 | T32 | T33 | T34 | T35 | T36 | T37 | T38 | T39 | T40 | T41 | T42 | T43 | T44 | T45 | T46 | T47 | T48 | T49 | T50 | T51 | T52 | T53 | T54 | T55 | T56 | T57 | T58 | T59 | T60 | T61 | T62 | T63 | T64 | T65 | T66 | T67 | T68 | T69 | T70 | T71 | T72 | T73 | T74 | T75 | T76 | RHS | WS | INT | FLOAT | STRING | BOOL | ID | SH_STYLE_SINGLE_LINE_COMMENT | C_STYLE_SINGLE_LINE_COMMENT | CURLY_CHUNK | LEFT_PAREN | RIGHT_PAREN | MULTI_LINE_COMMENT | IGNORE )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:10: ( T27 | T28 | T29 | T30 | T31 | T32 | T33 | T34 | T35 | T36 | T37 | T38 | T39 | T40 | T41 | T42 | T43 | T44 | T45 | T46 | T47 | T48 | T49 | T50 | T51 | T52 | T53 | T54 | T55 | T56 | T57 | T58 | T59 | T60 | T61 | T62 | T63 | T64 | T65 | T66 | T67 | T68 | T69 | T70 | T71 | T72 | T73 | T74 | T75 | T76 | RHS | WS | INT | FLOAT | STRING | BOOL | ID | SH_STYLE_SINGLE_LINE_COMMENT | C_STYLE_SINGLE_LINE_COMMENT | CURLY_CHUNK | LEFT_PAREN | RIGHT_PAREN | LEFT_SQUARE | RIGHT_SQUARE | MULTI_LINE_COMMENT | IGNORE )
int alt21=66;
alt21 = dfa21.predict(input);
switch (alt21) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:10: T25
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:10: T27
{
- mT25(); if (failed) return ;
+ mT27(); if (failed) return ;
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:14: T26
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:14: T28
{
- mT26(); if (failed) return ;
+ mT28(); if (failed) return ;
}
break;
case 3 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:18: T27
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:18: T29
{
- mT27(); if (failed) return ;
+ mT29(); if (failed) return ;
}
break;
case 4 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:22: T28
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:22: T30
{
- mT28(); if (failed) return ;
+ mT30(); if (failed) return ;
}
break;
case 5 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:26: T29
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:26: T31
{
- mT29(); if (failed) return ;
+ mT31(); if (failed) return ;
}
break;
case 6 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:30: T30
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:30: T32
{
- mT30(); if (failed) return ;
+ mT32(); if (failed) return ;
}
break;
case 7 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:34: T31
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:34: T33
{
- mT31(); if (failed) return ;
+ mT33(); if (failed) return ;
}
break;
case 8 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:38: T32
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:38: T34
{
- mT32(); if (failed) return ;
+ mT34(); if (failed) return ;
}
break;
case 9 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:42: T33
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:42: T35
{
- mT33(); if (failed) return ;
+ mT35(); if (failed) return ;
}
break;
case 10 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:46: T34
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:46: T36
{
- mT34(); if (failed) return ;
+ mT36(); if (failed) return ;
}
break;
case 11 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:50: T35
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:50: T37
{
- mT35(); if (failed) return ;
+ mT37(); if (failed) return ;
}
break;
case 12 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:54: T36
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:54: T38
{
- mT36(); if (failed) return ;
+ mT38(); if (failed) return ;
}
break;
case 13 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:58: T37
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:58: T39
{
- mT37(); if (failed) return ;
+ mT39(); if (failed) return ;
}
break;
case 14 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:62: T38
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:62: T40
{
- mT38(); if (failed) return ;
+ mT40(); if (failed) return ;
}
break;
case 15 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:66: T39
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:66: T41
{
- mT39(); if (failed) return ;
+ mT41(); if (failed) return ;
}
break;
case 16 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:70: T40
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:70: T42
{
- mT40(); if (failed) return ;
+ mT42(); if (failed) return ;
}
break;
case 17 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:74: T41
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:74: T43
{
- mT41(); if (failed) return ;
+ mT43(); if (failed) return ;
}
break;
case 18 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:78: T42
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:78: T44
{
- mT42(); if (failed) return ;
+ mT44(); if (failed) return ;
}
break;
case 19 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:82: T43
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:82: T45
{
- mT43(); if (failed) return ;
+ mT45(); if (failed) return ;
}
break;
case 20 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:86: T44
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:86: T46
{
- mT44(); if (failed) return ;
+ mT46(); if (failed) return ;
}
break;
case 21 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:90: T45
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:90: T47
{
- mT45(); if (failed) return ;
+ mT47(); if (failed) return ;
}
break;
case 22 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:94: T46
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:94: T48
{
- mT46(); if (failed) return ;
+ mT48(); if (failed) return ;
}
break;
case 23 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:98: T47
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:98: T49
{
- mT47(); if (failed) return ;
+ mT49(); if (failed) return ;
}
break;
case 24 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:102: T48
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:102: T50
{
- mT48(); if (failed) return ;
+ mT50(); if (failed) return ;
}
break;
case 25 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:106: T49
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:106: T51
{
- mT49(); if (failed) return ;
+ mT51(); if (failed) return ;
}
break;
case 26 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:110: T50
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:110: T52
{
- mT50(); if (failed) return ;
+ mT52(); if (failed) return ;
}
break;
case 27 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:114: T51
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:114: T53
{
- mT51(); if (failed) return ;
+ mT53(); if (failed) return ;
}
break;
case 28 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:118: T52
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:118: T54
{
- mT52(); if (failed) return ;
+ mT54(); if (failed) return ;
}
break;
case 29 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:122: T53
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:122: T55
{
- mT53(); if (failed) return ;
+ mT55(); if (failed) return ;
}
break;
case 30 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:126: T54
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:126: T56
{
- mT54(); if (failed) return ;
+ mT56(); if (failed) return ;
}
break;
case 31 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:130: T55
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:130: T57
{
- mT55(); if (failed) return ;
+ mT57(); if (failed) return ;
}
break;
case 32 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:134: T56
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:134: T58
{
- mT56(); if (failed) return ;
+ mT58(); if (failed) return ;
}
break;
case 33 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:138: T57
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:138: T59
{
- mT57(); if (failed) return ;
+ mT59(); if (failed) return ;
}
break;
case 34 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:142: T58
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:142: T60
{
- mT58(); if (failed) return ;
+ mT60(); if (failed) return ;
}
break;
case 35 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:146: T59
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:146: T61
{
- mT59(); if (failed) return ;
+ mT61(); if (failed) return ;
}
break;
case 36 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:150: T60
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:150: T62
{
- mT60(); if (failed) return ;
+ mT62(); if (failed) return ;
}
break;
case 37 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:154: T61
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:154: T63
{
- mT61(); if (failed) return ;
+ mT63(); if (failed) return ;
}
break;
case 38 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:158: T62
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:158: T64
{
- mT62(); if (failed) return ;
+ mT64(); if (failed) return ;
}
break;
case 39 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:162: T63
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:162: T65
{
- mT63(); if (failed) return ;
+ mT65(); if (failed) return ;
}
break;
case 40 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:166: T64
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:166: T66
{
- mT64(); if (failed) return ;
+ mT66(); if (failed) return ;
}
break;
case 41 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:170: T65
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:170: T67
{
- mT65(); if (failed) return ;
+ mT67(); if (failed) return ;
}
break;
case 42 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:174: T66
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:174: T68
{
- mT66(); if (failed) return ;
+ mT68(); if (failed) return ;
}
break;
case 43 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:178: T67
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:178: T69
{
- mT67(); if (failed) return ;
+ mT69(); if (failed) return ;
}
break;
case 44 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:182: T68
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:182: T70
{
- mT68(); if (failed) return ;
+ mT70(); if (failed) return ;
}
break;
case 45 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:186: T69
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:186: T71
{
- mT69(); if (failed) return ;
+ mT71(); if (failed) return ;
}
break;
case 46 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:190: T70
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:190: T72
{
- mT70(); if (failed) return ;
+ mT72(); if (failed) return ;
}
break;
case 47 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:194: T71
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:194: T73
{
- mT71(); if (failed) return ;
+ mT73(); if (failed) return ;
}
break;
case 48 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:198: T72
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:198: T74
{
- mT72(); if (failed) return ;
+ mT74(); if (failed) return ;
}
break;
case 49 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:202: T73
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:202: T75
{
- mT73(); if (failed) return ;
+ mT75(); if (failed) return ;
}
break;
case 50 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:206: T74
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:206: T76
{
- mT74(); if (failed) return ;
+ mT76(); if (failed) return ;
}
break;
case 51 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:210: T75
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:210: RHS
{
- mT75(); if (failed) return ;
+ mRHS(); if (failed) return ;
}
break;
case 52 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:214: T76
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:214: WS
{
- mT76(); if (failed) return ;
+ mWS(); if (failed) return ;
}
break;
case 53 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:218: RHS
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:217: INT
{
- mRHS(); if (failed) return ;
+ mINT(); if (failed) return ;
}
break;
case 54 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:222: WS
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:221: FLOAT
{
- mWS(); if (failed) return ;
+ mFLOAT(); if (failed) return ;
}
break;
case 55 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:225: INT
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:227: STRING
{
- mINT(); if (failed) return ;
+ mSTRING(); if (failed) return ;
}
break;
case 56 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:229: FLOAT
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:234: BOOL
{
- mFLOAT(); if (failed) return ;
+ mBOOL(); if (failed) return ;
}
break;
case 57 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:235: STRING
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:239: ID
{
- mSTRING(); if (failed) return ;
+ mID(); if (failed) return ;
}
break;
case 58 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:242: BOOL
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:242: SH_STYLE_SINGLE_LINE_COMMENT
{
- mBOOL(); if (failed) return ;
+ mSH_STYLE_SINGLE_LINE_COMMENT(); if (failed) return ;
}
break;
case 59 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:247: ID
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:271: C_STYLE_SINGLE_LINE_COMMENT
{
- mID(); if (failed) return ;
+ mC_STYLE_SINGLE_LINE_COMMENT(); if (failed) return ;
}
break;
case 60 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:250: SH_STYLE_SINGLE_LINE_COMMENT
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:299: CURLY_CHUNK
{
- mSH_STYLE_SINGLE_LINE_COMMENT(); if (failed) return ;
+ mCURLY_CHUNK(); if (failed) return ;
}
break;
case 61 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:279: C_STYLE_SINGLE_LINE_COMMENT
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:311: LEFT_PAREN
{
- mC_STYLE_SINGLE_LINE_COMMENT(); if (failed) return ;
+ mLEFT_PAREN(); if (failed) return ;
}
break;
case 62 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:307: CURLY_CHUNK
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:322: RIGHT_PAREN
{
- mCURLY_CHUNK(); if (failed) return ;
+ mRIGHT_PAREN(); if (failed) return ;
}
break;
case 63 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:319: LEFT_PAREN
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:334: LEFT_SQUARE
{
- mLEFT_PAREN(); if (failed) return ;
+ mLEFT_SQUARE(); if (failed) return ;
}
break;
case 64 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:330: RIGHT_PAREN
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:346: RIGHT_SQUARE
{
- mRIGHT_PAREN(); if (failed) return ;
+ mRIGHT_SQUARE(); if (failed) return ;
}
break;
case 65 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:342: MULTI_LINE_COMMENT
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:359: MULTI_LINE_COMMENT
{
mMULTI_LINE_COMMENT(); if (failed) return ;
}
break;
case 66 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:361: IGNORE
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:378: IGNORE
{
mIGNORE(); if (failed) return ;
@@ -3672,192 +3671,189 @@
}
}
public String getDescription() {
- return "()* loopback of 1234:13: ( options {greedy=false; } : . )*";
+ return "()* loopback of 1231:13: ( options {greedy=false; } : . )*";
}
}
public static final String DFA21_eotS =
- "\2\uffff\3\61\1\70\1\61\1\uffff\5\61\1\uffff\4\61\2\uffff\1\61\1"+
- "\56\1\uffff\1\61\1\127\1\131\1\133\1\135\1\56\1\61\1\56\1\61\5\uffff"+
- "\1\145\2\56\1\uffff\3\56\4\uffff\1\61\1\uffff\5\61\2\uffff\1\61"+
- "\1\uffff\12\61\1\uffff\11\61\2\uffff\1\61\3\uffff\1\u008c\11\uffff"+
- "\1\61\1\uffff\1\145\1\61\12\uffff\10\61\1\u0097\14\61\1\u00a4\3"+
- "\61\1\uffff\1\u00a8\4\61\1\uffff\1\61\1\u00ae\2\61\1\u00b1\2\61"+
- "\1\u00b4\2\61\1\uffff\2\61\1\u00b9\1\u00ba\2\61\1\u00be\1\61\1\u00c0"+
- "\3\61\1\uffff\3\61\1\uffff\1\u00c8\4\61\1\uffff\2\61\1\uffff\1\u00ba"+
- "\1\61\1\uffff\1\61\1\u00d1\2\61\3\uffff\2\61\1\uffff\1\61\1\uffff"+
- "\5\61\1\uffff\1\61\1\uffff\5\61\1\u00e1\1\61\1\u00e3\1\uffff\1\61"+
- "\1\u00e5\1\61\1\u00e7\2\61\1\u00ea\7\61\1\u00f2\1\uffff\1\61\1\uffff"+
- "\1\61\1\uffff\1\61\2\uffff\1\61\1\uffff\4\61\1\u00fb\1\61\1\u00fd"+
- "\1\uffff\1\u00fe\1\u00ff\1\u0100\3\61\1\u0104\1\u0105\1\uffff\1"+
- "\u0106\4\uffff\3\61\3\uffff\1\61\1\u010b\1\u010c\3\uffff";
+ "\2\uffff\3\60\1\67\1\60\1\uffff\5\60\1\uffff\6\60\1\121\1\123\1"+
+ "\55\1\126\1\130\1\55\1\60\1\55\2\uffff\1\60\5\uffff\1\141\2\55\1"+
+ "\uffff\3\55\4\uffff\1\60\1\uffff\5\60\2\uffff\1\60\1\uffff\12\60"+
+ "\1\uffff\12\60\1\u0089\12\uffff\1\60\1\uffff\1\141\2\uffff\1\60"+
+ "\12\uffff\13\60\1\u0097\11\60\1\u00a1\3\60\1\u00a5\1\uffff\4\60"+
+ "\1\uffff\1\60\1\u00ab\2\60\1\u00ae\1\u00af\6\60\1\u00b6\1\uffff"+
+ "\1\u00b7\2\60\1\u00bb\1\60\1\u00bd\3\60\1\uffff\3\60\1\uffff\1\u00c5"+
+ "\4\60\1\uffff\2\60\2\uffff\1\60\1\u00b7\1\60\1\u00ce\2\60\3\uffff"+
+ "\2\60\1\uffff\1\60\1\uffff\5\60\1\uffff\1\60\1\uffff\5\60\1\u00de"+
+ "\1\60\1\u00e0\1\uffff\1\60\1\u00e2\1\60\1\u00e4\2\60\1\u00e7\7\60"+
+ "\1\u00ef\1\uffff\1\60\1\uffff\1\60\1\uffff\1\60\2\uffff\1\60\1\uffff"+
+ "\4\60\1\u00f8\1\60\1\u00fa\1\uffff\1\u00fb\1\u00fc\1\u00fd\3\60"+
+ "\1\u0101\1\u0102\1\uffff\1\u0103\4\uffff\3\60\3\uffff\1\60\1\u0108"+
+ "\1\u0109\3\uffff";
public static final String DFA21_eofS =
- "\u010d\uffff";
+ "\u010a\uffff";
public static final String DFA21_minS =
"\1\0\1\uffff\1\141\1\155\1\141\1\52\1\154\1\uffff\1\165\1\156\2"+
- "\145\1\150\1\uffff\1\143\1\141\1\157\1\165\2\uffff\1\157\1\75\1"+
- "\uffff\1\162\1\174\1\46\3\75\1\141\1\60\1\163\5\uffff\1\56\2\0\1"+
- "\uffff\1\0\1\52\1\0\4\uffff\1\143\1\uffff\1\160\1\151\1\154\1\156"+
- "\1\157\2\uffff\1\157\1\uffff\1\145\1\144\1\143\1\141\1\165\1\145"+
- "\1\155\1\154\1\163\1\145\1\uffff\1\145\1\143\1\144\2\164\1\154\1"+
- "\55\1\154\1\162\2\uffff\1\154\3\uffff\1\60\11\uffff\1\164\1\uffff"+
- "\1\56\1\145\12\uffff\1\153\1\157\1\164\1\163\1\143\1\155\1\142\1"+
- "\162\1\60\1\154\1\163\1\154\1\145\1\156\1\160\1\145\1\165\2\156"+
- "\1\151\1\165\1\60\1\162\1\157\1\151\1\uffff\1\60\1\154\1\141\1\154"+
- "\1\164\1\uffff\1\143\1\60\1\141\1\162\1\60\1\145\1\164\1\60\1\141"+
- "\1\171\1\uffff\1\165\1\164\2\60\1\0\1\154\1\60\1\154\1\60\1\144"+
- "\1\157\1\155\1\uffff\1\151\1\55\1\145\1\uffff\1\60\1\164\1\145\1"+
- "\141\1\150\1\uffff\1\147\1\164\1\uffff\1\60\1\151\1\uffff\1\154"+
- "\1\60\1\144\1\163\3\uffff\1\0\1\141\1\uffff\1\164\1\uffff\2\141"+
- "\1\156\1\165\1\142\1\uffff\1\156\1\uffff\1\151\1\143\1\151\2\145"+
- "\1\60\1\157\1\60\1\uffff\1\145\1\60\1\164\1\60\1\55\1\164\1\60\1"+
- "\154\1\165\1\143\1\157\1\164\1\156\1\163\1\60\1\uffff\1\156\1\uffff"+
- "\1\163\1\uffff\1\145\2\uffff\1\151\1\uffff\1\141\1\164\1\145\1\156"+
- "\1\60\1\163\1\60\1\uffff\3\60\1\157\1\164\1\145\2\60\1\uffff\1\60"+
- "\4\uffff\1\156\1\145\1\163\3\uffff\1\55\2\60\3\uffff";
+ "\145\1\150\1\uffff\1\143\1\141\1\157\1\165\1\157\1\162\1\174\1\46"+
+ "\4\75\1\141\1\60\2\uffff\1\163\5\uffff\1\56\2\0\1\uffff\1\0\1\52"+
+ "\1\0\4\uffff\1\143\1\uffff\1\160\1\151\1\157\1\156\1\154\2\uffff"+
+ "\1\157\1\uffff\1\145\1\143\1\141\1\144\1\165\1\145\1\155\1\154\1"+
+ "\163\1\145\1\uffff\1\145\1\143\1\144\2\164\1\154\1\55\1\154\1\162"+
+ "\1\154\1\60\12\uffff\1\164\1\uffff\1\56\2\uffff\1\145\12\uffff\1"+
+ "\153\1\157\1\164\1\155\1\143\1\163\1\142\1\162\1\154\1\163\1\154"+
+ "\1\60\1\145\1\156\1\160\1\145\1\165\2\156\1\151\1\165\1\60\1\162"+
+ "\1\157\1\151\1\60\1\uffff\1\154\1\141\1\154\1\164\1\uffff\1\143"+
+ "\1\60\1\141\1\162\2\60\1\164\1\145\1\141\1\171\1\165\1\164\1\60"+
+ "\1\uffff\1\60\1\0\1\154\1\60\1\154\1\60\1\144\1\157\1\155\1\uffff"+
+ "\1\151\1\55\1\145\1\uffff\1\60\1\164\1\145\1\141\1\150\1\uffff\1"+
+ "\147\1\164\2\uffff\1\151\1\60\1\154\1\60\1\144\1\163\3\uffff\1\0"+
+ "\1\141\1\uffff\1\164\1\uffff\2\141\1\156\1\165\1\142\1\uffff\1\156"+
+ "\1\uffff\1\151\1\143\1\151\2\145\1\60\1\157\1\60\1\uffff\1\145\1"+
+ "\60\1\164\1\60\1\55\1\164\1\60\1\154\1\165\1\143\1\157\1\164\1\156"+
+ "\1\163\1\60\1\uffff\1\156\1\uffff\1\163\1\uffff\1\145\2\uffff\1"+
+ "\151\1\uffff\1\141\1\164\1\145\1\156\1\60\1\163\1\60\1\uffff\3\60"+
+ "\1\157\1\164\1\145\2\60\1\uffff\1\60\4\uffff\1\156\1\145\1\163\3"+
+ "\uffff\1\55\2\60\3\uffff";
public static final String DFA21_maxS =
"\1\ufffe\1\uffff\1\141\1\156\1\165\1\52\1\154\1\uffff\1\165\1\170"+
- "\1\162\1\165\1\150\1\uffff\1\165\1\141\2\165\2\uffff\1\157\1\76"+
- "\1\uffff\1\162\1\174\1\46\3\75\1\141\1\76\1\163\5\uffff\1\71\2\ufffe"+
- "\1\uffff\1\ufffe\1\57\1\ufffe\4\uffff\1\143\1\uffff\1\160\1\151"+
- "\1\154\1\156\1\157\2\uffff\1\157\1\uffff\1\145\1\144\1\151\1\141"+
- "\1\165\1\145\1\155\1\154\1\163\1\145\1\uffff\1\145\1\164\1\144\2"+
- "\164\1\154\1\164\1\154\1\162\2\uffff\1\156\3\uffff\1\u00ff\11\uffff"+
- "\1\164\1\uffff\1\71\1\145\12\uffff\1\153\1\157\1\164\1\163\1\143"+
- "\1\155\1\142\1\162\1\u00ff\1\154\1\163\1\154\1\145\1\156\1\160\1"+
- "\145\1\165\2\156\1\151\1\165\1\u00ff\1\162\1\157\1\151\1\uffff\1"+
- "\u00ff\1\154\1\141\1\154\1\164\1\uffff\1\143\1\u00ff\1\141\1\162"+
- "\1\u00ff\1\145\1\164\1\u00ff\1\141\1\171\1\uffff\1\165\1\164\2\u00ff"+
- "\1\ufffe\1\154\1\u00ff\1\154\1\u00ff\1\144\1\166\1\155\1\uffff\1"+
- "\151\1\55\1\145\1\uffff\1\u00ff\1\164\1\145\1\141\1\150\1\uffff"+
- "\1\147\1\164\1\uffff\1\u00ff\1\151\1\uffff\1\154\1\u00ff\1\144\1"+
- "\163\3\uffff\1\ufffe\1\141\1\uffff\1\164\1\uffff\2\141\1\156\1\165"+
- "\1\142\1\uffff\1\156\1\uffff\1\151\1\143\1\151\2\145\1\u00ff\1\157"+
- "\1\u00ff\1\uffff\1\145\1\u00ff\1\164\1\u00ff\1\55\1\164\1\u00ff"+
- "\1\154\1\165\1\143\1\157\1\164\1\156\1\163\1\u00ff\1\uffff\1\156"+
- "\1\uffff\1\163\1\uffff\1\145\2\uffff\1\151\1\uffff\1\141\1\164\1"+
- "\145\1\156\1\u00ff\1\163\1\u00ff\1\uffff\3\u00ff\1\157\1\164\1\145"+
- "\2\u00ff\1\uffff\1\u00ff\4\uffff\1\156\1\145\1\163\3\uffff\1\55"+
- "\2\u00ff\3\uffff";
+ "\1\162\1\165\1\150\1\uffff\1\165\1\141\2\165\1\157\1\162\1\174\1"+
+ "\46\4\75\1\141\1\76\2\uffff\1\163\5\uffff\1\71\2\ufffe\1\uffff\1"+
+ "\ufffe\1\57\1\ufffe\4\uffff\1\143\1\uffff\1\160\1\151\1\157\1\156"+
+ "\1\154\2\uffff\1\157\1\uffff\1\145\1\151\1\141\1\144\1\165\1\145"+
+ "\1\155\1\154\1\163\1\145\1\uffff\1\145\1\164\1\144\2\164\1\154\1"+
+ "\164\1\154\1\162\1\156\1\u00ff\12\uffff\1\164\1\uffff\1\71\2\uffff"+
+ "\1\145\12\uffff\1\153\1\157\1\164\1\155\1\143\1\163\1\142\1\162"+
+ "\1\154\1\163\1\154\1\u00ff\1\145\1\156\1\160\1\145\1\165\2\156\1"+
+ "\151\1\165\1\u00ff\1\162\1\157\1\151\1\u00ff\1\uffff\1\154\1\141"+
+ "\1\154\1\164\1\uffff\1\143\1\u00ff\1\141\1\162\2\u00ff\1\164\1\145"+
+ "\1\141\1\171\1\165\1\164\1\u00ff\1\uffff\1\u00ff\1\ufffe\1\154\1"+
+ "\u00ff\1\154\1\u00ff\1\144\1\166\1\155\1\uffff\1\151\1\55\1\145"+
+ "\1\uffff\1\u00ff\1\164\1\145\1\141\1\150\1\uffff\1\147\1\164\2\uffff"+
+ "\1\151\1\u00ff\1\154\1\u00ff\1\144\1\163\3\uffff\1\ufffe\1\141\1"+
+ "\uffff\1\164\1\uffff\2\141\1\156\1\165\1\142\1\uffff\1\156\1\uffff"+
+ "\1\151\1\143\1\151\2\145\1\u00ff\1\157\1\u00ff\1\uffff\1\145\1\u00ff"+
+ "\1\164\1\u00ff\1\55\1\164\1\u00ff\1\154\1\165\1\143\1\157\1\164"+
+ "\1\156\1\163\1\u00ff\1\uffff\1\156\1\uffff\1\163\1\uffff\1\145\2"+
+ "\uffff\1\151\1\uffff\1\141\1\164\1\145\1\156\1\u00ff\1\163\1\u00ff"+
+ "\1\uffff\3\u00ff\1\157\1\164\1\145\2\u00ff\1\uffff\1\u00ff\4\uffff"+
+ "\1\156\1\145\1\163\3\uffff\1\55\2\u00ff\3\uffff";
public static final String DFA21_acceptS =
- "\1\uffff\1\1\5\uffff\1\10\5\uffff\1\16\4\uffff\1\27\1\30\2\uffff"+
- "\1\40\11\uffff\5\66\3\uffff\1\73\3\uffff\1\77\1\100\1\102\1\1\1"+
- "\uffff\1\73\5\uffff\1\6\1\5\1\uffff\1\10\12\uffff\1\16\11\uffff"+
- "\1\27\1\30\1\uffff\1\37\1\45\1\40\1\uffff\1\42\1\44\1\60\1\43\1"+
- "\47\1\46\1\51\1\50\1\52\1\uffff\1\56\2\uffff\1\66\1\70\1\67\1\71"+
- "\1\74\1\101\1\75\1\76\1\77\1\100\31\uffff\1\21\5\uffff\1\41\12\uffff"+
- "\1\12\14\uffff\1\57\3\uffff\1\62\5\uffff\1\64\2\uffff\1\32\2\uffff"+
- "\1\26\4\uffff\1\63\1\72\1\65\2\uffff\1\14\1\uffff\1\15\5\uffff\1"+
- "\22\1\uffff\1\36\10\uffff\1\11\17\uffff\1\3\1\uffff\1\7\1\uffff"+
- "\1\61\1\uffff\1\34\1\24\1\uffff\1\33\7\uffff\1\2\10\uffff\1\35\1"+
- "\uffff\1\54\1\4\1\55\1\13\3\uffff\1\20\1\25\1\53\3\uffff\1\23\1"+
- "\31\1\17";
+ "\1\uffff\1\1\5\uffff\1\10\5\uffff\1\16\16\uffff\1\53\1\54\1\uffff"+
+ "\5\64\3\uffff\1\71\3\uffff\1\75\1\76\1\102\1\1\1\uffff\1\71\5\uffff"+
+ "\1\6\1\5\1\uffff\1\10\12\uffff\1\16\13\uffff\1\36\1\40\1\56\1\37"+
+ "\1\41\1\43\1\42\1\45\1\44\1\46\1\uffff\1\52\1\uffff\1\53\1\54\1"+
+ "\uffff\1\64\1\65\1\66\1\67\1\72\1\73\1\101\1\74\1\75\1\76\32\uffff"+
+ "\1\21\4\uffff\1\35\15\uffff\1\12\11\uffff\1\55\3\uffff\1\60\5\uffff"+
+ "\1\62\2\uffff\1\30\1\26\6\uffff\1\61\1\70\1\63\2\uffff\1\14\1\uffff"+
+ "\1\15\5\uffff\1\22\1\uffff\1\34\10\uffff\1\11\17\uffff\1\3\1\uffff"+
+ "\1\7\1\uffff\1\57\1\uffff\1\32\1\24\1\uffff\1\31\7\uffff\1\2\10"+
+ "\uffff\1\33\1\uffff\1\50\1\4\1\51\1\13\3\uffff\1\20\1\25\1\47\3"+
+ "\uffff\1\23\1\27\1\17";
public static final String DFA21_specialS =
- "\u010d\uffff}>";
+ "\u010a\uffff}>";
public static final String[] DFA21_transition = {
- "\11\56\1\41\1\44\1\56\1\42\1\43\22\56\1\40\1\34\1\46\1\51\1\50\1"+
- "\56\1\31\1\47\1\54\1\55\2\56\1\7\1\36\1\5\1\52\12\45\1\15\1\1\1"+
- "\33\1\25\1\32\2\56\32\50\1\22\1\56\1\23\1\56\1\50\1\56\1\16\1\50"+
- "\1\24\1\21\1\11\1\4\1\6\1\50\1\3\3\50\1\35\1\20\1\27\1\2\1\10\1"+
- "\13\1\17\1\12\1\37\1\50\1\14\3\50\1\53\1\30\1\26\102\56\100\50\ufeff"+
- "\56",
+ "\11\55\1\40\1\43\1\55\1\41\1\42\22\55\1\37\1\31\1\45\1\50\1\47\1"+
+ "\55\1\25\1\46\1\53\1\54\2\55\1\7\1\33\1\5\1\51\12\44\1\15\1\1\1"+
+ "\30\1\26\1\27\2\55\32\47\1\34\1\55\1\35\1\55\1\47\1\55\1\16\1\47"+
+ "\1\22\1\21\1\11\1\4\1\6\1\47\1\3\3\47\1\32\1\20\1\23\1\2\1\10\1"+
+ "\13\1\17\1\12\1\36\1\47\1\14\3\47\1\52\1\24\103\55\100\47\ufeff"+
+ "\55",
"",
- "\1\60",
- "\1\62\1\63",
- "\1\64\20\uffff\1\66\2\uffff\1\65",
- "\1\67",
- "\1\71",
+ "\1\57",
+ "\1\61\1\62",
+ "\1\65\20\uffff\1\63\2\uffff\1\64",
+ "\1\66",
+ "\1\70",
"",
- "\1\73",
- "\1\74\7\uffff\1\76\1\uffff\1\75",
- "\1\101\2\uffff\1\100\11\uffff\1\77",
- "\1\103\17\uffff\1\102",
- "\1\104",
+ "\1\72",
+ "\1\75\7\uffff\1\74\1\uffff\1\73",
+ "\1\100\2\uffff\1\77\11\uffff\1\76",
+ "\1\102\17\uffff\1\101",
+ "\1\103",
"",
- "\1\107\3\uffff\1\106\6\uffff\1\110\5\uffff\1\111\1\112",
- "\1\113",
- "\1\114\5\uffff\1\115",
+ "\1\106\3\uffff\1\105\6\uffff\1\107\5\uffff\1\110\1\111",
+ "\1\112",
+ "\1\113\5\uffff\1\114",
+ "\1\115",
"\1\116",
- "",
- "",
- "\1\121",
- "\1\123\1\122",
- "",
+ "\1\117",
+ "\1\120",
+ "\1\122",
+ "\1\124",
"\1\125",
- "\1\126",
- "\1\130",
+ "\1\127",
+ "\1\131",
"\1\132",
- "\1\134",
- "\1\136",
+ "\12\134\4\uffff\1\133",
+ "",
+ "",
"\1\137",
- "\12\141\4\uffff\1\140",
- "\1\142",
"",
"",
"",
"",
"",
- "\1\144\1\uffff\12\141",
- "\uffff\146",
- "\uffff\146",
+ "\1\142\1\uffff\12\134",
+ "\uffff\143",
+ "\uffff\143",
"",
+ "\uffff\144",
+ "\1\146\4\uffff\1\145",
"\uffff\147",
- "\1\150\4\uffff\1\151",
- "\uffff\152",
"",
"",
"",
"",
- "\1\155",
+ "\1\152",
"",
+ "\1\153",
+ "\1\154",
+ "\1\155",
"\1\156",
"\1\157",
- "\1\160",
- "\1\161",
- "\1\162",
"",
"",
- "\1\163",
+ "\1\160",
"",
+ "\1\161",
+ "\1\162\5\uffff\1\163",
"\1\164",
"\1\165",
- "\1\166\5\uffff\1\167",
+ "\1\166",
+ "\1\167",
"\1\170",
"\1\171",
"\1\172",
"\1\173",
- "\1\174",
- "\1\175",
- "\1\176",
"",
+ "\1\174",
+ "\1\176\20\uffff\1\175",
"\1\177",
- "\1\u0081\20\uffff\1\u0080",
+ "\1\u0080",
+ "\1\u0081",
"\1\u0082",
- "\1\u0083",
- "\1\u0084",
+ "\1\u0084\106\uffff\1\u0083",
"\1\u0085",
- "\1\u0086\106\uffff\1\u0087",
- "\1\u0088",
- "\1\u0089",
+ "\1\u0086",
+ "\1\u0087\1\uffff\1\u0088",
+ "\12\60\7\uffff\32\60\4\uffff\1\60\1\uffff\32\60\105\uffff\100\60",
"",
"",
- "\1\u008a\1\uffff\1\u008b",
"",
"",
"",
- "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
"",
"",
"",
"",
"",
+ "\1\u008a",
"",
+ "\1\142\1\uffff\12\134",
"",
"",
+ "\1\u008b",
"",
- "\1\u008d",
"",
- "\1\144\1\uffff\12\141",
- "\1\u008e",
"",
"",
"",
@@ -3866,8 +3862,9 @@
"",
"",
"",
- "",
- "",
+ "\1\u008c",
+ "\1\u008d",
+ "\1\u008e",
"\1\u008f",
"\1\u0090",
"\1\u0091",
@@ -3876,7 +3873,7 @@
"\1\u0094",
"\1\u0095",
"\1\u0096",
- "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
+ "\12\60\7\uffff\32\60\4\uffff\1\60\1\uffff\32\60\105\uffff\100\60",
"\1\u0098",
"\1\u0099",
"\1\u009a",
@@ -3886,147 +3883,144 @@
"\1\u009e",
"\1\u009f",
"\1\u00a0",
- "\1\u00a1",
+ "\12\60\7\uffff\32\60\4\uffff\1\60\1\uffff\32\60\105\uffff\100\60",
"\1\u00a2",
"\1\u00a3",
- "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
- "\1\u00a5",
+ "\1\u00a4",
+ "\12\60\7\uffff\32\60\4\uffff\1\60\1\uffff\32\60\105\uffff\100\60",
+ "",
"\1\u00a6",
"\1\u00a7",
- "",
- "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
+ "\1\u00a8",
"\1\u00a9",
+ "",
"\1\u00aa",
- "\1\u00ab",
+ "\12\60\7\uffff\32\60\4\uffff\1\60\1\uffff\32\60\105\uffff\100\60",
"\1\u00ac",
- "",
"\1\u00ad",
- "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
- "\1\u00af",
+ "\12\60\7\uffff\32\60\4\uffff\1\60\1\uffff\32\60\105\uffff\100\60",
+ "\12\60\7\uffff\32\60\4\uffff\1\60\1\uffff\32\60\105\uffff\100\60",
"\1\u00b0",
- "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
+ "\1\u00b1",
"\1\u00b2",
"\1\u00b3",
- "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
+ "\1\u00b4",
"\1\u00b5",
- "\1\u00b6",
+ "\12\60\7\uffff\32\60\4\uffff\1\60\1\uffff\32\60\105\uffff\100\60",
"",
- "\1\u00b7",
- "\1\u00b8",
- "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
- "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
- "\60\u00bb\12\u00bc\7\u00bb\32\u00bc\4\u00bb\1\u00bc\1\u00bb\32\u00bc"+
- "\105\u00bb\100\u00bc\ufeff\u00bb",
- "\1\u00bd",
- "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
- "\1\u00bf",
- "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
+ "\12\60\7\uffff\32\60\4\uffff\1\60\1\uffff\32\60\105\uffff\100\60",
+ "\60\u00b8\12\u00b9\7\u00b8\32\u00b9\4\u00b8\1\u00b9\1\u00b8\32\u00b9"+
+ "\105\u00b8\100\u00b9\ufeff\u00b8",
+ "\1\u00ba",
+ "\12\60\7\uffff\32\60\4\uffff\1\60\1\uffff\32\60\105\uffff\100\60",
+ "\1\u00bc",
+ "\12\60\7\uffff\32\60\4\uffff\1\60\1\uffff\32\60\105\uffff\100\60",
+ "\1\u00be",
+ "\1\u00c0\6\uffff\1\u00bf",
"\1\u00c1",
- "\1\u00c3\6\uffff\1\u00c2",
+ "",
+ "\1\u00c2",
+ "\1\u00c3",
"\1\u00c4",
"",
- "\1\u00c5",
+ "\12\60\7\uffff\32\60\4\uffff\1\60\1\uffff\32\60\105\uffff\100\60",
"\1\u00c6",
"\1\u00c7",
- "",
- "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
+ "\1\u00c8",
"\1\u00c9",
+ "",
"\1\u00ca",
"\1\u00cb",
- "\1\u00cc",
"",
- "\1\u00cd",
- "\1\u00ce",
"",
- "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
+ "\1\u00cc",
+ "\12\60\7\uffff\32\60\4\uffff\1\60\1\uffff\32\60\105\uffff\100\60",
+ "\1\u00cd",
+ "\12\60\7\uffff\32\60\4\uffff\1\60\1\uffff\32\60\105\uffff\100\60",
"\1\u00cf",
- "",
"\1\u00d0",
- "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
- "\1\u00d2",
- "\1\u00d3",
"",
"",
"",
- "\60\u00bb\12\u00bc\7\u00bb\32\u00bc\4\u00bb\1\u00bc\1\u00bb\32\u00bc"+
- "\105\u00bb\100\u00bc\ufeff\u00bb",
- "\1\u00d4",
+ "\60\u00b8\12\u00b9\7\u00b8\32\u00b9\4\u00b8\1\u00b9\1\u00b8\32\u00b9"+
+ "\105\u00b8\100\u00b9\ufeff\u00b8",
+ "\1\u00d1",
"",
- "\1\u00d5",
+ "\1\u00d2",
"",
+ "\1\u00d3",
+ "\1\u00d4",
+ "\1\u00d5",
"\1\u00d6",
"\1\u00d7",
+ "",
"\1\u00d8",
+ "",
"\1\u00d9",
"\1\u00da",
- "",
"\1\u00db",
- "",
"\1\u00dc",
"\1\u00dd",
- "\1\u00de",
+ "\12\60\7\uffff\32\60\4\uffff\1\60\1\uffff\32\60\105\uffff\100\60",
"\1\u00df",
- "\1\u00e0",
- "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
- "\1\u00e2",
- "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
+ "\12\60\7\uffff\32\60\4\uffff\1\60\1\uffff\32\60\105\uffff\100\60",
"",
- "\1\u00e4",
- "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
+ "\1\u00e1",
+ "\12\60\7\uffff\32\60\4\uffff\1\60\1\uffff\32\60\105\uffff\100\60",
+ "\1\u00e3",
+ "\12\60\7\uffff\32\60\4\uffff\1\60\1\uffff\32\60\105\uffff\100\60",
+ "\1\u00e5",
"\1\u00e6",
- "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
+ "\12\60\7\uffff\32\60\4\uffff\1\60\1\uffff\32\60\105\uffff\100\60",
"\1\u00e8",
"\1\u00e9",
- "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
+ "\1\u00ea",
"\1\u00eb",
"\1\u00ec",
"\1\u00ed",
"\1\u00ee",
- "\1\u00ef",
+ "\12\60\7\uffff\32\60\4\uffff\1\60\1\uffff\32\60\105\uffff\100\60",
+ "",
"\1\u00f0",
+ "",
"\1\u00f1",
- "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
"",
+ "\1\u00f2",
+ "",
+ "",
"\1\u00f3",
"",
"\1\u00f4",
- "",
"\1\u00f5",
- "",
- "",
"\1\u00f6",
- "",
"\1\u00f7",
- "\1\u00f8",
+ "\12\60\7\uffff\32\60\4\uffff\1\60\1\uffff\32\60\105\uffff\100\60",
"\1\u00f9",
- "\1\u00fa",
- "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
- "\1\u00fc",
- "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
+ "\12\60\7\uffff\32\60\4\uffff\1\60\1\uffff\32\60\105\uffff\100\60",
"",
- "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
- "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
- "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
- "\1\u0101",
- "\1\u0102",
- "\1\u0103",
- "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
- "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
+ "\12\60\7\uffff\32\60\4\uffff\1\60\1\uffff\32\60\105\uffff\100\60",
+ "\12\60\7\uffff\32\60\4\uffff\1\60\1\uffff\32\60\105\uffff\100\60",
+ "\12\60\7\uffff\32\60\4\uffff\1\60\1\uffff\32\60\105\uffff\100\60",
+ "\1\u00fe",
+ "\1\u00ff",
+ "\1\u0100",
+ "\12\60\7\uffff\32\60\4\uffff\1\60\1\uffff\32\60\105\uffff\100\60",
+ "\12\60\7\uffff\32\60\4\uffff\1\60\1\uffff\32\60\105\uffff\100\60",
"",
- "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
+ "\12\60\7\uffff\32\60\4\uffff\1\60\1\uffff\32\60\105\uffff\100\60",
"",
"",
"",
"",
- "\1\u0107",
- "\1\u0108",
- "\1\u0109",
+ "\1\u0104",
+ "\1\u0105",
+ "\1\u0106",
"",
"",
"",
- "\1\u010a",
- "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
- "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
+ "\1\u0107",
+ "\12\60\7\uffff\32\60\4\uffff\1\60\1\uffff\32\60\105\uffff\100\60",
+ "\12\60\7\uffff\32\60\4\uffff\1\60\1\uffff\32\60\105\uffff\100\60",
"",
"",
""
@@ -4049,9 +4043,9 @@
}
}
public String getDescription() {
- return "1:1: Tokens : ( T25 | T26 | T27 | T28 | T29 | T30 | T31 | T32 | T33 | T34 | T35 | T36 | T37 | T38 | T39 | T40 | T41 | T42 | T43 | T44 | T45 | T46 | T47 | T48 | T49 | T50 | T51 | T52 | T53 | T54 | T55 | T56 | T57 | T58 | T59 | T60 | T61 | T62 | T63 | T64 | T65 | T66 | T67 | T68 | T69 | T70 | T71 | T72 | T73 | T74 | T75 | T76 | RHS | WS | INT | FLOAT | STRING | BOOL | ID | SH_STYLE_SINGLE_LINE_COMMENT | C_STYLE_SINGLE_LINE_COMMENT | CURLY_CHUNK | LEFT_PAREN | RIGHT_PAREN | MULTI_LINE_COMMENT | IGNORE );";
+ return "1:1: Tokens : ( T27 | T28 | T29 | T30 | T31 | T32 | T33 | T34 | T35 | T36 | T37 | T38 | T39 | T40 | T41 | T42 | T43 | T44 | T45 | T46 | T47 | T48 | T49 | T50 | T51 | T52 | T53 | T54 | T55 | T56 | T57 | T58 | T59 | T60 | T61 | T62 | T63 | T64 | T65 | T66 | T67 | T68 | T69 | T70 | T71 | T72 | T73 | T74 | T75 | T76 | RHS | WS | INT | FLOAT | STRING | BOOL | ID | SH_STYLE_SINGLE_LINE_COMMENT | C_STYLE_SINGLE_LINE_COMMENT | CURLY_CHUNK | LEFT_PAREN | RIGHT_PAREN | LEFT_SQUARE | RIGHT_SQUARE | MULTI_LINE_COMMENT | IGNORE );";
}
}
-}
+}
\ No newline at end of file
Modified: labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/lang/DRLParser.java
===================================================================
--- labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/lang/DRLParser.java 2006-11-29 19:26:26 UTC (rev 7943)
+++ labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/lang/DRLParser.java 2006-11-29 19:29:39 UTC (rev 7944)
@@ -1,16 +1,16 @@
-// $ANTLR 3.0b5 D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g 2006-11-29 09:26:13
+// $ANTLR 3.0b5 D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g 2006-11-29 15:56:07
+
+ package org.drools.lang;
+ import java.util.List;
+ import java.util.ArrayList;
+ import java.util.Iterator;
+ import java.util.Map;
+ import java.util.HashMap;
+ import java.util.StringTokenizer;
+ import org.drools.lang.descr.*;
+ import org.drools.compiler.SwitchingCommonTokenStream;
- package org.drools.lang;
- import java.util.List;
- import java.util.ArrayList;
- import java.util.Iterator;
- import java.util.Map;
- import java.util.HashMap;
- import java.util.StringTokenizer;
- import org.drools.lang.descr.*;
- import org.drools.compiler.SwitchingCommonTokenStream;
-
import org.antlr.runtime.*;
import java.util.Stack;
import java.util.List;
@@ -18,7 +18,7 @@
public class DRLParser extends Parser {
public static final String[] tokenNames = new String[] {
- "<invalid>", "<EOR>", "<DOWN>", "<UP>", "ID", "CURLY_CHUNK", "RHS", "INT", "BOOL", "STRING", "FLOAT", "EOL", "WS", "EscapeSequence", "HexDigit", "UnicodeEscape", "OctalEscape", "SH_STYLE_SINGLE_LINE_COMMENT", "C_STYLE_SINGLE_LINE_COMMENT", "NO_CURLY", "LEFT_PAREN", "RIGHT_PAREN", "NO_PAREN", "MULTI_LINE_COMMENT", "IGNORE", "';'", "'package'", "'import'", "'function'", "'.'", "'.*'", "'global'", "','", "'query'", "'end'", "'template'", "'rule'", "'when'", "':'", "'attributes'", "'salience'", "'no-loop'", "'auto-focus'", "'activation-group'", "'agenda-group'", "'duration'", "'from'", "'['", "']'", "'accumulate'", "'init'", "'action'", "'result'", "'collect'", "'null'", "'=>'", "'}'", "'or'", "'||'", "'&'", "'|'", "'=='", "'>'", "'>='", "'<'", "'<='", "'!='", "'contains'", "'matches'", "'excludes'", "'->'", "'and'", "'&&'", "'exists'", "'not'", "'eval'", "'use'"
+ "<invalid>", "<EOR>", "<DOWN>", "<UP>", "ID", "CURLY_CHUNK", "RHS", "INT", "BOOL", "STRING", "FLOAT", "EOL", "WS", "EscapeSequence", "HexDigit", "UnicodeEscape", "OctalEscape", "SH_STYLE_SINGLE_LINE_COMMENT", "C_STYLE_SINGLE_LINE_COMMENT", "NO_CURLY", "LEFT_PAREN", "RIGHT_PAREN", "LEFT_SQUARE", "RIGHT_SQUARE", "NO_PAREN", "MULTI_LINE_COMMENT", "IGNORE", "';'", "'package'", "'import'", "'function'", "'.'", "'.*'", "'global'", "','", "'query'", "'end'", "'template'", "'rule'", "'when'", "':'", "'attributes'", "'salience'", "'no-loop'", "'auto-focus'", "'activation-group'", "'agenda-group'", "'duration'", "'from'", "'accumulate'", "'init'", "'action'", "'result'", "'collect'", "'null'", "'or'", "'||'", "'&'", "'|'", "'=='", "'>'", "'>='", "'<'", "'<='", "'!='", "'contains'", "'matches'", "'excludes'", "'->'", "'['", "']'", "'and'", "'&&'", "'exists'", "'not'", "'eval'", "'use'"
};
public static final int LEFT_PAREN=20;
public static final int BOOL=8;
@@ -32,14 +32,16 @@
public static final int EscapeSequence=13;
public static final int INT=7;
public static final int EOF=-1;
- public static final int IGNORE=24;
+ public static final int IGNORE=26;
public static final int RHS=6;
public static final int EOL=11;
+ public static final int LEFT_SQUARE=22;
public static final int OctalEscape=16;
public static final int SH_STYLE_SINGLE_LINE_COMMENT=17;
- public static final int MULTI_LINE_COMMENT=23;
+ public static final int MULTI_LINE_COMMENT=25;
public static final int RIGHT_PAREN=21;
- public static final int NO_PAREN=22;
+ public static final int RIGHT_SQUARE=23;
+ public static final int NO_PAREN=24;
public static final int ID=4;
public static final int C_STYLE_SINGLE_LINE_COMMENT=18;
@@ -49,289 +51,289 @@
public String[] getTokenNames() { return tokenNames; }
- public String getGrammarFileName() { return "D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g"; }
+ public String getGrammarFileName() { return "D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g"; }
-
- private ExpanderResolver expanderResolver;
- private Expander expander;
- private boolean expanderDebug = false;
- private PackageDescr packageDescr;
- private List errors = new ArrayList();
- private String source = "unknown";
- private int lineOffset = 0;
- private DescrFactory factory = new DescrFactory();
- private boolean parserDebug = false;
-
- public void setParserDebug(boolean parserDebug) {
- this.parserDebug = parserDebug;
- }
-
- public void debug(String message) {
- if ( parserDebug )
- System.err.println( "drl parser: " + message );
- }
-
- public void setSource(String source) {
- this.source = source;
- }
- public DescrFactory getFactory() {
- return factory;
- }
-
- /**
- * This may be set to enable debuggin of DSLs/expanders.
- * If set to true, expander stuff will be sent to the Std out.
- */
- public void setExpanderDebug(boolean status) {
- expanderDebug = status;
- }
- public String getSource() {
- return this.source;
- }
-
- public PackageDescr getPackageDescr() {
- return packageDescr;
- }
-
- private int offset(int line) {
- return line + lineOffset;
- }
-
- /**
- * This will set the offset to record when reparsing. Normally is zero of course
- */
- public void setLineOffset(int i) {
- this.lineOffset = i;
- }
-
- public void setExpanderResolver(ExpanderResolver expanderResolver) {
- this.expanderResolver = expanderResolver;
- }
-
- public ExpanderResolver getExpanderResolver() {
- return expanderResolver;
- }
-
- /** Expand the LHS */
- private String runWhenExpander(String text, int line) throws RecognitionException {
- String expanded = text.trim();
- if (expanded.startsWith(">")) {
- expanded = expanded.substring(1); //escape !!
- } else {
- try {
- expanded = expander.expand( "when", text );
- } catch (Exception e) {
- this.errors.add(new ExpanderException("Unable to expand: " + text + ". Due to " + e.getMessage(), line));
- return "";
- }
- }
- if (expanderDebug) {
- System.out.println("Expanding LHS: " + text + " ----> " + expanded + " --> from line: " + line);
- }
- return expanded;
-
- }
-
- /** This will apply a list of constraints to an LHS block */
- private String applyConstraints(List constraints, String block) {
- //apply the constraints as a comma seperated list inside the previous block
- //the block will end in something like "foo()" and the constraint patterns will be put in the ()
- if (constraints == null) {
- return block;
- }
- StringBuffer list = new StringBuffer();
- for (Iterator iter = constraints.iterator(); iter.hasNext();) {
- String con = (String) iter.next();
- list.append("\n\t\t");
- list.append(con);
- if (iter.hasNext()) {
- list.append(",");
- }
- }
- if (block.endsWith("()")) {
- return block.substring(0, block.length() - 2) + "(" + list.toString() + ")";
- } else {
- return block + "(" + list.toString() + ")";
- }
- }
-
- /** Reparse the results of the expansion */
- private void reparseLhs(String text, AndDescr descrs) throws RecognitionException {
- CharStream charStream = new ANTLRStringStream( text );
- DRLLexer lexer = new DRLLexer( charStream );
- TokenStream tokenStream = new CommonTokenStream( lexer );
- DRLParser parser = new DRLParser( tokenStream );
- parser.setLineOffset( descrs.getLine() );
- parser.normal_lhs_block(descrs);
-
- if (parser.hasErrors()) {
- this.errors.addAll(parser.getErrors());
- }
- if (expanderDebug) {
- System.out.println("Reparsing LHS: " + text + " --> successful:" + !parser.hasErrors());
- }
-
- }
-
- /** Expand a line on the RHS */
- private String runThenExpander(String text, int startLine) {
- //System.err.println( "expand THEN [" + text + "]" );
- StringTokenizer lines = new StringTokenizer( text, "\n\r" );
-
- StringBuffer expanded = new StringBuffer();
-
- String eol = System.getProperty( "line.separator" );
-
- while ( lines.hasMoreTokens() ) {
- startLine++;
- String line = lines.nextToken();
- line = line.trim();
- if ( line.length() > 0 ) {
- if ( line.startsWith( ">" ) ) {
- expanded.append( line.substring( 1 ) );
- expanded.append( eol );
- } else {
- try {
- expanded.append( expander.expand( "then", line ) );
- expanded.append( eol );
- } catch (Exception e) {
- this.errors.add(new ExpanderException("Unable to expand: " + line + ". Due to " + e.getMessage(), startLine));
- }
- }
- }
- }
-
- if (expanderDebug) {
- System.out.println("Expanding RHS: " + text + " ----> " + expanded.toString() + " --> from line starting: " + startLine);
- }
-
- return expanded.toString();
- }
-
-
-
- private String getString(Token token) {
- String orig = token.getText();
- return orig.substring( 1, orig.length() -1 );
- }
-
- public void reportError(RecognitionException ex) {
- // if we've already reported an error and have not matched a token
- // yet successfully, don't report any errors.
- if ( errorRecovery ) {
- return;
- }
- errorRecovery = true;
-
- ex.line = offset(ex.line); //add the offset if there is one
- errors.add( ex );
- }
-
- /** return the raw RecognitionException errors */
- public List getErrors() {
- return errors;
- }
-
- /** Return a list of pretty strings summarising the errors */
- public List getErrorMessages() {
- List messages = new ArrayList();
- for ( Iterator errorIter = errors.iterator() ; errorIter.hasNext() ; ) {
- messages.add( createErrorMessage( (RecognitionException) errorIter.next() ) );
- }
- return messages;
- }
-
- /** return true if any parser errors were accumulated */
- public boolean hasErrors() {
- return ! errors.isEmpty();
- }
-
- /** This will take a RecognitionException, and create a sensible error message out of it */
- public String createErrorMessage(RecognitionException e)
- {
- StringBuffer message = new StringBuffer();
- message.append( source + ":"+e.line+":"+e.charPositionInLine+" ");
- if ( e instanceof MismatchedTokenException ) {
- MismatchedTokenException mte = (MismatchedTokenException)e;
- message.append("mismatched token: "+
- e.token+
- "; expecting type "+
- tokenNames[mte.expecting]);
- }
- else if ( e instanceof MismatchedTreeNodeException ) {
- MismatchedTreeNodeException mtne = (MismatchedTreeNodeException)e;
- message.append("mismatched tree node: "+
- mtne.foundNode+
- "; expecting type "+
- tokenNames[mtne.expecting]);
- }
- else if ( e instanceof NoViableAltException ) {
- NoViableAltException nvae = (NoViableAltException)e;
- message.append( "Unexpected token '" + e.token.getText() + "'" );
- /*
- message.append("decision=<<"+nvae.grammarDecisionDescription+">>"+
- " state "+nvae.stateNumber+
- " (decision="+nvae.decisionNumber+
- ") no viable alt; token="+
- e.token);
- */
- }
- else if ( e instanceof EarlyExitException ) {
- EarlyExitException eee = (EarlyExitException)e;
- message.append("required (...)+ loop (decision="+
- eee.decisionNumber+
- ") did not match anything; token="+
- e.token);
- }
- else if ( e instanceof MismatchedSetException ) {
- MismatchedSetException mse = (MismatchedSetException)e;
- message.append("mismatched token '"+
- e.token+
- "' expecting set "+mse.expecting);
- }
- else if ( e instanceof MismatchedNotSetException ) {
- MismatchedNotSetException mse = (MismatchedNotSetException)e;
- message.append("mismatched token '"+
- e.token+
- "' expecting set "+mse.expecting);
- }
- else if ( e instanceof FailedPredicateException ) {
- FailedPredicateException fpe = (FailedPredicateException)e;
- message.append("rule "+fpe.ruleName+" failed predicate: {"+
- fpe.predicateText+"}?");
- } else if (e instanceof GeneralParseException) {
- message.append(" " + e.getMessage());
- }
- return message.toString();
- }
-
- void checkTrailingSemicolon(String text, int line) {
- if (text.trim().endsWith( ";" ) ) {
- this.errors.add( new GeneralParseException( "Trailing semi-colon not allowed", offset(line) ) );
- }
- }
-
+
+ private ExpanderResolver expanderResolver;
+ private Expander expander;
+ private boolean expanderDebug = false;
+ private PackageDescr packageDescr;
+ private List errors = new ArrayList();
+ private String source = "unknown";
+ private int lineOffset = 0;
+ private DescrFactory factory = new DescrFactory();
+ private boolean parserDebug = false;
+
+ public void setParserDebug(boolean parserDebug) {
+ this.parserDebug = parserDebug;
+ }
+
+ public void debug(String message) {
+ if ( parserDebug )
+ System.err.println( "drl parser: " + message );
+ }
+
+ public void setSource(String source) {
+ this.source = source;
+ }
+ public DescrFactory getFactory() {
+ return factory;
+ }
+
+ /**
+ * This may be set to enable debuggin of DSLs/expanders.
+ * If set to true, expander stuff will be sent to the Std out.
+ */
+ public void setExpanderDebug(boolean status) {
+ expanderDebug = status;
+ }
+ public String getSource() {
+ return this.source;
+ }
+
+ public PackageDescr getPackageDescr() {
+ return packageDescr;
+ }
+
+ private int offset(int line) {
+ return line + lineOffset;
+ }
+
+ /**
+ * This will set the offset to record when reparsing. Normally is zero of course
+ */
+ public void setLineOffset(int i) {
+ this.lineOffset = i;
+ }
+
+ public void setExpanderResolver(ExpanderResolver expanderResolver) {
+ this.expanderResolver = expanderResolver;
+ }
+
+ public ExpanderResolver getExpanderResolver() {
+ return expanderResolver;
+ }
+
+ /** Expand the LHS */
+ private String runWhenExpander(String text, int line) throws RecognitionException {
+ String expanded = text.trim();
+ if (expanded.startsWith(">")) {
+ expanded = expanded.substring(1); //escape !!
+ } else {
+ try {
+ expanded = expander.expand( "when", text );
+ } catch (Exception e) {
+ this.errors.add(new ExpanderException("Unable to expand: " + text + ". Due to " + e.getMessage(), line));
+ return "";
+ }
+ }
+ if (expanderDebug) {
+ System.out.println("Expanding LHS: " + text + " ----> " + expanded + " --> from line: " + line);
+ }
+ return expanded;
+
+ }
+
+ /** This will apply a list of constraints to an LHS block */
+ private String applyConstraints(List constraints, String block) {
+ //apply the constraints as a comma seperated list inside the previous block
+ //the block will end in something like "foo()" and the constraint patterns will be put in the ()
+ if (constraints == null) {
+ return block;
+ }
+ StringBuffer list = new StringBuffer();
+ for (Iterator iter = constraints.iterator(); iter.hasNext();) {
+ String con = (String) iter.next();
+ list.append("\n\t\t");
+ list.append(con);
+ if (iter.hasNext()) {
+ list.append(",");
+ }
+ }
+ if (block.endsWith("()")) {
+ return block.substring(0, block.length() - 2) + "(" + list.toString() + ")";
+ } else {
+ return block + "(" + list.toString() + ")";
+ }
+ }
+
+ /** Reparse the results of the expansion */
+ private void reparseLhs(String text, AndDescr descrs) throws RecognitionException {
+ CharStream charStream = new ANTLRStringStream( text );
+ DRLLexer lexer = new DRLLexer( charStream );
+ TokenStream tokenStream = new CommonTokenStream( lexer );
+ DRLParser parser = new DRLParser( tokenStream );
+ parser.setLineOffset( descrs.getLine() );
+ parser.normal_lhs_block(descrs);
+
+ if (parser.hasErrors()) {
+ this.errors.addAll(parser.getErrors());
+ }
+ if (expanderDebug) {
+ System.out.println("Reparsing LHS: " + text + " --> successful:" + !parser.hasErrors());
+ }
+
+ }
+
+ /** Expand a line on the RHS */
+ private String runThenExpander(String text, int startLine) {
+ //System.err.println( "expand THEN [" + text + "]" );
+ StringTokenizer lines = new StringTokenizer( text, "\n\r" );
+
+ StringBuffer expanded = new StringBuffer();
+
+ String eol = System.getProperty( "line.separator" );
+
+ while ( lines.hasMoreTokens() ) {
+ startLine++;
+ String line = lines.nextToken();
+ line = line.trim();
+ if ( line.length() > 0 ) {
+ if ( line.startsWith( ">" ) ) {
+ expanded.append( line.substring( 1 ) );
+ expanded.append( eol );
+ } else {
+ try {
+ expanded.append( expander.expand( "then", line ) );
+ expanded.append( eol );
+ } catch (Exception e) {
+ this.errors.add(new ExpanderException("Unable to expand: " + line + ". Due to " + e.getMessage(), startLine));
+ }
+ }
+ }
+ }
+
+ if (expanderDebug) {
+ System.out.println("Expanding RHS: " + text + " ----> " + expanded.toString() + " --> from line starting: " + startLine);
+ }
+
+ return expanded.toString();
+ }
+
+
+
+ private String getString(Token token) {
+ String orig = token.getText();
+ return orig.substring( 1, orig.length() -1 );
+ }
+
+ public void reportError(RecognitionException ex) {
+ // if we've already reported an error and have not matched a token
+ // yet successfully, don't report any errors.
+ if ( errorRecovery ) {
+ return;
+ }
+ errorRecovery = true;
+
+ ex.line = offset(ex.line); //add the offset if there is one
+ errors.add( ex );
+ }
+
+ /** return the raw RecognitionException errors */
+ public List getErrors() {
+ return errors;
+ }
+
+ /** Return a list of pretty strings summarising the errors */
+ public List getErrorMessages() {
+ List messages = new ArrayList();
+ for ( Iterator errorIter = errors.iterator() ; errorIter.hasNext() ; ) {
+ messages.add( createErrorMessage( (RecognitionException) errorIter.next() ) );
+ }
+ return messages;
+ }
+
+ /** return true if any parser errors were accumulated */
+ public boolean hasErrors() {
+ return ! errors.isEmpty();
+ }
+
+ /** This will take a RecognitionException, and create a sensible error message out of it */
+ public String createErrorMessage(RecognitionException e)
+ {
+ StringBuffer message = new StringBuffer();
+ message.append( source + ":"+e.line+":"+e.charPositionInLine+" ");
+ if ( e instanceof MismatchedTokenException ) {
+ MismatchedTokenException mte = (MismatchedTokenException)e;
+ message.append("mismatched token: "+
+ e.token+
+ "; expecting type "+
+ tokenNames[mte.expecting]);
+ }
+ else if ( e instanceof MismatchedTreeNodeException ) {
+ MismatchedTreeNodeException mtne = (MismatchedTreeNodeException)e;
+ message.append("mismatched tree node: "+
+ mtne.foundNode+
+ "; expecting type "+
+ tokenNames[mtne.expecting]);
+ }
+ else if ( e instanceof NoViableAltException ) {
+ NoViableAltException nvae = (NoViableAltException)e;
+ message.append( "Unexpected token '" + e.token.getText() + "'" );
+ /*
+ message.append("decision=<<"+nvae.grammarDecisionDescription+">>"+
+ " state "+nvae.stateNumber+
+ " (decision="+nvae.decisionNumber+
+ ") no viable alt; token="+
+ e.token);
+ */
+ }
+ else if ( e instanceof EarlyExitException ) {
+ EarlyExitException eee = (EarlyExitException)e;
+ message.append("required (...)+ loop (decision="+
+ eee.decisionNumber+
+ ") did not match anything; token="+
+ e.token);
+ }
+ else if ( e instanceof MismatchedSetException ) {
+ MismatchedSetException mse = (MismatchedSetException)e;
+ message.append("mismatched token '"+
+ e.token+
+ "' expecting set "+mse.expecting);
+ }
+ else if ( e instanceof MismatchedNotSetException ) {
+ MismatchedNotSetException mse = (MismatchedNotSetException)e;
+ message.append("mismatched token '"+
+ e.token+
+ "' expecting set "+mse.expecting);
+ }
+ else if ( e instanceof FailedPredicateException ) {
+ FailedPredicateException fpe = (FailedPredicateException)e;
+ message.append("rule "+fpe.ruleName+" failed predicate: {"+
+ fpe.predicateText+"}?");
+ } else if (e instanceof GeneralParseException) {
+ message.append(" " + e.getMessage());
+ }
+ return message.toString();
+ }
+
+ void checkTrailingSemicolon(String text, int line) {
+ if (text.trim().endsWith( ";" ) ) {
+ this.errors.add( new GeneralParseException( "Trailing semi-colon not allowed", offset(line) ) );
+ }
+ }
+
// $ANTLR start opt_semicolon
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:281:1: opt_semicolon : ( ';' )? ;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:281:1: opt_semicolon : ( ';' )? ;
public void opt_semicolon() throws RecognitionException {
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:282:4: ( ( ';' )? )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:282:4: ( ';' )?
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:282:4: ( ( ';' )? )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:282:4: ( ';' )?
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:282:4: ( ';' )?
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:282:4: ( ';' )?
int alt1=2;
int LA1_0 = input.LA(1);
- if ( (LA1_0==25) ) {
+ if ( (LA1_0==27) ) {
alt1=1;
}
switch (alt1) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:282:4: ';'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:282:4: ';'
{
- match(input,25,FOLLOW_25_in_opt_semicolon39);
+ match(input,27,FOLLOW_27_in_opt_semicolon39);
}
break;
@@ -354,29 +356,29 @@
// $ANTLR start compilation_unit
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:285:1: compilation_unit : prolog ( statement )* ;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:285:1: compilation_unit : prolog ( statement )* ;
public void compilation_unit() throws RecognitionException {
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:286:4: ( prolog ( statement )* )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:286:4: prolog ( statement )*
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:286:4: ( prolog ( statement )* )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:286:4: prolog ( statement )*
{
pushFollow(FOLLOW_prolog_in_compilation_unit51);
prolog();
_fsp--;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:287:3: ( statement )*
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:287:3: ( statement )*
loop2:
do {
int alt2=2;
int LA2_0 = input.LA(1);
- if ( ((LA2_0>=27 && LA2_0<=28)||LA2_0==31||LA2_0==33||(LA2_0>=35 && LA2_0<=36)) ) {
+ if ( ((LA2_0>=29 && LA2_0<=30)||LA2_0==33||LA2_0==35||(LA2_0>=37 && LA2_0<=38)) ) {
alt2=1;
}
switch (alt2) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:287:5: statement
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:287:5: statement
{
pushFollow(FOLLOW_statement_in_compilation_unit58);
statement();
@@ -407,27 +409,27 @@
// $ANTLR start prolog
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:290:1: prolog : (name= package_statement )? ;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:290:1: prolog : (name= package_statement )? ;
public void prolog() throws RecognitionException {
String name = null;
-
- String packageName = "";
+
+ String packageName = "";
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:294:4: ( (name= package_statement )? )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:294:4: (name= package_statement )?
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:294:4: ( (name= package_statement )? )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:294:4: (name= package_statement )?
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:294:4: (name= package_statement )?
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:294:4: (name= package_statement )?
int alt3=2;
int LA3_0 = input.LA(1);
- if ( (LA3_0==26) ) {
+ if ( (LA3_0==28) ) {
alt3=1;
}
switch (alt3) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:294:6: name= package_statement
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:294:6: name= package_statement
{
pushFollow(FOLLOW_package_statement_in_prolog83);
name=package_statement();
@@ -440,8 +442,8 @@
}
-
- this.packageDescr = new PackageDescr( name );
+
+ this.packageDescr = new PackageDescr( name );
}
@@ -459,7 +461,7 @@
// $ANTLR start statement
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:300:1: statement : ( import_statement | function_import_statement | global | function | t= template | r= rule | q= query ) ;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:300:1: statement : ( import_statement | function_import_statement | global | function | t= template | r= rule | q= query ) ;
public void statement() throws RecognitionException {
FactTemplateDescr t = null;
@@ -469,15 +471,15 @@
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:302:2: ( ( import_statement | function_import_statement | global | function | t= template | r= rule | q= query ) )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:302:2: ( import_statement | function_import_statement | global | function | t= template | r= rule | q= query )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:302:2: ( ( import_statement | function_import_statement | global | function | t= template | r= rule | q= query ) )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:302:2: ( import_statement | function_import_statement | global | function | t= template | r= rule | q= query )
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:302:2: ( import_statement | function_import_statement | global | function | t= template | r= rule | q= query )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:302:2: ( import_statement | function_import_statement | global | function | t= template | r= rule | q= query )
int alt4=7;
switch ( input.LA(1) ) {
- case 27:
+ case 29:
int LA4_1 = input.LA(2);
- if ( (LA4_1==28) ) {
+ if ( (LA4_1==30) ) {
alt4=2;
}
else if ( (LA4_1==ID) ) {
@@ -490,19 +492,19 @@
throw nvae;
}
break;
- case 31:
+ case 33:
alt4=3;
break;
- case 28:
+ case 30:
alt4=4;
break;
- case 35:
+ case 37:
alt4=5;
break;
- case 36:
+ case 38:
alt4=6;
break;
- case 33:
+ case 35:
alt4=7;
break;
default:
@@ -514,7 +516,7 @@
switch (alt4) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:302:4: import_statement
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:302:4: import_statement
{
pushFollow(FOLLOW_import_statement_in_statement107);
import_statement();
@@ -524,7 +526,7 @@
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:303:10: function_import_statement
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:303:10: function_import_statement
{
pushFollow(FOLLOW_function_import_statement_in_statement118);
function_import_statement();
@@ -534,7 +536,7 @@
}
break;
case 3 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:304:4: global
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:304:4: global
{
pushFollow(FOLLOW_global_in_statement123);
global();
@@ -544,7 +546,7 @@
}
break;
case 4 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:305:4: function
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:305:4: function
{
pushFollow(FOLLOW_function_in_statement128);
function();
@@ -554,7 +556,7 @@
}
break;
case 5 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:306:10: t= template
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:306:10: t= template
{
pushFollow(FOLLOW_template_in_statement141);
t=template();
@@ -565,7 +567,7 @@
}
break;
case 6 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:307:4: r= rule
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:307:4: r= rule
{
pushFollow(FOLLOW_rule_in_statement150);
r=rule();
@@ -576,7 +578,7 @@
}
break;
case 7 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:308:4: q= query
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:308:4: q= query
{
pushFollow(FOLLOW_query_in_statement160);
q=query();
@@ -605,21 +607,21 @@
// $ANTLR start package_statement
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:312:1: package_statement returns [String packageName] : 'package' name= dotted_name opt_semicolon ;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:312:1: package_statement returns [String packageName] : 'package' name= dotted_name opt_semicolon ;
public String package_statement() throws RecognitionException {
String packageName = null;
String name = null;
-
- packageName = null;
+
+ packageName = null;
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:317:3: ( 'package' name= dotted_name opt_semicolon )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:317:3: 'package' name= dotted_name opt_semicolon
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:317:3: ( 'package' name= dotted_name opt_semicolon )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:317:3: 'package' name= dotted_name opt_semicolon
{
- match(input,26,FOLLOW_26_in_package_statement188);
+ match(input,28,FOLLOW_28_in_package_statement188);
pushFollow(FOLLOW_dotted_name_in_package_statement192);
name=dotted_name();
_fsp--;
@@ -628,8 +630,8 @@
opt_semicolon();
_fsp--;
-
- packageName = name;
+
+ packageName = name;
}
@@ -647,16 +649,16 @@
// $ANTLR start import_statement
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:324:1: import_statement : 'import' name= import_name opt_semicolon ;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:324:1: import_statement : 'import' name= import_name opt_semicolon ;
public void import_statement() throws RecognitionException {
String name = null;
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:325:4: ( 'import' name= import_name opt_semicolon )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:325:4: 'import' name= import_name opt_semicolon
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:325:4: ( 'import' name= import_name opt_semicolon )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:325:4: 'import' name= import_name opt_semicolon
{
- match(input,27,FOLLOW_27_in_import_statement211);
+ match(input,29,FOLLOW_29_in_import_statement211);
pushFollow(FOLLOW_import_name_in_import_statement215);
name=import_name();
_fsp--;
@@ -665,9 +667,9 @@
opt_semicolon();
_fsp--;
-
- if (packageDescr != null)
- packageDescr.addImport( name );
+
+ if (packageDescr != null)
+ packageDescr.addImport( name );
}
@@ -685,17 +687,17 @@
// $ANTLR start function_import_statement
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:332:1: function_import_statement : 'import' 'function' name= import_name opt_semicolon ;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:332:1: function_import_statement : 'import' 'function' name= import_name opt_semicolon ;
public void function_import_statement() throws RecognitionException {
String name = null;
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:333:4: ( 'import' 'function' name= import_name opt_semicolon )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:333:4: 'import' 'function' name= import_name opt_semicolon
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:333:4: ( 'import' 'function' name= import_name opt_semicolon )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:333:4: 'import' 'function' name= import_name opt_semicolon
{
- match(input,27,FOLLOW_27_in_function_import_statement233);
- match(input,28,FOLLOW_28_in_function_import_statement235);
+ match(input,29,FOLLOW_29_in_function_import_statement233);
+ match(input,30,FOLLOW_30_in_function_import_statement235);
pushFollow(FOLLOW_import_name_in_function_import_statement239);
name=import_name();
_fsp--;
@@ -704,9 +706,9 @@
opt_semicolon();
_fsp--;
-
- if (packageDescr != null)
- packageDescr.addFunctionImport( name );
+
+ if (packageDescr != null)
+ packageDescr.addFunctionImport( name );
}
@@ -724,38 +726,38 @@
// $ANTLR start import_name
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:341:1: import_name returns [String name] : id= ID ( '.' id= ID )* (star= '.*' )? ;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:341:1: import_name returns [String name] : id= ID ( '.' id= ID )* (star= '.*' )? ;
public String import_name() throws RecognitionException {
String name = null;
Token id=null;
Token star=null;
-
- name = null;
+
+ name = null;
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:346:3: (id= ID ( '.' id= ID )* (star= '.*' )? )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:346:3: id= ID ( '.' id= ID )* (star= '.*' )?
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:346:3: (id= ID ( '.' id= ID )* (star= '.*' )? )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:346:3: id= ID ( '.' id= ID )* (star= '.*' )?
{
id=(Token)input.LT(1);
match(input,ID,FOLLOW_ID_in_import_name273);
name=id.getText();
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:346:32: ( '.' id= ID )*
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:346:32: ( '.' id= ID )*
loop5:
do {
int alt5=2;
int LA5_0 = input.LA(1);
- if ( (LA5_0==29) ) {
+ if ( (LA5_0==31) ) {
alt5=1;
}
switch (alt5) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:346:34: '.' id= ID
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:346:34: '.' id= ID
{
- match(input,29,FOLLOW_29_in_import_name279);
+ match(input,31,FOLLOW_31_in_import_name279);
id=(Token)input.LT(1);
match(input,ID,FOLLOW_ID_in_import_name283);
name = name + "." + id.getText();
@@ -768,18 +770,18 @@
}
} while (true);
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:346:85: (star= '.*' )?
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:346:85: (star= '.*' )?
int alt6=2;
int LA6_0 = input.LA(1);
- if ( (LA6_0==30) ) {
+ if ( (LA6_0==32) ) {
alt6=1;
}
switch (alt6) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:346:86: star= '.*'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:346:86: star= '.*'
{
star=(Token)input.LT(1);
- match(input,30,FOLLOW_30_in_import_name293);
+ match(input,32,FOLLOW_32_in_import_name293);
name = name + star.getText();
}
@@ -803,19 +805,19 @@
// $ANTLR start global
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:350:1: global : 'global' type= dotted_name id= ID opt_semicolon ;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:350:1: global : 'global' type= dotted_name id= ID opt_semicolon ;
public void global() throws RecognitionException {
Token id=null;
String type = null;
-
+
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:354:3: ( 'global' type= dotted_name id= ID opt_semicolon )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:354:3: 'global' type= dotted_name id= ID opt_semicolon
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:354:3: ( 'global' type= dotted_name id= ID opt_semicolon )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:354:3: 'global' type= dotted_name id= ID opt_semicolon
{
- match(input,31,FOLLOW_31_in_global317);
+ match(input,33,FOLLOW_33_in_global317);
pushFollow(FOLLOW_dotted_name_in_global321);
type=dotted_name();
_fsp--;
@@ -826,8 +828,8 @@
opt_semicolon();
_fsp--;
-
- packageDescr.addGlobal( id.getText(), type );
+
+ packageDescr.addGlobal( id.getText(), type );
}
@@ -845,7 +847,7 @@
// $ANTLR start function
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:361:1: function : loc= 'function' (retType= dotted_name )? name= ID '(' ( (paramType= dotted_name )? paramName= argument ( ',' (paramType= dotted_name )? paramName= argument )* )? ')' body= CURLY_CHUNK ;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:361:1: function : loc= 'function' (retType= dotted_name )? name= ID '(' ( (paramType= dotted_name )? paramName= argument ( ',' (paramType= dotted_name )? paramName= argument )* )? ')' body= CURLY_CHUNK ;
public void function() throws RecognitionException {
Token loc=null;
Token name=null;
@@ -857,27 +859,27 @@
String paramName = null;
-
- FunctionDescr f = null;
+
+ FunctionDescr f = null;
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:366:3: (loc= 'function' (retType= dotted_name )? name= ID '(' ( (paramType= dotted_name )? paramName= argument ( ',' (paramType= dotted_name )? paramName= argument )* )? ')' body= CURLY_CHUNK )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:366:3: loc= 'function' (retType= dotted_name )? name= ID '(' ( (paramType= dotted_name )? paramName= argument ( ',' (paramType= dotted_name )? paramName= argument )* )? ')' body= CURLY_CHUNK
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:366:3: (loc= 'function' (retType= dotted_name )? name= ID '(' ( (paramType= dotted_name )? paramName= argument ( ',' (paramType= dotted_name )? paramName= argument )* )? ')' body= CURLY_CHUNK )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:366:3: loc= 'function' (retType= dotted_name )? name= ID '(' ( (paramType= dotted_name )? paramName= argument ( ',' (paramType= dotted_name )? paramName= argument )* )? ')' body= CURLY_CHUNK
{
loc=(Token)input.LT(1);
- match(input,28,FOLLOW_28_in_function354);
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:366:18: (retType= dotted_name )?
+ match(input,30,FOLLOW_30_in_function354);
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:366:18: (retType= dotted_name )?
int alt7=2;
int LA7_0 = input.LA(1);
if ( (LA7_0==ID) ) {
int LA7_1 = input.LA(2);
- if ( (LA7_1==ID||LA7_1==29||LA7_1==47) ) {
+ if ( (LA7_1==ID||LA7_1==31||LA7_1==69) ) {
alt7=1;
}
}
switch (alt7) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:366:19: retType= dotted_name
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:366:19: retType= dotted_name
{
pushFollow(FOLLOW_dotted_name_in_function359);
retType=dotted_name();
@@ -891,13 +893,13 @@
name=(Token)input.LT(1);
match(input,ID,FOLLOW_ID_in_function365);
-
- //System.err.println( "function :: " + name.getText() );
- f = new FunctionDescr( name.getText(), retType );
- f.setLocation(offset(loc.getLine()), loc.getCharPositionInLine());
+
+ //System.err.println( "function :: " + name.getText() );
+ f = new FunctionDescr( name.getText(), retType );
+ f.setLocation(offset(loc.getLine()), loc.getCharPositionInLine());
- match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_function374);
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:373:4: ( (paramType= dotted_name )? paramName= argument ( ',' (paramType= dotted_name )? paramName= argument )* )?
+ match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_function374);
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:373:4: ( (paramType= dotted_name )? paramName= argument ( ',' (paramType= dotted_name )? paramName= argument )* )?
int alt11=2;
int LA11_0 = input.LA(1);
if ( (LA11_0==ID) ) {
@@ -905,14 +907,14 @@
}
switch (alt11) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:373:6: (paramType= dotted_name )? paramName= argument ( ',' (paramType= dotted_name )? paramName= argument )*
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:373:6: (paramType= dotted_name )? paramName= argument ( ',' (paramType= dotted_name )? paramName= argument )*
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:373:6: (paramType= dotted_name )?
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:373:6: (paramType= dotted_name )?
int alt8=2;
alt8 = dfa8.predict(input);
switch (alt8) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:373:7: paramType= dotted_name
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:373:7: paramType= dotted_name
{
pushFollow(FOLLOW_dotted_name_in_function384);
paramType=dotted_name();
@@ -928,30 +930,30 @@
paramName=argument();
_fsp--;
-
- f.addParameter( paramType, paramName );
+
+ f.addParameter( paramType, paramName );
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:377:5: ( ',' (paramType= dotted_name )? paramName= argument )*
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:377:5: ( ',' (paramType= dotted_name )? paramName= argument )*
loop10:
do {
int alt10=2;
int LA10_0 = input.LA(1);
- if ( (LA10_0==32) ) {
+ if ( (LA10_0==34) ) {
alt10=1;
}
switch (alt10) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:377:7: ',' (paramType= dotted_name )? paramName= argument
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:377:7: ',' (paramType= dotted_name )? paramName= argument
{
- match(input,32,FOLLOW_32_in_function404);
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:377:11: (paramType= dotted_name )?
+ match(input,34,FOLLOW_34_in_function404);
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:377:11: (paramType= dotted_name )?
int alt9=2;
alt9 = dfa9.predict(input);
switch (alt9) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:377:12: paramType= dotted_name
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:377:12: paramType= dotted_name
{
pushFollow(FOLLOW_dotted_name_in_function409);
paramType=dotted_name();
@@ -967,8 +969,8 @@
paramName=argument();
_fsp--;
-
- f.addParameter( paramType, paramName );
+
+ f.addParameter( paramType, paramName );
}
@@ -985,16 +987,16 @@
}
- match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_function439);
+ match(input,RIGHT_SQUARE,FOLLOW_RIGHT_SQUARE_in_function439);
body=(Token)input.LT(1);
match(input,CURLY_CHUNK,FOLLOW_CURLY_CHUNK_in_function445);
-
- //strip out '{','}'
- String bodys = body.getText();
- bodys = bodys.substring(1,bodys.length()-1);
- f.setText( bodys );
-
- packageDescr.addFunction( f );
+
+ //strip out '{','}'
+ String bodys = body.getText();
+ bodys = bodys.substring(1,bodys.length()-1);
+ f.setText( bodys );
+
+ packageDescr.addFunction( f );
}
@@ -1012,7 +1014,7 @@
// $ANTLR start query
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:397:1: query returns [QueryDescr query] : loc= 'query' queryName= word ( normal_lhs_block[lhs] ) 'end' ;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:397:1: query returns [QueryDescr query] : loc= 'query' queryName= word ( normal_lhs_block[lhs] ) 'end' ;
public QueryDescr query() throws RecognitionException {
QueryDescr query = null;
@@ -1020,27 +1022,27 @@
String queryName = null;
-
- query = null;
+
+ query = null;
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:402:3: (loc= 'query' queryName= word ( normal_lhs_block[lhs] ) 'end' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:402:3: loc= 'query' queryName= word ( normal_lhs_block[lhs] ) 'end'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:402:3: (loc= 'query' queryName= word ( normal_lhs_block[lhs] ) 'end' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:402:3: loc= 'query' queryName= word ( normal_lhs_block[lhs] ) 'end'
{
loc=(Token)input.LT(1);
- match(input,33,FOLLOW_33_in_query476);
+ match(input,35,FOLLOW_35_in_query476);
pushFollow(FOLLOW_word_in_query480);
queryName=word();
_fsp--;
-
- query = new QueryDescr( queryName, null );
- query.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
- AndDescr lhs = new AndDescr(); query.setLhs( lhs );
- lhs.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+
+ query = new QueryDescr( queryName, null );
+ query.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+ AndDescr lhs = new AndDescr(); query.setLhs( lhs );
+ lhs.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:409:3: ( normal_lhs_block[lhs] )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:411:4: normal_lhs_block[lhs]
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:409:3: ( normal_lhs_block[lhs] )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:411:4: normal_lhs_block[lhs]
{
pushFollow(FOLLOW_normal_lhs_block_in_query494);
normal_lhs_block(lhs);
@@ -1049,7 +1051,7 @@
}
- match(input,34,FOLLOW_34_in_query509);
+ match(input,36,FOLLOW_36_in_query509);
}
@@ -1066,7 +1068,7 @@
// $ANTLR start template
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:418:1: template returns [FactTemplateDescr template] : loc= 'template' templateName= ID opt_semicolon (slot= template_slot )+ 'end' opt_semicolon ;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:418:1: template returns [FactTemplateDescr template] : loc= 'template' templateName= ID opt_semicolon (slot= template_slot )+ 'end' opt_semicolon ;
public FactTemplateDescr template() throws RecognitionException {
FactTemplateDescr template = null;
@@ -1075,26 +1077,26 @@
FieldTemplateDescr slot = null;
-
- template = null;
+
+ template = null;
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:423:3: (loc= 'template' templateName= ID opt_semicolon (slot= template_slot )+ 'end' opt_semicolon )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:423:3: loc= 'template' templateName= ID opt_semicolon (slot= template_slot )+ 'end' opt_semicolon
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:423:3: (loc= 'template' templateName= ID opt_semicolon (slot= template_slot )+ 'end' opt_semicolon )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:423:3: loc= 'template' templateName= ID opt_semicolon (slot= template_slot )+ 'end' opt_semicolon
{
loc=(Token)input.LT(1);
- match(input,35,FOLLOW_35_in_template535);
+ match(input,37,FOLLOW_37_in_template535);
templateName=(Token)input.LT(1);
match(input,ID,FOLLOW_ID_in_template539);
pushFollow(FOLLOW_opt_semicolon_in_template541);
opt_semicolon();
_fsp--;
-
- template = new FactTemplateDescr(templateName.getText());
- template.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+
+ template = new FactTemplateDescr(templateName.getText());
+ template.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:428:3: (slot= template_slot )+
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:428:3: (slot= template_slot )+
int cnt12=0;
loop12:
do {
@@ -1107,14 +1109,14 @@
switch (alt12) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:429:4: slot= template_slot
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:429:4: slot= template_slot
{
pushFollow(FOLLOW_template_slot_in_template556);
slot=template_slot();
_fsp--;
-
- template.addFieldTemplate(slot);
+
+ template.addFieldTemplate(slot);
}
@@ -1129,7 +1131,7 @@
cnt12++;
} while (true);
- match(input,34,FOLLOW_34_in_template571);
+ match(input,36,FOLLOW_36_in_template571);
pushFollow(FOLLOW_opt_semicolon_in_template573);
opt_semicolon();
_fsp--;
@@ -1150,7 +1152,7 @@
// $ANTLR start template_slot
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:437:1: template_slot returns [FieldTemplateDescr field] : fieldType= dotted_name name= ID opt_semicolon ;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:437:1: template_slot returns [FieldTemplateDescr field] : fieldType= dotted_name name= ID opt_semicolon ;
public FieldTemplateDescr template_slot() throws RecognitionException {
FieldTemplateDescr field = null;
@@ -1158,12 +1160,12 @@
String fieldType = null;
-
- field = null;
+
+ field = null;
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:443:4: (fieldType= dotted_name name= ID opt_semicolon )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:443:4: fieldType= dotted_name name= ID opt_semicolon
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:443:4: (fieldType= dotted_name name= ID opt_semicolon )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:443:4: fieldType= dotted_name name= ID opt_semicolon
{
pushFollow(FOLLOW_dotted_name_in_template_slot605);
fieldType=dotted_name();
@@ -1175,11 +1177,11 @@
opt_semicolon();
_fsp--;
-
-
-
- field = new FieldTemplateDescr(name.getText(), fieldType);
- field.setLocation( offset(name.getLine()), name.getCharPositionInLine() );
+
+
+
+ field = new FieldTemplateDescr(name.getText(), fieldType);
+ field.setLocation( offset(name.getLine()), name.getCharPositionInLine() );
}
@@ -1197,7 +1199,7 @@
// $ANTLR start rule
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:452:1: rule returns [RuleDescr rule] : loc= 'rule' ruleName= word rule_attributes[rule] (loc= 'when' ( ':' )? ( normal_lhs_block[lhs] ) )? rhs= RHS ;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:452:1: rule returns [RuleDescr rule] : loc= 'rule' ruleName= word rule_attributes[rule] (loc= 'when' ( ':' )? ( normal_lhs_block[lhs] ) )? rhs= RHS ;
public RuleDescr rule() throws RecognitionException {
RuleDescr rule = null;
@@ -1206,64 +1208,64 @@
String ruleName = null;
-
- rule = null;
- String consequence = "";
+
+ rule = null;
+ String consequence = "";
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:458:3: (loc= 'rule' ruleName= word rule_attributes[rule] (loc= 'when' ( ':' )? ( normal_lhs_block[lhs] ) )? rhs= RHS )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:458:3: loc= 'rule' ruleName= word rule_attributes[rule] (loc= 'when' ( ':' )? ( normal_lhs_block[lhs] ) )? rhs= RHS
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:458:3: (loc= 'rule' ruleName= word rule_attributes[rule] (loc= 'when' ( ':' )? ( normal_lhs_block[lhs] ) )? rhs= RHS )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:458:3: loc= 'rule' ruleName= word rule_attributes[rule] (loc= 'when' ( ':' )? ( normal_lhs_block[lhs] ) )? rhs= RHS
{
loc=(Token)input.LT(1);
- match(input,36,FOLLOW_36_in_rule642);
+ match(input,38,FOLLOW_38_in_rule642);
pushFollow(FOLLOW_word_in_rule646);
ruleName=word();
_fsp--;
-
- debug( "start rule: " + ruleName );
- rule = new RuleDescr( ruleName, null );
- rule.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+
+ debug( "start rule: " + ruleName );
+ rule = new RuleDescr( ruleName, null );
+ rule.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
pushFollow(FOLLOW_rule_attributes_in_rule655);
rule_attributes(rule);
_fsp--;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:465:3: (loc= 'when' ( ':' )? ( normal_lhs_block[lhs] ) )?
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:465:3: (loc= 'when' ( ':' )? ( normal_lhs_block[lhs] ) )?
int alt14=2;
int LA14_0 = input.LA(1);
- if ( (LA14_0==37) ) {
+ if ( (LA14_0==39) ) {
alt14=1;
}
switch (alt14) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:465:5: loc= 'when' ( ':' )? ( normal_lhs_block[lhs] )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:465:5: loc= 'when' ( ':' )? ( normal_lhs_block[lhs] )
{
loc=(Token)input.LT(1);
- match(input,37,FOLLOW_37_in_rule664);
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:465:16: ( ':' )?
+ match(input,39,FOLLOW_39_in_rule664);
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:465:16: ( ':' )?
int alt13=2;
int LA13_0 = input.LA(1);
- if ( (LA13_0==38) ) {
+ if ( (LA13_0==40) ) {
alt13=1;
}
switch (alt13) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:465:16: ':'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:465:16: ':'
{
- match(input,38,FOLLOW_38_in_rule666);
+ match(input,40,FOLLOW_40_in_rule666);
}
break;
}
-
- AndDescr lhs = new AndDescr(); rule.setLhs( lhs );
- lhs.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+
+ AndDescr lhs = new AndDescr(); rule.setLhs( lhs );
+ lhs.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:470:4: ( normal_lhs_block[lhs] )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:472:5: normal_lhs_block[lhs]
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:470:4: ( normal_lhs_block[lhs] )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:472:5: normal_lhs_block[lhs]
{
pushFollow(FOLLOW_normal_lhs_block_in_rule684);
normal_lhs_block(lhs);
@@ -1280,19 +1282,19 @@
rhs=(Token)input.LT(1);
match(input,RHS,FOLLOW_RHS_in_rule707);
-
- consequence = rhs.getText();
- //strip out "then", "end"
- consequence = consequence.substring(4,consequence.length()-3);
-
- if ( expander != null ) {
- String expanded = runThenExpander( consequence, offset(rhs.getLine()) );
- rule.setConsequence( expanded );
- } else {
- rule.setConsequence( consequence );
- }
- rule.setConsequenceLocation(offset(rhs.getLine()), rhs.getCharPositionInLine());
- debug( "end rule: " + ruleName );
+
+ consequence = rhs.getText();
+ //strip out "then", "end"
+ consequence = consequence.substring(4,consequence.length()-3);
+
+ if ( expander != null ) {
+ String expanded = runThenExpander( consequence, offset(rhs.getLine()) );
+ rule.setConsequence( expanded );
+ } else {
+ rule.setConsequence( consequence );
+ }
+ rule.setConsequenceLocation(offset(rhs.getLine()), rhs.getCharPositionInLine());
+ debug( "end rule: " + ruleName );
}
@@ -1310,58 +1312,58 @@
// $ANTLR start rule_attributes
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:495:1: rule_attributes[RuleDescr rule] : ( 'attributes' ':' )? ( ( ',' )? a= rule_attribute )* ;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:495:1: rule_attributes[RuleDescr rule] : ( 'attributes' ':' )? ( ( ',' )? a= rule_attribute )* ;
public void rule_attributes(RuleDescr rule) throws RecognitionException {
AttributeDescr a = null;
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:497:4: ( ( 'attributes' ':' )? ( ( ',' )? a= rule_attribute )* )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:497:4: ( 'attributes' ':' )? ( ( ',' )? a= rule_attribute )*
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:497:4: ( ( 'attributes' ':' )? ( ( ',' )? a= rule_attribute )* )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:497:4: ( 'attributes' ':' )? ( ( ',' )? a= rule_attribute )*
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:497:4: ( 'attributes' ':' )?
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:497:4: ( 'attributes' ':' )?
int alt15=2;
int LA15_0 = input.LA(1);
- if ( (LA15_0==39) ) {
+ if ( (LA15_0==41) ) {
alt15=1;
}
switch (alt15) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:497:5: 'attributes' ':'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:497:5: 'attributes' ':'
{
- match(input,39,FOLLOW_39_in_rule_attributes732);
- match(input,38,FOLLOW_38_in_rule_attributes734);
+ match(input,41,FOLLOW_41_in_rule_attributes732);
+ match(input,40,FOLLOW_40_in_rule_attributes734);
}
break;
}
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:498:4: ( ( ',' )? a= rule_attribute )*
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:498:4: ( ( ',' )? a= rule_attribute )*
loop17:
do {
int alt17=2;
int LA17_0 = input.LA(1);
- if ( (LA17_0==32||(LA17_0>=40 && LA17_0<=45)) ) {
+ if ( (LA17_0==34||(LA17_0>=42 && LA17_0<=47)) ) {
alt17=1;
}
switch (alt17) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:498:6: ( ',' )? a= rule_attribute
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:498:6: ( ',' )? a= rule_attribute
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:498:6: ( ',' )?
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:498:6: ( ',' )?
int alt16=2;
int LA16_0 = input.LA(1);
- if ( (LA16_0==32) ) {
+ if ( (LA16_0==34) ) {
alt16=1;
}
switch (alt16) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:498:6: ','
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:498:6: ','
{
- match(input,32,FOLLOW_32_in_rule_attributes743);
+ match(input,34,FOLLOW_34_in_rule_attributes743);
}
break;
@@ -1372,8 +1374,8 @@
a=rule_attribute();
_fsp--;
-
- rule.addAttribute( a );
+
+ rule.addAttribute( a );
}
@@ -1400,36 +1402,36 @@
// $ANTLR start rule_attribute
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:507:1: rule_attribute returns [AttributeDescr d] : (a= salience | a= no_loop | a= agenda_group | a= duration | a= activation_group | a= auto_focus );
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:507:1: rule_attribute returns [AttributeDescr d] : (a= salience | a= no_loop | a= agenda_group | a= duration | a= activation_group | a= auto_focus );
public AttributeDescr rule_attribute() throws RecognitionException {
AttributeDescr d = null;
AttributeDescr a = null;
-
- d = null;
+
+ d = null;
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:512:4: (a= salience | a= no_loop | a= agenda_group | a= duration | a= activation_group | a= auto_focus )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:512:4: (a= salience | a= no_loop | a= agenda_group | a= duration | a= activation_group | a= auto_focus )
int alt18=6;
switch ( input.LA(1) ) {
- case 40:
+ case 42:
alt18=1;
break;
- case 41:
+ case 43:
alt18=2;
break;
- case 44:
+ case 46:
alt18=3;
break;
- case 45:
+ case 47:
alt18=4;
break;
- case 43:
+ case 45:
alt18=5;
break;
- case 42:
+ case 44:
alt18=6;
break;
default:
@@ -1441,7 +1443,7 @@
switch (alt18) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:512:4: a= salience
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:512:4: a= salience
{
pushFollow(FOLLOW_salience_in_rule_attribute789);
a=salience();
@@ -1452,7 +1454,7 @@
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:513:5: a= no_loop
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:513:5: a= no_loop
{
pushFollow(FOLLOW_no_loop_in_rule_attribute799);
a=no_loop();
@@ -1463,7 +1465,7 @@
}
break;
case 3 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:514:5: a= agenda_group
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:514:5: a= agenda_group
{
pushFollow(FOLLOW_agenda_group_in_rule_attribute810);
a=agenda_group();
@@ -1474,7 +1476,7 @@
}
break;
case 4 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:515:5: a= duration
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:515:5: a= duration
{
pushFollow(FOLLOW_duration_in_rule_attribute823);
a=duration();
@@ -1485,7 +1487,7 @@
}
break;
case 5 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:516:5: a= activation_group
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:516:5: a= activation_group
{
pushFollow(FOLLOW_activation_group_in_rule_attribute837);
a=activation_group();
@@ -1496,7 +1498,7 @@
}
break;
case 6 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:517:5: a= auto_focus
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:517:5: a= auto_focus
{
pushFollow(FOLLOW_auto_focus_in_rule_attribute848);
a=auto_focus();
@@ -1521,31 +1523,31 @@
// $ANTLR start salience
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:522:1: salience returns [AttributeDescr d ] : loc= 'salience' i= INT opt_semicolon ;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:522:1: salience returns [AttributeDescr d ] : loc= 'salience' i= INT opt_semicolon ;
public AttributeDescr salience() throws RecognitionException {
AttributeDescr d = null;
Token loc=null;
Token i=null;
-
- d = null;
+
+ d = null;
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:527:3: (loc= 'salience' i= INT opt_semicolon )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:527:3: loc= 'salience' i= INT opt_semicolon
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:527:3: (loc= 'salience' i= INT opt_semicolon )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:527:3: loc= 'salience' i= INT opt_semicolon
{
loc=(Token)input.LT(1);
- match(input,40,FOLLOW_40_in_salience882);
+ match(input,42,FOLLOW_42_in_salience882);
i=(Token)input.LT(1);
match(input,INT,FOLLOW_INT_in_salience886);
pushFollow(FOLLOW_opt_semicolon_in_salience888);
opt_semicolon();
_fsp--;
-
- d = new AttributeDescr( "salience", i.getText() );
- d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+
+ d = new AttributeDescr( "salience", i.getText() );
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
}
@@ -1563,26 +1565,26 @@
// $ANTLR start no_loop
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:534:1: no_loop returns [AttributeDescr d] : ( (loc= 'no-loop' opt_semicolon ) | (loc= 'no-loop' t= BOOL opt_semicolon ) );
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:534:1: no_loop returns [AttributeDescr d] : ( (loc= 'no-loop' opt_semicolon ) | (loc= 'no-loop' t= BOOL opt_semicolon ) );
public AttributeDescr no_loop() throws RecognitionException {
AttributeDescr d = null;
Token loc=null;
Token t=null;
-
- d = null;
+
+ d = null;
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:539:3: ( (loc= 'no-loop' opt_semicolon ) | (loc= 'no-loop' t= BOOL opt_semicolon ) )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:539:3: ( (loc= 'no-loop' opt_semicolon ) | (loc= 'no-loop' t= BOOL opt_semicolon ) )
int alt19=2;
int LA19_0 = input.LA(1);
- if ( (LA19_0==41) ) {
+ if ( (LA19_0==43) ) {
int LA19_1 = input.LA(2);
if ( (LA19_1==BOOL) ) {
alt19=2;
}
- else if ( (LA19_1==RHS||LA19_1==25||LA19_1==32||LA19_1==37||(LA19_1>=40 && LA19_1<=45)) ) {
+ else if ( (LA19_1==RHS||LA19_1==27||LA19_1==34||LA19_1==39||(LA19_1>=42 && LA19_1<=47)) ) {
alt19=1;
}
else {
@@ -1600,20 +1602,20 @@
}
switch (alt19) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:539:3: (loc= 'no-loop' opt_semicolon )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:539:3: (loc= 'no-loop' opt_semicolon )
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:539:3: (loc= 'no-loop' opt_semicolon )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:540:4: loc= 'no-loop' opt_semicolon
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:539:3: (loc= 'no-loop' opt_semicolon )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:540:4: loc= 'no-loop' opt_semicolon
{
loc=(Token)input.LT(1);
- match(input,41,FOLLOW_41_in_no_loop923);
+ match(input,43,FOLLOW_43_in_no_loop923);
pushFollow(FOLLOW_opt_semicolon_in_no_loop925);
opt_semicolon();
_fsp--;
-
- d = new AttributeDescr( "no-loop", "true" );
- d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+
+ d = new AttributeDescr( "no-loop", "true" );
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
}
@@ -1622,22 +1624,22 @@
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:547:3: (loc= 'no-loop' t= BOOL opt_semicolon )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:547:3: (loc= 'no-loop' t= BOOL opt_semicolon )
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:547:3: (loc= 'no-loop' t= BOOL opt_semicolon )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:548:4: loc= 'no-loop' t= BOOL opt_semicolon
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:547:3: (loc= 'no-loop' t= BOOL opt_semicolon )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:548:4: loc= 'no-loop' t= BOOL opt_semicolon
{
loc=(Token)input.LT(1);
- match(input,41,FOLLOW_41_in_no_loop950);
+ match(input,43,FOLLOW_43_in_no_loop950);
t=(Token)input.LT(1);
match(input,BOOL,FOLLOW_BOOL_in_no_loop954);
pushFollow(FOLLOW_opt_semicolon_in_no_loop956);
opt_semicolon();
_fsp--;
-
- d = new AttributeDescr( "no-loop", t.getText() );
- d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+
+ d = new AttributeDescr( "no-loop", t.getText() );
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
}
@@ -1660,26 +1662,26 @@
// $ANTLR start auto_focus
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:558:1: auto_focus returns [AttributeDescr d] : ( (loc= 'auto-focus' opt_semicolon ) | (loc= 'auto-focus' t= BOOL opt_semicolon ) );
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:558:1: auto_focus returns [AttributeDescr d] : ( (loc= 'auto-focus' opt_semicolon ) | (loc= 'auto-focus' t= BOOL opt_semicolon ) );
public AttributeDescr auto_focus() throws RecognitionException {
AttributeDescr d = null;
Token loc=null;
Token t=null;
-
- d = null;
+
+ d = null;
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:563:3: ( (loc= 'auto-focus' opt_semicolon ) | (loc= 'auto-focus' t= BOOL opt_semicolon ) )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:563:3: ( (loc= 'auto-focus' opt_semicolon ) | (loc= 'auto-focus' t= BOOL opt_semicolon ) )
int alt20=2;
int LA20_0 = input.LA(1);
- if ( (LA20_0==42) ) {
+ if ( (LA20_0==44) ) {
int LA20_1 = input.LA(2);
if ( (LA20_1==BOOL) ) {
alt20=2;
}
- else if ( (LA20_1==RHS||LA20_1==25||LA20_1==32||LA20_1==37||(LA20_1>=40 && LA20_1<=45)) ) {
+ else if ( (LA20_1==RHS||LA20_1==27||LA20_1==34||LA20_1==39||(LA20_1>=42 && LA20_1<=47)) ) {
alt20=1;
}
else {
@@ -1697,20 +1699,20 @@
}
switch (alt20) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:563:3: (loc= 'auto-focus' opt_semicolon )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:563:3: (loc= 'auto-focus' opt_semicolon )
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:563:3: (loc= 'auto-focus' opt_semicolon )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:564:4: loc= 'auto-focus' opt_semicolon
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:563:3: (loc= 'auto-focus' opt_semicolon )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:564:4: loc= 'auto-focus' opt_semicolon
{
loc=(Token)input.LT(1);
- match(input,42,FOLLOW_42_in_auto_focus1002);
+ match(input,44,FOLLOW_44_in_auto_focus1002);
pushFollow(FOLLOW_opt_semicolon_in_auto_focus1004);
opt_semicolon();
_fsp--;
-
- d = new AttributeDescr( "auto-focus", "true" );
- d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+
+ d = new AttributeDescr( "auto-focus", "true" );
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
}
@@ -1719,22 +1721,22 @@
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:571:3: (loc= 'auto-focus' t= BOOL opt_semicolon )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:571:3: (loc= 'auto-focus' t= BOOL opt_semicolon )
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:571:3: (loc= 'auto-focus' t= BOOL opt_semicolon )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:572:4: loc= 'auto-focus' t= BOOL opt_semicolon
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:571:3: (loc= 'auto-focus' t= BOOL opt_semicolon )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:572:4: loc= 'auto-focus' t= BOOL opt_semicolon
{
loc=(Token)input.LT(1);
- match(input,42,FOLLOW_42_in_auto_focus1029);
+ match(input,44,FOLLOW_44_in_auto_focus1029);
t=(Token)input.LT(1);
match(input,BOOL,FOLLOW_BOOL_in_auto_focus1033);
pushFollow(FOLLOW_opt_semicolon_in_auto_focus1035);
opt_semicolon();
_fsp--;
-
- d = new AttributeDescr( "auto-focus", t.getText() );
- d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+
+ d = new AttributeDescr( "auto-focus", t.getText() );
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
}
@@ -1757,31 +1759,31 @@
// $ANTLR start activation_group
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:582:1: activation_group returns [AttributeDescr d] : loc= 'activation-group' name= STRING opt_semicolon ;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:582:1: activation_group returns [AttributeDescr d] : loc= 'activation-group' name= STRING opt_semicolon ;
public AttributeDescr activation_group() throws RecognitionException {
AttributeDescr d = null;
Token loc=null;
Token name=null;
-
- d = null;
+
+ d = null;
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:587:3: (loc= 'activation-group' name= STRING opt_semicolon )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:587:3: loc= 'activation-group' name= STRING opt_semicolon
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:587:3: (loc= 'activation-group' name= STRING opt_semicolon )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:587:3: loc= 'activation-group' name= STRING opt_semicolon
{
loc=(Token)input.LT(1);
- match(input,43,FOLLOW_43_in_activation_group1077);
+ match(input,45,FOLLOW_45_in_activation_group1077);
name=(Token)input.LT(1);
match(input,STRING,FOLLOW_STRING_in_activation_group1081);
pushFollow(FOLLOW_opt_semicolon_in_activation_group1083);
opt_semicolon();
_fsp--;
-
- d = new AttributeDescr( "activation-group", getString( name ) );
- d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+
+ d = new AttributeDescr( "activation-group", getString( name ) );
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
}
@@ -1799,31 +1801,31 @@
// $ANTLR start agenda_group
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:594:1: agenda_group returns [AttributeDescr d] : loc= 'agenda-group' name= STRING opt_semicolon ;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:594:1: agenda_group returns [AttributeDescr d] : loc= 'agenda-group' name= STRING opt_semicolon ;
public AttributeDescr agenda_group() throws RecognitionException {
AttributeDescr d = null;
Token loc=null;
Token name=null;
-
- d = null;
+
+ d = null;
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:599:3: (loc= 'agenda-group' name= STRING opt_semicolon )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:599:3: loc= 'agenda-group' name= STRING opt_semicolon
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:599:3: (loc= 'agenda-group' name= STRING opt_semicolon )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:599:3: loc= 'agenda-group' name= STRING opt_semicolon
{
loc=(Token)input.LT(1);
- match(input,44,FOLLOW_44_in_agenda_group1112);
+ match(input,46,FOLLOW_46_in_agenda_group1112);
name=(Token)input.LT(1);
match(input,STRING,FOLLOW_STRING_in_agenda_group1116);
pushFollow(FOLLOW_opt_semicolon_in_agenda_group1118);
opt_semicolon();
_fsp--;
-
- d = new AttributeDescr( "agenda-group", getString( name ) );
- d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+
+ d = new AttributeDescr( "agenda-group", getString( name ) );
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
}
@@ -1841,27 +1843,27 @@
// $ANTLR start duration
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:607:1: duration returns [AttributeDescr d] : loc= 'duration' i= INT ;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:607:1: duration returns [AttributeDescr d] : loc= 'duration' i= INT ;
public AttributeDescr duration() throws RecognitionException {
AttributeDescr d = null;
Token loc=null;
Token i=null;
-
- d = null;
+
+ d = null;
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:612:3: (loc= 'duration' i= INT )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:612:3: loc= 'duration' i= INT
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:612:3: (loc= 'duration' i= INT )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:612:3: loc= 'duration' i= INT
{
loc=(Token)input.LT(1);
- match(input,45,FOLLOW_45_in_duration1150);
+ match(input,47,FOLLOW_47_in_duration1150);
i=(Token)input.LT(1);
match(input,INT,FOLLOW_INT_in_duration1154);
-
- d = new AttributeDescr( "duration", i.getText() );
- d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+
+ d = new AttributeDescr( "duration", i.getText() );
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
}
@@ -1879,28 +1881,28 @@
// $ANTLR start normal_lhs_block
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:620:1: normal_lhs_block[AndDescr descrs] : (d= lhs )* ;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:620:1: normal_lhs_block[AndDescr descrs] : (d= lhs )* ;
public void normal_lhs_block(AndDescr descrs) throws RecognitionException {
BaseDescr d = null;
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:622:3: ( (d= lhs )* )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:622:3: (d= lhs )*
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:622:3: ( (d= lhs )* )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:622:3: (d= lhs )*
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:622:3: (d= lhs )*
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:622:3: (d= lhs )*
loop21:
do {
int alt21=2;
int LA21_0 = input.LA(1);
- if ( (LA21_0==ID||LA21_0==LEFT_PAREN||(LA21_0>=73 && LA21_0<=75)) ) {
+ if ( (LA21_0==ID||LA21_0==LEFT_SQUARE||(LA21_0>=73 && LA21_0<=75)) ) {
alt21=1;
}
switch (alt21) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:622:5: d= lhs
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:622:5: d= lhs
{
pushFollow(FOLLOW_lhs_in_normal_lhs_block1180);
d=lhs();
@@ -1932,19 +1934,19 @@
// $ANTLR start lhs
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:676:1: lhs returns [BaseDescr d] : l= lhs_or ;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:676:1: lhs returns [BaseDescr d] : l= lhs_or ;
public BaseDescr lhs() throws RecognitionException {
BaseDescr d = null;
BaseDescr l = null;
-
- d=null;
+
+ d=null;
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:680:4: (l= lhs_or )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:680:4: l= lhs_or
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:680:4: (l= lhs_or )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:680:4: l= lhs_or
{
pushFollow(FOLLOW_lhs_or_in_lhs1218);
l=lhs_or();
@@ -1967,26 +1969,26 @@
// $ANTLR start lhs_column
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:684:1: lhs_column returns [BaseDescr d] : (f= fact_binding | f= fact );
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:684:1: lhs_column returns [BaseDescr d] : (f= fact_binding | f= fact );
public BaseDescr lhs_column() throws RecognitionException {
BaseDescr d = null;
BaseDescr f = null;
-
- d=null;
+
+ d=null;
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:688:4: (f= fact_binding | f= fact )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:688:4: (f= fact_binding | f= fact )
int alt22=2;
int LA22_0 = input.LA(1);
if ( (LA22_0==ID) ) {
int LA22_1 = input.LA(2);
- if ( (LA22_1==38) ) {
+ if ( (LA22_1==40) ) {
alt22=1;
}
- else if ( (LA22_1==LEFT_PAREN||LA22_1==29||LA22_1==47) ) {
+ else if ( (LA22_1==LEFT_SQUARE||LA22_1==31||LA22_1==69) ) {
alt22=2;
}
else {
@@ -2004,7 +2006,7 @@
}
switch (alt22) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:688:4: f= fact_binding
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:688:4: f= fact_binding
{
pushFollow(FOLLOW_fact_binding_in_lhs_column1246);
f=fact_binding();
@@ -2015,7 +2017,7 @@
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:689:4: f= fact
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:689:4: f= fact
{
pushFollow(FOLLOW_fact_in_lhs_column1255);
f=fact();
@@ -2040,29 +2042,29 @@
// $ANTLR start from_statement
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:692:1: from_statement returns [FromDescr d] : 'from' ds= from_source ;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:692:1: from_statement returns [FromDescr d] : 'from' ds= from_source ;
public FromDescr from_statement() throws RecognitionException {
FromDescr d = null;
DeclarativeInvokerDescr ds = null;
-
- d=factory.createFrom();
+
+ d=factory.createFrom();
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:697:4: ( 'from' ds= from_source )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:697:4: 'from' ds= from_source
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:697:4: ( 'from' ds= from_source )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:697:4: 'from' ds= from_source
{
- match(input,46,FOLLOW_46_in_from_statement1283);
+ match(input,48,FOLLOW_48_in_from_statement1283);
pushFollow(FOLLOW_from_source_in_from_statement1287);
ds=from_source();
_fsp--;
-
- d.setDataSource(ds);
+
+ d.setDataSource(ds);
+
-
}
@@ -2079,7 +2081,7 @@
// $ANTLR start from_source
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:707:1: from_source returns [DeclarativeInvokerDescr ds] : ( (var= ID '.' field= ID ( '[' arg= argument_value ']' )? ) | (var= ID '.' method= ID '(' args= argument_list ')' ) | (functionName= ID '(' args= argument_list ')' ) );
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:707:1: from_source returns [DeclarativeInvokerDescr ds] : ( (var= ID '.' field= ID (arg= square_chunk )? ) | (var= ID '.' method= ID '(' arg= paren_chunk ')' ) | (functionName= ID '(' args= paren_chunk ')' ) );
public DeclarativeInvokerDescr from_source() throws RecognitionException {
DeclarativeInvokerDescr ds = null;
@@ -2087,141 +2089,125 @@
Token field=null;
Token method=null;
Token functionName=null;
- ArgumentValueDescr arg = null;
+ String arg = null;
- ArrayList args = null;
+ String args = null;
-
- ds = null;
+
+ ds = null;
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:712:3: ( (var= ID '.' field= ID ( '[' arg= argument_value ']' )? ) | (var= ID '.' method= ID '(' args= argument_list ')' ) | (functionName= ID '(' args= argument_list ')' ) )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:712:3: ( (var= ID '.' field= ID (arg= square_chunk )? ) | (var= ID '.' method= ID '(' arg= paren_chunk ')' ) | (functionName= ID '(' args= paren_chunk ')' ) )
int alt24=3;
int LA24_0 = input.LA(1);
if ( (LA24_0==ID) ) {
int LA24_1 = input.LA(2);
- if ( (LA24_1==LEFT_PAREN) ) {
- alt24=3;
- }
- else if ( (LA24_1==29) ) {
- int LA24_3 = input.LA(3);
- if ( (LA24_3==ID) ) {
+ if ( (LA24_1==31) ) {
+ int LA24_2 = input.LA(3);
+ if ( (LA24_2==ID) ) {
int LA24_4 = input.LA(4);
- if ( (LA24_4==LEFT_PAREN) ) {
- switch ( input.LA(5) ) {
- case CURLY_CHUNK:
- case INT:
- case BOOL:
- case STRING:
- case FLOAT:
- case RIGHT_PAREN:
- case 47:
- case 54:
- alt24=2;
- break;
- case ID:
- int LA24_8 = input.LA(6);
- if ( (LA24_8==LEFT_PAREN||LA24_8==29||LA24_8==38||LA24_8==47) ) {
- alt24=1;
- }
- else if ( (LA24_8==RIGHT_PAREN||LA24_8==32) ) {
+ if ( (LA24_4==LEFT_SQUARE) ) {
+ int LA24_5 = input.LA(5);
+ if ( (LA24_5==ID||(LA24_5>=73 && LA24_5<=75)) ) {
+ alt24=1;
+ }
+ else if ( (LA24_5==LEFT_SQUARE) ) {
+ int LA24_7 = input.LA(6);
+ if ( (LA24_7==RIGHT_SQUARE) ) {
alt24=2;
}
+ else if ( (LA24_7==ID||LA24_7==LEFT_SQUARE||(LA24_7>=73 && LA24_7<=75)) ) {
+ alt24=1;
+ }
else {
NoViableAltException nvae =
- new NoViableAltException("707:1: from_source returns [DeclarativeInvokerDescr ds] : ( (var= ID '.' field= ID ( '[' arg= argument_value ']' )? ) | (var= ID '.' method= ID '(' args= argument_list ')' ) | (functionName= ID '(' args= argument_list ')' ) );", 24, 8, input);
+ new NoViableAltException("707:1: from_source returns [DeclarativeInvokerDescr ds] : ( (var= ID '.' field= ID (arg= square_chunk )? ) | (var= ID '.' method= ID '(' arg= paren_chunk ')' ) | (functionName= ID '(' args= paren_chunk ')' ) );", 24, 7, input);
throw nvae;
}
- break;
- case LEFT_PAREN:
- case 73:
- case 74:
- case 75:
- alt24=1;
- break;
- default:
+ }
+ else {
NoViableAltException nvae =
- new NoViableAltException("707:1: from_source returns [DeclarativeInvokerDescr ds] : ( (var= ID '.' field= ID ( '[' arg= argument_value ']' )? ) | (var= ID '.' method= ID '(' args= argument_list ')' ) | (functionName= ID '(' args= argument_list ')' ) );", 24, 5, input);
+ new NoViableAltException("707:1: from_source returns [DeclarativeInvokerDescr ds] : ( (var= ID '.' field= ID (arg= square_chunk )? ) | (var= ID '.' method= ID '(' arg= paren_chunk ')' ) | (functionName= ID '(' args= paren_chunk ')' ) );", 24, 5, input);
throw nvae;
}
-
}
- else if ( (LA24_4==ID||LA24_4==RHS||LA24_4==RIGHT_PAREN||LA24_4==25||LA24_4==34||LA24_4==47||(LA24_4>=57 && LA24_4<=58)||(LA24_4>=71 && LA24_4<=75)) ) {
+ else if ( (LA24_4==ID||LA24_4==RHS||LA24_4==RIGHT_SQUARE||LA24_4==27||LA24_4==36||(LA24_4>=55 && LA24_4<=56)||LA24_4==69||(LA24_4>=71 && LA24_4<=75)) ) {
alt24=1;
}
else {
NoViableAltException nvae =
- new NoViableAltException("707:1: from_source returns [DeclarativeInvokerDescr ds] : ( (var= ID '.' field= ID ( '[' arg= argument_value ']' )? ) | (var= ID '.' method= ID '(' args= argument_list ')' ) | (functionName= ID '(' args= argument_list ')' ) );", 24, 4, input);
+ new NoViableAltException("707:1: from_source returns [DeclarativeInvokerDescr ds] : ( (var= ID '.' field= ID (arg= square_chunk )? ) | (var= ID '.' method= ID '(' arg= paren_chunk ')' ) | (functionName= ID '(' args= paren_chunk ')' ) );", 24, 4, input);
throw nvae;
}
}
else {
NoViableAltException nvae =
- new NoViableAltException("707:1: from_source returns [DeclarativeInvokerDescr ds] : ( (var= ID '.' field= ID ( '[' arg= argument_value ']' )? ) | (var= ID '.' method= ID '(' args= argument_list ')' ) | (functionName= ID '(' args= argument_list ')' ) );", 24, 3, input);
+ new NoViableAltException("707:1: from_source returns [DeclarativeInvokerDescr ds] : ( (var= ID '.' field= ID (arg= square_chunk )? ) | (var= ID '.' method= ID '(' arg= paren_chunk ')' ) | (functionName= ID '(' args= paren_chunk ')' ) );", 24, 2, input);
throw nvae;
}
}
+ else if ( (LA24_1==LEFT_SQUARE) ) {
+ alt24=3;
+ }
else {
NoViableAltException nvae =
- new NoViableAltException("707:1: from_source returns [DeclarativeInvokerDescr ds] : ( (var= ID '.' field= ID ( '[' arg= argument_value ']' )? ) | (var= ID '.' method= ID '(' args= argument_list ')' ) | (functionName= ID '(' args= argument_list ')' ) );", 24, 1, input);
+ new NoViableAltException("707:1: from_source returns [DeclarativeInvokerDescr ds] : ( (var= ID '.' field= ID (arg= square_chunk )? ) | (var= ID '.' method= ID '(' arg= paren_chunk ')' ) | (functionName= ID '(' args= paren_chunk ')' ) );", 24, 1, input);
throw nvae;
}
}
else {
NoViableAltException nvae =
- new NoViableAltException("707:1: from_source returns [DeclarativeInvokerDescr ds] : ( (var= ID '.' field= ID ( '[' arg= argument_value ']' )? ) | (var= ID '.' method= ID '(' args= argument_list ')' ) | (functionName= ID '(' args= argument_list ')' ) );", 24, 0, input);
+ new NoViableAltException("707:1: from_source returns [DeclarativeInvokerDescr ds] : ( (var= ID '.' field= ID (arg= square_chunk )? ) | (var= ID '.' method= ID '(' arg= paren_chunk ')' ) | (functionName= ID '(' args= paren_chunk ')' ) );", 24, 0, input);
throw nvae;
}
switch (alt24) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:712:3: (var= ID '.' field= ID ( '[' arg= argument_value ']' )? )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:712:3: (var= ID '.' field= ID (arg= square_chunk )? )
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:712:3: (var= ID '.' field= ID ( '[' arg= argument_value ']' )? )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:712:4: var= ID '.' field= ID ( '[' arg= argument_value ']' )?
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:712:3: (var= ID '.' field= ID (arg= square_chunk )? )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:712:4: var= ID '.' field= ID (arg= square_chunk )?
{
var=(Token)input.LT(1);
match(input,ID,FOLLOW_ID_in_from_source1331);
- match(input,29,FOLLOW_29_in_from_source1333);
+ match(input,31,FOLLOW_31_in_from_source1333);
field=(Token)input.LT(1);
match(input,ID,FOLLOW_ID_in_from_source1337);
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:712:25: ( '[' arg= argument_value ']' )?
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:712:25: (arg= square_chunk )?
int alt23=2;
int LA23_0 = input.LA(1);
- if ( (LA23_0==47) ) {
+ if ( (LA23_0==69) ) {
alt23=1;
}
switch (alt23) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:712:26: '[' arg= argument_value ']'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:712:27: arg= square_chunk
{
- match(input,47,FOLLOW_47_in_from_source1341);
- pushFollow(FOLLOW_argument_value_in_from_source1345);
- arg=argument_value();
+ pushFollow(FOLLOW_square_chunk_in_from_source1344);
+ arg=square_chunk();
_fsp--;
- match(input,48,FOLLOW_48_in_from_source1347);
}
break;
}
-
- FieldAccessDescr fa;
- if ( arg == null ) {
- fa = new FieldAccessDescr(var.getText(), field.getText());
- } else {
- fa = new FieldAccessDescr(var.getText(), field.getText(), arg);
- }
- fa.setLocation( offset(var.getLine()), var.getCharPositionInLine() );
- ds = fa;
+
+ FieldAccessDescr fa;
+ if ( arg == null ) {
+ fa = new FieldAccessDescr(var.getText(), field.getText());
+ } else {
+ fa = new FieldAccessDescr(var.getText(), field.getText(), arg);
+ }
+ fa.setLocation( offset(var.getLine()), var.getCharPositionInLine() );
+ ds = fa;
}
@@ -2230,27 +2216,27 @@
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:727:3: (var= ID '.' method= ID '(' args= argument_list ')' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:727:3: (var= ID '.' method= ID '(' arg= paren_chunk ')' )
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:727:3: (var= ID '.' method= ID '(' args= argument_list ')' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:727:4: var= ID '.' method= ID '(' args= argument_list ')'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:727:3: (var= ID '.' method= ID '(' arg= paren_chunk ')' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:727:4: var= ID '.' method= ID '(' arg= paren_chunk ')'
{
var=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_from_source1376);
- match(input,29,FOLLOW_29_in_from_source1378);
+ match(input,ID,FOLLOW_ID_in_from_source1374);
+ match(input,31,FOLLOW_31_in_from_source1376);
method=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_from_source1382);
- match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_from_source1384);
- pushFollow(FOLLOW_argument_list_in_from_source1388);
- args=argument_list();
+ match(input,ID,FOLLOW_ID_in_from_source1380);
+ match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_from_source1382);
+ pushFollow(FOLLOW_paren_chunk_in_from_source1386);
+ arg=paren_chunk();
_fsp--;
- match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_from_source1390);
-
- MethodAccessDescr ma = new MethodAccessDescr(var.getText(), method.getText());
- ma.setLocation( offset(var.getLine()), var.getCharPositionInLine() );
- ma.setArguments(args);
- ds = ma;
+ match(input,RIGHT_SQUARE,FOLLOW_RIGHT_SQUARE_in_from_source1388);
+
+ MethodAccessDescr ma = new MethodAccessDescr(var.getText(), method.getText());
+ ma.setLocation( offset(var.getLine()), var.getCharPositionInLine() );
+ ma.setArguments(args);
+ ds = ma;
}
@@ -2259,24 +2245,24 @@
}
break;
case 3 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:736:3: (functionName= ID '(' args= argument_list ')' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:736:3: (functionName= ID '(' args= paren_chunk ')' )
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:736:3: (functionName= ID '(' args= argument_list ')' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:736:4: functionName= ID '(' args= argument_list ')'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:736:3: (functionName= ID '(' args= paren_chunk ')' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:736:4: functionName= ID '(' args= paren_chunk ')'
{
functionName=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_from_source1412);
- match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_from_source1414);
- pushFollow(FOLLOW_argument_list_in_from_source1418);
- args=argument_list();
+ match(input,ID,FOLLOW_ID_in_from_source1410);
+ match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_from_source1412);
+ pushFollow(FOLLOW_paren_chunk_in_from_source1416);
+ args=paren_chunk();
_fsp--;
- match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_from_source1420);
-
- FunctionCallDescr fc = new FunctionCallDescr(functionName.getText());
- fc.setLocation( offset(functionName.getLine()), functionName.getCharPositionInLine() );
- fc.setArguments(args);
- ds = fc;
+ match(input,RIGHT_SQUARE,FOLLOW_RIGHT_SQUARE_in_from_source1418);
+
+ FunctionCallDescr fc = new FunctionCallDescr(functionName.getText());
+ fc.setLocation( offset(functionName.getLine()), functionName.getCharPositionInLine() );
+ fc.setArguments(args);
+ ds = fc;
}
@@ -2299,7 +2285,7 @@
// $ANTLR start accumulate_statement
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:749:1: accumulate_statement returns [AccumulateDescr d] : loc= 'from' 'accumulate' '(' column= lhs_column ',' 'init' text= paren_chunk ',' 'action' text= paren_chunk ',' 'result' text= paren_chunk ')' ;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:749:1: accumulate_statement returns [AccumulateDescr d] : loc= 'from' 'accumulate' '(' column= lhs_column ',' 'init' text= paren_chunk ',' 'action' text= paren_chunk ',' 'result' text= paren_chunk ')' ;
public AccumulateDescr accumulate_statement() throws RecognitionException {
AccumulateDescr d = null;
@@ -2309,54 +2295,54 @@
String text = null;
-
- d = factory.createAccumulate();
+
+ d = factory.createAccumulate();
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:754:10: (loc= 'from' 'accumulate' '(' column= lhs_column ',' 'init' text= paren_chunk ',' 'action' text= paren_chunk ',' 'result' text= paren_chunk ')' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:754:10: loc= 'from' 'accumulate' '(' column= lhs_column ',' 'init' text= paren_chunk ',' 'action' text= paren_chunk ',' 'result' text= paren_chunk ')'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:754:10: (loc= 'from' 'accumulate' '(' column= lhs_column ',' 'init' text= paren_chunk ',' 'action' text= paren_chunk ',' 'result' text= paren_chunk ')' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:754:10: loc= 'from' 'accumulate' '(' column= lhs_column ',' 'init' text= paren_chunk ',' 'action' text= paren_chunk ',' 'result' text= paren_chunk ')'
{
loc=(Token)input.LT(1);
- match(input,46,FOLLOW_46_in_accumulate_statement1469);
- match(input,49,FOLLOW_49_in_accumulate_statement1471);
-
- d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+ match(input,48,FOLLOW_48_in_accumulate_statement1467);
+ match(input,49,FOLLOW_49_in_accumulate_statement1469);
+
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
- match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_accumulate_statement1481);
- pushFollow(FOLLOW_lhs_column_in_accumulate_statement1485);
+ match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_accumulate_statement1479);
+ pushFollow(FOLLOW_lhs_column_in_accumulate_statement1483);
column=lhs_column();
_fsp--;
- match(input,32,FOLLOW_32_in_accumulate_statement1487);
-
- d.setSourceColumn( (ColumnDescr)column );
+ match(input,34,FOLLOW_34_in_accumulate_statement1485);
+
+ d.setSourceColumn( (ColumnDescr)column );
- match(input,50,FOLLOW_50_in_accumulate_statement1496);
- pushFollow(FOLLOW_paren_chunk_in_accumulate_statement1500);
+ match(input,50,FOLLOW_50_in_accumulate_statement1494);
+ pushFollow(FOLLOW_paren_chunk_in_accumulate_statement1498);
text=paren_chunk();
_fsp--;
- match(input,32,FOLLOW_32_in_accumulate_statement1502);
-
- d.setInitCode( text.substring(1, text.length()-1) );
+ match(input,34,FOLLOW_34_in_accumulate_statement1500);
+
+ d.setInitCode( text.substring(1, text.length()-1) );
- match(input,51,FOLLOW_51_in_accumulate_statement1511);
- pushFollow(FOLLOW_paren_chunk_in_accumulate_statement1515);
+ match(input,51,FOLLOW_51_in_accumulate_statement1509);
+ pushFollow(FOLLOW_paren_chunk_in_accumulate_statement1513);
text=paren_chunk();
_fsp--;
- match(input,32,FOLLOW_32_in_accumulate_statement1517);
-
- d.setActionCode( text.substring(1, text.length()-1) );
+ match(input,34,FOLLOW_34_in_accumulate_statement1515);
+
+ d.setActionCode( text.substring(1, text.length()-1) );
- match(input,52,FOLLOW_52_in_accumulate_statement1526);
- pushFollow(FOLLOW_paren_chunk_in_accumulate_statement1530);
+ match(input,52,FOLLOW_52_in_accumulate_statement1524);
+ pushFollow(FOLLOW_paren_chunk_in_accumulate_statement1528);
text=paren_chunk();
_fsp--;
- match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_accumulate_statement1532);
-
- d.setResultCode( text.substring(1, text.length()-1) );
+ match(input,RIGHT_SQUARE,FOLLOW_RIGHT_SQUARE_in_accumulate_statement1530);
+
+ d.setResultCode( text.substring(1, text.length()-1) );
}
@@ -2374,7 +2360,7 @@
// $ANTLR start collect_statement
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:776:1: collect_statement returns [CollectDescr d] : loc= 'from' 'collect' '(' column= lhs_column ')' ;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:776:1: collect_statement returns [CollectDescr d] : loc= 'from' 'collect' '(' column= lhs_column ')' ;
public CollectDescr collect_statement() throws RecognitionException {
CollectDescr d = null;
@@ -2382,27 +2368,27 @@
BaseDescr column = null;
-
- d = factory.createCollect();
+
+ d = factory.createCollect();
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:781:10: (loc= 'from' 'collect' '(' column= lhs_column ')' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:781:10: loc= 'from' 'collect' '(' column= lhs_column ')'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:781:10: (loc= 'from' 'collect' '(' column= lhs_column ')' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:781:10: loc= 'from' 'collect' '(' column= lhs_column ')'
{
loc=(Token)input.LT(1);
- match(input,46,FOLLOW_46_in_collect_statement1575);
- match(input,53,FOLLOW_53_in_collect_statement1577);
-
- d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+ match(input,48,FOLLOW_48_in_collect_statement1573);
+ match(input,53,FOLLOW_53_in_collect_statement1575);
+
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
- match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_collect_statement1587);
- pushFollow(FOLLOW_lhs_column_in_collect_statement1591);
+ match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_collect_statement1585);
+ pushFollow(FOLLOW_lhs_column_in_collect_statement1589);
column=lhs_column();
_fsp--;
- match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_collect_statement1593);
-
- d.setSourceColumn( (ColumnDescr)column );
+ match(input,RIGHT_SQUARE,FOLLOW_RIGHT_SQUARE_in_collect_statement1591);
+
+ d.setSourceColumn( (ColumnDescr)column );
}
@@ -2420,62 +2406,62 @@
// $ANTLR start argument_list
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:791:1: argument_list returns [ArrayList args] : (param= argument_value ( ',' param= argument_value )* )? ;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:791:1: argument_list returns [ArrayList args] : (param= argument_value ( ',' param= argument_value )* )? ;
public ArrayList argument_list() throws RecognitionException {
ArrayList args = null;
ArgumentValueDescr param = null;
-
- args = new ArrayList();
+
+ args = new ArrayList();
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:796:3: ( (param= argument_value ( ',' param= argument_value )* )? )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:796:3: (param= argument_value ( ',' param= argument_value )* )?
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:796:3: ( (param= argument_value ( ',' param= argument_value )* )? )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:796:3: (param= argument_value ( ',' param= argument_value )* )?
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:796:3: (param= argument_value ( ',' param= argument_value )* )?
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:796:3: (param= argument_value ( ',' param= argument_value )* )?
int alt26=2;
int LA26_0 = input.LA(1);
- if ( ((LA26_0>=ID && LA26_0<=CURLY_CHUNK)||(LA26_0>=INT && LA26_0<=FLOAT)||LA26_0==47||LA26_0==54) ) {
+ if ( (LA26_0==ID||(LA26_0>=INT && LA26_0<=FLOAT)||LA26_0==54) ) {
alt26=1;
}
switch (alt26) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:796:4: param= argument_value ( ',' param= argument_value )*
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:796:4: param= argument_value ( ',' param= argument_value )*
{
- pushFollow(FOLLOW_argument_value_in_argument_list1626);
+ pushFollow(FOLLOW_argument_value_in_argument_list1624);
param=argument_value();
_fsp--;
-
- if (param != null) {
- args.add(param);
- }
+
+ if (param != null) {
+ args.add(param);
+ }
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:802:3: ( ',' param= argument_value )*
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:802:3: ( ',' param= argument_value )*
loop25:
do {
int alt25=2;
int LA25_0 = input.LA(1);
- if ( (LA25_0==32) ) {
+ if ( (LA25_0==34) ) {
alt25=1;
}
switch (alt25) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:803:4: ',' param= argument_value
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:803:4: ',' param= argument_value
{
- match(input,32,FOLLOW_32_in_argument_list1642);
- pushFollow(FOLLOW_argument_value_in_argument_list1646);
+ match(input,34,FOLLOW_34_in_argument_list1640);
+ pushFollow(FOLLOW_argument_value_in_argument_list1644);
param=argument_value();
_fsp--;
-
- if (param != null) {
- args.add(param);
- }
+
+ if (param != null) {
+ args.add(param);
+ }
}
@@ -2508,26 +2494,22 @@
// $ANTLR start argument_value
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:812:1: argument_value returns [ArgumentValueDescr value] : (t= STRING | t= INT | t= FLOAT | t= BOOL | t= ID | t= 'null' | m= inline_map | a= inline_array ) ;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:812:1: argument_value returns [ArgumentValueDescr value] : (t= STRING | t= INT | t= FLOAT | t= BOOL | t= ID | t= 'null' ) ;
public ArgumentValueDescr argument_value() throws RecognitionException {
ArgumentValueDescr value = null;
Token t=null;
- ArgumentValueDescr.MapDescr m = null;
- List a = null;
-
-
-
- value = null;
- String text = null;
+
+ value = null;
+ String text = null;
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:817:4: ( (t= STRING | t= INT | t= FLOAT | t= BOOL | t= ID | t= 'null' | m= inline_map | a= inline_array ) )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:817:4: (t= STRING | t= INT | t= FLOAT | t= BOOL | t= ID | t= 'null' | m= inline_map | a= inline_array )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:817:4: ( (t= STRING | t= INT | t= FLOAT | t= BOOL | t= ID | t= 'null' ) )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:817:4: (t= STRING | t= INT | t= FLOAT | t= BOOL | t= ID | t= 'null' )
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:817:4: (t= STRING | t= INT | t= FLOAT | t= BOOL | t= ID | t= 'null' | m= inline_map | a= inline_array )
- int alt27=8;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:817:4: (t= STRING | t= INT | t= FLOAT | t= BOOL | t= ID | t= 'null' )
+ int alt27=6;
switch ( input.LA(1) ) {
case STRING:
alt27=1;
@@ -2547,97 +2529,69 @@
case 54:
alt27=6;
break;
- case CURLY_CHUNK:
- alt27=7;
- break;
- case 47:
- alt27=8;
- break;
default:
NoViableAltException nvae =
- new NoViableAltException("817:4: (t= STRING | t= INT | t= FLOAT | t= BOOL | t= ID | t= 'null' | m= inline_map | a= inline_array )", 27, 0, input);
+ new NoViableAltException("817:4: (t= STRING | t= INT | t= FLOAT | t= BOOL | t= ID | t= 'null' )", 27, 0, input);
throw nvae;
}
switch (alt27) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:817:6: t= STRING
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:817:6: t= STRING
{
t=(Token)input.LT(1);
- match(input,STRING,FOLLOW_STRING_in_argument_value1686);
+ match(input,STRING,FOLLOW_STRING_in_argument_value1684);
text = getString( t ); value=new ArgumentValueDescr(ArgumentValueDescr.STRING, text);
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:818:5: t= INT
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:818:5: t= INT
{
t=(Token)input.LT(1);
- match(input,INT,FOLLOW_INT_in_argument_value1697);
+ match(input,INT,FOLLOW_INT_in_argument_value1695);
text = t.getText(); value=new ArgumentValueDescr(ArgumentValueDescr.INTEGRAL, text);
}
break;
case 3 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:819:5: t= FLOAT
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:819:5: t= FLOAT
{
t=(Token)input.LT(1);
- match(input,FLOAT,FOLLOW_FLOAT_in_argument_value1710);
+ match(input,FLOAT,FOLLOW_FLOAT_in_argument_value1708);
text = t.getText(); value=new ArgumentValueDescr(ArgumentValueDescr.DECIMAL, text);
}
break;
case 4 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:820:5: t= BOOL
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:820:5: t= BOOL
{
t=(Token)input.LT(1);
- match(input,BOOL,FOLLOW_BOOL_in_argument_value1721);
+ match(input,BOOL,FOLLOW_BOOL_in_argument_value1719);
text = t.getText(); value=new ArgumentValueDescr(ArgumentValueDescr.BOOLEAN, text);
}
break;
case 5 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:821:5: t= ID
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:821:5: t= ID
{
t=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_argument_value1733);
+ match(input,ID,FOLLOW_ID_in_argument_value1731);
text = t.getText(); value=new ArgumentValueDescr(ArgumentValueDescr.VARIABLE, text);
}
break;
case 6 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:822:5: t= 'null'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:822:5: t= 'null'
{
t=(Token)input.LT(1);
- match(input,54,FOLLOW_54_in_argument_value1744);
+ match(input,54,FOLLOW_54_in_argument_value1742);
text = "null"; value=new ArgumentValueDescr(ArgumentValueDescr.NULL, text);
}
break;
- case 7 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:823:11: m= inline_map
- {
- pushFollow(FOLLOW_inline_map_in_argument_value1761);
- m=inline_map();
- _fsp--;
- value=new ArgumentValueDescr(ArgumentValueDescr.MAP, m.getKeyValuePairs() );
-
- }
- break;
- case 8 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:824:11: a= inline_array
- {
- pushFollow(FOLLOW_inline_array_in_argument_value1777);
- a=inline_array();
- _fsp--;
-
- value = new ArgumentValueDescr(ArgumentValueDescr.LIST, a );
-
- }
- break;
-
}
@@ -2655,234 +2609,8 @@
// $ANTLR end argument_value
- // $ANTLR start inline_map
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:828:1: inline_map returns [ArgumentValueDescr.MapDescr mapDescr] : '{' (key= argument_value '=>' value= argument_value ) ( ( EOL )? ',' ( EOL )? key= argument_value '=>' value= argument_value )* '}' ;
- public ArgumentValueDescr.MapDescr inline_map() throws RecognitionException {
- ArgumentValueDescr.MapDescr mapDescr = null;
-
- ArgumentValueDescr key = null;
-
- ArgumentValueDescr value = null;
-
-
-
- mapDescr = new ArgumentValueDescr.MapDescr();
-
- try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:832:8: ( '{' (key= argument_value '=>' value= argument_value ) ( ( EOL )? ',' ( EOL )? key= argument_value '=>' value= argument_value )* '}' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:832:8: '{' (key= argument_value '=>' value= argument_value ) ( ( EOL )? ',' ( EOL )? key= argument_value '=>' value= argument_value )* '}'
- {
- match(input,CURLY_CHUNK,FOLLOW_CURLY_CHUNK_in_inline_map1817);
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:833:12: (key= argument_value '=>' value= argument_value )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:833:14: key= argument_value '=>' value= argument_value
- {
- pushFollow(FOLLOW_argument_value_in_inline_map1835);
- key=argument_value();
- _fsp--;
-
- match(input,55,FOLLOW_55_in_inline_map1837);
- pushFollow(FOLLOW_argument_value_in_inline_map1841);
- value=argument_value();
- _fsp--;
-
-
- if ( key != null ) {
- mapDescr.add( new ArgumentValueDescr.KeyValuePairDescr( key, value ) );
- }
-
-
- }
-
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:840:12: ( ( EOL )? ',' ( EOL )? key= argument_value '=>' value= argument_value )*
- loop30:
- do {
- int alt30=2;
- int LA30_0 = input.LA(1);
- if ( (LA30_0==EOL||LA30_0==32) ) {
- alt30=1;
- }
-
-
- switch (alt30) {
- case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:840:14: ( EOL )? ',' ( EOL )? key= argument_value '=>' value= argument_value
- {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:840:14: ( EOL )?
- int alt28=2;
- int LA28_0 = input.LA(1);
- if ( (LA28_0==EOL) ) {
- alt28=1;
- }
- switch (alt28) {
- case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:840:15: EOL
- {
- match(input,EOL,FOLLOW_EOL_in_inline_map1884);
-
- }
- break;
-
- }
-
- match(input,32,FOLLOW_32_in_inline_map1888);
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:840:25: ( EOL )?
- int alt29=2;
- int LA29_0 = input.LA(1);
- if ( (LA29_0==EOL) ) {
- alt29=1;
- }
- switch (alt29) {
- case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:840:26: EOL
- {
- match(input,EOL,FOLLOW_EOL_in_inline_map1891);
-
- }
- break;
-
- }
-
- pushFollow(FOLLOW_argument_value_in_inline_map1897);
- key=argument_value();
- _fsp--;
-
- match(input,55,FOLLOW_55_in_inline_map1899);
- pushFollow(FOLLOW_argument_value_in_inline_map1903);
- value=argument_value();
- _fsp--;
-
-
- if ( key != null ) {
- mapDescr.add( new ArgumentValueDescr.KeyValuePairDescr( key, value ) );
- }
-
-
- }
- break;
-
- default :
- break loop30;
- }
- } while (true);
-
- match(input,56,FOLLOW_56_in_inline_map1939);
-
- }
-
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return mapDescr;
- }
- // $ANTLR end inline_map
-
-
- // $ANTLR start inline_array
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:849:1: inline_array returns [List list] : '[' arg= argument_value ( ( EOL )? ',' ( EOL )? arg= argument_value )* ']' ;
- public List inline_array() throws RecognitionException {
- List list = null;
-
- ArgumentValueDescr arg = null;
-
-
-
- list = new ArrayList();
-
- try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:854:5: ( '[' arg= argument_value ( ( EOL )? ',' ( EOL )? arg= argument_value )* ']' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:854:5: '[' arg= argument_value ( ( EOL )? ',' ( EOL )? arg= argument_value )* ']'
- {
- match(input,47,FOLLOW_47_in_inline_array1983);
- pushFollow(FOLLOW_argument_value_in_inline_array1987);
- arg=argument_value();
- _fsp--;
-
- list.add(arg);
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:856:8: ( ( EOL )? ',' ( EOL )? arg= argument_value )*
- loop33:
- do {
- int alt33=2;
- int LA33_0 = input.LA(1);
- if ( (LA33_0==EOL||LA33_0==32) ) {
- alt33=1;
- }
-
-
- switch (alt33) {
- case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:856:10: ( EOL )? ',' ( EOL )? arg= argument_value
- {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:856:10: ( EOL )?
- int alt31=2;
- int LA31_0 = input.LA(1);
- if ( (LA31_0==EOL) ) {
- alt31=1;
- }
- switch (alt31) {
- case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:856:10: EOL
- {
- match(input,EOL,FOLLOW_EOL_in_inline_array2005);
-
- }
- break;
-
- }
-
- match(input,32,FOLLOW_32_in_inline_array2008);
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:856:19: ( EOL )?
- int alt32=2;
- int LA32_0 = input.LA(1);
- if ( (LA32_0==EOL) ) {
- alt32=1;
- }
- switch (alt32) {
- case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:856:19: EOL
- {
- match(input,EOL,FOLLOW_EOL_in_inline_array2010);
-
- }
- break;
-
- }
-
- pushFollow(FOLLOW_argument_value_in_inline_array2015);
- arg=argument_value();
- _fsp--;
-
- list.add(arg);
-
- }
- break;
-
- default :
- break loop33;
- }
- } while (true);
-
- match(input,48,FOLLOW_48_in_inline_array2028);
-
- }
-
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return list;
- }
- // $ANTLR end inline_array
-
-
// $ANTLR start fact_binding
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:862:1: fact_binding returns [BaseDescr d] : id= ID ':' fe= fact_expression[id.getText()] ;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:826:1: fact_binding returns [BaseDescr d] : id= ID ':' fe= fact_expression[id.getText()] ;
public BaseDescr fact_binding() throws RecognitionException {
BaseDescr d = null;
@@ -2890,23 +2618,23 @@
BaseDescr fe = null;
-
- d=null;
- boolean multi=false;
+
+ d=null;
+ boolean multi=false;
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:868:4: (id= ID ':' fe= fact_expression[id.getText()] )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:868:4: id= ID ':' fe= fact_expression[id.getText()]
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:832:4: (id= ID ':' fe= fact_expression[id.getText()] )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:832:4: id= ID ':' fe= fact_expression[id.getText()]
{
id=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_fact_binding2072);
- match(input,38,FOLLOW_38_in_fact_binding2082);
- pushFollow(FOLLOW_fact_expression_in_fact_binding2086);
+ match(input,ID,FOLLOW_ID_in_fact_binding1779);
+ match(input,40,FOLLOW_40_in_fact_binding1789);
+ pushFollow(FOLLOW_fact_expression_in_fact_binding1793);
fe=fact_expression(id.getText());
_fsp--;
-
- d=fe;
+
+ d=fe;
}
@@ -2924,7 +2652,7 @@
// $ANTLR start fact_expression
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:876:2: fact_expression[String id] returns [BaseDescr pd] : ( '(' fe= fact_expression_in_paren[id] ')' | f= fact );
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:840:2: fact_expression[String id] returns [BaseDescr pd] : ( '(' fe= fact_expression_in_paren[id] ')' | f= fact );
public BaseDescr fact_expression(String id) throws RecognitionException {
BaseDescr pd = null;
@@ -2933,50 +2661,50 @@
BaseDescr f = null;
-
- pd = null;
- boolean multi = false;
+
+ pd = null;
+ boolean multi = false;
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:881:5: ( '(' fe= fact_expression_in_paren[id] ')' | f= fact )
- int alt34=2;
- int LA34_0 = input.LA(1);
- if ( (LA34_0==LEFT_PAREN) ) {
- alt34=1;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:845:5: ( '(' fe= fact_expression_in_paren[id] ')' | f= fact )
+ int alt28=2;
+ int LA28_0 = input.LA(1);
+ if ( (LA28_0==LEFT_SQUARE) ) {
+ alt28=1;
}
- else if ( (LA34_0==ID) ) {
- alt34=2;
+ else if ( (LA28_0==ID) ) {
+ alt28=2;
}
else {
NoViableAltException nvae =
- new NoViableAltException("876:2: fact_expression[String id] returns [BaseDescr pd] : ( '(' fe= fact_expression_in_paren[id] ')' | f= fact );", 34, 0, input);
+ new NoViableAltException("840:2: fact_expression[String id] returns [BaseDescr pd] : ( '(' fe= fact_expression_in_paren[id] ')' | f= fact );", 28, 0, input);
throw nvae;
}
- switch (alt34) {
+ switch (alt28) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:881:5: '(' fe= fact_expression_in_paren[id] ')'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:845:5: '(' fe= fact_expression_in_paren[id] ')'
{
- match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_fact_expression2118);
- pushFollow(FOLLOW_fact_expression_in_paren_in_fact_expression2122);
+ match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_fact_expression1825);
+ pushFollow(FOLLOW_fact_expression_in_paren_in_fact_expression1829);
fe=fact_expression_in_paren(id);
_fsp--;
- match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_fact_expression2125);
+ match(input,RIGHT_SQUARE,FOLLOW_RIGHT_SQUARE_in_fact_expression1832);
pd=fe;
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:882:6: f= fact
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:846:6: f= fact
{
- pushFollow(FOLLOW_fact_in_fact_expression2136);
+ pushFollow(FOLLOW_fact_in_fact_expression1843);
f=fact();
_fsp--;
-
- ((ColumnDescr)f).setIdentifier( id );
- pd = f;
+
+ ((ColumnDescr)f).setIdentifier( id );
+ pd = f;
}
@@ -2996,7 +2724,7 @@
// $ANTLR start fact_expression_in_paren
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:890:2: fact_expression_in_paren[String id] returns [BaseDescr pd] : ( '(' fe= fact_expression_in_paren[id] ')' | f= fact ( ('or'|'||')f= fact )* );
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:854:2: fact_expression_in_paren[String id] returns [BaseDescr pd] : ( '(' fe= fact_expression_in_paren[id] ')' | f= fact ( ('or'|'||')f= fact )* );
public BaseDescr fact_expression_in_paren(String id) throws RecognitionException {
BaseDescr pd = null;
@@ -3005,96 +2733,96 @@
BaseDescr f = null;
-
- pd = null;
- boolean multi = false;
+
+ pd = null;
+ boolean multi = false;
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:895:5: ( '(' fe= fact_expression_in_paren[id] ')' | f= fact ( ('or'|'||')f= fact )* )
- int alt36=2;
- int LA36_0 = input.LA(1);
- if ( (LA36_0==LEFT_PAREN) ) {
- alt36=1;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:859:5: ( '(' fe= fact_expression_in_paren[id] ')' | f= fact ( ('or'|'||')f= fact )* )
+ int alt30=2;
+ int LA30_0 = input.LA(1);
+ if ( (LA30_0==LEFT_SQUARE) ) {
+ alt30=1;
}
- else if ( (LA36_0==ID) ) {
- alt36=2;
+ else if ( (LA30_0==ID) ) {
+ alt30=2;
}
else {
NoViableAltException nvae =
- new NoViableAltException("890:2: fact_expression_in_paren[String id] returns [BaseDescr pd] : ( '(' fe= fact_expression_in_paren[id] ')' | f= fact ( ('or'|'||')f= fact )* );", 36, 0, input);
+ new NoViableAltException("854:2: fact_expression_in_paren[String id] returns [BaseDescr pd] : ( '(' fe= fact_expression_in_paren[id] ')' | f= fact ( ('or'|'||')f= fact )* );", 30, 0, input);
throw nvae;
}
- switch (alt36) {
+ switch (alt30) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:895:5: '(' fe= fact_expression_in_paren[id] ')'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:859:5: '(' fe= fact_expression_in_paren[id] ')'
{
- match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_fact_expression_in_paren2167);
- pushFollow(FOLLOW_fact_expression_in_paren_in_fact_expression_in_paren2171);
+ match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_fact_expression_in_paren1874);
+ pushFollow(FOLLOW_fact_expression_in_paren_in_fact_expression_in_paren1878);
fe=fact_expression_in_paren(id);
_fsp--;
- match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_fact_expression_in_paren2173);
+ match(input,RIGHT_SQUARE,FOLLOW_RIGHT_SQUARE_in_fact_expression_in_paren1880);
pd=fe;
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:896:6: f= fact ( ('or'|'||')f= fact )*
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:860:6: f= fact ( ('or'|'||')f= fact )*
{
- pushFollow(FOLLOW_fact_in_fact_expression_in_paren2184);
+ pushFollow(FOLLOW_fact_in_fact_expression_in_paren1891);
f=fact();
_fsp--;
-
- ((ColumnDescr)f).setIdentifier( id );
- pd = f;
+
+ ((ColumnDescr)f).setIdentifier( id );
+ pd = f;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:901:4: ( ('or'|'||')f= fact )*
- loop35:
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:865:4: ( ('or'|'||')f= fact )*
+ loop29:
do {
- int alt35=2;
- int LA35_0 = input.LA(1);
- if ( ((LA35_0>=57 && LA35_0<=58)) ) {
- alt35=1;
+ int alt29=2;
+ int LA29_0 = input.LA(1);
+ if ( ((LA29_0>=55 && LA29_0<=56)) ) {
+ alt29=1;
}
- switch (alt35) {
+ switch (alt29) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:901:6: ('or'|'||')f= fact
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:865:6: ('or'|'||')f= fact
{
- if ( (input.LA(1)>=57 && input.LA(1)<=58) ) {
+ if ( (input.LA(1)>=55 && input.LA(1)<=56) ) {
input.consume();
errorRecovery=false;
}
else {
MismatchedSetException mse =
new MismatchedSetException(null,input);
- recoverFromMismatchedSet(input,mse,FOLLOW_set_in_fact_expression_in_paren2197); throw mse;
+ recoverFromMismatchedSet(input,mse,FOLLOW_set_in_fact_expression_in_paren1904); throw mse;
}
- if ( ! multi ) {
- BaseDescr first = pd;
- pd = new OrDescr();
- ((OrDescr)pd).addDescr( first );
- multi=true;
- }
+ if ( ! multi ) {
+ BaseDescr first = pd;
+ pd = new OrDescr();
+ ((OrDescr)pd).addDescr( first );
+ multi=true;
+ }
- pushFollow(FOLLOW_fact_in_fact_expression_in_paren2214);
+ pushFollow(FOLLOW_fact_in_fact_expression_in_paren1921);
f=fact();
_fsp--;
-
- ((ColumnDescr)f).setIdentifier( id );
- ((OrDescr)pd).addDescr( f );
+
+ ((ColumnDescr)f).setIdentifier( id );
+ ((OrDescr)pd).addDescr( f );
}
break;
default :
- break loop35;
+ break loop29;
}
} while (true);
@@ -3116,7 +2844,7 @@
// $ANTLR start fact
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:917:1: fact returns [BaseDescr d] : id= dotted_name loc= '(' (c= constraints )? endLoc= ')' ;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:881:1: fact returns [BaseDescr d] : id= dotted_name loc= '(' (c= constraints )? endLoc= ')' ;
public BaseDescr fact() throws RecognitionException {
BaseDescr d = null;
@@ -3127,43 +2855,43 @@
List c = null;
-
- d=null;
+
+ d=null;
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:921:5: (id= dotted_name loc= '(' (c= constraints )? endLoc= ')' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:921:5: id= dotted_name loc= '(' (c= constraints )? endLoc= ')'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:885:5: (id= dotted_name loc= '(' (c= constraints )? endLoc= ')' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:885:5: id= dotted_name loc= '(' (c= constraints )? endLoc= ')'
{
- pushFollow(FOLLOW_dotted_name_in_fact2253);
+ pushFollow(FOLLOW_dotted_name_in_fact1960);
id=dotted_name();
_fsp--;
-
- d = new ColumnDescr( id );
+
+ d = new ColumnDescr( id );
loc=(Token)input.LT(1);
- match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_fact2266);
-
- d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+ match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_fact1973);
+
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:927:7: (c= constraints )?
- int alt37=2;
- int LA37_0 = input.LA(1);
- if ( (LA37_0==ID) ) {
- alt37=1;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:891:7: (c= constraints )?
+ int alt31=2;
+ int LA31_0 = input.LA(1);
+ if ( (LA31_0==ID) ) {
+ alt31=1;
}
- switch (alt37) {
+ switch (alt31) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:927:9: c= constraints
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:891:9: c= constraints
{
- pushFollow(FOLLOW_constraints_in_fact2274);
+ pushFollow(FOLLOW_constraints_in_fact1981);
c=constraints();
_fsp--;
-
- for ( Iterator cIter = c.iterator() ; cIter.hasNext() ; ) {
- ((ColumnDescr)d).addDescr( (BaseDescr) cIter.next() );
- }
+
+ for ( Iterator cIter = c.iterator() ; cIter.hasNext() ; ) {
+ ((ColumnDescr)d).addDescr( (BaseDescr) cIter.next() );
+ }
}
@@ -3172,9 +2900,9 @@
}
endLoc=(Token)input.LT(1);
- match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_fact2295);
-
- d.setEndLocation( offset(endLoc.getLine()), endLoc.getCharPositionInLine() );
+ match(input,RIGHT_SQUARE,FOLLOW_RIGHT_SQUARE_in_fact2002);
+
+ d.setEndLocation( offset(endLoc.getLine()), endLoc.getCharPositionInLine() );
}
@@ -3192,67 +2920,67 @@
// $ANTLR start constraints
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:941:1: constraints returns [List constraints] : ( constraint[constraints] | predicate[constraints] ) ( ',' ( constraint[constraints] | predicate[constraints] ) )* ;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:905:1: constraints returns [List constraints] : ( constraint[constraints] | predicate[constraints] ) ( ',' ( constraint[constraints] | predicate[constraints] ) )* ;
public List constraints() throws RecognitionException {
List constraints = null;
-
- constraints = new ArrayList();
+
+ constraints = new ArrayList();
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:945:4: ( ( constraint[constraints] | predicate[constraints] ) ( ',' ( constraint[constraints] | predicate[constraints] ) )* )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:945:4: ( constraint[constraints] | predicate[constraints] ) ( ',' ( constraint[constraints] | predicate[constraints] ) )*
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:909:4: ( ( constraint[constraints] | predicate[constraints] ) ( ',' ( constraint[constraints] | predicate[constraints] ) )* )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:909:4: ( constraint[constraints] | predicate[constraints] ) ( ',' ( constraint[constraints] | predicate[constraints] ) )*
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:945:4: ( constraint[constraints] | predicate[constraints] )
- int alt38=2;
- int LA38_0 = input.LA(1);
- if ( (LA38_0==ID) ) {
- int LA38_1 = input.LA(2);
- if ( (LA38_1==38) ) {
- int LA38_2 = input.LA(3);
- if ( (LA38_2==ID) ) {
- int LA38_4 = input.LA(4);
- if ( (LA38_4==70) ) {
- alt38=2;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:909:4: ( constraint[constraints] | predicate[constraints] )
+ int alt32=2;
+ int LA32_0 = input.LA(1);
+ if ( (LA32_0==ID) ) {
+ int LA32_1 = input.LA(2);
+ if ( (LA32_1==40) ) {
+ int LA32_2 = input.LA(3);
+ if ( (LA32_2==ID) ) {
+ int LA32_4 = input.LA(4);
+ if ( (LA32_4==68) ) {
+ alt32=2;
}
- else if ( (LA38_4==RIGHT_PAREN||LA38_4==32||(LA38_4>=61 && LA38_4<=69)) ) {
- alt38=1;
+ else if ( (LA32_4==RIGHT_SQUARE||LA32_4==34||(LA32_4>=59 && LA32_4<=67)) ) {
+ alt32=1;
}
else {
NoViableAltException nvae =
- new NoViableAltException("945:4: ( constraint[constraints] | predicate[constraints] )", 38, 4, input);
+ new NoViableAltException("909:4: ( constraint[constraints] | predicate[constraints] )", 32, 4, input);
throw nvae;
}
}
else {
NoViableAltException nvae =
- new NoViableAltException("945:4: ( constraint[constraints] | predicate[constraints] )", 38, 2, input);
+ new NoViableAltException("909:4: ( constraint[constraints] | predicate[constraints] )", 32, 2, input);
throw nvae;
}
}
- else if ( (LA38_1==RIGHT_PAREN||LA38_1==32||(LA38_1>=61 && LA38_1<=69)) ) {
- alt38=1;
+ else if ( (LA32_1==RIGHT_SQUARE||LA32_1==34||(LA32_1>=59 && LA32_1<=67)) ) {
+ alt32=1;
}
else {
NoViableAltException nvae =
- new NoViableAltException("945:4: ( constraint[constraints] | predicate[constraints] )", 38, 1, input);
+ new NoViableAltException("909:4: ( constraint[constraints] | predicate[constraints] )", 32, 1, input);
throw nvae;
}
}
else {
NoViableAltException nvae =
- new NoViableAltException("945:4: ( constraint[constraints] | predicate[constraints] )", 38, 0, input);
+ new NoViableAltException("909:4: ( constraint[constraints] | predicate[constraints] )", 32, 0, input);
throw nvae;
}
- switch (alt38) {
+ switch (alt32) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:945:5: constraint[constraints]
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:909:5: constraint[constraints]
{
- pushFollow(FOLLOW_constraint_in_constraints2328);
+ pushFollow(FOLLOW_constraint_in_constraints2035);
constraint(constraints);
_fsp--;
@@ -3260,9 +2988,9 @@
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:945:29: predicate[constraints]
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:909:29: predicate[constraints]
{
- pushFollow(FOLLOW_predicate_in_constraints2331);
+ pushFollow(FOLLOW_predicate_in_constraints2038);
predicate(constraints);
_fsp--;
@@ -3272,71 +3000,71 @@
}
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:946:3: ( ',' ( constraint[constraints] | predicate[constraints] ) )*
- loop40:
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:910:3: ( ',' ( constraint[constraints] | predicate[constraints] ) )*
+ loop34:
do {
- int alt40=2;
- int LA40_0 = input.LA(1);
- if ( (LA40_0==32) ) {
- alt40=1;
+ int alt34=2;
+ int LA34_0 = input.LA(1);
+ if ( (LA34_0==34) ) {
+ alt34=1;
}
- switch (alt40) {
+ switch (alt34) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:946:5: ',' ( constraint[constraints] | predicate[constraints] )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:910:5: ',' ( constraint[constraints] | predicate[constraints] )
{
- match(input,32,FOLLOW_32_in_constraints2339);
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:946:9: ( constraint[constraints] | predicate[constraints] )
- int alt39=2;
- int LA39_0 = input.LA(1);
- if ( (LA39_0==ID) ) {
- int LA39_1 = input.LA(2);
- if ( (LA39_1==38) ) {
- int LA39_2 = input.LA(3);
- if ( (LA39_2==ID) ) {
- int LA39_4 = input.LA(4);
- if ( (LA39_4==70) ) {
- alt39=2;
+ match(input,34,FOLLOW_34_in_constraints2046);
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:910:9: ( constraint[constraints] | predicate[constraints] )
+ int alt33=2;
+ int LA33_0 = input.LA(1);
+ if ( (LA33_0==ID) ) {
+ int LA33_1 = input.LA(2);
+ if ( (LA33_1==40) ) {
+ int LA33_2 = input.LA(3);
+ if ( (LA33_2==ID) ) {
+ int LA33_4 = input.LA(4);
+ if ( (LA33_4==68) ) {
+ alt33=2;
}
- else if ( (LA39_4==RIGHT_PAREN||LA39_4==32||(LA39_4>=61 && LA39_4<=69)) ) {
- alt39=1;
+ else if ( (LA33_4==RIGHT_SQUARE||LA33_4==34||(LA33_4>=59 && LA33_4<=67)) ) {
+ alt33=1;
}
else {
NoViableAltException nvae =
- new NoViableAltException("946:9: ( constraint[constraints] | predicate[constraints] )", 39, 4, input);
+ new NoViableAltException("910:9: ( constraint[constraints] | predicate[constraints] )", 33, 4, input);
throw nvae;
}
}
else {
NoViableAltException nvae =
- new NoViableAltException("946:9: ( constraint[constraints] | predicate[constraints] )", 39, 2, input);
+ new NoViableAltException("910:9: ( constraint[constraints] | predicate[constraints] )", 33, 2, input);
throw nvae;
}
}
- else if ( (LA39_1==RIGHT_PAREN||LA39_1==32||(LA39_1>=61 && LA39_1<=69)) ) {
- alt39=1;
+ else if ( (LA33_1==RIGHT_SQUARE||LA33_1==34||(LA33_1>=59 && LA33_1<=67)) ) {
+ alt33=1;
}
else {
NoViableAltException nvae =
- new NoViableAltException("946:9: ( constraint[constraints] | predicate[constraints] )", 39, 1, input);
+ new NoViableAltException("910:9: ( constraint[constraints] | predicate[constraints] )", 33, 1, input);
throw nvae;
}
}
else {
NoViableAltException nvae =
- new NoViableAltException("946:9: ( constraint[constraints] | predicate[constraints] )", 39, 0, input);
+ new NoViableAltException("910:9: ( constraint[constraints] | predicate[constraints] )", 33, 0, input);
throw nvae;
}
- switch (alt39) {
+ switch (alt33) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:946:10: constraint[constraints]
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:910:10: constraint[constraints]
{
- pushFollow(FOLLOW_constraint_in_constraints2342);
+ pushFollow(FOLLOW_constraint_in_constraints2049);
constraint(constraints);
_fsp--;
@@ -3344,9 +3072,9 @@
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:946:34: predicate[constraints]
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:910:34: predicate[constraints]
{
- pushFollow(FOLLOW_predicate_in_constraints2345);
+ pushFollow(FOLLOW_predicate_in_constraints2052);
predicate(constraints);
_fsp--;
@@ -3361,7 +3089,7 @@
break;
default :
- break loop40;
+ break loop34;
}
} while (true);
@@ -3381,7 +3109,7 @@
// $ANTLR start constraint
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:949:1: constraint[List constraints] : (fb= ID ':' )? f= ID (rd= constraint_expression (con= ('&'|'|')rd= constraint_expression )* )? ;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:913:1: constraint[List constraints] : (fb= ID ':' )? f= ID (rd= constraint_expression (con= ('&'|'|')rd= constraint_expression )* )? ;
public void constraint(List constraints) throws RecognitionException {
Token fb=null;
Token f=null;
@@ -3389,30 +3117,30 @@
RestrictionDescr rd = null;
-
- BaseDescr d = null;
- FieldConstraintDescr fc = null;
+
+ BaseDescr d = null;
+ FieldConstraintDescr fc = null;
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:955:3: ( (fb= ID ':' )? f= ID (rd= constraint_expression (con= ('&'|'|')rd= constraint_expression )* )? )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:955:3: (fb= ID ':' )? f= ID (rd= constraint_expression (con= ('&'|'|')rd= constraint_expression )* )?
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:919:3: ( (fb= ID ':' )? f= ID (rd= constraint_expression (con= ('&'|'|')rd= constraint_expression )* )? )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:919:3: (fb= ID ':' )? f= ID (rd= constraint_expression (con= ('&'|'|')rd= constraint_expression )* )?
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:955:3: (fb= ID ':' )?
- int alt41=2;
- int LA41_0 = input.LA(1);
- if ( (LA41_0==ID) ) {
- int LA41_1 = input.LA(2);
- if ( (LA41_1==38) ) {
- alt41=1;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:919:3: (fb= ID ':' )?
+ int alt35=2;
+ int LA35_0 = input.LA(1);
+ if ( (LA35_0==ID) ) {
+ int LA35_1 = input.LA(2);
+ if ( (LA35_1==40) ) {
+ alt35=1;
}
}
- switch (alt41) {
+ switch (alt35) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:955:5: fb= ID ':'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:919:5: fb= ID ':'
{
fb=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_constraint2374);
- match(input,38,FOLLOW_38_in_constraint2376);
+ match(input,ID,FOLLOW_ID_in_constraint2081);
+ match(input,40,FOLLOW_40_in_constraint2083);
}
break;
@@ -3420,79 +3148,79 @@
}
f=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_constraint2386);
-
- if ( fb != null ) {
- d = new FieldBindingDescr( f.getText(), fb.getText() );
- d.setLocation( offset(f.getLine()), f.getCharPositionInLine() );
- constraints.add( d );
- }
- fc = new FieldConstraintDescr(f.getText());
- fc.setLocation( offset(f.getLine()), f.getCharPositionInLine() );
+ match(input,ID,FOLLOW_ID_in_constraint2093);
+
+ if ( fb != null ) {
+ d = new FieldBindingDescr( f.getText(), fb.getText() );
+ d.setLocation( offset(f.getLine()), f.getCharPositionInLine() );
+ constraints.add( d );
+ }
+ fc = new FieldConstraintDescr(f.getText());
+ fc.setLocation( offset(f.getLine()), f.getCharPositionInLine() );
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:966:3: (rd= constraint_expression (con= ('&'|'|')rd= constraint_expression )* )?
- int alt43=2;
- int LA43_0 = input.LA(1);
- if ( ((LA43_0>=61 && LA43_0<=69)) ) {
- alt43=1;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:930:3: (rd= constraint_expression (con= ('&'|'|')rd= constraint_expression )* )?
+ int alt37=2;
+ int LA37_0 = input.LA(1);
+ if ( ((LA37_0>=59 && LA37_0<=67)) ) {
+ alt37=1;
}
- switch (alt43) {
+ switch (alt37) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:967:4: rd= constraint_expression (con= ('&'|'|')rd= constraint_expression )*
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:931:4: rd= constraint_expression (con= ('&'|'|')rd= constraint_expression )*
{
- pushFollow(FOLLOW_constraint_expression_in_constraint2402);
+ pushFollow(FOLLOW_constraint_expression_in_constraint2109);
rd=constraint_expression();
_fsp--;
-
- fc.addRestriction(rd);
- constraints.add(fc);
+
+ fc.addRestriction(rd);
+ constraints.add(fc);
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:972:4: (con= ('&'|'|')rd= constraint_expression )*
- loop42:
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:936:4: (con= ('&'|'|')rd= constraint_expression )*
+ loop36:
do {
- int alt42=2;
- int LA42_0 = input.LA(1);
- if ( ((LA42_0>=59 && LA42_0<=60)) ) {
- alt42=1;
+ int alt36=2;
+ int LA36_0 = input.LA(1);
+ if ( ((LA36_0>=57 && LA36_0<=58)) ) {
+ alt36=1;
}
- switch (alt42) {
+ switch (alt36) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:973:5: con= ('&'|'|')rd= constraint_expression
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:937:5: con= ('&'|'|')rd= constraint_expression
{
con=(Token)input.LT(1);
- if ( (input.LA(1)>=59 && input.LA(1)<=60) ) {
+ if ( (input.LA(1)>=57 && input.LA(1)<=58) ) {
input.consume();
errorRecovery=false;
}
else {
MismatchedSetException mse =
new MismatchedSetException(null,input);
- recoverFromMismatchedSet(input,mse,FOLLOW_set_in_constraint2421); throw mse;
+ recoverFromMismatchedSet(input,mse,FOLLOW_set_in_constraint2128); throw mse;
}
-
- if (con.getText().equals("&") ) {
- fc.addRestriction(new RestrictionConnectiveDescr(RestrictionConnectiveDescr.AND));
- } else {
- fc.addRestriction(new RestrictionConnectiveDescr(RestrictionConnectiveDescr.OR));
- }
+
+ if (con.getText().equals("&") ) {
+ fc.addRestriction(new RestrictionConnectiveDescr(RestrictionConnectiveDescr.AND));
+ } else {
+ fc.addRestriction(new RestrictionConnectiveDescr(RestrictionConnectiveDescr.OR));
+ }
- pushFollow(FOLLOW_constraint_expression_in_constraint2438);
+ pushFollow(FOLLOW_constraint_expression_in_constraint2145);
rd=constraint_expression();
_fsp--;
-
- fc.addRestriction(rd);
+
+ fc.addRestriction(rd);
}
break;
default :
- break loop42;
+ break loop36;
}
} while (true);
@@ -3518,7 +3246,7 @@
// $ANTLR start constraint_expression
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:989:1: constraint_expression returns [RestrictionDescr rd] : op= ('=='|'>'|'>='|'<'|'<='|'!='|'contains'|'matches'|'excludes') (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) ;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:953:1: constraint_expression returns [RestrictionDescr rd] : op= ('=='|'>'|'>='|'<'|'<='|'!='|'contains'|'matches'|'excludes') (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) ;
public RestrictionDescr constraint_expression() throws RecognitionException {
RestrictionDescr rd = null;
@@ -3530,34 +3258,34 @@
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:991:3: (op= ('=='|'>'|'>='|'<'|'<='|'!='|'contains'|'matches'|'excludes') (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:991:3: op= ('=='|'>'|'>='|'<'|'<='|'!='|'contains'|'matches'|'excludes') (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:955:3: (op= ('=='|'>'|'>='|'<'|'<='|'!='|'contains'|'matches'|'excludes') (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:955:3: op= ('=='|'>'|'>='|'<'|'<='|'!='|'contains'|'matches'|'excludes') (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint )
{
op=(Token)input.LT(1);
- if ( (input.LA(1)>=61 && input.LA(1)<=69) ) {
+ if ( (input.LA(1)>=59 && input.LA(1)<=67) ) {
input.consume();
errorRecovery=false;
}
else {
MismatchedSetException mse =
new MismatchedSetException(null,input);
- recoverFromMismatchedSet(input,mse,FOLLOW_set_in_constraint_expression2490); throw mse;
+ recoverFromMismatchedSet(input,mse,FOLLOW_set_in_constraint_expression2197); throw mse;
}
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1001:3: (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint )
- int alt44=4;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:965:3: (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint )
+ int alt38=4;
switch ( input.LA(1) ) {
case ID:
- int LA44_1 = input.LA(2);
- if ( (LA44_1==29) ) {
- alt44=2;
+ int LA38_1 = input.LA(2);
+ if ( (LA38_1==31) ) {
+ alt38=2;
}
- else if ( (LA44_1==RIGHT_PAREN||LA44_1==32||(LA44_1>=59 && LA44_1<=60)) ) {
- alt44=1;
+ else if ( (LA38_1==RIGHT_SQUARE||LA38_1==34||(LA38_1>=57 && LA38_1<=58)) ) {
+ alt38=1;
}
else {
NoViableAltException nvae =
- new NoViableAltException("1001:3: (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint )", 44, 1, input);
+ new NoViableAltException("965:3: (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint )", 38, 1, input);
throw nvae;
}
@@ -3567,65 +3295,65 @@
case STRING:
case FLOAT:
case 54:
- alt44=3;
+ alt38=3;
break;
- case LEFT_PAREN:
- alt44=4;
+ case LEFT_SQUARE:
+ alt38=4;
break;
default:
NoViableAltException nvae =
- new NoViableAltException("1001:3: (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint )", 44, 0, input);
+ new NoViableAltException("965:3: (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint )", 38, 0, input);
throw nvae;
}
- switch (alt44) {
+ switch (alt38) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1001:5: bvc= ID
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:965:5: bvc= ID
{
bvc=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_constraint_expression2557);
-
- rd = new VariableRestrictionDescr(op.getText(), bvc.getText());
+ match(input,ID,FOLLOW_ID_in_constraint_expression2264);
+
+ rd = new VariableRestrictionDescr(op.getText(), bvc.getText());
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1006:4: lc= enum_constraint
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:970:4: lc= enum_constraint
{
- pushFollow(FOLLOW_enum_constraint_in_constraint_expression2573);
+ pushFollow(FOLLOW_enum_constraint_in_constraint_expression2280);
lc=enum_constraint();
_fsp--;
-
- rd = new LiteralRestrictionDescr(op.getText(), lc, true);
+
+ rd = new LiteralRestrictionDescr(op.getText(), lc, true);
}
break;
case 3 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1011:4: lc= literal_constraint
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:975:4: lc= literal_constraint
{
- pushFollow(FOLLOW_literal_constraint_in_constraint_expression2596);
+ pushFollow(FOLLOW_literal_constraint_in_constraint_expression2303);
lc=literal_constraint();
_fsp--;
-
- rd = new LiteralRestrictionDescr(op.getText(), lc);
+
+ rd = new LiteralRestrictionDescr(op.getText(), lc);
}
break;
case 4 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1015:5: rvc= retval_constraint
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:979:5: rvc= retval_constraint
{
- pushFollow(FOLLOW_retval_constraint_in_constraint_expression2610);
+ pushFollow(FOLLOW_retval_constraint_in_constraint_expression2317);
rvc=retval_constraint();
_fsp--;
-
- rd = new ReturnValueRestrictionDescr(op.getText(), rvc);
+
+ rd = new ReturnValueRestrictionDescr(op.getText(), rvc);
}
@@ -3649,86 +3377,86 @@
// $ANTLR start literal_constraint
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1022:1: literal_constraint returns [String text] : (t= STRING | t= INT | t= FLOAT | t= BOOL | t= 'null' ) ;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:986:1: literal_constraint returns [String text] : (t= STRING | t= INT | t= FLOAT | t= BOOL | t= 'null' ) ;
public String literal_constraint() throws RecognitionException {
String text = null;
Token t=null;
-
- text = null;
+
+ text = null;
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1026:4: ( (t= STRING | t= INT | t= FLOAT | t= BOOL | t= 'null' ) )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1026:4: (t= STRING | t= INT | t= FLOAT | t= BOOL | t= 'null' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:990:4: ( (t= STRING | t= INT | t= FLOAT | t= BOOL | t= 'null' ) )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:990:4: (t= STRING | t= INT | t= FLOAT | t= BOOL | t= 'null' )
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1026:4: (t= STRING | t= INT | t= FLOAT | t= BOOL | t= 'null' )
- int alt45=5;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:990:4: (t= STRING | t= INT | t= FLOAT | t= BOOL | t= 'null' )
+ int alt39=5;
switch ( input.LA(1) ) {
case STRING:
- alt45=1;
+ alt39=1;
break;
case INT:
- alt45=2;
+ alt39=2;
break;
case FLOAT:
- alt45=3;
+ alt39=3;
break;
case BOOL:
- alt45=4;
+ alt39=4;
break;
case 54:
- alt45=5;
+ alt39=5;
break;
default:
NoViableAltException nvae =
- new NoViableAltException("1026:4: (t= STRING | t= INT | t= FLOAT | t= BOOL | t= 'null' )", 45, 0, input);
+ new NoViableAltException("990:4: (t= STRING | t= INT | t= FLOAT | t= BOOL | t= 'null' )", 39, 0, input);
throw nvae;
}
- switch (alt45) {
+ switch (alt39) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1026:6: t= STRING
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:990:6: t= STRING
{
t=(Token)input.LT(1);
- match(input,STRING,FOLLOW_STRING_in_literal_constraint2649);
+ match(input,STRING,FOLLOW_STRING_in_literal_constraint2356);
text = getString( t );
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1027:5: t= INT
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:991:5: t= INT
{
t=(Token)input.LT(1);
- match(input,INT,FOLLOW_INT_in_literal_constraint2660);
+ match(input,INT,FOLLOW_INT_in_literal_constraint2367);
text = t.getText();
}
break;
case 3 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1028:5: t= FLOAT
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:992:5: t= FLOAT
{
t=(Token)input.LT(1);
- match(input,FLOAT,FOLLOW_FLOAT_in_literal_constraint2673);
+ match(input,FLOAT,FOLLOW_FLOAT_in_literal_constraint2380);
text = t.getText();
}
break;
case 4 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1029:5: t= BOOL
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:993:5: t= BOOL
{
t=(Token)input.LT(1);
- match(input,BOOL,FOLLOW_BOOL_in_literal_constraint2684);
+ match(input,BOOL,FOLLOW_BOOL_in_literal_constraint2391);
text = t.getText();
}
break;
case 5 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1030:5: t= 'null'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:994:5: t= 'null'
{
t=(Token)input.LT(1);
- match(input,54,FOLLOW_54_in_literal_constraint2696);
+ match(input,54,FOLLOW_54_in_literal_constraint2403);
text = null;
}
@@ -3752,28 +3480,28 @@
// $ANTLR start enum_constraint
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1034:1: enum_constraint returns [String text] : (cls= ID '.' en= ID ) ;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:998:1: enum_constraint returns [String text] : (cls= ID '.' en= ID ) ;
public String enum_constraint() throws RecognitionException {
String text = null;
Token cls=null;
Token en=null;
-
- text = null;
+
+ text = null;
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1038:4: ( (cls= ID '.' en= ID ) )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1038:4: (cls= ID '.' en= ID )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1002:4: ( (cls= ID '.' en= ID ) )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1002:4: (cls= ID '.' en= ID )
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1038:4: (cls= ID '.' en= ID )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1038:5: cls= ID '.' en= ID
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1002:4: (cls= ID '.' en= ID )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1002:5: cls= ID '.' en= ID
{
cls=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_enum_constraint2727);
- match(input,29,FOLLOW_29_in_enum_constraint2729);
+ match(input,ID,FOLLOW_ID_in_enum_constraint2434);
+ match(input,31,FOLLOW_31_in_enum_constraint2436);
en=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_enum_constraint2733);
+ match(input,ID,FOLLOW_ID_in_enum_constraint2440);
}
@@ -3794,7 +3522,7 @@
// $ANTLR start predicate
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1042:1: predicate[List constraints] : decl= ID ':' field= ID '->' text= paren_chunk ;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1006:1: predicate[List constraints] : decl= ID ':' field= ID '->' text= paren_chunk ;
public void predicate(List constraints) throws RecognitionException {
Token decl=null;
Token field=null;
@@ -3802,23 +3530,23 @@
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1044:3: (decl= ID ':' field= ID '->' text= paren_chunk )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1044:3: decl= ID ':' field= ID '->' text= paren_chunk
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1008:3: (decl= ID ':' field= ID '->' text= paren_chunk )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1008:3: decl= ID ':' field= ID '->' text= paren_chunk
{
decl=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_predicate2755);
- match(input,38,FOLLOW_38_in_predicate2757);
+ match(input,ID,FOLLOW_ID_in_predicate2462);
+ match(input,40,FOLLOW_40_in_predicate2464);
field=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_predicate2761);
- match(input,70,FOLLOW_70_in_predicate2763);
- pushFollow(FOLLOW_paren_chunk_in_predicate2767);
+ match(input,ID,FOLLOW_ID_in_predicate2468);
+ match(input,68,FOLLOW_68_in_predicate2470);
+ pushFollow(FOLLOW_paren_chunk_in_predicate2474);
text=paren_chunk();
_fsp--;
-
- String body = text.substring(1, text.length()-1);
- PredicateDescr d = new PredicateDescr(field.getText(), decl.getText(), body );
- constraints.add( d );
+
+ String body = text.substring(1, text.length()-1);
+ PredicateDescr d = new PredicateDescr(field.getText(), decl.getText(), body );
+ constraints.add( d );
}
@@ -3836,45 +3564,45 @@
// $ANTLR start paren_chunk
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1052:1: paren_chunk returns [String text] : loc= '(' ')' ;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1016:1: paren_chunk returns [String text] : loc= '(' ')' ;
public String paren_chunk() throws RecognitionException {
String text = null;
Token loc=null;
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1054:10: (loc= '(' ')' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1054:10: loc= '(' ')'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1018:10: (loc= '(' ')' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1018:10: loc= '(' ')'
{
-
- ((CommonTokenStream)input).setTokenTypeChannel(WS, Token.DEFAULT_CHANNEL);
+
+ ((CommonTokenStream)input).setTokenTypeChannel(WS, Token.DEFAULT_CHANNEL);
loc=(Token)input.LT(1);
- match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_paren_chunk2801);
-
- int parenCounter = 1;
- StringBuffer buf = new StringBuffer();
- buf.append(loc.getText());
-
- do {
- Token nextToken = input.LT(1);
- buf.append( nextToken.getText() );
-
- int nextTokenId = nextToken.getType();
- if( nextTokenId == RIGHT_PAREN ) {
- parenCounter--;
- } else if( nextTokenId == LEFT_PAREN ) {
- parenCounter++;
- }
- if( parenCounter == 0 ) {
- break;
- }
- input.consume();
- } while( true );
- text = buf.toString();
- ((CommonTokenStream)input).setTokenTypeChannel(WS, Token.HIDDEN_CHANNEL);
+ match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_paren_chunk2508);
+
+ int parenCounter = 1;
+ StringBuffer buf = new StringBuffer();
+ buf.append(loc.getText());
+
+ do {
+ Token nextToken = input.LT(1);
+ buf.append( nextToken.getText() );
+
+ int nextTokenId = nextToken.getType();
+ if( nextTokenId == RIGHT_PAREN ) {
+ parenCounter--;
+ } else if( nextTokenId == LEFT_PAREN ) {
+ parenCounter++;
+ }
+ if( parenCounter == 0 ) {
+ break;
+ }
+ input.consume();
+ } while( true );
+ text = buf.toString();
+ ((CommonTokenStream)input).setTokenTypeChannel(WS, Token.HIDDEN_CHANNEL);
- match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_paren_chunk2824);
+ match(input,RIGHT_SQUARE,FOLLOW_RIGHT_SQUARE_in_paren_chunk2531);
}
@@ -3890,22 +3618,77 @@
// $ANTLR end paren_chunk
+ // $ANTLR start square_chunk
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1049:1: square_chunk returns [String text] : loc= '[' ']' ;
+ public String square_chunk() throws RecognitionException {
+ String text = null;
+
+ Token loc=null;
+
+ try {
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1051:10: (loc= '[' ']' )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1051:10: loc= '[' ']'
+ {
+
+ ((CommonTokenStream)input).setTokenTypeChannel(WS, Token.DEFAULT_CHANNEL);
+
+ loc=(Token)input.LT(1);
+ match(input,69,FOLLOW_69_in_square_chunk2563);
+
+ int parenCounter = 1;
+ StringBuffer buf = new StringBuffer();
+ buf.append(loc.getText());
+
+ do {
+ Token nextToken = input.LT(1);
+ buf.append( nextToken.getText() );
+
+ int nextTokenId = nextToken.getType();
+ if( nextTokenId == RIGHT_SQUARE ) {
+ parenCounter--;
+ } else if( nextTokenId == LEFT_SQUARE ) {
+ parenCounter++;
+ }
+ if( parenCounter == 0 ) {
+ break;
+ }
+ input.consume();
+ } while( true );
+ text = buf.toString();
+ ((CommonTokenStream)input).setTokenTypeChannel(WS, Token.HIDDEN_CHANNEL);
+
+ match(input,70,FOLLOW_70_in_square_chunk2586);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return text;
+ }
+ // $ANTLR end square_chunk
+
+
// $ANTLR start retval_constraint
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1084:1: retval_constraint returns [String text] : c= paren_chunk ;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1081:1: retval_constraint returns [String text] : c= paren_chunk ;
public String retval_constraint() throws RecognitionException {
String text = null;
String c = null;
-
- text = null;
+
+ text = null;
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1089:3: (c= paren_chunk )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1089:3: c= paren_chunk
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1086:3: (c= paren_chunk )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1086:3: c= paren_chunk
{
- pushFollow(FOLLOW_paren_chunk_in_retval_constraint2851);
+ pushFollow(FOLLOW_paren_chunk_in_retval_constraint2614);
c=paren_chunk();
_fsp--;
@@ -3926,7 +3709,7 @@
// $ANTLR start lhs_or
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1097:1: lhs_or returns [BaseDescr d] : left= lhs_and ( ('or'|'||')right= lhs_and )* ;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1094:1: lhs_or returns [BaseDescr d] : left= lhs_and ( ('or'|'||')right= lhs_and )* ;
public BaseDescr lhs_or() throws RecognitionException {
BaseDescr d = null;
@@ -3935,62 +3718,62 @@
BaseDescr right = null;
-
- d = null;
+
+ d = null;
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1102:3: (left= lhs_and ( ('or'|'||')right= lhs_and )* )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1102:3: left= lhs_and ( ('or'|'||')right= lhs_and )*
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1099:3: (left= lhs_and ( ('or'|'||')right= lhs_and )* )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1099:3: left= lhs_and ( ('or'|'||')right= lhs_and )*
{
OrDescr or = null;
- pushFollow(FOLLOW_lhs_and_in_lhs_or2888);
+ pushFollow(FOLLOW_lhs_and_in_lhs_or2651);
left=lhs_and();
_fsp--;
d = left;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1104:3: ( ('or'|'||')right= lhs_and )*
- loop46:
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1101:3: ( ('or'|'||')right= lhs_and )*
+ loop40:
do {
- int alt46=2;
- int LA46_0 = input.LA(1);
- if ( ((LA46_0>=57 && LA46_0<=58)) ) {
- alt46=1;
+ int alt40=2;
+ int LA40_0 = input.LA(1);
+ if ( ((LA40_0>=55 && LA40_0<=56)) ) {
+ alt40=1;
}
- switch (alt46) {
+ switch (alt40) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1104:5: ('or'|'||')right= lhs_and
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1101:5: ('or'|'||')right= lhs_and
{
- if ( (input.LA(1)>=57 && input.LA(1)<=58) ) {
+ if ( (input.LA(1)>=55 && input.LA(1)<=56) ) {
input.consume();
errorRecovery=false;
}
else {
MismatchedSetException mse =
new MismatchedSetException(null,input);
- recoverFromMismatchedSet(input,mse,FOLLOW_set_in_lhs_or2897); throw mse;
+ recoverFromMismatchedSet(input,mse,FOLLOW_set_in_lhs_or2660); throw mse;
}
- pushFollow(FOLLOW_lhs_and_in_lhs_or2907);
+ pushFollow(FOLLOW_lhs_and_in_lhs_or2670);
right=lhs_and();
_fsp--;
-
- if ( or == null ) {
- or = new OrDescr();
- or.addDescr( left );
- d = or;
- }
-
- or.addDescr( right );
+
+ if ( or == null ) {
+ or = new OrDescr();
+ or.addDescr( left );
+ d = or;
+ }
+
+ or.addDescr( right );
}
break;
default :
- break loop46;
+ break loop40;
}
} while (true);
@@ -4010,7 +3793,7 @@
// $ANTLR start lhs_and
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1118:1: lhs_and returns [BaseDescr d] : left= lhs_unary ( ('and'|'&&')right= lhs_unary )* ;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1115:1: lhs_and returns [BaseDescr d] : left= lhs_unary ( ('and'|'&&')right= lhs_unary )* ;
public BaseDescr lhs_and() throws RecognitionException {
BaseDescr d = null;
@@ -4019,32 +3802,32 @@
BaseDescr right = null;
-
- d = null;
+
+ d = null;
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1123:3: (left= lhs_unary ( ('and'|'&&')right= lhs_unary )* )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1123:3: left= lhs_unary ( ('and'|'&&')right= lhs_unary )*
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1120:3: (left= lhs_unary ( ('and'|'&&')right= lhs_unary )* )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1120:3: left= lhs_unary ( ('and'|'&&')right= lhs_unary )*
{
AndDescr and = null;
- pushFollow(FOLLOW_lhs_unary_in_lhs_and2947);
+ pushFollow(FOLLOW_lhs_unary_in_lhs_and2710);
left=lhs_unary();
_fsp--;
d = left;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1125:3: ( ('and'|'&&')right= lhs_unary )*
- loop47:
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1122:3: ( ('and'|'&&')right= lhs_unary )*
+ loop41:
do {
- int alt47=2;
- int LA47_0 = input.LA(1);
- if ( ((LA47_0>=71 && LA47_0<=72)) ) {
- alt47=1;
+ int alt41=2;
+ int LA41_0 = input.LA(1);
+ if ( ((LA41_0>=71 && LA41_0<=72)) ) {
+ alt41=1;
}
- switch (alt47) {
+ switch (alt41) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1125:5: ('and'|'&&')right= lhs_unary
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1122:5: ('and'|'&&')right= lhs_unary
{
if ( (input.LA(1)>=71 && input.LA(1)<=72) ) {
input.consume();
@@ -4053,28 +3836,28 @@
else {
MismatchedSetException mse =
new MismatchedSetException(null,input);
- recoverFromMismatchedSet(input,mse,FOLLOW_set_in_lhs_and2956); throw mse;
+ recoverFromMismatchedSet(input,mse,FOLLOW_set_in_lhs_and2719); throw mse;
}
- pushFollow(FOLLOW_lhs_unary_in_lhs_and2966);
+ pushFollow(FOLLOW_lhs_unary_in_lhs_and2729);
right=lhs_unary();
_fsp--;
-
- if ( and == null ) {
- and = new AndDescr();
- and.addDescr( left );
- d = and;
- }
-
- and.addDescr( right );
+
+ if ( and == null ) {
+ and = new AndDescr();
+ and.addDescr( left );
+ d = and;
+ }
+
+ and.addDescr( right );
}
break;
default :
- break loop47;
+ break loop41;
}
} while (true);
@@ -4094,7 +3877,7 @@
// $ANTLR start lhs_unary
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1139:1: lhs_unary returns [BaseDescr d] : (u= lhs_exist | u= lhs_not | u= lhs_eval | u= lhs_column ( (fm= from_statement ) | (ac= accumulate_statement ) | (cs= collect_statement ) )? | '(' u= lhs ')' ) opt_semicolon ;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1136:1: lhs_unary returns [BaseDescr d] : (u= lhs_exist | u= lhs_not | u= lhs_eval | u= lhs_column ( (fm= from_statement ) | (ac= accumulate_statement ) | (cs= collect_statement ) )? | '(' u= lhs ')' ) opt_semicolon ;
public BaseDescr lhs_unary() throws RecognitionException {
BaseDescr d = null;
@@ -4107,43 +3890,43 @@
CollectDescr cs = null;
-
- d = null;
+
+ d = null;
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1143:4: ( (u= lhs_exist | u= lhs_not | u= lhs_eval | u= lhs_column ( (fm= from_statement ) | (ac= accumulate_statement ) | (cs= collect_statement ) )? | '(' u= lhs ')' ) opt_semicolon )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1143:4: (u= lhs_exist | u= lhs_not | u= lhs_eval | u= lhs_column ( (fm= from_statement ) | (ac= accumulate_statement ) | (cs= collect_statement ) )? | '(' u= lhs ')' ) opt_semicolon
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1140:4: ( (u= lhs_exist | u= lhs_not | u= lhs_eval | u= lhs_column ( (fm= from_statement ) | (ac= accumulate_statement ) | (cs= collect_statement ) )? | '(' u= lhs ')' ) opt_semicolon )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1140:4: (u= lhs_exist | u= lhs_not | u= lhs_eval | u= lhs_column ( (fm= from_statement ) | (ac= accumulate_statement ) | (cs= collect_statement ) )? | '(' u= lhs ')' ) opt_semicolon
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1143:4: (u= lhs_exist | u= lhs_not | u= lhs_eval | u= lhs_column ( (fm= from_statement ) | (ac= accumulate_statement ) | (cs= collect_statement ) )? | '(' u= lhs ')' )
- int alt49=5;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1140:4: (u= lhs_exist | u= lhs_not | u= lhs_eval | u= lhs_column ( (fm= from_statement ) | (ac= accumulate_statement ) | (cs= collect_statement ) )? | '(' u= lhs ')' )
+ int alt43=5;
switch ( input.LA(1) ) {
case 73:
- alt49=1;
+ alt43=1;
break;
case 74:
- alt49=2;
+ alt43=2;
break;
case 75:
- alt49=3;
+ alt43=3;
break;
case ID:
- alt49=4;
+ alt43=4;
break;
- case LEFT_PAREN:
- alt49=5;
+ case LEFT_SQUARE:
+ alt43=5;
break;
default:
NoViableAltException nvae =
- new NoViableAltException("1143:4: (u= lhs_exist | u= lhs_not | u= lhs_eval | u= lhs_column ( (fm= from_statement ) | (ac= accumulate_statement ) | (cs= collect_statement ) )? | '(' u= lhs ')' )", 49, 0, input);
+ new NoViableAltException("1140:4: (u= lhs_exist | u= lhs_not | u= lhs_eval | u= lhs_column ( (fm= from_statement ) | (ac= accumulate_statement ) | (cs= collect_statement ) )? | '(' u= lhs ')' )", 43, 0, input);
throw nvae;
}
- switch (alt49) {
+ switch (alt43) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1143:6: u= lhs_exist
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1140:6: u= lhs_exist
{
- pushFollow(FOLLOW_lhs_exist_in_lhs_unary3003);
+ pushFollow(FOLLOW_lhs_exist_in_lhs_unary2766);
u=lhs_exist();
_fsp--;
@@ -4151,9 +3934,9 @@
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1144:5: u= lhs_not
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1141:5: u= lhs_not
{
- pushFollow(FOLLOW_lhs_not_in_lhs_unary3011);
+ pushFollow(FOLLOW_lhs_not_in_lhs_unary2774);
u=lhs_not();
_fsp--;
@@ -4161,9 +3944,9 @@
}
break;
case 3 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1145:5: u= lhs_eval
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1142:5: u= lhs_eval
{
- pushFollow(FOLLOW_lhs_eval_in_lhs_unary3019);
+ pushFollow(FOLLOW_lhs_eval_in_lhs_unary2782);
u=lhs_eval();
_fsp--;
@@ -4171,37 +3954,37 @@
}
break;
case 4 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1146:5: u= lhs_column ( (fm= from_statement ) | (ac= accumulate_statement ) | (cs= collect_statement ) )?
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1143:5: u= lhs_column ( (fm= from_statement ) | (ac= accumulate_statement ) | (cs= collect_statement ) )?
{
- pushFollow(FOLLOW_lhs_column_in_lhs_unary3027);
+ pushFollow(FOLLOW_lhs_column_in_lhs_unary2790);
u=lhs_column();
_fsp--;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1146:18: ( (fm= from_statement ) | (ac= accumulate_statement ) | (cs= collect_statement ) )?
- int alt48=4;
- int LA48_0 = input.LA(1);
- if ( (LA48_0==46) ) {
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1143:18: ( (fm= from_statement ) | (ac= accumulate_statement ) | (cs= collect_statement ) )?
+ int alt42=4;
+ int LA42_0 = input.LA(1);
+ if ( (LA42_0==48) ) {
switch ( input.LA(2) ) {
- case 49:
- alt48=2;
- break;
case 53:
- alt48=3;
+ alt42=3;
break;
+ case 49:
+ alt42=2;
+ break;
case ID:
- alt48=1;
+ alt42=1;
break;
}
}
- switch (alt48) {
+ switch (alt42) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1147:14: (fm= from_statement )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1144:14: (fm= from_statement )
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1147:14: (fm= from_statement )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1147:15: fm= from_statement
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1144:14: (fm= from_statement )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1144:15: fm= from_statement
{
- pushFollow(FOLLOW_from_statement_in_lhs_unary3047);
+ pushFollow(FOLLOW_from_statement_in_lhs_unary2810);
fm=from_statement();
_fsp--;
@@ -4213,12 +3996,12 @@
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1148:14: (ac= accumulate_statement )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1145:14: (ac= accumulate_statement )
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1148:14: (ac= accumulate_statement )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1148:15: ac= accumulate_statement
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1145:14: (ac= accumulate_statement )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1145:15: ac= accumulate_statement
{
- pushFollow(FOLLOW_accumulate_statement_in_lhs_unary3069);
+ pushFollow(FOLLOW_accumulate_statement_in_lhs_unary2832);
ac=accumulate_statement();
_fsp--;
@@ -4230,12 +4013,12 @@
}
break;
case 3 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1149:14: (cs= collect_statement )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1146:14: (cs= collect_statement )
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1149:14: (cs= collect_statement )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1149:15: cs= collect_statement
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1146:14: (cs= collect_statement )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1146:15: cs= collect_statement
{
- pushFollow(FOLLOW_collect_statement_in_lhs_unary3090);
+ pushFollow(FOLLOW_collect_statement_in_lhs_unary2853);
cs=collect_statement();
_fsp--;
@@ -4253,14 +4036,14 @@
}
break;
case 5 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1151:5: '(' u= lhs ')'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1148:5: '(' u= lhs ')'
{
- match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_lhs_unary3113);
- pushFollow(FOLLOW_lhs_in_lhs_unary3117);
+ match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_lhs_unary2876);
+ pushFollow(FOLLOW_lhs_in_lhs_unary2880);
u=lhs();
_fsp--;
- match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_lhs_unary3119);
+ match(input,RIGHT_SQUARE,FOLLOW_RIGHT_SQUARE_in_lhs_unary2882);
}
break;
@@ -4268,7 +4051,7 @@
}
d = u;
- pushFollow(FOLLOW_opt_semicolon_in_lhs_unary3129);
+ pushFollow(FOLLOW_opt_semicolon_in_lhs_unary2892);
opt_semicolon();
_fsp--;
@@ -4288,7 +4071,7 @@
// $ANTLR start lhs_exist
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1156:1: lhs_exist returns [BaseDescr d] : loc= 'exists' ( '(' column= lhs_column ')' | column= lhs_column ) ;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1153:1: lhs_exist returns [BaseDescr d] : loc= 'exists' ( '(' column= lhs_column ')' | column= lhs_column ) ;
public BaseDescr lhs_exist() throws RecognitionException {
BaseDescr d = null;
@@ -4296,47 +4079,47 @@
BaseDescr column = null;
-
- d = null;
+
+ d = null;
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1160:4: (loc= 'exists' ( '(' column= lhs_column ')' | column= lhs_column ) )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1160:4: loc= 'exists' ( '(' column= lhs_column ')' | column= lhs_column )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1157:4: (loc= 'exists' ( '(' column= lhs_column ')' | column= lhs_column ) )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1157:4: loc= 'exists' ( '(' column= lhs_column ')' | column= lhs_column )
{
loc=(Token)input.LT(1);
- match(input,73,FOLLOW_73_in_lhs_exist3153);
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1160:17: ( '(' column= lhs_column ')' | column= lhs_column )
- int alt50=2;
- int LA50_0 = input.LA(1);
- if ( (LA50_0==LEFT_PAREN) ) {
- alt50=1;
+ match(input,73,FOLLOW_73_in_lhs_exist2916);
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1157:17: ( '(' column= lhs_column ')' | column= lhs_column )
+ int alt44=2;
+ int LA44_0 = input.LA(1);
+ if ( (LA44_0==LEFT_SQUARE) ) {
+ alt44=1;
}
- else if ( (LA50_0==ID) ) {
- alt50=2;
+ else if ( (LA44_0==ID) ) {
+ alt44=2;
}
else {
NoViableAltException nvae =
- new NoViableAltException("1160:17: ( '(' column= lhs_column ')' | column= lhs_column )", 50, 0, input);
+ new NoViableAltException("1157:17: ( '(' column= lhs_column ')' | column= lhs_column )", 44, 0, input);
throw nvae;
}
- switch (alt50) {
+ switch (alt44) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1160:18: '(' column= lhs_column ')'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1157:18: '(' column= lhs_column ')'
{
- match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_lhs_exist3156);
- pushFollow(FOLLOW_lhs_column_in_lhs_exist3160);
+ match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_lhs_exist2919);
+ pushFollow(FOLLOW_lhs_column_in_lhs_exist2923);
column=lhs_column();
_fsp--;
- match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_lhs_exist3162);
+ match(input,RIGHT_SQUARE,FOLLOW_RIGHT_SQUARE_in_lhs_exist2925);
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1160:46: column= lhs_column
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1157:46: column= lhs_column
{
- pushFollow(FOLLOW_lhs_column_in_lhs_exist3168);
+ pushFollow(FOLLOW_lhs_column_in_lhs_exist2931);
column=lhs_column();
_fsp--;
@@ -4346,9 +4129,9 @@
}
-
- d = new ExistsDescr( (ColumnDescr) column );
- d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+
+ d = new ExistsDescr( (ColumnDescr) column );
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
}
@@ -4366,7 +4149,7 @@
// $ANTLR start lhs_not
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1167:1: lhs_not returns [NotDescr d] : loc= 'not' ( '(' column= lhs_column ')' | column= lhs_column ) ;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1164:1: lhs_not returns [NotDescr d] : loc= 'not' ( '(' column= lhs_column ')' | column= lhs_column ) ;
public NotDescr lhs_not() throws RecognitionException {
NotDescr d = null;
@@ -4374,47 +4157,47 @@
BaseDescr column = null;
-
- d = null;
+
+ d = null;
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1171:4: (loc= 'not' ( '(' column= lhs_column ')' | column= lhs_column ) )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1171:4: loc= 'not' ( '(' column= lhs_column ')' | column= lhs_column )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1168:4: (loc= 'not' ( '(' column= lhs_column ')' | column= lhs_column ) )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1168:4: loc= 'not' ( '(' column= lhs_column ')' | column= lhs_column )
{
loc=(Token)input.LT(1);
- match(input,74,FOLLOW_74_in_lhs_not3198);
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1171:14: ( '(' column= lhs_column ')' | column= lhs_column )
- int alt51=2;
- int LA51_0 = input.LA(1);
- if ( (LA51_0==LEFT_PAREN) ) {
- alt51=1;
+ match(input,74,FOLLOW_74_in_lhs_not2961);
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1168:14: ( '(' column= lhs_column ')' | column= lhs_column )
+ int alt45=2;
+ int LA45_0 = input.LA(1);
+ if ( (LA45_0==LEFT_SQUARE) ) {
+ alt45=1;
}
- else if ( (LA51_0==ID) ) {
- alt51=2;
+ else if ( (LA45_0==ID) ) {
+ alt45=2;
}
else {
NoViableAltException nvae =
- new NoViableAltException("1171:14: ( '(' column= lhs_column ')' | column= lhs_column )", 51, 0, input);
+ new NoViableAltException("1168:14: ( '(' column= lhs_column ')' | column= lhs_column )", 45, 0, input);
throw nvae;
}
- switch (alt51) {
+ switch (alt45) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1171:15: '(' column= lhs_column ')'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1168:15: '(' column= lhs_column ')'
{
- match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_lhs_not3201);
- pushFollow(FOLLOW_lhs_column_in_lhs_not3205);
+ match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_lhs_not2964);
+ pushFollow(FOLLOW_lhs_column_in_lhs_not2968);
column=lhs_column();
_fsp--;
- match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_lhs_not3208);
+ match(input,RIGHT_SQUARE,FOLLOW_RIGHT_SQUARE_in_lhs_not2971);
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1171:44: column= lhs_column
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1168:44: column= lhs_column
{
- pushFollow(FOLLOW_lhs_column_in_lhs_not3214);
+ pushFollow(FOLLOW_lhs_column_in_lhs_not2977);
column=lhs_column();
_fsp--;
@@ -4424,9 +4207,9 @@
}
-
- d = new NotDescr( (ColumnDescr) column );
- d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+
+ d = new NotDescr( (ColumnDescr) column );
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
}
@@ -4444,7 +4227,7 @@
// $ANTLR start lhs_eval
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1178:1: lhs_eval returns [BaseDescr d] : loc= 'eval' c= paren_chunk ;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1175:1: lhs_eval returns [BaseDescr d] : loc= 'eval' c= paren_chunk ;
public BaseDescr lhs_eval() throws RecognitionException {
BaseDescr d = null;
@@ -4452,23 +4235,23 @@
String c = null;
-
- d = null;
+
+ d = null;
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1182:4: (loc= 'eval' c= paren_chunk )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1182:4: loc= 'eval' c= paren_chunk
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1179:4: (loc= 'eval' c= paren_chunk )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1179:4: loc= 'eval' c= paren_chunk
{
loc=(Token)input.LT(1);
- match(input,75,FOLLOW_75_in_lhs_eval3242);
- pushFollow(FOLLOW_paren_chunk_in_lhs_eval3246);
+ match(input,75,FOLLOW_75_in_lhs_eval3005);
+ pushFollow(FOLLOW_paren_chunk_in_lhs_eval3009);
c=paren_chunk();
_fsp--;
-
- String body = c.substring(1, c.length()-1);
- checkTrailingSemicolon( body, offset(loc.getLine()) );
- d = new EvalDescr( body );
+
+ String body = c.substring(1, c.length()-1);
+ checkTrailingSemicolon( body, offset(loc.getLine()) );
+ d = new EvalDescr( body );
}
@@ -4486,72 +4269,72 @@
// $ANTLR start dotted_name
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1190:1: dotted_name returns [String name] : id= ID ( '.' id= ID )* ( '[' ']' )* ;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1187:1: dotted_name returns [String name] : id= ID ( '.' id= ID )* ( '[' ']' )* ;
public String dotted_name() throws RecognitionException {
String name = null;
Token id=null;
-
- name = null;
+
+ name = null;
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1195:3: (id= ID ( '.' id= ID )* ( '[' ']' )* )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1195:3: id= ID ( '.' id= ID )* ( '[' ']' )*
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1192:3: (id= ID ( '.' id= ID )* ( '[' ']' )* )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1192:3: id= ID ( '.' id= ID )* ( '[' ']' )*
{
id=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_dotted_name3277);
+ match(input,ID,FOLLOW_ID_in_dotted_name3040);
name=id.getText();
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1195:32: ( '.' id= ID )*
- loop52:
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1192:32: ( '.' id= ID )*
+ loop46:
do {
- int alt52=2;
- int LA52_0 = input.LA(1);
- if ( (LA52_0==29) ) {
- alt52=1;
+ int alt46=2;
+ int LA46_0 = input.LA(1);
+ if ( (LA46_0==31) ) {
+ alt46=1;
}
- switch (alt52) {
+ switch (alt46) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1195:34: '.' id= ID
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1192:34: '.' id= ID
{
- match(input,29,FOLLOW_29_in_dotted_name3283);
+ match(input,31,FOLLOW_31_in_dotted_name3046);
id=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_dotted_name3287);
+ match(input,ID,FOLLOW_ID_in_dotted_name3050);
name = name + "." + id.getText();
}
break;
default :
- break loop52;
+ break loop46;
}
} while (true);
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1195:85: ( '[' ']' )*
- loop53:
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1192:85: ( '[' ']' )*
+ loop47:
do {
- int alt53=2;
- int LA53_0 = input.LA(1);
- if ( (LA53_0==47) ) {
- alt53=1;
+ int alt47=2;
+ int LA47_0 = input.LA(1);
+ if ( (LA47_0==69) ) {
+ alt47=1;
}
- switch (alt53) {
+ switch (alt47) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1195:87: '[' ']'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1192:87: '[' ']'
{
- match(input,47,FOLLOW_47_in_dotted_name3296);
- match(input,48,FOLLOW_48_in_dotted_name3298);
+ match(input,69,FOLLOW_69_in_dotted_name3059);
+ match(input,70,FOLLOW_70_in_dotted_name3061);
name = name + "[]";
}
break;
default :
- break loop53;
+ break loop47;
}
} while (true);
@@ -4571,45 +4354,45 @@
// $ANTLR start argument
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1198:1: argument returns [String name] : id= ID ( '[' ']' )* ;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1195:1: argument returns [String name] : id= ID ( '[' ']' )* ;
public String argument() throws RecognitionException {
String name = null;
Token id=null;
-
- name = null;
+
+ name = null;
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1203:3: (id= ID ( '[' ']' )* )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1203:3: id= ID ( '[' ']' )*
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1200:3: (id= ID ( '[' ']' )* )
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1200:3: id= ID ( '[' ']' )*
{
id=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_argument3328);
+ match(input,ID,FOLLOW_ID_in_argument3091);
name=id.getText();
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1203:32: ( '[' ']' )*
- loop54:
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1200:32: ( '[' ']' )*
+ loop48:
do {
- int alt54=2;
- int LA54_0 = input.LA(1);
- if ( (LA54_0==47) ) {
- alt54=1;
+ int alt48=2;
+ int LA48_0 = input.LA(1);
+ if ( (LA48_0==69) ) {
+ alt48=1;
}
- switch (alt54) {
+ switch (alt48) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1203:34: '[' ']'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1200:34: '[' ']'
{
- match(input,47,FOLLOW_47_in_argument3334);
- match(input,48,FOLLOW_48_in_argument3336);
+ match(input,69,FOLLOW_69_in_argument3097);
+ match(input,70,FOLLOW_70_in_argument3099);
name = name + "[]";
}
break;
default :
- break loop54;
+ break loop48;
}
} while (true);
@@ -4629,147 +4412,147 @@
// $ANTLR start word
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1207:1: word returns [String word] : (id= ID | 'import' | 'use' | 'rule' | 'query' | 'salience' | 'no-loop' | 'when' | 'then' | 'end' | str= STRING );
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1204:1: word returns [String word] : (id= ID | 'import' | 'use' | 'rule' | 'query' | 'salience' | 'no-loop' | 'when' | 'then' | 'end' | str= STRING );
public String word() throws RecognitionException {
String word = null;
Token id=null;
Token str=null;
-
- word = null;
+
+ word = null;
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1211:4: (id= ID | 'import' | 'use' | 'rule' | 'query' | 'salience' | 'no-loop' | 'when' | 'then' | 'end' | str= STRING )
- int alt55=11;
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1208:4: (id= ID | 'import' | 'use' | 'rule' | 'query' | 'salience' | 'no-loop' | 'when' | 'then' | 'end' | str= STRING )
+ int alt49=11;
switch ( input.LA(1) ) {
case ID:
- alt55=1;
+ alt49=1;
break;
- case 27:
- alt55=2;
+ case 29:
+ alt49=2;
break;
case 76:
- alt55=3;
+ alt49=3;
break;
- case 36:
- alt55=4;
+ case 38:
+ alt49=4;
break;
- case 33:
- alt55=5;
+ case 35:
+ alt49=5;
break;
- case 40:
- alt55=6;
+ case 42:
+ alt49=6;
break;
- case 41:
- alt55=7;
+ case 43:
+ alt49=7;
break;
- case 37:
- alt55=8;
+ case 39:
+ alt49=8;
break;
case RHS:
- alt55=9;
+ alt49=9;
break;
- case 34:
- alt55=10;
+ case 36:
+ alt49=10;
break;
case STRING:
- alt55=11;
+ alt49=11;
break;
default:
NoViableAltException nvae =
- new NoViableAltException("1207:1: word returns [String word] : (id= ID | 'import' | 'use' | 'rule' | 'query' | 'salience' | 'no-loop' | 'when' | 'then' | 'end' | str= STRING );", 55, 0, input);
+ new NoViableAltException("1204:1: word returns [String word] : (id= ID | 'import' | 'use' | 'rule' | 'query' | 'salience' | 'no-loop' | 'when' | 'then' | 'end' | str= STRING );", 49, 0, input);
throw nvae;
}
- switch (alt55) {
+ switch (alt49) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1211:4: id= ID
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1208:4: id= ID
{
id=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_word3364);
+ match(input,ID,FOLLOW_ID_in_word3127);
word=id.getText();
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1212:4: 'import'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1209:4: 'import'
{
- match(input,27,FOLLOW_27_in_word3376);
+ match(input,29,FOLLOW_29_in_word3139);
word="import";
}
break;
case 3 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1213:4: 'use'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1210:4: 'use'
{
- match(input,76,FOLLOW_76_in_word3385);
+ match(input,76,FOLLOW_76_in_word3148);
word="use";
}
break;
case 4 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1214:4: 'rule'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1211:4: 'rule'
{
- match(input,36,FOLLOW_36_in_word3397);
+ match(input,38,FOLLOW_38_in_word3160);
word="rule";
}
break;
case 5 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1215:4: 'query'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1212:4: 'query'
{
- match(input,33,FOLLOW_33_in_word3408);
+ match(input,35,FOLLOW_35_in_word3171);
word="query";
}
break;
case 6 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1216:4: 'salience'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1213:4: 'salience'
{
- match(input,40,FOLLOW_40_in_word3418);
+ match(input,42,FOLLOW_42_in_word3181);
word="salience";
}
break;
case 7 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1217:5: 'no-loop'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1214:5: 'no-loop'
{
- match(input,41,FOLLOW_41_in_word3426);
+ match(input,43,FOLLOW_43_in_word3189);
word="no-loop";
}
break;
case 8 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1218:4: 'when'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1215:4: 'when'
{
- match(input,37,FOLLOW_37_in_word3434);
+ match(input,39,FOLLOW_39_in_word3197);
word="when";
}
break;
case 9 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1219:4: 'then'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1216:4: 'then'
{
- match(input,RHS,FOLLOW_RHS_in_word3445);
+ match(input,RHS,FOLLOW_RHS_in_word3208);
word="then";
}
break;
case 10 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1220:4: 'end'
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1217:4: 'end'
{
- match(input,34,FOLLOW_34_in_word3456);
+ match(input,36,FOLLOW_36_in_word3219);
word="end";
}
break;
case 11 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1221:4: str= STRING
+ // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1218:4: str= STRING
{
str=(Token)input.LT(1);
- match(input,STRING,FOLLOW_STRING_in_word3470);
+ match(input,STRING,FOLLOW_STRING_in_word3233);
word=getString(str);
}
@@ -4795,20 +4578,20 @@
public static final String DFA8_eofS =
"\6\uffff";
public static final String DFA8_minS =
- "\2\4\1\uffff\1\60\1\uffff\1\4";
+ "\2\4\1\uffff\1\106\1\uffff\1\4";
public static final String DFA8_maxS =
- "\1\4\1\57\1\uffff\1\60\1\uffff\1\57";
+ "\1\4\1\105\1\uffff\1\106\1\uffff\1\105";
public static final String DFA8_acceptS =
"\2\uffff\1\1\1\uffff\1\2\1\uffff";
public static final String DFA8_specialS =
"\6\uffff}>";
public static final String[] DFA8_transition = {
"\1\1",
- "\1\2\20\uffff\1\4\7\uffff\1\2\2\uffff\1\4\16\uffff\1\3",
+ "\1\2\22\uffff\1\4\7\uffff\1\2\2\uffff\1\4\42\uffff\1\3",
"",
"\1\5",
"",
- "\1\2\20\uffff\1\4\12\uffff\1\4\16\uffff\1\3"
+ "\1\2\22\uffff\1\4\12\uffff\1\4\42\uffff\1\3"
};
class DFA8 extends DFA {
@@ -4836,20 +4619,20 @@
public static final String DFA9_eofS =
"\6\uffff";
public static final String DFA9_minS =
- "\2\4\1\uffff\1\60\1\uffff\1\4";
+ "\2\4\1\uffff\1\106\1\uffff\1\4";
public static final String DFA9_maxS =
- "\1\4\1\57\1\uffff\1\60\1\uffff\1\57";
+ "\1\4\1\105\1\uffff\1\106\1\uffff\1\105";
public static final String DFA9_acceptS =
"\2\uffff\1\1\1\uffff\1\2\1\uffff";
public static final String DFA9_specialS =
"\6\uffff}>";
public static final String[] DFA9_transition = {
"\1\1",
- "\1\2\20\uffff\1\4\7\uffff\1\2\2\uffff\1\4\16\uffff\1\3",
+ "\1\2\22\uffff\1\4\7\uffff\1\2\2\uffff\1\4\42\uffff\1\3",
"",
"\1\5",
"",
- "\1\2\20\uffff\1\4\12\uffff\1\4\16\uffff\1\3"
+ "\1\2\22\uffff\1\4\12\uffff\1\4\42\uffff\1\3"
};
class DFA9 extends DFA {
@@ -4874,9 +4657,9 @@
}
- public static final BitSet FOLLOW_25_in_opt_semicolon39 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_prolog_in_compilation_unit51 = new BitSet(new long[]{0x0000001A98000002L});
- public static final BitSet FOLLOW_statement_in_compilation_unit58 = new BitSet(new long[]{0x0000001A98000002L});
+ public static final BitSet FOLLOW_27_in_opt_semicolon39 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_prolog_in_compilation_unit51 = new BitSet(new long[]{0x0000006A60000002L});
+ public static final BitSet FOLLOW_statement_in_compilation_unit58 = new BitSet(new long[]{0x0000006A60000002L});
public static final BitSet FOLLOW_package_statement_in_prolog83 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_import_statement_in_statement107 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_function_import_statement_in_statement118 = new BitSet(new long[]{0x0000000000000002L});
@@ -4885,252 +4668,232 @@
public static final BitSet FOLLOW_template_in_statement141 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_rule_in_statement150 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_query_in_statement160 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_26_in_package_statement188 = new BitSet(new long[]{0x0000000000000010L});
- public static final BitSet FOLLOW_dotted_name_in_package_statement192 = new BitSet(new long[]{0x0000000002000002L});
+ public static final BitSet FOLLOW_28_in_package_statement188 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_dotted_name_in_package_statement192 = new BitSet(new long[]{0x0000000008000002L});
public static final BitSet FOLLOW_opt_semicolon_in_package_statement194 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_27_in_import_statement211 = new BitSet(new long[]{0x0000000000000010L});
- public static final BitSet FOLLOW_import_name_in_import_statement215 = new BitSet(new long[]{0x0000000002000002L});
+ public static final BitSet FOLLOW_29_in_import_statement211 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_import_name_in_import_statement215 = new BitSet(new long[]{0x0000000008000002L});
public static final BitSet FOLLOW_opt_semicolon_in_import_statement217 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_27_in_function_import_statement233 = new BitSet(new long[]{0x0000000010000000L});
- public static final BitSet FOLLOW_28_in_function_import_statement235 = new BitSet(new long[]{0x0000000000000010L});
- public static final BitSet FOLLOW_import_name_in_function_import_statement239 = new BitSet(new long[]{0x0000000002000002L});
+ public static final BitSet FOLLOW_29_in_function_import_statement233 = new BitSet(new long[]{0x0000000040000000L});
+ public static final BitSet FOLLOW_30_in_function_import_statement235 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_import_name_in_function_import_statement239 = new BitSet(new long[]{0x0000000008000002L});
public static final BitSet FOLLOW_opt_semicolon_in_function_import_statement241 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ID_in_import_name273 = new BitSet(new long[]{0x0000000060000002L});
- public static final BitSet FOLLOW_29_in_import_name279 = new BitSet(new long[]{0x0000000000000010L});
- public static final BitSet FOLLOW_ID_in_import_name283 = new BitSet(new long[]{0x0000000060000002L});
- public static final BitSet FOLLOW_30_in_import_name293 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_31_in_global317 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_ID_in_import_name273 = new BitSet(new long[]{0x0000000180000002L});
+ public static final BitSet FOLLOW_31_in_import_name279 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_ID_in_import_name283 = new BitSet(new long[]{0x0000000180000002L});
+ public static final BitSet FOLLOW_32_in_import_name293 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_33_in_global317 = new BitSet(new long[]{0x0000000000000010L});
public static final BitSet FOLLOW_dotted_name_in_global321 = new BitSet(new long[]{0x0000000000000010L});
- public static final BitSet FOLLOW_ID_in_global325 = new BitSet(new long[]{0x0000000002000002L});
+ public static final BitSet FOLLOW_ID_in_global325 = new BitSet(new long[]{0x0000000008000002L});
public static final BitSet FOLLOW_opt_semicolon_in_global327 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_28_in_function354 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_30_in_function354 = new BitSet(new long[]{0x0000000000000010L});
public static final BitSet FOLLOW_dotted_name_in_function359 = new BitSet(new long[]{0x0000000000000010L});
- public static final BitSet FOLLOW_ID_in_function365 = new BitSet(new long[]{0x0000000000100000L});
- public static final BitSet FOLLOW_LEFT_PAREN_in_function374 = new BitSet(new long[]{0x0000000000200010L});
+ public static final BitSet FOLLOW_ID_in_function365 = new BitSet(new long[]{0x0000000000400000L});
+ public static final BitSet FOLLOW_LEFT_SQUARE_in_function374 = new BitSet(new long[]{0x0000000000800010L});
public static final BitSet FOLLOW_dotted_name_in_function384 = new BitSet(new long[]{0x0000000000000010L});
- public static final BitSet FOLLOW_argument_in_function390 = new BitSet(new long[]{0x0000000100200000L});
- public static final BitSet FOLLOW_32_in_function404 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_argument_in_function390 = new BitSet(new long[]{0x0000000400800000L});
+ public static final BitSet FOLLOW_34_in_function404 = new BitSet(new long[]{0x0000000000000010L});
public static final BitSet FOLLOW_dotted_name_in_function409 = new BitSet(new long[]{0x0000000000000010L});
- public static final BitSet FOLLOW_argument_in_function415 = new BitSet(new long[]{0x0000000100200000L});
- public static final BitSet FOLLOW_RIGHT_PAREN_in_function439 = new BitSet(new long[]{0x0000000000000020L});
+ public static final BitSet FOLLOW_argument_in_function415 = new BitSet(new long[]{0x0000000400800000L});
+ public static final BitSet FOLLOW_RIGHT_SQUARE_in_function439 = new BitSet(new long[]{0x0000000000000020L});
public static final BitSet FOLLOW_CURLY_CHUNK_in_function445 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_33_in_query476 = new BitSet(new long[]{0x0000033608000250L,0x0000000000001000L});
- public static final BitSet FOLLOW_word_in_query480 = new BitSet(new long[]{0x0000000400100010L,0x0000000000000E00L});
- public static final BitSet FOLLOW_normal_lhs_block_in_query494 = new BitSet(new long[]{0x0000000400000000L});
- public static final BitSet FOLLOW_34_in_query509 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_35_in_template535 = new BitSet(new long[]{0x0000000000000010L});
- public static final BitSet FOLLOW_ID_in_template539 = new BitSet(new long[]{0x0000000002000010L});
+ public static final BitSet FOLLOW_35_in_query476 = new BitSet(new long[]{0x00000CD820000250L,0x0000000000001000L});
+ public static final BitSet FOLLOW_word_in_query480 = new BitSet(new long[]{0x0000001000400010L,0x0000000000000E00L});
+ public static final BitSet FOLLOW_normal_lhs_block_in_query494 = new BitSet(new long[]{0x0000001000000000L});
+ public static final BitSet FOLLOW_36_in_query509 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_37_in_template535 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_ID_in_template539 = new BitSet(new long[]{0x0000000008000010L});
public static final BitSet FOLLOW_opt_semicolon_in_template541 = new BitSet(new long[]{0x0000000000000010L});
- public static final BitSet FOLLOW_template_slot_in_template556 = new BitSet(new long[]{0x0000000400000010L});
- public static final BitSet FOLLOW_34_in_template571 = new BitSet(new long[]{0x0000000002000002L});
+ public static final BitSet FOLLOW_template_slot_in_template556 = new BitSet(new long[]{0x0000001000000010L});
+ public static final BitSet FOLLOW_36_in_template571 = new BitSet(new long[]{0x0000000008000002L});
public static final BitSet FOLLOW_opt_semicolon_in_template573 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_dotted_name_in_template_slot605 = new BitSet(new long[]{0x0000000000000010L});
- public static final BitSet FOLLOW_ID_in_template_slot609 = new BitSet(new long[]{0x0000000002000002L});
+ public static final BitSet FOLLOW_ID_in_template_slot609 = new BitSet(new long[]{0x0000000008000002L});
public static final BitSet FOLLOW_opt_semicolon_in_template_slot611 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_36_in_rule642 = new BitSet(new long[]{0x0000033608000250L,0x0000000000001000L});
- public static final BitSet FOLLOW_word_in_rule646 = new BitSet(new long[]{0x00003FA100000040L});
- public static final BitSet FOLLOW_rule_attributes_in_rule655 = new BitSet(new long[]{0x0000002000000040L});
- public static final BitSet FOLLOW_37_in_rule664 = new BitSet(new long[]{0x0000004000100050L,0x0000000000000E00L});
- public static final BitSet FOLLOW_38_in_rule666 = new BitSet(new long[]{0x0000000000100050L,0x0000000000000E00L});
+ public static final BitSet FOLLOW_38_in_rule642 = new BitSet(new long[]{0x00000CD820000250L,0x0000000000001000L});
+ public static final BitSet FOLLOW_word_in_rule646 = new BitSet(new long[]{0x0000FE8400000040L});
+ public static final BitSet FOLLOW_rule_attributes_in_rule655 = new BitSet(new long[]{0x0000008000000040L});
+ public static final BitSet FOLLOW_39_in_rule664 = new BitSet(new long[]{0x0000010000400050L,0x0000000000000E00L});
+ public static final BitSet FOLLOW_40_in_rule666 = new BitSet(new long[]{0x0000000000400050L,0x0000000000000E00L});
public static final BitSet FOLLOW_normal_lhs_block_in_rule684 = new BitSet(new long[]{0x0000000000000040L});
public static final BitSet FOLLOW_RHS_in_rule707 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_39_in_rule_attributes732 = new BitSet(new long[]{0x0000004000000000L});
- public static final BitSet FOLLOW_38_in_rule_attributes734 = new BitSet(new long[]{0x00003F0100000002L});
- public static final BitSet FOLLOW_32_in_rule_attributes743 = new BitSet(new long[]{0x00003F0000000000L});
- public static final BitSet FOLLOW_rule_attribute_in_rule_attributes748 = new BitSet(new long[]{0x00003F0100000002L});
+ public static final BitSet FOLLOW_41_in_rule_attributes732 = new BitSet(new long[]{0x0000010000000000L});
+ public static final BitSet FOLLOW_40_in_rule_attributes734 = new BitSet(new long[]{0x0000FC0400000002L});
+ public static final BitSet FOLLOW_34_in_rule_attributes743 = new BitSet(new long[]{0x0000FC0000000000L});
+ public static final BitSet FOLLOW_rule_attribute_in_rule_attributes748 = new BitSet(new long[]{0x0000FC0400000002L});
public static final BitSet FOLLOW_salience_in_rule_attribute789 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_no_loop_in_rule_attribute799 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_agenda_group_in_rule_attribute810 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_duration_in_rule_attribute823 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_activation_group_in_rule_attribute837 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_auto_focus_in_rule_attribute848 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_40_in_salience882 = new BitSet(new long[]{0x0000000000000080L});
- public static final BitSet FOLLOW_INT_in_salience886 = new BitSet(new long[]{0x0000000002000002L});
+ public static final BitSet FOLLOW_42_in_salience882 = new BitSet(new long[]{0x0000000000000080L});
+ public static final BitSet FOLLOW_INT_in_salience886 = new BitSet(new long[]{0x0000000008000002L});
public static final BitSet FOLLOW_opt_semicolon_in_salience888 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_41_in_no_loop923 = new BitSet(new long[]{0x0000000002000002L});
+ public static final BitSet FOLLOW_43_in_no_loop923 = new BitSet(new long[]{0x0000000008000002L});
public static final BitSet FOLLOW_opt_semicolon_in_no_loop925 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_41_in_no_loop950 = new BitSet(new long[]{0x0000000000000100L});
- public static final BitSet FOLLOW_BOOL_in_no_loop954 = new BitSet(new long[]{0x0000000002000002L});
+ public static final BitSet FOLLOW_43_in_no_loop950 = new BitSet(new long[]{0x0000000000000100L});
+ public static final BitSet FOLLOW_BOOL_in_no_loop954 = new BitSet(new long[]{0x0000000008000002L});
public static final BitSet FOLLOW_opt_semicolon_in_no_loop956 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_42_in_auto_focus1002 = new BitSet(new long[]{0x0000000002000002L});
+ public static final BitSet FOLLOW_44_in_auto_focus1002 = new BitSet(new long[]{0x0000000008000002L});
public static final BitSet FOLLOW_opt_semicolon_in_auto_focus1004 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_42_in_auto_focus1029 = new BitSet(new long[]{0x0000000000000100L});
- public static final BitSet FOLLOW_BOOL_in_auto_focus1033 = new BitSet(new long[]{0x0000000002000002L});
+ public static final BitSet FOLLOW_44_in_auto_focus1029 = new BitSet(new long[]{0x0000000000000100L});
+ public static final BitSet FOLLOW_BOOL_in_auto_focus1033 = new BitSet(new long[]{0x0000000008000002L});
public static final BitSet FOLLOW_opt_semicolon_in_auto_focus1035 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_43_in_activation_group1077 = new BitSet(new long[]{0x0000000000000200L});
- public static final BitSet FOLLOW_STRING_in_activation_group1081 = new BitSet(new long[]{0x0000000002000002L});
+ public static final BitSet FOLLOW_45_in_activation_group1077 = new BitSet(new long[]{0x0000000000000200L});
+ public static final BitSet FOLLOW_STRING_in_activation_group1081 = new BitSet(new long[]{0x0000000008000002L});
public static final BitSet FOLLOW_opt_semicolon_in_activation_group1083 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_44_in_agenda_group1112 = new BitSet(new long[]{0x0000000000000200L});
- public static final BitSet FOLLOW_STRING_in_agenda_group1116 = new BitSet(new long[]{0x0000000002000002L});
+ public static final BitSet FOLLOW_46_in_agenda_group1112 = new BitSet(new long[]{0x0000000000000200L});
+ public static final BitSet FOLLOW_STRING_in_agenda_group1116 = new BitSet(new long[]{0x0000000008000002L});
public static final BitSet FOLLOW_opt_semicolon_in_agenda_group1118 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_45_in_duration1150 = new BitSet(new long[]{0x0000000000000080L});
+ public static final BitSet FOLLOW_47_in_duration1150 = new BitSet(new long[]{0x0000000000000080L});
public static final BitSet FOLLOW_INT_in_duration1154 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_lhs_in_normal_lhs_block1180 = new BitSet(new long[]{0x0000000000100012L,0x0000000000000E00L});
+ public static final BitSet FOLLOW_lhs_in_normal_lhs_block1180 = new BitSet(new long[]{0x0000000000400012L,0x0000000000000E00L});
public static final BitSet FOLLOW_lhs_or_in_lhs1218 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_fact_binding_in_lhs_column1246 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_fact_in_lhs_column1255 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_46_in_from_statement1283 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_48_in_from_statement1283 = new BitSet(new long[]{0x0000000000000010L});
public static final BitSet FOLLOW_from_source_in_from_statement1287 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ID_in_from_source1331 = new BitSet(new long[]{0x0000000020000000L});
- public static final BitSet FOLLOW_29_in_from_source1333 = new BitSet(new long[]{0x0000000000000010L});
- public static final BitSet FOLLOW_ID_in_from_source1337 = new BitSet(new long[]{0x0000800000000002L});
- public static final BitSet FOLLOW_47_in_from_source1341 = new BitSet(new long[]{0x00408000000007B0L});
- public static final BitSet FOLLOW_argument_value_in_from_source1345 = new BitSet(new long[]{0x0001000000000000L});
- public static final BitSet FOLLOW_48_in_from_source1347 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ID_in_from_source1376 = new BitSet(new long[]{0x0000000020000000L});
- public static final BitSet FOLLOW_29_in_from_source1378 = new BitSet(new long[]{0x0000000000000010L});
- public static final BitSet FOLLOW_ID_in_from_source1382 = new BitSet(new long[]{0x0000000000100000L});
- public static final BitSet FOLLOW_LEFT_PAREN_in_from_source1384 = new BitSet(new long[]{0x00408000002007B0L});
- public static final BitSet FOLLOW_argument_list_in_from_source1388 = new BitSet(new long[]{0x0000000000200000L});
- public static final BitSet FOLLOW_RIGHT_PAREN_in_from_source1390 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ID_in_from_source1412 = new BitSet(new long[]{0x0000000000100000L});
- public static final BitSet FOLLOW_LEFT_PAREN_in_from_source1414 = new BitSet(new long[]{0x00408000002007B0L});
- public static final BitSet FOLLOW_argument_list_in_from_source1418 = new BitSet(new long[]{0x0000000000200000L});
- public static final BitSet FOLLOW_RIGHT_PAREN_in_from_source1420 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_46_in_accumulate_statement1469 = new BitSet(new long[]{0x0002000000000000L});
- public static final BitSet FOLLOW_49_in_accumulate_statement1471 = new BitSet(new long[]{0x0000000000100000L});
- public static final BitSet FOLLOW_LEFT_PAREN_in_accumulate_statement1481 = new BitSet(new long[]{0x0000000000000010L});
- public static final BitSet FOLLOW_lhs_column_in_accumulate_statement1485 = new BitSet(new long[]{0x0000000100000000L});
- public static final BitSet FOLLOW_32_in_accumulate_statement1487 = new BitSet(new long[]{0x0004000000000000L});
- public static final BitSet FOLLOW_50_in_accumulate_statement1496 = new BitSet(new long[]{0x0000000000100000L});
- public static final BitSet FOLLOW_paren_chunk_in_accumulate_statement1500 = new BitSet(new long[]{0x0000000100000000L});
- public static final BitSet FOLLOW_32_in_accumulate_statement1502 = new BitSet(new long[]{0x0008000000000000L});
- public static final BitSet FOLLOW_51_in_accumulate_statement1511 = new BitSet(new long[]{0x0000000000100000L});
- public static final BitSet FOLLOW_paren_chunk_in_accumulate_statement1515 = new BitSet(new long[]{0x0000000100000000L});
- public static final BitSet FOLLOW_32_in_accumulate_statement1517 = new BitSet(new long[]{0x0010000000000000L});
- public static final BitSet FOLLOW_52_in_accumulate_statement1526 = new BitSet(new long[]{0x0000000000100000L});
- public static final BitSet FOLLOW_paren_chunk_in_accumulate_statement1530 = new BitSet(new long[]{0x0000000000200000L});
- public static final BitSet FOLLOW_RIGHT_PAREN_in_accumulate_statement1532 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_46_in_collect_statement1575 = new BitSet(new long[]{0x0020000000000000L});
- public static final BitSet FOLLOW_53_in_collect_statement1577 = new BitSet(new long[]{0x0000000000100000L});
- public static final BitSet FOLLOW_LEFT_PAREN_in_collect_statement1587 = new BitSet(new long[]{0x0000000000000010L});
- public static final BitSet FOLLOW_lhs_column_in_collect_statement1591 = new BitSet(new long[]{0x0000000000200000L});
- public static final BitSet FOLLOW_RIGHT_PAREN_in_collect_statement1593 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_argument_value_in_argument_list1626 = new BitSet(new long[]{0x0000000100000002L});
- public static final BitSet FOLLOW_32_in_argument_list1642 = new BitSet(new long[]{0x00408000000007B0L});
- public static final BitSet FOLLOW_argument_value_in_argument_list1646 = new BitSet(new long[]{0x0000000100000002L});
- public static final BitSet FOLLOW_STRING_in_argument_value1686 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_INT_in_argument_value1697 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_FLOAT_in_argument_value1710 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_BOOL_in_argument_value1721 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ID_in_argument_value1733 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_54_in_argument_value1744 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_inline_map_in_argument_value1761 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_inline_array_in_argument_value1777 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_CURLY_CHUNK_in_inline_map1817 = new BitSet(new long[]{0x00408000000007B0L});
- public static final BitSet FOLLOW_argument_value_in_inline_map1835 = new BitSet(new long[]{0x0080000000000000L});
- public static final BitSet FOLLOW_55_in_inline_map1837 = new BitSet(new long[]{0x00408000000007B0L});
- public static final BitSet FOLLOW_argument_value_in_inline_map1841 = new BitSet(new long[]{0x0100000100000800L});
- public static final BitSet FOLLOW_EOL_in_inline_map1884 = new BitSet(new long[]{0x0000000100000000L});
- public static final BitSet FOLLOW_32_in_inline_map1888 = new BitSet(new long[]{0x0040800000000FB0L});
- public static final BitSet FOLLOW_EOL_in_inline_map1891 = new BitSet(new long[]{0x00408000000007B0L});
- public static final BitSet FOLLOW_argument_value_in_inline_map1897 = new BitSet(new long[]{0x0080000000000000L});
- public static final BitSet FOLLOW_55_in_inline_map1899 = new BitSet(new long[]{0x00408000000007B0L});
- public static final BitSet FOLLOW_argument_value_in_inline_map1903 = new BitSet(new long[]{0x0100000100000800L});
- public static final BitSet FOLLOW_56_in_inline_map1939 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_47_in_inline_array1983 = new BitSet(new long[]{0x00408000000007B0L});
- public static final BitSet FOLLOW_argument_value_in_inline_array1987 = new BitSet(new long[]{0x0001000100000800L});
- public static final BitSet FOLLOW_EOL_in_inline_array2005 = new BitSet(new long[]{0x0000000100000000L});
- public static final BitSet FOLLOW_32_in_inline_array2008 = new BitSet(new long[]{0x0040800000000FB0L});
- public static final BitSet FOLLOW_EOL_in_inline_array2010 = new BitSet(new long[]{0x00408000000007B0L});
- public static final BitSet FOLLOW_argument_value_in_inline_array2015 = new BitSet(new long[]{0x0001000100000800L});
- public static final BitSet FOLLOW_48_in_inline_array2028 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ID_in_fact_binding2072 = new BitSet(new long[]{0x0000004000000000L});
- public static final BitSet FOLLOW_38_in_fact_binding2082 = new BitSet(new long[]{0x0000000000100010L});
- public static final BitSet FOLLOW_fact_expression_in_fact_binding2086 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_LEFT_PAREN_in_fact_expression2118 = new BitSet(new long[]{0x0000000000100010L});
- public static final BitSet FOLLOW_fact_expression_in_paren_in_fact_expression2122 = new BitSet(new long[]{0x0000000000200000L});
- public static final BitSet FOLLOW_RIGHT_PAREN_in_fact_expression2125 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_fact_in_fact_expression2136 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_LEFT_PAREN_in_fact_expression_in_paren2167 = new BitSet(new long[]{0x0000000000100010L});
- public static final BitSet FOLLOW_fact_expression_in_paren_in_fact_expression_in_paren2171 = new BitSet(new long[]{0x0000000000200000L});
- public static final BitSet FOLLOW_RIGHT_PAREN_in_fact_expression_in_paren2173 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_fact_in_fact_expression_in_paren2184 = new BitSet(new long[]{0x0600000000000002L});
- public static final BitSet FOLLOW_set_in_fact_expression_in_paren2197 = new BitSet(new long[]{0x0000000000000010L});
- public static final BitSet FOLLOW_fact_in_fact_expression_in_paren2214 = new BitSet(new long[]{0x0600000000000002L});
- public static final BitSet FOLLOW_dotted_name_in_fact2253 = new BitSet(new long[]{0x0000000000100000L});
- public static final BitSet FOLLOW_LEFT_PAREN_in_fact2266 = new BitSet(new long[]{0x0000000000200010L});
- public static final BitSet FOLLOW_constraints_in_fact2274 = new BitSet(new long[]{0x0000000000200000L});
- public static final BitSet FOLLOW_RIGHT_PAREN_in_fact2295 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_constraint_in_constraints2328 = new BitSet(new long[]{0x0000000100000002L});
- public static final BitSet FOLLOW_predicate_in_constraints2331 = new BitSet(new long[]{0x0000000100000002L});
- public static final BitSet FOLLOW_32_in_constraints2339 = new BitSet(new long[]{0x0000000000000010L});
- public static final BitSet FOLLOW_constraint_in_constraints2342 = new BitSet(new long[]{0x0000000100000002L});
- public static final BitSet FOLLOW_predicate_in_constraints2345 = new BitSet(new long[]{0x0000000100000002L});
- public static final BitSet FOLLOW_ID_in_constraint2374 = new BitSet(new long[]{0x0000004000000000L});
- public static final BitSet FOLLOW_38_in_constraint2376 = new BitSet(new long[]{0x0000000000000010L});
- public static final BitSet FOLLOW_ID_in_constraint2386 = new BitSet(new long[]{0xE000000000000002L,0x000000000000003FL});
- public static final BitSet FOLLOW_constraint_expression_in_constraint2402 = new BitSet(new long[]{0x1800000000000002L});
- public static final BitSet FOLLOW_set_in_constraint2421 = new BitSet(new long[]{0xE000000000000000L,0x000000000000003FL});
- public static final BitSet FOLLOW_constraint_expression_in_constraint2438 = new BitSet(new long[]{0x1800000000000002L});
- public static final BitSet FOLLOW_set_in_constraint_expression2490 = new BitSet(new long[]{0x0040000000100790L});
- public static final BitSet FOLLOW_ID_in_constraint_expression2557 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_enum_constraint_in_constraint_expression2573 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_literal_constraint_in_constraint_expression2596 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_retval_constraint_in_constraint_expression2610 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_STRING_in_literal_constraint2649 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_INT_in_literal_constraint2660 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_FLOAT_in_literal_constraint2673 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_BOOL_in_literal_constraint2684 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_54_in_literal_constraint2696 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ID_in_enum_constraint2727 = new BitSet(new long[]{0x0000000020000000L});
- public static final BitSet FOLLOW_29_in_enum_constraint2729 = new BitSet(new long[]{0x0000000000000010L});
- public static final BitSet FOLLOW_ID_in_enum_constraint2733 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ID_in_predicate2755 = new BitSet(new long[]{0x0000004000000000L});
- public static final BitSet FOLLOW_38_in_predicate2757 = new BitSet(new long[]{0x0000000000000010L});
- public static final BitSet FOLLOW_ID_in_predicate2761 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000040L});
- public static final BitSet FOLLOW_70_in_predicate2763 = new BitSet(new long[]{0x0000000000100000L});
- public static final BitSet FOLLOW_paren_chunk_in_predicate2767 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_LEFT_PAREN_in_paren_chunk2801 = new BitSet(new long[]{0x0000000000200000L});
- public static final BitSet FOLLOW_RIGHT_PAREN_in_paren_chunk2824 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_paren_chunk_in_retval_constraint2851 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_lhs_and_in_lhs_or2888 = new BitSet(new long[]{0x0600000000000002L});
- public static final BitSet FOLLOW_set_in_lhs_or2897 = new BitSet(new long[]{0x0000000000100010L,0x0000000000000E00L});
- public static final BitSet FOLLOW_lhs_and_in_lhs_or2907 = new BitSet(new long[]{0x0600000000000002L});
- public static final BitSet FOLLOW_lhs_unary_in_lhs_and2947 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000180L});
- public static final BitSet FOLLOW_set_in_lhs_and2956 = new BitSet(new long[]{0x0000000000100010L,0x0000000000000E00L});
- public static final BitSet FOLLOW_lhs_unary_in_lhs_and2966 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000180L});
- public static final BitSet FOLLOW_lhs_exist_in_lhs_unary3003 = new BitSet(new long[]{0x0000000002000002L});
- public static final BitSet FOLLOW_lhs_not_in_lhs_unary3011 = new BitSet(new long[]{0x0000000002000002L});
- public static final BitSet FOLLOW_lhs_eval_in_lhs_unary3019 = new BitSet(new long[]{0x0000000002000002L});
- public static final BitSet FOLLOW_lhs_column_in_lhs_unary3027 = new BitSet(new long[]{0x0000400002000002L});
- public static final BitSet FOLLOW_from_statement_in_lhs_unary3047 = new BitSet(new long[]{0x0000000002000002L});
- public static final BitSet FOLLOW_accumulate_statement_in_lhs_unary3069 = new BitSet(new long[]{0x0000000002000002L});
- public static final BitSet FOLLOW_collect_statement_in_lhs_unary3090 = new BitSet(new long[]{0x0000000002000002L});
- public static final BitSet FOLLOW_LEFT_PAREN_in_lhs_unary3113 = new BitSet(new long[]{0x0000000000100010L,0x0000000000000E00L});
- public static final BitSet FOLLOW_lhs_in_lhs_unary3117 = new BitSet(new long[]{0x0000000000200000L});
- public static final BitSet FOLLOW_RIGHT_PAREN_in_lhs_unary3119 = new BitSet(new long[]{0x0000000002000002L});
- public static final BitSet FOLLOW_opt_semicolon_in_lhs_unary3129 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_73_in_lhs_exist3153 = new BitSet(new long[]{0x0000000000100010L});
- public static final BitSet FOLLOW_LEFT_PAREN_in_lhs_exist3156 = new BitSet(new long[]{0x0000000000000010L});
- public static final BitSet FOLLOW_lhs_column_in_lhs_exist3160 = new BitSet(new long[]{0x0000000000200000L});
- public static final BitSet FOLLOW_RIGHT_PAREN_in_lhs_exist3162 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_lhs_column_in_lhs_exist3168 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_74_in_lhs_not3198 = new BitSet(new long[]{0x0000000000100010L});
- public static final BitSet FOLLOW_LEFT_PAREN_in_lhs_not3201 = new BitSet(new long[]{0x0000000000000010L});
- public static final BitSet FOLLOW_lhs_column_in_lhs_not3205 = new BitSet(new long[]{0x0000000000200000L});
- public static final BitSet FOLLOW_RIGHT_PAREN_in_lhs_not3208 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_lhs_column_in_lhs_not3214 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_75_in_lhs_eval3242 = new BitSet(new long[]{0x0000000000100000L});
- public static final BitSet FOLLOW_paren_chunk_in_lhs_eval3246 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ID_in_dotted_name3277 = new BitSet(new long[]{0x0000800020000002L});
- public static final BitSet FOLLOW_29_in_dotted_name3283 = new BitSet(new long[]{0x0000000000000010L});
- public static final BitSet FOLLOW_ID_in_dotted_name3287 = new BitSet(new long[]{0x0000800020000002L});
- public static final BitSet FOLLOW_47_in_dotted_name3296 = new BitSet(new long[]{0x0001000000000000L});
- public static final BitSet FOLLOW_48_in_dotted_name3298 = new BitSet(new long[]{0x0000800000000002L});
- public static final BitSet FOLLOW_ID_in_argument3328 = new BitSet(new long[]{0x0000800000000002L});
- public static final BitSet FOLLOW_47_in_argument3334 = new BitSet(new long[]{0x0001000000000000L});
- public static final BitSet FOLLOW_48_in_argument3336 = new BitSet(new long[]{0x0000800000000002L});
- public static final BitSet FOLLOW_ID_in_word3364 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_27_in_word3376 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_76_in_word3385 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_36_in_word3397 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_33_in_word3408 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_40_in_word3418 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_41_in_word3426 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_37_in_word3434 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_RHS_in_word3445 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_34_in_word3456 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_STRING_in_word3470 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ID_in_from_source1331 = new BitSet(new long[]{0x0000000080000000L});
+ public static final BitSet FOLLOW_31_in_from_source1333 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_ID_in_from_source1337 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000020L});
+ public static final BitSet FOLLOW_square_chunk_in_from_source1344 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ID_in_from_source1374 = new BitSet(new long[]{0x0000000080000000L});
+ public static final BitSet FOLLOW_31_in_from_source1376 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_ID_in_from_source1380 = new BitSet(new long[]{0x0000000000400000L});
+ public static final BitSet FOLLOW_LEFT_SQUARE_in_from_source1382 = new BitSet(new long[]{0x0000000000400000L});
+ public static final BitSet FOLLOW_paren_chunk_in_from_source1386 = new BitSet(new long[]{0x0000000000800000L});
+ public static final BitSet FOLLOW_RIGHT_SQUARE_in_from_source1388 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ID_in_from_source1410 = new BitSet(new long[]{0x0000000000400000L});
+ public static final BitSet FOLLOW_LEFT_SQUARE_in_from_source1412 = new BitSet(new long[]{0x0000000000400000L});
+ public static final BitSet FOLLOW_paren_chunk_in_from_source1416 = new BitSet(new long[]{0x0000000000800000L});
+ public static final BitSet FOLLOW_RIGHT_SQUARE_in_from_source1418 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_48_in_accumulate_statement1467 = new BitSet(new long[]{0x0002000000000000L});
+ public static final BitSet FOLLOW_49_in_accumulate_statement1469 = new BitSet(new long[]{0x0000000000400000L});
+ public static final BitSet FOLLOW_LEFT_SQUARE_in_accumulate_statement1479 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_lhs_column_in_accumulate_statement1483 = new BitSet(new long[]{0x0000000400000000L});
+ public static final BitSet FOLLOW_34_in_accumulate_statement1485 = new BitSet(new long[]{0x0004000000000000L});
+ public static final BitSet FOLLOW_50_in_accumulate_statement1494 = new BitSet(new long[]{0x0000000000400000L});
+ public static final BitSet FOLLOW_paren_chunk_in_accumulate_statement1498 = new BitSet(new long[]{0x0000000400000000L});
+ public static final BitSet FOLLOW_34_in_accumulate_statement1500 = new BitSet(new long[]{0x0008000000000000L});
+ public static final BitSet FOLLOW_51_in_accumulate_statement1509 = new BitSet(new long[]{0x0000000000400000L});
+ public static final BitSet FOLLOW_paren_chunk_in_accumulate_statement1513 = new BitSet(new long[]{0x0000000400000000L});
+ public static final BitSet FOLLOW_34_in_accumulate_statement1515 = new BitSet(new long[]{0x0010000000000000L});
+ public static final BitSet FOLLOW_52_in_accumulate_statement1524 = new BitSet(new long[]{0x0000000000400000L});
+ public static final BitSet FOLLOW_paren_chunk_in_accumulate_statement1528 = new BitSet(new long[]{0x0000000000800000L});
+ public static final BitSet FOLLOW_RIGHT_SQUARE_in_accumulate_statement1530 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_48_in_collect_statement1573 = new BitSet(new long[]{0x0020000000000000L});
+ public static final BitSet FOLLOW_53_in_collect_statement1575 = new BitSet(new long[]{0x0000000000400000L});
+ public static final BitSet FOLLOW_LEFT_SQUARE_in_collect_statement1585 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_lhs_column_in_collect_statement1589 = new BitSet(new long[]{0x0000000000800000L});
+ public static final BitSet FOLLOW_RIGHT_SQUARE_in_collect_statement1591 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_argument_value_in_argument_list1624 = new BitSet(new long[]{0x0000000400000002L});
+ public static final BitSet FOLLOW_34_in_argument_list1640 = new BitSet(new long[]{0x0040000000000790L});
+ public static final BitSet FOLLOW_argument_value_in_argument_list1644 = new BitSet(new long[]{0x0000000400000002L});
+ public static final BitSet FOLLOW_STRING_in_argument_value1684 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_INT_in_argument_value1695 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_FLOAT_in_argument_value1708 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_BOOL_in_argument_value1719 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ID_in_argument_value1731 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_54_in_argument_value1742 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ID_in_fact_binding1779 = new BitSet(new long[]{0x0000010000000000L});
+ public static final BitSet FOLLOW_40_in_fact_binding1789 = new BitSet(new long[]{0x0000000000400010L});
+ public static final BitSet FOLLOW_fact_expression_in_fact_binding1793 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_LEFT_SQUARE_in_fact_expression1825 = new BitSet(new long[]{0x0000000000400010L});
+ public static final BitSet FOLLOW_fact_expression_in_paren_in_fact_expression1829 = new BitSet(new long[]{0x0000000000800000L});
+ public static final BitSet FOLLOW_RIGHT_SQUARE_in_fact_expression1832 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_fact_in_fact_expression1843 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_LEFT_SQUARE_in_fact_expression_in_paren1874 = new BitSet(new long[]{0x0000000000400010L});
+ public static final BitSet FOLLOW_fact_expression_in_paren_in_fact_expression_in_paren1878 = new BitSet(new long[]{0x0000000000800000L});
+ public static final BitSet FOLLOW_RIGHT_SQUARE_in_fact_expression_in_paren1880 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_fact_in_fact_expression_in_paren1891 = new BitSet(new long[]{0x0180000000000002L});
+ public static final BitSet FOLLOW_set_in_fact_expression_in_paren1904 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_fact_in_fact_expression_in_paren1921 = new BitSet(new long[]{0x0180000000000002L});
+ public static final BitSet FOLLOW_dotted_name_in_fact1960 = new BitSet(new long[]{0x0000000000400000L});
+ public static final BitSet FOLLOW_LEFT_SQUARE_in_fact1973 = new BitSet(new long[]{0x0000000000800010L});
+ public static final BitSet FOLLOW_constraints_in_fact1981 = new BitSet(new long[]{0x0000000000800000L});
+ public static final BitSet FOLLOW_RIGHT_SQUARE_in_fact2002 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_constraint_in_constraints2035 = new BitSet(new long[]{0x0000000400000002L});
+ public static final BitSet FOLLOW_predicate_in_constraints2038 = new BitSet(new long[]{0x0000000400000002L});
+ public static final BitSet FOLLOW_34_in_constraints2046 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_constraint_in_constraints2049 = new BitSet(new long[]{0x0000000400000002L});
+ public static final BitSet FOLLOW_predicate_in_constraints2052 = new BitSet(new long[]{0x0000000400000002L});
+ public static final BitSet FOLLOW_ID_in_constraint2081 = new BitSet(new long[]{0x0000010000000000L});
+ public static final BitSet FOLLOW_40_in_constraint2083 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_ID_in_constraint2093 = new BitSet(new long[]{0xF800000000000002L,0x000000000000000FL});
+ public static final BitSet FOLLOW_constraint_expression_in_constraint2109 = new BitSet(new long[]{0x0600000000000002L});
+ public static final BitSet FOLLOW_set_in_constraint2128 = new BitSet(new long[]{0xF800000000000000L,0x000000000000000FL});
+ public static final BitSet FOLLOW_constraint_expression_in_constraint2145 = new BitSet(new long[]{0x0600000000000002L});
+ public static final BitSet FOLLOW_set_in_constraint_expression2197 = new BitSet(new long[]{0x0040000000400790L});
+ public static final BitSet FOLLOW_ID_in_constraint_expression2264 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_enum_constraint_in_constraint_expression2280 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_literal_constraint_in_constraint_expression2303 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_retval_constraint_in_constraint_expression2317 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_STRING_in_literal_constraint2356 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_INT_in_literal_constraint2367 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_FLOAT_in_literal_constraint2380 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_BOOL_in_literal_constraint2391 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_54_in_literal_constraint2403 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ID_in_enum_constraint2434 = new BitSet(new long[]{0x0000000080000000L});
+ public static final BitSet FOLLOW_31_in_enum_constraint2436 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_ID_in_enum_constraint2440 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ID_in_predicate2462 = new BitSet(new long[]{0x0000010000000000L});
+ public static final BitSet FOLLOW_40_in_predicate2464 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_ID_in_predicate2468 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000010L});
+ public static final BitSet FOLLOW_68_in_predicate2470 = new BitSet(new long[]{0x0000000000400000L});
+ public static final BitSet FOLLOW_paren_chunk_in_predicate2474 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_LEFT_SQUARE_in_paren_chunk2508 = new BitSet(new long[]{0x0000000000800000L});
+ public static final BitSet FOLLOW_RIGHT_SQUARE_in_paren_chunk2531 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_69_in_square_chunk2563 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000040L});
+ public static final BitSet FOLLOW_70_in_square_chunk2586 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_paren_chunk_in_retval_constraint2614 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_lhs_and_in_lhs_or2651 = new BitSet(new long[]{0x0180000000000002L});
+ public static final BitSet FOLLOW_set_in_lhs_or2660 = new BitSet(new long[]{0x0000000000400010L,0x0000000000000E00L});
+ public static final BitSet FOLLOW_lhs_and_in_lhs_or2670 = new BitSet(new long[]{0x0180000000000002L});
+ public static final BitSet FOLLOW_lhs_unary_in_lhs_and2710 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000180L});
+ public static final BitSet FOLLOW_set_in_lhs_and2719 = new BitSet(new long[]{0x0000000000400010L,0x0000000000000E00L});
+ public static final BitSet FOLLOW_lhs_unary_in_lhs_and2729 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000180L});
+ public static final BitSet FOLLOW_lhs_exist_in_lhs_unary2766 = new BitSet(new long[]{0x0000000008000002L});
+ public static final BitSet FOLLOW_lhs_not_in_lhs_unary2774 = new BitSet(new long[]{0x0000000008000002L});
+ public static final BitSet FOLLOW_lhs_eval_in_lhs_unary2782 = new BitSet(new long[]{0x0000000008000002L});
+ public static final BitSet FOLLOW_lhs_column_in_lhs_unary2790 = new BitSet(new long[]{0x0001000008000002L});
+ public static final BitSet FOLLOW_from_statement_in_lhs_unary2810 = new BitSet(new long[]{0x0000000008000002L});
+ public static final BitSet FOLLOW_accumulate_statement_in_lhs_unary2832 = new BitSet(new long[]{0x0000000008000002L});
+ public static final BitSet FOLLOW_collect_statement_in_lhs_unary2853 = new BitSet(new long[]{0x0000000008000002L});
+ public static final BitSet FOLLOW_LEFT_SQUARE_in_lhs_unary2876 = new BitSet(new long[]{0x0000000000400010L,0x0000000000000E00L});
+ public static final BitSet FOLLOW_lhs_in_lhs_unary2880 = new BitSet(new long[]{0x0000000000800000L});
+ public static final BitSet FOLLOW_RIGHT_SQUARE_in_lhs_unary2882 = new BitSet(new long[]{0x0000000008000002L});
+ public static final BitSet FOLLOW_opt_semicolon_in_lhs_unary2892 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_73_in_lhs_exist2916 = new BitSet(new long[]{0x0000000000400010L});
+ public static final BitSet FOLLOW_LEFT_SQUARE_in_lhs_exist2919 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_lhs_column_in_lhs_exist2923 = new BitSet(new long[]{0x0000000000800000L});
+ public static final BitSet FOLLOW_RIGHT_SQUARE_in_lhs_exist2925 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_lhs_column_in_lhs_exist2931 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_74_in_lhs_not2961 = new BitSet(new long[]{0x0000000000400010L});
+ public static final BitSet FOLLOW_LEFT_SQUARE_in_lhs_not2964 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_lhs_column_in_lhs_not2968 = new BitSet(new long[]{0x0000000000800000L});
+ public static final BitSet FOLLOW_RIGHT_SQUARE_in_lhs_not2971 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_lhs_column_in_lhs_not2977 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_75_in_lhs_eval3005 = new BitSet(new long[]{0x0000000000400000L});
+ public static final BitSet FOLLOW_paren_chunk_in_lhs_eval3009 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ID_in_dotted_name3040 = new BitSet(new long[]{0x0000000080000002L,0x0000000000000020L});
+ public static final BitSet FOLLOW_31_in_dotted_name3046 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_ID_in_dotted_name3050 = new BitSet(new long[]{0x0000000080000002L,0x0000000000000020L});
+ public static final BitSet FOLLOW_69_in_dotted_name3059 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000040L});
+ public static final BitSet FOLLOW_70_in_dotted_name3061 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000020L});
+ public static final BitSet FOLLOW_ID_in_argument3091 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000020L});
+ public static final BitSet FOLLOW_69_in_argument3097 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000040L});
+ public static final BitSet FOLLOW_70_in_argument3099 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000020L});
+ public static final BitSet FOLLOW_ID_in_word3127 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_29_in_word3139 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_76_in_word3148 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_38_in_word3160 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_35_in_word3171 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_42_in_word3181 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_43_in_word3189 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_39_in_word3197 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_RHS_in_word3208 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_36_in_word3219 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_STRING_in_word3233 = new BitSet(new long[]{0x0000000000000002L});
-}
+}
\ No newline at end of file
Modified: labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/semantics/java/RuleBuilder.java
===================================================================
--- labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/semantics/java/RuleBuilder.java 2006-11-29 19:26:26 UTC (rev 7943)
+++ labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/semantics/java/RuleBuilder.java 2006-11-29 19:29:39 UTC (rev 7944)
@@ -47,7 +47,6 @@
import org.drools.facttemplates.FactTemplateObjectType;
import org.drools.lang.descr.AccumulateDescr;
import org.drools.lang.descr.AndDescr;
-import org.drools.lang.descr.ArgumentValueDescr;
import org.drools.lang.descr.AttributeDescr;
import org.drools.lang.descr.BaseDescr;
import org.drools.lang.descr.CollectDescr;
@@ -980,7 +979,11 @@
}
private From build(final FromDescr fromDescr) {
- return null;
+ final Column column = build( fromDescr.getReturnedColumn() );
+ return null;
+ }
+// private From build(final FromDescr fromDescr) {
+// return null;
// @todo: waiting for JFDI so we can impl this properly
// final Column column = build( fromDescr.getReturnedColumn() );
//
@@ -1041,95 +1044,95 @@
// return new From( column,
// dataProvider );
- }
+// }
- private ValueHandler buildValueHandler(final ArgumentValueDescr descr) {
- ValueHandler valueHandler = null;
- if ( descr.getType() == ArgumentValueDescr.VARIABLE ) {
- if ( this.declarations.containsKey( descr.getValue() ) ) {
- valueHandler = new DeclarationVariable( (Declaration) this.declarations.get( descr.getValue() ) );
- } else if ( this.pkg.getGlobals().containsKey( descr.getValue() ) ) {
- valueHandler = new GlobalVariable( (String) descr.getValue(),
- (Class) this.pkg.getGlobals().get( descr.getValue() ) );
- } else {
- throw new IllegalArgumentException( "Uknown variable: " + descr.getValue() );
- }
- } else if ( descr.getType() == ArgumentValueDescr.MAP ) {
- final ArgumentValueDescr.KeyValuePairDescr[] pairs = (ArgumentValueDescr.KeyValuePairDescr[]) descr.getValue();
- final List list = new ArrayList( pairs.length );
- for ( int i = 0, length = pairs.length; i < length; i++ ) {
- list.add( new MapValue.KeyValuePair( buildValueHandler( pairs[i].getKey() ),
- buildValueHandler( pairs[i].getValue() ) ) );
- }
+// private ValueHandler buildValueHandler(final ArgumentValueDescr descr) {
+// ValueHandler valueHandler = null;
+// if ( descr.getType() == ArgumentValueDescr.VARIABLE ) {
+// if ( this.declarations.containsKey( descr.getValue() ) ) {
+// valueHandler = new DeclarationVariable( (Declaration) this.declarations.get( descr.getValue() ) );
+// } else if ( this.pkg.getGlobals().containsKey( descr.getValue() ) ) {
+// valueHandler = new GlobalVariable( (String) descr.getValue(),
+// (Class) this.pkg.getGlobals().get( descr.getValue() ) );
+// } else {
+// throw new IllegalArgumentException( "Uknown variable: " + descr.getValue() );
+// }
+// } else if ( descr.getType() == ArgumentValueDescr.MAP ) {
+// final ArgumentValueDescr.KeyValuePairDescr[] pairs = (ArgumentValueDescr.KeyValuePairDescr[]) descr.getValue();
+// final List list = new ArrayList( pairs.length );
+// for ( int i = 0, length = pairs.length; i < length; i++ ) {
+// list.add( new MapValue.KeyValuePair( buildValueHandler( pairs[i].getKey() ),
+// buildValueHandler( pairs[i].getValue() ) ) );
+// }
+//
+// valueHandler = new MapValue( (MapValue.KeyValuePair[]) list.toArray( new MapValue.KeyValuePair[pairs.length] ) );
+// } else if ( descr.getType() == ArgumentValueDescr.LIST ) {
+// final List args = (List) descr.getValue();
+// final List handlers = new ArrayList( args.size() );
+// for ( final Iterator iter = args.iterator(); iter.hasNext(); ) {
+// final ArgumentValueDescr arg = (ArgumentValueDescr) iter.next();
+// handlers.add( buildValueHandler( arg ) );
+// }
+// valueHandler = new ListValue( handlers );
+// } else if ( descr.getType() == ArgumentValueDescr.BOOLEAN ) {
+// // handling a literal
+// valueHandler = new LiteralValue( new Boolean ( (String) descr.getValue() ) );
+// } else if ( descr.getType() == ArgumentValueDescr.INTEGRAL ) {
+// String text = (String) descr.getValue();
+// char c = text.charAt( text.length() - 1 );
+// if ( Character.getType( c ) != Character.DECIMAL_DIGIT_NUMBER ) {
+// switch ( c ) {
+// case 'l' :
+// case 'L' :
+// valueHandler = new LiteralValue( new Long( (String) descr.getValue() ) );
+// break;
+// case 'f' :
+// case 'F' :
+// valueHandler = new LiteralValue( new Float( (String) descr.getValue() ) );
+// break;
+// case 'd' :
+// case 'D' :
+// valueHandler = new LiteralValue( new Double( (String) descr.getValue() ) );
+// break;
+// default :
+// throw new IllegalArgumentException( "invalid type identifier '" + c + "' used with number [" + text + "]" );
+// }
+// } else {
+// valueHandler = new LiteralValue( new Integer( (String) descr.getValue() ) );
+// }
+//
+// } else if ( descr.getType() == ArgumentValueDescr.DECIMAL ) {
+// String text = (String) descr.getValue();
+// char c = text.charAt( text.length() - 1 );
+// if ( Character.getType( c ) != Character.DECIMAL_DIGIT_NUMBER ) {
+// switch ( c ) {
+// case 'l' :
+// case 'L' :
+// throw new IllegalArgumentException( "invalid type identifier '" + c + "' used with number [" + text + "]" );
+// case 'f' :
+// case 'F' :
+// valueHandler = new LiteralValue( new Float( (String) descr.getValue() ) );
+// break;
+// case 'd' :
+// case 'D' :
+// valueHandler = new LiteralValue( new Double( (String) descr.getValue() ) );
+// break;
+// default :
+// throw new IllegalArgumentException( "invalid type identifier '" + c + "' used with number [" + text + "]" );
+// }
+// } else {
+// valueHandler = new LiteralValue( new Float( (String) descr.getValue() ) );
+// }
+// } else if ( descr.getType() == ArgumentValueDescr.STRING ) {
+// // handling a literal
+// valueHandler = new LiteralValue( (String) descr.getValue() );
+// } else {
+// // This should never happen
+// throw new IllegalArgumentException( "Unable to determine type for argument [" + descr.getType() + "]" );
+// }
+// return valueHandler;
+// }
- valueHandler = new MapValue( (MapValue.KeyValuePair[]) list.toArray( new MapValue.KeyValuePair[pairs.length] ) );
- } else if ( descr.getType() == ArgumentValueDescr.LIST ) {
- final List args = (List) descr.getValue();
- final List handlers = new ArrayList( args.size() );
- for ( final Iterator iter = args.iterator(); iter.hasNext(); ) {
- final ArgumentValueDescr arg = (ArgumentValueDescr) iter.next();
- handlers.add( buildValueHandler( arg ) );
- }
- valueHandler = new ListValue( handlers );
- } else if ( descr.getType() == ArgumentValueDescr.BOOLEAN ) {
- // handling a literal
- valueHandler = new LiteralValue( new Boolean ( (String) descr.getValue() ) );
- } else if ( descr.getType() == ArgumentValueDescr.INTEGRAL ) {
- String text = (String) descr.getValue();
- char c = text.charAt( text.length() - 1 );
- if ( Character.getType( c ) != Character.DECIMAL_DIGIT_NUMBER ) {
- switch ( c ) {
- case 'l' :
- case 'L' :
- valueHandler = new LiteralValue( new Long( (String) descr.getValue() ) );
- break;
- case 'f' :
- case 'F' :
- valueHandler = new LiteralValue( new Float( (String) descr.getValue() ) );
- break;
- case 'd' :
- case 'D' :
- valueHandler = new LiteralValue( new Double( (String) descr.getValue() ) );
- break;
- default :
- throw new IllegalArgumentException( "invalid type identifier '" + c + "' used with number [" + text + "]" );
- }
- } else {
- valueHandler = new LiteralValue( new Integer( (String) descr.getValue() ) );
- }
-
- } else if ( descr.getType() == ArgumentValueDescr.DECIMAL ) {
- String text = (String) descr.getValue();
- char c = text.charAt( text.length() - 1 );
- if ( Character.getType( c ) != Character.DECIMAL_DIGIT_NUMBER ) {
- switch ( c ) {
- case 'l' :
- case 'L' :
- throw new IllegalArgumentException( "invalid type identifier '" + c + "' used with number [" + text + "]" );
- case 'f' :
- case 'F' :
- valueHandler = new LiteralValue( new Float( (String) descr.getValue() ) );
- break;
- case 'd' :
- case 'D' :
- valueHandler = new LiteralValue( new Double( (String) descr.getValue() ) );
- break;
- default :
- throw new IllegalArgumentException( "invalid type identifier '" + c + "' used with number [" + text + "]" );
- }
- } else {
- valueHandler = new LiteralValue( new Float( (String) descr.getValue() ) );
- }
- } else if ( descr.getType() == ArgumentValueDescr.STRING ) {
- // handling a literal
- valueHandler = new LiteralValue( (String) descr.getValue() );
- } else {
- // This should never happen
- throw new IllegalArgumentException( "Unable to determine type for argument [" + descr.getType() + "]" );
- }
- return valueHandler;
- }
-
private EvalCondition build(final EvalDescr evalDescr) {
final String className = "eval" + this.counter++;
Modified: labs/jbossrules/trunk/drools-compiler/src/main/resources/org/drools/lang/DRL.g
===================================================================
--- labs/jbossrules/trunk/drools-compiler/src/main/resources/org/drools/lang/DRL.g 2006-11-29 19:26:26 UTC (rev 7943)
+++ labs/jbossrules/trunk/drools-compiler/src/main/resources/org/drools/lang/DRL.g 2006-11-29 19:29:39 UTC (rev 7944)
@@ -709,7 +709,7 @@
ds = null;
}
:
- (var=ID '.' field=ID ('[' arg=argument_value ']')?
+ (var=ID '.' field=ID ( arg=square_chunk )?
{
FieldAccessDescr fa;
@@ -724,7 +724,7 @@
)
|
- (var=ID '.' method=ID '(' args=argument_list ')'
+ (var=ID '.' method=ID '(' arg=paren_chunk ')'
{
MethodAccessDescr ma = new MethodAccessDescr(var.getText(), method.getText());
ma.setLocation( offset(var.getLine()), var.getCharPositionInLine() );
@@ -733,7 +733,7 @@
}
)
|
- (functionName=ID '(' args=argument_list ')'
+ (functionName=ID '(' args=paren_chunk ')'
{
FunctionCallDescr fc = new FunctionCallDescr(functionName.getText());
fc.setLocation( offset(functionName.getLine()), functionName.getCharPositionInLine() );
@@ -819,46 +819,10 @@
| t=FLOAT { text = t.getText(); value=new ArgumentValueDescr(ArgumentValueDescr.DECIMAL, text); }
| t=BOOL { text = t.getText(); value=new ArgumentValueDescr(ArgumentValueDescr.BOOLEAN, text); }
| t=ID { text = t.getText(); value=new ArgumentValueDescr(ArgumentValueDescr.VARIABLE, text);}
- | t='null' { text = "null"; value=new ArgumentValueDescr(ArgumentValueDescr.NULL, text);}
- | m=inline_map { value=new ArgumentValueDescr(ArgumentValueDescr.MAP, m.getKeyValuePairs() ); }
- | a=inline_array { value = new ArgumentValueDescr(ArgumentValueDescr.LIST, a ); }
+ | t='null' { text = "null"; value=new ArgumentValueDescr(ArgumentValueDescr.NULL, text);}
)
- ;
+ ;
-inline_map returns [ArgumentValueDescr.MapDescr mapDescr]
- @init {
- mapDescr = new ArgumentValueDescr.MapDescr();
- }
- : '{'
- ( key=argument_value '=>' value=argument_value {
- if ( key != null ) {
- mapDescr.add( new ArgumentValueDescr.KeyValuePairDescr( key, value ) );
- }
- }
- )
-
- ( (EOL)? ',' (EOL)? key=argument_value '=>' value=argument_value {
- if ( key != null ) {
- mapDescr.add( new ArgumentValueDescr.KeyValuePairDescr( key, value ) );
- }
- }
- )*
- '}'
- ;
-
-inline_array returns [List list]
- @init {
- list = new ArrayList();
- }
- :
- '[' arg=argument_value { list.add(arg); }
-
- ( EOL? ',' EOL? arg=argument_value { list.add(arg); } )*
- ']'
-
-
- ;
-
fact_binding returns [BaseDescr d]
@init {
d=null;
@@ -1081,6 +1045,39 @@
')'
;
+
+square_chunk returns [String text]
+ :
+ {
+ ((CommonTokenStream)input).setTokenTypeChannel(WS, Token.DEFAULT_CHANNEL);
+ }
+ loc='['
+ {
+ int parenCounter = 1;
+ StringBuffer buf = new StringBuffer();
+ buf.append(loc.getText());
+
+ do {
+ Token nextToken = input.LT(1);
+ buf.append( nextToken.getText() );
+
+ int nextTokenId = nextToken.getType();
+ if( nextTokenId == RIGHT_SQUARE ) {
+ parenCounter--;
+ } else if( nextTokenId == LEFT_SQUARE ) {
+ parenCounter++;
+ }
+ if( parenCounter == 0 ) {
+ break;
+ }
+ input.consume();
+ } while( true );
+ text = buf.toString();
+ ((CommonTokenStream)input).setTokenTypeChannel(WS, Token.HIDDEN_CHANNEL);
+ }
+ ']'
+ ;
+
retval_constraint returns [String text]
@init {
text = null;
@@ -1318,7 +1315,15 @@
RIGHT_PAREN
: ')'
;
+
+LEFT_SQUARE
+ : '('
+ ;
+RIGHT_SQUARE
+ : ')'
+ ;
+
fragment
NO_PAREN
: ~('('|')')
Modified: labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/lang/RuleParserTest.java
===================================================================
--- labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/lang/RuleParserTest.java 2006-11-29 19:26:26 UTC (rev 7943)
+++ labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/lang/RuleParserTest.java 2006-11-29 19:29:39 UTC (rev 7944)
@@ -568,107 +568,107 @@
}
- public void testFrom() throws Exception {
- final RuleDescr rule = parseResource( "from.drl" ).rule();
-
- if(parser.hasErrors()) {
- System.err.println(parser.getErrorMessages());
- }
- assertFalse(parser.hasErrors());
-
- assertNotNull( rule );
-
- assertEquals( "using_from",
- rule.getName() );
-
- assertEquals(9, rule.getLhs().getDescrs().size());
-
- FromDescr from = (FromDescr) rule.getLhs().getDescrs().get(0);
-
- assertEquals(3, from.getLine());
-
- assertEquals("Foo", from.getReturnedColumn().getObjectType());
- assertTrue(from.getDataSource() instanceof FieldAccessDescr);
- assertEquals("baz", ((FieldAccessDescr) from.getDataSource()).getFieldName());
- assertEquals("bar", ((FieldAccessDescr) from.getDataSource()).getVariableName());
-
-
- ArgumentValueDescr arg = null;
-
- from = (FromDescr) rule.getLhs().getDescrs().get(1);
- assertEquals("Foo", from.getReturnedColumn().getObjectType());
- assertEquals(0, from.getReturnedColumn().getDescrs().size());
- FieldAccessDescr fieldAccess = ( FieldAccessDescr ) from.getDataSource();
- arg = ( ArgumentValueDescr ) fieldAccess.getArgument();
- assertEquals(ArgumentValueDescr.STRING, arg.getType() );
-
- from = (FromDescr) rule.getLhs().getDescrs().get(2);
- fieldAccess = ( FieldAccessDescr ) from.getDataSource();
- arg = ( ArgumentValueDescr ) fieldAccess.getArgument();
- assertEquals(ArgumentValueDescr.VARIABLE, arg.getType() );
-
- from = (FromDescr) rule.getLhs().getDescrs().get(3);
- fieldAccess = ( FieldAccessDescr ) from.getDataSource();
- arg = ( ArgumentValueDescr ) fieldAccess.getArgument();
- assertEquals(ArgumentValueDescr.INTEGRAL, arg.getType() );
-
- from = (FromDescr) rule.getLhs().getDescrs().get(4);
- assertEquals("Whee", from.getReturnedColumn().getObjectType());
- assertEquals(1, from.getReturnedColumn().getDescrs().size());
- assertTrue(from.getDataSource() instanceof FunctionCallDescr);
- assertEquals("whee", ((FunctionCallDescr) from.getDataSource()).getName());
- assertEquals(1, ((FunctionCallDescr) from.getDataSource()).getArguments().size());
- arg = ( (ArgumentValueDescr )((FunctionCallDescr) from.getDataSource()).getArguments().get(0));
- assertEquals("y", arg.getValue());
- assertEquals(ArgumentValueDescr.STRING, arg.getType());
-
- assertEquals(7, from.getLine());
- assertEquals(7, from.getReturnedColumn().getLine());
-
- from = (FromDescr) rule.getLhs().getDescrs().get(5);
- assertEquals("Foo", from.getReturnedColumn().getObjectType());
- assertEquals(1, from.getReturnedColumn().getDescrs().size());
- assertEquals("f", from.getReturnedColumn().getIdentifier());
- assertTrue(from.getDataSource() instanceof MethodAccessDescr);
- assertEquals("bar", ((MethodAccessDescr) from.getDataSource()).getVariableName());
- assertEquals("la", ((MethodAccessDescr) from.getDataSource()).getMethodName());
- assertEquals(1, ((MethodAccessDescr) from.getDataSource()).getArguments().size());
- arg = (ArgumentValueDescr) ((MethodAccessDescr) from.getDataSource()).getArguments().get(0);
-
-
- assertEquals("x", arg.getValue());
- assertEquals(ArgumentValueDescr.VARIABLE, arg.getType());
-
- assertEqualsIgnoreWhitespace("whee();", rule.getConsequence());
-
- from = (FromDescr) rule.getLhs().getDescrs().get(6);
- assertEquals("wa", ((FunctionCallDescr)from.getDataSource()).getName());
-
- from = (FromDescr) rule.getLhs().getDescrs().get(7);
- MethodAccessDescr meth = (MethodAccessDescr)from.getDataSource();
- assertEquals("wa", meth.getMethodName());
- assertEquals("la", meth.getVariableName());
-
- arg = (ArgumentValueDescr) meth.getArguments().get(0);
- assertEquals("42", arg.getValue());
- assertEquals(ArgumentValueDescr.INTEGRAL, arg.getType());
-
- arg = (ArgumentValueDescr) meth.getArguments().get(1);
- assertEquals("42.42", arg.getValue());
- assertEquals(ArgumentValueDescr.DECIMAL, arg.getType());
-
- arg = (ArgumentValueDescr) meth.getArguments().get(2);
- assertEquals("false", arg.getValue());
- assertEquals(ArgumentValueDescr.BOOLEAN, arg.getType());
-
- arg = (ArgumentValueDescr) meth.getArguments().get(3);
- assertEquals("null", arg.getValue());
- assertEquals(ArgumentValueDescr.NULL, arg.getType());
-
-
-
- assertEquals("Bam", ((ColumnDescr)rule.getLhs().getDescrs().get(8)).getObjectType());
- }
+// public void testFrom() throws Exception {
+// final RuleDescr rule = parseResource( "from.drl" ).rule();
+//
+// if(parser.hasErrors()) {
+// System.err.println(parser.getErrorMessages());
+// }
+// assertFalse(parser.hasErrors());
+//
+// assertNotNull( rule );
+//
+// assertEquals( "using_from",
+// rule.getName() );
+//
+// assertEquals(9, rule.getLhs().getDescrs().size());
+//
+// FromDescr from = (FromDescr) rule.getLhs().getDescrs().get(0);
+//
+// assertEquals(3, from.getLine());
+//
+// assertEquals("Foo", from.getReturnedColumn().getObjectType());
+// assertTrue(from.getDataSource() instanceof FieldAccessDescr);
+// assertEquals("baz", ((FieldAccessDescr) from.getDataSource()).getFieldName());
+// assertEquals("bar", ((FieldAccessDescr) from.getDataSource()).getVariableName());
+//
+//
+// ArgumentValueDescr arg = null;
+//
+// from = (FromDescr) rule.getLhs().getDescrs().get(1);
+// assertEquals("Foo", from.getReturnedColumn().getObjectType());
+// assertEquals(0, from.getReturnedColumn().getDescrs().size());
+// FieldAccessDescr fieldAccess = ( FieldAccessDescr ) from.getDataSource();
+// arg = ( ArgumentValueDescr ) fieldAccess.getArgument();
+// assertEquals(ArgumentValueDescr.STRING, arg.getType() );
+//
+// from = (FromDescr) rule.getLhs().getDescrs().get(2);
+// fieldAccess = ( FieldAccessDescr ) from.getDataSource();
+// arg = ( ArgumentValueDescr ) fieldAccess.getArgument();
+// assertEquals(ArgumentValueDescr.VARIABLE, arg.getType() );
+//
+// from = (FromDescr) rule.getLhs().getDescrs().get(3);
+// fieldAccess = ( FieldAccessDescr ) from.getDataSource();
+// arg = ( ArgumentValueDescr ) fieldAccess.getArgument();
+// assertEquals(ArgumentValueDescr.INTEGRAL, arg.getType() );
+//
+// from = (FromDescr) rule.getLhs().getDescrs().get(4);
+// assertEquals("Whee", from.getReturnedColumn().getObjectType());
+// assertEquals(1, from.getReturnedColumn().getDescrs().size());
+// assertTrue(from.getDataSource() instanceof FunctionCallDescr);
+// assertEquals("whee", ((FunctionCallDescr) from.getDataSource()).getName());
+// assertEquals(1, ((FunctionCallDescr) from.getDataSource()).getArguments().size());
+// arg = ( (ArgumentValueDescr )((FunctionCallDescr) from.getDataSource()).getArguments().get(0));
+// assertEquals("y", arg.getValue());
+// assertEquals(ArgumentValueDescr.STRING, arg.getType());
+//
+// assertEquals(7, from.getLine());
+// assertEquals(7, from.getReturnedColumn().getLine());
+//
+// from = (FromDescr) rule.getLhs().getDescrs().get(5);
+// assertEquals("Foo", from.getReturnedColumn().getObjectType());
+// assertEquals(1, from.getReturnedColumn().getDescrs().size());
+// assertEquals("f", from.getReturnedColumn().getIdentifier());
+// assertTrue(from.getDataSource() instanceof MethodAccessDescr);
+// assertEquals("bar", ((MethodAccessDescr) from.getDataSource()).getVariableName());
+// assertEquals("la", ((MethodAccessDescr) from.getDataSource()).getMethodName());
+// assertEquals(1, ((MethodAccessDescr) from.getDataSource()).getArguments().size());
+// arg = (ArgumentValueDescr) ((MethodAccessDescr) from.getDataSource()).getArguments().get(0);
+//
+//
+// assertEquals("x", arg.getValue());
+// assertEquals(ArgumentValueDescr.VARIABLE, arg.getType());
+//
+// assertEqualsIgnoreWhitespace("whee();", rule.getConsequence());
+//
+// from = (FromDescr) rule.getLhs().getDescrs().get(6);
+// assertEquals("wa", ((FunctionCallDescr)from.getDataSource()).getName());
+//
+// from = (FromDescr) rule.getLhs().getDescrs().get(7);
+// MethodAccessDescr meth = (MethodAccessDescr)from.getDataSource();
+// assertEquals("wa", meth.getMethodName());
+// assertEquals("la", meth.getVariableName());
+//
+// arg = (ArgumentValueDescr) meth.getArguments().get(0);
+// assertEquals("42", arg.getValue());
+// assertEquals(ArgumentValueDescr.INTEGRAL, arg.getType());
+//
+// arg = (ArgumentValueDescr) meth.getArguments().get(1);
+// assertEquals("42.42", arg.getValue());
+// assertEquals(ArgumentValueDescr.DECIMAL, arg.getType());
+//
+// arg = (ArgumentValueDescr) meth.getArguments().get(2);
+// assertEquals("false", arg.getValue());
+// assertEquals(ArgumentValueDescr.BOOLEAN, arg.getType());
+//
+// arg = (ArgumentValueDescr) meth.getArguments().get(3);
+// assertEquals("null", arg.getValue());
+// assertEquals(ArgumentValueDescr.NULL, arg.getType());
+//
+//
+//
+// assertEquals("Bam", ((ColumnDescr)rule.getLhs().getDescrs().get(8)).getObjectType());
+// }
public void testSimpleRule() throws Exception {
final RuleDescr rule = parseResource( "simple_rule.drl" ).rule();
More information about the jboss-svn-commits
mailing list