[jboss-svn-commits] JBL Code SVN: r8831 - in labs/jbossrules/trunk: drools-compiler/src/main/java/org/drools/semantics/java and 5 other directories.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Thu Jan 11 17:09:36 EST 2007
Author: michael.neale at jboss.com
Date: 2007-01-11 17:09:16 -0500 (Thu, 11 Jan 2007)
New Revision: 8831
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/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/integrationtests/IntegrationCases.java
labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/semantics/java/RuleBuilderTest.java
labs/jbossrules/trunk/drools-core/src/main/java/org/drools/reteoo/RuleTerminalNode.java
labs/jbossrules/trunk/drools-core/src/main/java/org/drools/rule/Rule.java
Log:
JBRULES-606 JBRULES-608 effective dating rule enablement goodness
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 2007-01-11 21:47:50 UTC (rev 8830)
+++ labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/lang/DRLLexer.java 2007-01-11 22:09:16 UTC (rev 8831)
@@ -1,8 +1,8 @@
-// $ANTLR 3.0b5 D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g 2006-12-21 21:35:24
-
- package org.drools.lang;
+// $ANTLR 3.0b5 /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g 2007-01-11 21:47:59
+ package org.drools.lang;
+
import org.antlr.runtime.*;
import java.util.Stack;
import java.util.List;
@@ -18,6 +18,7 @@
public static final int T70=70;
public static final int MISC=28;
public static final int FLOAT=10;
+ public static final int T74=74;
public static final int THEN=18;
public static final int RULE=5;
public static final int T35=35;
@@ -27,7 +28,7 @@
public static final int T64=64;
public static final int T37=37;
public static final int EscapeSequence=21;
- public static final int INT=7;
+ public static final int INT=9;
public static final int T32=32;
public static final int T51=51;
public static final int LEFT_SQUARE=15;
@@ -51,7 +52,7 @@
public static final int T50=50;
public static final int WHEN=6;
public static final int WS=20;
- public static final int STRING=9;
+ public static final int STRING=7;
public static final int T43=43;
public static final int T42=42;
public static final int T66=66;
@@ -62,7 +63,9 @@
public static final int T72=72;
public static final int T65=65;
public static final int T56=56;
+ public static final int T76=76;
public static final int UnicodeEscape=23;
+ public static final int T75=75;
public static final int T59=59;
public static final int T48=48;
public static final int T54=54;
@@ -70,7 +73,7 @@
public static final int T67=67;
public static final int T47=47;
public static final int EOL=19;
- public static final int Tokens=74;
+ public static final int Tokens=77;
public static final int T53=53;
public static final int T60=60;
public static final int T31=31;
@@ -85,9 +88,9 @@
public DRLLexer() {;}
public DRLLexer(CharStream input) {
super(input);
- ruleMemo = new HashMap[72+1];
+ 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 "/home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g"; }
// $ANTLR start T29
public void mT29() throws RecognitionException {
@@ -98,8 +101,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:6:7: ( ';' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:6:7: ';'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:6:7: ( ';' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:6:7: ';'
{
match(';'); if (failed) return ;
@@ -129,8 +132,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:7:7: ( 'package' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:7:7: 'package'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:7:7: ( 'package' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:7:7: 'package'
{
match("package"); if (failed) return ;
@@ -161,8 +164,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:8:7: ( 'import' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:8:7: 'import'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:8:7: ( 'import' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:8:7: 'import'
{
match("import"); if (failed) return ;
@@ -193,8 +196,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:9:7: ( 'function' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:9:7: 'function'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:9:7: ( 'function' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:9:7: 'function'
{
match("function"); if (failed) return ;
@@ -225,8 +228,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:10:7: ( '.' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:10:7: '.'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:10:7: ( '.' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:10:7: '.'
{
match('.'); if (failed) return ;
@@ -256,8 +259,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:11:7: ( '.*' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:11:7: '.*'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:11:7: ( '.*' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:11:7: '.*'
{
match(".*"); if (failed) return ;
@@ -288,8 +291,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:12:7: ( 'global' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:12:7: 'global'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:12:7: ( 'global' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:12:7: 'global'
{
match("global"); if (failed) return ;
@@ -320,8 +323,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:13:7: ( ',' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:13:7: ','
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:13:7: ( ',' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:13:7: ','
{
match(','); if (failed) return ;
@@ -351,8 +354,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:14:7: ( 'query' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:14:7: 'query'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:14:7: ( 'query' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:14:7: 'query'
{
match("query"); if (failed) return ;
@@ -383,8 +386,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:15:7: ( 'template' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:15:7: 'template'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:15:7: ( 'template' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:15:7: 'template'
{
match("template"); if (failed) return ;
@@ -415,8 +418,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:16:7: ( ':' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:16:7: ':'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:16:7: ( ':' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:16:7: ':'
{
match(':'); if (failed) return ;
@@ -446,8 +449,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:17:7: ( 'attributes' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:17:7: 'attributes'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:17:7: ( 'attributes' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:17:7: 'attributes'
{
match("attributes"); if (failed) return ;
@@ -478,10 +481,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: ( 'salience' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:18:7: 'salience'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:18:7: ( 'date-effective' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:18:7: 'date-effective'
{
- match("salience"); if (failed) return ;
+ match("date-effective"); if (failed) return ;
}
@@ -510,10 +513,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:19:7: ( 'no-loop' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:19:7: 'no-loop'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:19:7: ( 'date-expires' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:19:7: 'date-expires'
{
- match("no-loop"); if (failed) return ;
+ match("date-expires"); if (failed) return ;
}
@@ -542,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:20:7: ( 'auto-focus' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:20:7: 'auto-focus'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:20:7: ( 'enabled' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:20:7: 'enabled'
{
- match("auto-focus"); if (failed) return ;
+ match("enabled"); if (failed) return ;
}
@@ -574,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:21:7: ( 'activation-group' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:21:7: 'activation-group'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:21:7: ( 'salience' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:21:7: 'salience'
{
- match("activation-group"); if (failed) return ;
+ match("salience"); if (failed) return ;
}
@@ -606,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:22:7: ( 'agenda-group' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:22:7: 'agenda-group'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:22:7: ( 'no-loop' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:22:7: 'no-loop'
{
- match("agenda-group"); if (failed) return ;
+ match("no-loop"); if (failed) return ;
}
@@ -638,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:23:7: ( 'duration' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:23:7: 'duration'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:23:7: ( 'auto-focus' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:23:7: 'auto-focus'
{
- match("duration"); if (failed) return ;
+ match("auto-focus"); if (failed) return ;
}
@@ -670,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:24:7: ( 'from' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:24:7: 'from'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:24:7: ( 'activation-group' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:24:7: 'activation-group'
{
- match("from"); if (failed) return ;
+ match("activation-group"); if (failed) return ;
}
@@ -702,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:25:7: ( 'accumulate' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:25:7: 'accumulate'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:25:7: ( 'agenda-group' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:25:7: 'agenda-group'
{
- match("accumulate"); if (failed) return ;
+ match("agenda-group"); if (failed) return ;
}
@@ -734,10 +737,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: ( 'init' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:26:7: 'init'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:26:7: ( 'duration' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:26:7: 'duration'
{
- match("init"); if (failed) return ;
+ match("duration"); if (failed) return ;
}
@@ -766,10 +769,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: ( 'action' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:27:7: 'action'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:27:7: ( 'from' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:27:7: 'from'
{
- match("action"); if (failed) return ;
+ match("from"); if (failed) return ;
}
@@ -798,10 +801,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:28:7: ( 'result' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:28:7: 'result'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:28:7: ( 'accumulate' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:28:7: 'accumulate'
{
- match("result"); if (failed) return ;
+ match("accumulate"); if (failed) return ;
}
@@ -830,10 +833,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:29:7: ( 'collect' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:29:7: 'collect'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:29:7: ( 'init' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:29:7: 'init'
{
- match("collect"); if (failed) return ;
+ match("init"); if (failed) return ;
}
@@ -862,10 +865,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:30:7: ( 'or' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:30:7: 'or'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:30:7: ( 'action' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:30:7: 'action'
{
- match("or"); if (failed) return ;
+ match("action"); if (failed) return ;
}
@@ -894,10 +897,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:31:7: ( '||' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:31:7: '||'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:31:7: ( 'result' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:31:7: 'result'
{
- match("||"); if (failed) return ;
+ match("result"); if (failed) return ;
}
@@ -926,11 +929,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:32:7: ( '&' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:32:7: '&'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:32:7: ( 'collect' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:32:7: 'collect'
{
- match('&'); if (failed) return ;
+ match("collect"); if (failed) return ;
+
}
@@ -957,11 +961,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:33:7: ( '|' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:33:7: '|'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:33:7: ( 'or' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:33:7: 'or'
{
- match('|'); if (failed) return ;
+ match("or"); if (failed) return ;
+
}
@@ -988,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:34:7: ( '==' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:34:7: '=='
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:34:7: ( '||' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:34:7: '||'
{
- match("=="); if (failed) return ;
+ match("||"); if (failed) return ;
}
@@ -1020,10 +1025,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:35:7: ( '>' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:35:7: '>'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:35:7: ( '&' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:35:7: '&'
{
- match('>'); if (failed) return ;
+ match('&'); if (failed) return ;
}
@@ -1051,12 +1056,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:36:7: ( '>=' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:36:7: '>='
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:36:7: ( '|' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:36:7: '|'
{
- match(">="); if (failed) return ;
+ match('|'); if (failed) return ;
-
}
@@ -1083,11 +1087,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: '<'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:37:7: ( '==' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:37:7: '=='
{
- match('<'); if (failed) return ;
+ match("=="); if (failed) return ;
+
}
@@ -1114,12 +1119,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: ( '<=' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:38:7: '<='
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:38:7: ( '>' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:38:7: '>'
{
- match("<="); if (failed) return ;
+ match('>'); if (failed) return ;
-
}
@@ -1146,10 +1150,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:39:7: ( '!=' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:39:7: '!='
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:39:7: ( '>=' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:39:7: '>='
{
- match("!="); if (failed) return ;
+ match(">="); if (failed) return ;
}
@@ -1178,12 +1182,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:40:7: ( 'contains' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:40:7: 'contains'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:40:7: ( '<' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:40:7: '<'
{
- match("contains"); if (failed) return ;
+ match('<'); if (failed) return ;
-
}
@@ -1210,10 +1213,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: ( 'matches' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:41:7: 'matches'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:41:7: ( '<=' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:41:7: '<='
{
- match("matches"); if (failed) return ;
+ match("<="); if (failed) return ;
}
@@ -1242,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:42:7: ( 'excludes' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:42:7: 'excludes'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:42:7: ( '!=' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:42:7: '!='
{
- match("excludes"); if (failed) return ;
+ match("!="); if (failed) return ;
}
@@ -1274,10 +1277,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: ( 'null' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:43:7: 'null'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:43:7: ( 'contains' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:43:7: 'contains'
{
- match("null"); if (failed) return ;
+ match("contains"); if (failed) return ;
}
@@ -1306,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:44:7: ( '->' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:44:7: '->'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:44:7: ( 'matches' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:44:7: 'matches'
{
- match("->"); if (failed) return ;
+ match("matches"); if (failed) return ;
}
@@ -1338,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:45:7: ( 'and' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:45:7: 'and'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:45:7: ( 'excludes' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:45:7: 'excludes'
{
- match("and"); if (failed) return ;
+ match("excludes"); if (failed) return ;
}
@@ -1370,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:46:7: ( '&&' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:46:7: '&&'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:46:7: ( 'null' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:46:7: 'null'
{
- match("&&"); if (failed) return ;
+ match("null"); if (failed) return ;
}
@@ -1402,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:47:7: ( 'exists' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:47:7: 'exists'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:47:7: ( '->' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:47:7: '->'
{
- match("exists"); if (failed) return ;
+ match("->"); if (failed) return ;
}
@@ -1434,10 +1437,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: ( 'not' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:48:7: 'not'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:48:7: ( 'and' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:48:7: 'and'
{
- match("not"); if (failed) return ;
+ match("and"); if (failed) return ;
}
@@ -1466,10 +1469,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: ( 'eval' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:49:7: 'eval'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:49:7: ( '&&' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:49:7: '&&'
{
- match("eval"); if (failed) return ;
+ match("&&"); if (failed) return ;
}
@@ -1498,10 +1501,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:50:7: ( 'use' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:50:7: 'use'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:50:7: ( 'exists' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:50:7: 'exists'
{
- match("use"); if (failed) return ;
+ match("exists"); if (failed) return ;
}
@@ -1521,6 +1524,102 @@
}
// $ANTLR end T73
+ // $ANTLR start T74
+ public void mT74() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = T74;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:51:7: ( 'not' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:51:7: 'not'
+ {
+ match("not"); if (failed) return ;
+
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end T74
+
+ // $ANTLR start T75
+ public void mT75() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = T75;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:52:7: ( 'eval' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:52:7: 'eval'
+ {
+ match("eval"); if (failed) return ;
+
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end T75
+
+ // $ANTLR start T76
+ public void mT76() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = T76;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:53:7: ( 'use' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:53:7: 'use'
+ {
+ match("use"); if (failed) return ;
+
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end T76
+
// $ANTLR start WS
public void mWS() throws RecognitionException {
try {
@@ -1530,10 +1629,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:1367:17: ( ( ' ' | '\\t' | '\\f' | EOL ) )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1367:17: ( ' ' | '\\t' | '\\f' | EOL )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1412:17: ( ( ' ' | '\\t' | '\\f' | EOL ) )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1412:17: ( ' ' | '\\t' | '\\f' | EOL )
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1367:17: ( ' ' | '\\t' | '\\f' | EOL )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1412:17: ( ' ' | '\\t' | '\\f' | EOL )
int alt1=4;
switch ( input.LA(1) ) {
case ' ':
@@ -1552,35 +1651,35 @@
default:
if (backtracking>0) {failed=true; return ;}
NoViableAltException nvae =
- new NoViableAltException("1367:17: ( ' ' | '\\t' | '\\f' | EOL )", 1, 0, input);
+ new NoViableAltException("1412:17: ( ' ' | '\\t' | '\\f' | EOL )", 1, 0, input);
throw nvae;
}
switch (alt1) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1367:19: ' '
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1412:19: ' '
{
match(' '); if (failed) return ;
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1368:19: '\\t'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1413:19: '\\t'
{
match('\t'); if (failed) return ;
}
break;
case 3 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1369:19: '\\f'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1414:19: '\\f'
{
match('\f'); if (failed) return ;
}
break;
case 4 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1370:19: EOL
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1415:19: EOL
{
mEOL(); if (failed) return ;
@@ -1614,10 +1713,10 @@
public void mEOL() throws RecognitionException {
try {
ruleNestingLevel++;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1377:6: ( ( ( '\\r\\n' )=> '\\r\\n' | '\\r' | '\\n' ) )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1377:6: ( ( '\\r\\n' )=> '\\r\\n' | '\\r' | '\\n' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1422:6: ( ( ( '\\r\\n' )=> '\\r\\n' | '\\r' | '\\n' ) )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1422:6: ( ( '\\r\\n' )=> '\\r\\n' | '\\r' | '\\n' )
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1377:6: ( ( '\\r\\n' )=> '\\r\\n' | '\\r' | '\\n' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1422:6: ( ( '\\r\\n' )=> '\\r\\n' | '\\r' | '\\n' )
int alt2=3;
int LA2_0 = input.LA(1);
if ( (LA2_0=='\r') ) {
@@ -1634,13 +1733,13 @@
else {
if (backtracking>0) {failed=true; return ;}
NoViableAltException nvae =
- new NoViableAltException("1377:6: ( ( '\\r\\n' )=> '\\r\\n' | '\\r' | '\\n' )", 2, 0, input);
+ new NoViableAltException("1422:6: ( ( '\\r\\n' )=> '\\r\\n' | '\\r' | '\\n' )", 2, 0, input);
throw nvae;
}
switch (alt2) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1377:14: ( '\\r\\n' )=> '\\r\\n'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1422:14: ( '\\r\\n' )=> '\\r\\n'
{
match("\r\n"); if (failed) return ;
@@ -1648,14 +1747,14 @@
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1378:25: '\\r'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1423:25: '\\r'
{
match('\r'); if (failed) return ;
}
break;
case 3 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1379:25: '\\n'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1424:25: '\\n'
{
match('\n'); if (failed) return ;
@@ -1683,10 +1782,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:1384:4: ( ( '-' )? ( '0' .. '9' )+ )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1384:4: ( '-' )? ( '0' .. '9' )+
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1429:4: ( ( '-' )? ( '0' .. '9' )+ )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1429:4: ( '-' )? ( '0' .. '9' )+
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1384:4: ( '-' )?
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1429:4: ( '-' )?
int alt3=2;
int LA3_0 = input.LA(1);
if ( (LA3_0=='-') ) {
@@ -1694,7 +1793,7 @@
}
switch (alt3) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1384:5: '-'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1429:5: '-'
{
match('-'); if (failed) return ;
@@ -1703,7 +1802,7 @@
}
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1384:10: ( '0' .. '9' )+
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1429:10: ( '0' .. '9' )+
int cnt4=0;
loop4:
do {
@@ -1716,7 +1815,7 @@
switch (alt4) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1384:11: '0' .. '9'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1429:11: '0' .. '9'
{
matchRange('0','9'); if (failed) return ;
@@ -1760,10 +1859,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:1388:4: ( ( '-' )? ( '0' .. '9' )+ '.' ( '0' .. '9' )+ )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1388:4: ( '-' )? ( '0' .. '9' )+ '.' ( '0' .. '9' )+
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1433:4: ( ( '-' )? ( '0' .. '9' )+ '.' ( '0' .. '9' )+ )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1433:4: ( '-' )? ( '0' .. '9' )+ '.' ( '0' .. '9' )+
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1388:4: ( '-' )?
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1433:4: ( '-' )?
int alt5=2;
int LA5_0 = input.LA(1);
if ( (LA5_0=='-') ) {
@@ -1771,7 +1870,7 @@
}
switch (alt5) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1388:5: '-'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1433:5: '-'
{
match('-'); if (failed) return ;
@@ -1780,7 +1879,7 @@
}
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1388:10: ( '0' .. '9' )+
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1433:10: ( '0' .. '9' )+
int cnt6=0;
loop6:
do {
@@ -1793,7 +1892,7 @@
switch (alt6) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1388:11: '0' .. '9'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1433:11: '0' .. '9'
{
matchRange('0','9'); if (failed) return ;
@@ -1811,7 +1910,7 @@
} while (true);
match('.'); if (failed) return ;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1388:26: ( '0' .. '9' )+
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1433:26: ( '0' .. '9' )+
int cnt7=0;
loop7:
do {
@@ -1824,7 +1923,7 @@
switch (alt7) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1388:27: '0' .. '9'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1433:27: '0' .. '9'
{
matchRange('0','9'); if (failed) return ;
@@ -1868,7 +1967,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:1392:8: ( ( '\"' ( EscapeSequence | ~ ('\\\\'|'\"'))* '\"' ) | ( '\\'' ( EscapeSequence | ~ ('\\\\'|'\\''))* '\\'' ) )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1437:8: ( ( '\"' ( EscapeSequence | ~ ('\\\\'|'\"'))* '\"' ) | ( '\\'' ( EscapeSequence | ~ ('\\\\'|'\\''))* '\\'' ) )
int alt10=2;
int LA10_0 = input.LA(1);
if ( (LA10_0=='\"') ) {
@@ -1880,19 +1979,19 @@
else {
if (backtracking>0) {failed=true; return ;}
NoViableAltException nvae =
- new NoViableAltException("1391:1: STRING : ( ( '\"' ( EscapeSequence | ~ ('\\\\'|'\"'))* '\"' ) | ( '\\'' ( EscapeSequence | ~ ('\\\\'|'\\''))* '\\'' ) );", 10, 0, input);
+ new NoViableAltException("1436:1: STRING : ( ( '\"' ( EscapeSequence | ~ ('\\\\'|'\"'))* '\"' ) | ( '\\'' ( EscapeSequence | ~ ('\\\\'|'\\''))* '\\'' ) );", 10, 0, input);
throw nvae;
}
switch (alt10) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1392:8: ( '\"' ( EscapeSequence | ~ ('\\\\'|'\"'))* '\"' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1437:8: ( '\"' ( EscapeSequence | ~ ('\\\\'|'\"'))* '\"' )
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1392:8: ( '\"' ( EscapeSequence | ~ ('\\\\'|'\"'))* '\"' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1392:9: '\"' ( EscapeSequence | ~ ('\\\\'|'\"'))* '\"'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1437:8: ( '\"' ( EscapeSequence | ~ ('\\\\'|'\"'))* '\"' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1437:9: '\"' ( EscapeSequence | ~ ('\\\\'|'\"'))* '\"'
{
match('\"'); if (failed) return ;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1392:13: ( EscapeSequence | ~ ('\\\\'|'\"'))*
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1437:13: ( EscapeSequence | ~ ('\\\\'|'\"'))*
loop8:
do {
int alt8=3;
@@ -1907,14 +2006,14 @@
switch (alt8) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1392:15: EscapeSequence
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1437:15: EscapeSequence
{
mEscapeSequence(); if (failed) return ;
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1392:32: ~ ('\\\\'|'\"')
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1437:32: ~ ('\\\\'|'\"')
{
if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFE') ) {
input.consume();
@@ -1944,13 +2043,13 @@
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1393:8: ( '\\'' ( EscapeSequence | ~ ('\\\\'|'\\''))* '\\'' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1438:8: ( '\\'' ( EscapeSequence | ~ ('\\\\'|'\\''))* '\\'' )
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1393:8: ( '\\'' ( EscapeSequence | ~ ('\\\\'|'\\''))* '\\'' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1393:9: '\\'' ( EscapeSequence | ~ ('\\\\'|'\\''))* '\\''
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1438:8: ( '\\'' ( EscapeSequence | ~ ('\\\\'|'\\''))* '\\'' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1438:9: '\\'' ( EscapeSequence | ~ ('\\\\'|'\\''))* '\\''
{
match('\''); if (failed) return ;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1393:14: ( EscapeSequence | ~ ('\\\\'|'\\''))*
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1438:14: ( EscapeSequence | ~ ('\\\\'|'\\''))*
loop9:
do {
int alt9=3;
@@ -1965,14 +2064,14 @@
switch (alt9) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1393:16: EscapeSequence
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1438:16: EscapeSequence
{
mEscapeSequence(); if (failed) return ;
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1393:33: ~ ('\\\\'|'\\'')
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1438:33: ~ ('\\\\'|'\\'')
{
if ( (input.LA(1)>='\u0000' && input.LA(1)<='&')||(input.LA(1)>='(' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFE') ) {
input.consume();
@@ -2022,8 +2121,8 @@
public void mHexDigit() throws RecognitionException {
try {
ruleNestingLevel++;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1397:12: ( ('0'..'9'|'a'..'f'|'A'..'F'))
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1397:12: ('0'..'9'|'a'..'f'|'A'..'F')
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1442:12: ( ('0'..'9'|'a'..'f'|'A'..'F'))
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1442: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();
@@ -2050,7 +2149,7 @@
public void mEscapeSequence() throws RecognitionException {
try {
ruleNestingLevel++;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1401:9: ( '\\\\' ('b'|'t'|'n'|'f'|'r'|'\\\"'|'\\''|'\\\\') | UnicodeEscape | OctalEscape )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1446:9: ( '\\\\' ('b'|'t'|'n'|'f'|'r'|'\\\"'|'\\''|'\\\\') | UnicodeEscape | OctalEscape )
int alt11=3;
int LA11_0 = input.LA(1);
if ( (LA11_0=='\\') ) {
@@ -2081,7 +2180,7 @@
default:
if (backtracking>0) {failed=true; return ;}
NoViableAltException nvae =
- new NoViableAltException("1399:1: fragment EscapeSequence : ( '\\\\' ('b'|'t'|'n'|'f'|'r'|'\\\"'|'\\''|'\\\\') | UnicodeEscape | OctalEscape );", 11, 1, input);
+ new NoViableAltException("1444:1: fragment EscapeSequence : ( '\\\\' ('b'|'t'|'n'|'f'|'r'|'\\\"'|'\\''|'\\\\') | UnicodeEscape | OctalEscape );", 11, 1, input);
throw nvae;
}
@@ -2090,13 +2189,13 @@
else {
if (backtracking>0) {failed=true; return ;}
NoViableAltException nvae =
- new NoViableAltException("1399:1: fragment EscapeSequence : ( '\\\\' ('b'|'t'|'n'|'f'|'r'|'\\\"'|'\\''|'\\\\') | UnicodeEscape | OctalEscape );", 11, 0, input);
+ new NoViableAltException("1444:1: fragment EscapeSequence : ( '\\\\' ('b'|'t'|'n'|'f'|'r'|'\\\"'|'\\''|'\\\\') | UnicodeEscape | OctalEscape );", 11, 0, input);
throw nvae;
}
switch (alt11) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1401:9: '\\\\' ('b'|'t'|'n'|'f'|'r'|'\\\"'|'\\''|'\\\\')
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1446: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' ) {
@@ -2114,14 +2213,14 @@
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1402:9: UnicodeEscape
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1447:9: UnicodeEscape
{
mUnicodeEscape(); if (failed) return ;
}
break;
case 3 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1403:9: OctalEscape
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1448:9: OctalEscape
{
mOctalEscape(); if (failed) return ;
@@ -2140,7 +2239,7 @@
public void mOctalEscape() throws RecognitionException {
try {
ruleNestingLevel++;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1408:9: ( '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1453:9: ( '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) )
int alt12=3;
int LA12_0 = input.LA(1);
if ( (LA12_0=='\\') ) {
@@ -2169,7 +2268,7 @@
else {
if (backtracking>0) {failed=true; return ;}
NoViableAltException nvae =
- new NoViableAltException("1406:1: fragment OctalEscape : ( '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) );", 12, 1, input);
+ new NoViableAltException("1451:1: fragment OctalEscape : ( '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) );", 12, 1, input);
throw nvae;
}
@@ -2177,31 +2276,31 @@
else {
if (backtracking>0) {failed=true; return ;}
NoViableAltException nvae =
- new NoViableAltException("1406:1: fragment OctalEscape : ( '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) );", 12, 0, input);
+ new NoViableAltException("1451:1: fragment OctalEscape : ( '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) );", 12, 0, input);
throw nvae;
}
switch (alt12) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1408:9: '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1453: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:1408:14: ( '0' .. '3' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1408:15: '0' .. '3'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1453:14: ( '0' .. '3' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1453:15: '0' .. '3'
{
matchRange('0','3'); if (failed) return ;
}
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1408:25: ( '0' .. '7' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1408:26: '0' .. '7'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1453:25: ( '0' .. '7' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1453:26: '0' .. '7'
{
matchRange('0','7'); if (failed) return ;
}
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1408:36: ( '0' .. '7' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1408:37: '0' .. '7'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1453:36: ( '0' .. '7' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1453:37: '0' .. '7'
{
matchRange('0','7'); if (failed) return ;
@@ -2211,18 +2310,18 @@
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1409:9: '\\\\' ( '0' .. '7' ) ( '0' .. '7' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1454:9: '\\\\' ( '0' .. '7' ) ( '0' .. '7' )
{
match('\\'); if (failed) return ;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1409:14: ( '0' .. '7' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1409:15: '0' .. '7'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1454:14: ( '0' .. '7' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1454:15: '0' .. '7'
{
matchRange('0','7'); if (failed) return ;
}
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1409:25: ( '0' .. '7' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1409:26: '0' .. '7'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1454:25: ( '0' .. '7' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1454:26: '0' .. '7'
{
matchRange('0','7'); if (failed) return ;
@@ -2232,11 +2331,11 @@
}
break;
case 3 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1410:9: '\\\\' ( '0' .. '7' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1455:9: '\\\\' ( '0' .. '7' )
{
match('\\'); if (failed) return ;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1410:14: ( '0' .. '7' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1410:15: '0' .. '7'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1455:14: ( '0' .. '7' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1455:15: '0' .. '7'
{
matchRange('0','7'); if (failed) return ;
@@ -2258,8 +2357,8 @@
public void mUnicodeEscape() throws RecognitionException {
try {
ruleNestingLevel++;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1415:9: ( '\\\\' 'u' HexDigit HexDigit HexDigit HexDigit )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1415:9: '\\\\' 'u' HexDigit HexDigit HexDigit HexDigit
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1460:9: ( '\\\\' 'u' HexDigit HexDigit HexDigit HexDigit )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1460:9: '\\\\' 'u' HexDigit HexDigit HexDigit HexDigit
{
match('\\'); if (failed) return ;
match('u'); if (failed) return ;
@@ -2286,10 +2385,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:1419:4: ( ( 'true' | 'false' ) )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1419:4: ( 'true' | 'false' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1464:4: ( ( 'true' | 'false' ) )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1464:4: ( 'true' | 'false' )
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1419:4: ( 'true' | 'false' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1464:4: ( 'true' | 'false' )
int alt13=2;
int LA13_0 = input.LA(1);
if ( (LA13_0=='t') ) {
@@ -2301,13 +2400,13 @@
else {
if (backtracking>0) {failed=true; return ;}
NoViableAltException nvae =
- new NoViableAltException("1419:4: ( 'true' | 'false' )", 13, 0, input);
+ new NoViableAltException("1464:4: ( 'true' | 'false' )", 13, 0, input);
throw nvae;
}
switch (alt13) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1419:5: 'true'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1464:5: 'true'
{
match("true"); if (failed) return ;
@@ -2315,7 +2414,7 @@
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1419:12: 'false'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1464:12: 'false'
{
match("false"); if (failed) return ;
@@ -2352,8 +2451,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:1422:11: ( 'rule' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1422:11: 'rule'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1467:11: ( 'rule' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1467:11: 'rule'
{
match("rule"); if (failed) return ;
@@ -2384,8 +2483,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:1424:11: ( 'when' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1424:11: 'when'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1469:11: ( 'when' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1469:11: 'when'
{
match("when"); if (failed) return ;
@@ -2416,8 +2515,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:1426:12: ( 'then' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1426:12: 'then'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1471:12: ( 'then' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1471:12: 'then'
{
match("then"); if (failed) return ;
@@ -2448,8 +2547,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:1428:11: ( 'end' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1428:11: 'end'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1473:11: ( 'end' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1473:11: 'end'
{
match("end"); if (failed) return ;
@@ -2480,8 +2579,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:1431: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:1431:4: ('a'..'z'|'A'..'Z'|'_'|'$'|'\\u00c0'..'\\u00ff') ( ('a'..'z'|'A'..'Z'|'_'|'0'..'9'|'\\u00c0'..'\\u00ff'))*
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1476:4: ( ('a'..'z'|'A'..'Z'|'_'|'$'|'\\u00c0'..'\\u00ff') ( ('a'..'z'|'A'..'Z'|'_'|'0'..'9'|'\\u00c0'..'\\u00ff'))* )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1476: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();
@@ -2494,7 +2593,7 @@
recover(mse); throw mse;
}
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1431:50: ( ('a'..'z'|'A'..'Z'|'_'|'0'..'9'|'\\u00c0'..'\\u00ff'))*
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1476:50: ( ('a'..'z'|'A'..'Z'|'_'|'0'..'9'|'\\u00c0'..'\\u00ff'))*
loop14:
do {
int alt14=2;
@@ -2506,7 +2605,7 @@
switch (alt14) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1431:51: ('a'..'z'|'A'..'Z'|'_'|'0'..'9'|'\\u00c0'..'\\u00ff')
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1476:51: ('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();
@@ -2555,11 +2654,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:1436:4: ( '#' ( options {greedy=false; } : . )* EOL )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1436:4: '#' ( options {greedy=false; } : . )* EOL
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1481:4: ( '#' ( options {greedy=false; } : . )* EOL )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1481:4: '#' ( options {greedy=false; } : . )* EOL
{
match('#'); if (failed) return ;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1436:8: ( options {greedy=false; } : . )*
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1481:8: ( options {greedy=false; } : . )*
loop15:
do {
int alt15=2;
@@ -2577,7 +2676,7 @@
switch (alt15) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1436:35: .
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1481:35: .
{
matchAny(); if (failed) return ;
@@ -2620,12 +2719,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:1442:4: ( '//' ( options {greedy=false; } : . )* EOL )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1442:4: '//' ( options {greedy=false; } : . )* EOL
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1487:4: ( '//' ( options {greedy=false; } : . )* EOL )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1487:4: '//' ( options {greedy=false; } : . )* EOL
{
match("//"); if (failed) return ;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1442:9: ( options {greedy=false; } : . )*
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1487:9: ( options {greedy=false; } : . )*
loop16:
do {
int alt16=2;
@@ -2643,7 +2742,7 @@
switch (alt16) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1442:36: .
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1487:36: .
{
matchAny(); if (failed) return ;
@@ -2686,8 +2785,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:1448:11: ( '(' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1448:11: '('
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1493:11: ( '(' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1493:11: '('
{
match('('); if (failed) return ;
@@ -2717,8 +2816,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:1452:11: ( ')' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1452:11: ')'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1497:11: ( ')' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1497:11: ')'
{
match(')'); if (failed) return ;
@@ -2748,8 +2847,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:1456:11: ( '[' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1456:11: '['
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1501:11: ( '[' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1501:11: '['
{
match('['); if (failed) return ;
@@ -2779,8 +2878,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:1460:11: ( ']' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1460:11: ']'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1505:11: ( ']' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1505:11: ']'
{
match(']'); if (failed) return ;
@@ -2810,8 +2909,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:1464:11: ( '{' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1464:11: '{'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1509:11: ( '{' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1509:11: '{'
{
match('{'); if (failed) return ;
@@ -2841,8 +2940,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:1468:11: ( '}' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1468:11: '}'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1513:11: ( '}' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1513:11: '}'
{
match('}'); if (failed) return ;
@@ -2872,12 +2971,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:1472:4: ( '/*' ( options {greedy=false; } : . )* '*/' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1472:4: '/*' ( options {greedy=false; } : . )* '*/'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1517:4: ( '/*' ( options {greedy=false; } : . )* '*/' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1517:4: '/*' ( options {greedy=false; } : . )* '*/'
{
match("/*"); if (failed) return ;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1472:9: ( options {greedy=false; } : . )*
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1517:9: ( options {greedy=false; } : . )*
loop17:
do {
int alt17=2;
@@ -2900,7 +2999,7 @@
switch (alt17) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1472:35: .
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1517:35: .
{
matchAny(); if (failed) return ;
@@ -2944,8 +3043,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:1476:7: ( ('!'|'@'|'$'|'%'|'^'|'&'|'*'|'_'|'-'|'+'|'?'|'|'|','|'='|'/'|'\\''|'\\\\'))
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1477:3: ('!'|'@'|'$'|'%'|'^'|'&'|'*'|'_'|'-'|'+'|'?'|'|'|','|'='|'/'|'\\''|'\\\\')
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1521:7: ( ('!'|'@'|'$'|'%'|'^'|'&'|'*'|'_'|'-'|'+'|'?'|'|'|','|'='|'/'|'\\''|'\\\\'))
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1522:3: ('!'|'@'|'$'|'%'|'^'|'&'|'*'|'_'|'-'|'+'|'?'|'|'|','|'='|'/'|'\\''|'\\\\')
{
if ( input.LA(1)=='!'||(input.LA(1)>='$' && input.LA(1)<='\'')||(input.LA(1)>='*' && input.LA(1)<='-')||input.LA(1)=='/'||input.LA(1)=='='||(input.LA(1)>='?' && input.LA(1)<='@')||input.LA(1)=='\\'||(input.LA(1)>='^' && input.LA(1)<='_')||input.LA(1)=='|' ) {
input.consume();
@@ -2977,461 +3076,482 @@
// $ANTLR end MISC
public void mTokens() throws RecognitionException {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:10: ( 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 | WS | INT | FLOAT | STRING | BOOL | RULE | WHEN | THEN | END | ID | SH_STYLE_SINGLE_LINE_COMMENT | C_STYLE_SINGLE_LINE_COMMENT | LEFT_PAREN | RIGHT_PAREN | LEFT_SQUARE | RIGHT_SQUARE | LEFT_CURLY | RIGHT_CURLY | MULTI_LINE_COMMENT | MISC )
- int alt18=65;
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:10: ( 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 | WS | INT | FLOAT | STRING | BOOL | RULE | WHEN | THEN | END | ID | SH_STYLE_SINGLE_LINE_COMMENT | C_STYLE_SINGLE_LINE_COMMENT | LEFT_PAREN | RIGHT_PAREN | LEFT_SQUARE | RIGHT_SQUARE | LEFT_CURLY | RIGHT_CURLY | MULTI_LINE_COMMENT | MISC )
+ int alt18=68;
alt18 = dfa18.predict(input);
switch (alt18) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:10: T29
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:10: T29
{
mT29(); if (failed) return ;
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:14: T30
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:14: T30
{
mT30(); if (failed) return ;
}
break;
case 3 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:18: T31
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:18: T31
{
mT31(); if (failed) return ;
}
break;
case 4 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:22: T32
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:22: T32
{
mT32(); if (failed) return ;
}
break;
case 5 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:26: T33
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:26: T33
{
mT33(); if (failed) return ;
}
break;
case 6 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:30: T34
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:30: T34
{
mT34(); if (failed) return ;
}
break;
case 7 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:34: T35
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:34: T35
{
mT35(); if (failed) return ;
}
break;
case 8 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:38: T36
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:38: T36
{
mT36(); if (failed) return ;
}
break;
case 9 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:42: T37
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:42: T37
{
mT37(); if (failed) return ;
}
break;
case 10 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:46: T38
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:46: T38
{
mT38(); if (failed) return ;
}
break;
case 11 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:50: T39
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:50: T39
{
mT39(); if (failed) return ;
}
break;
case 12 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:54: T40
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:54: T40
{
mT40(); if (failed) return ;
}
break;
case 13 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:58: T41
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:58: T41
{
mT41(); if (failed) return ;
}
break;
case 14 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:62: T42
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:62: T42
{
mT42(); if (failed) return ;
}
break;
case 15 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:66: T43
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:66: T43
{
mT43(); if (failed) return ;
}
break;
case 16 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:70: T44
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:70: T44
{
mT44(); if (failed) return ;
}
break;
case 17 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:74: T45
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:74: T45
{
mT45(); if (failed) return ;
}
break;
case 18 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:78: T46
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:78: T46
{
mT46(); if (failed) return ;
}
break;
case 19 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:82: T47
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:82: T47
{
mT47(); if (failed) return ;
}
break;
case 20 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:86: T48
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:86: T48
{
mT48(); if (failed) return ;
}
break;
case 21 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:90: T49
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:90: T49
{
mT49(); if (failed) return ;
}
break;
case 22 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:94: T50
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:94: T50
{
mT50(); if (failed) return ;
}
break;
case 23 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:98: T51
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:98: T51
{
mT51(); if (failed) return ;
}
break;
case 24 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:102: T52
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:102: T52
{
mT52(); if (failed) return ;
}
break;
case 25 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:106: T53
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:106: T53
{
mT53(); if (failed) return ;
}
break;
case 26 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:110: T54
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:110: T54
{
mT54(); if (failed) return ;
}
break;
case 27 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:114: T55
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:114: T55
{
mT55(); if (failed) return ;
}
break;
case 28 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:118: T56
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:118: T56
{
mT56(); if (failed) return ;
}
break;
case 29 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:122: T57
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:122: T57
{
mT57(); if (failed) return ;
}
break;
case 30 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:126: T58
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:126: T58
{
mT58(); if (failed) return ;
}
break;
case 31 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:130: T59
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:130: T59
{
mT59(); if (failed) return ;
}
break;
case 32 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:134: T60
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:134: T60
{
mT60(); if (failed) return ;
}
break;
case 33 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:138: T61
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:138: T61
{
mT61(); if (failed) return ;
}
break;
case 34 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:142: T62
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:142: T62
{
mT62(); if (failed) return ;
}
break;
case 35 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:146: T63
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:146: T63
{
mT63(); if (failed) return ;
}
break;
case 36 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:150: T64
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:150: T64
{
mT64(); if (failed) return ;
}
break;
case 37 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:154: T65
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:154: T65
{
mT65(); if (failed) return ;
}
break;
case 38 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:158: T66
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:158: T66
{
mT66(); if (failed) return ;
}
break;
case 39 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:162: T67
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:162: T67
{
mT67(); if (failed) return ;
}
break;
case 40 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:166: T68
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:166: T68
{
mT68(); if (failed) return ;
}
break;
case 41 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:170: T69
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:170: T69
{
mT69(); if (failed) return ;
}
break;
case 42 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:174: T70
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:174: T70
{
mT70(); if (failed) return ;
}
break;
case 43 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:178: T71
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:178: T71
{
mT71(); if (failed) return ;
}
break;
case 44 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:182: T72
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:182: T72
{
mT72(); if (failed) return ;
}
break;
case 45 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:186: T73
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:186: T73
{
mT73(); if (failed) return ;
}
break;
case 46 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:190: WS
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:190: T74
{
- mWS(); if (failed) return ;
+ mT74(); if (failed) return ;
}
break;
case 47 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:193: INT
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:194: T75
{
- mINT(); if (failed) return ;
+ mT75(); if (failed) return ;
}
break;
case 48 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:197: FLOAT
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:198: T76
{
- mFLOAT(); if (failed) return ;
+ mT76(); if (failed) return ;
}
break;
case 49 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:203: STRING
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:202: WS
{
- mSTRING(); if (failed) return ;
+ mWS(); if (failed) return ;
}
break;
case 50 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:210: BOOL
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:205: INT
{
- mBOOL(); if (failed) return ;
+ mINT(); if (failed) return ;
}
break;
case 51 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:215: RULE
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:209: FLOAT
{
- mRULE(); if (failed) return ;
+ mFLOAT(); if (failed) return ;
}
break;
case 52 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:220: WHEN
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:215: STRING
{
- mWHEN(); if (failed) return ;
+ mSTRING(); if (failed) return ;
}
break;
case 53 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:225: THEN
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:222: BOOL
{
- mTHEN(); if (failed) return ;
+ mBOOL(); if (failed) return ;
}
break;
case 54 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:230: END
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:227: RULE
{
- mEND(); if (failed) return ;
+ mRULE(); if (failed) return ;
}
break;
case 55 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:234: ID
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:232: WHEN
{
- mID(); if (failed) return ;
+ mWHEN(); if (failed) return ;
}
break;
case 56 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:237: SH_STYLE_SINGLE_LINE_COMMENT
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:237: THEN
{
- mSH_STYLE_SINGLE_LINE_COMMENT(); if (failed) return ;
+ mTHEN(); if (failed) return ;
}
break;
case 57 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:266: C_STYLE_SINGLE_LINE_COMMENT
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:242: END
{
- mC_STYLE_SINGLE_LINE_COMMENT(); if (failed) return ;
+ mEND(); if (failed) return ;
}
break;
case 58 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:294: LEFT_PAREN
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:246: ID
{
- mLEFT_PAREN(); if (failed) return ;
+ mID(); if (failed) return ;
}
break;
case 59 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:305: RIGHT_PAREN
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:249: SH_STYLE_SINGLE_LINE_COMMENT
{
- mRIGHT_PAREN(); if (failed) return ;
+ mSH_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:317: LEFT_SQUARE
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:278: C_STYLE_SINGLE_LINE_COMMENT
{
- mLEFT_SQUARE(); if (failed) return ;
+ mC_STYLE_SINGLE_LINE_COMMENT(); if (failed) return ;
}
break;
case 61 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:329: RIGHT_SQUARE
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:306: LEFT_PAREN
{
- mRIGHT_SQUARE(); 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:342: LEFT_CURLY
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:317: RIGHT_PAREN
{
- mLEFT_CURLY(); 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:353: RIGHT_CURLY
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:329: LEFT_SQUARE
{
- mRIGHT_CURLY(); 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:365: MULTI_LINE_COMMENT
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:341: RIGHT_SQUARE
{
- mMULTI_LINE_COMMENT(); 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:384: MISC
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:354: LEFT_CURLY
{
+ mLEFT_CURLY(); if (failed) return ;
+
+ }
+ break;
+ case 66 :
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:365: RIGHT_CURLY
+ {
+ mRIGHT_CURLY(); if (failed) return ;
+
+ }
+ break;
+ case 67 :
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:377: MULTI_LINE_COMMENT
+ {
+ mMULTI_LINE_COMMENT(); if (failed) return ;
+
+ }
+ break;
+ case 68 :
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1:396: MISC
+ {
mMISC(); if (failed) return ;
}
@@ -3444,118 +3564,125 @@
protected DFA18 dfa18 = new DFA18(this);
public static final String DFA18_eotS =
- "\2\uffff\3\52\1\63\1\52\1\uffff\2\52\1\uffff\7\52\1\110\1\112\1"+
- "\53\1\115\1\117\1\53\2\52\1\53\1\52\1\uffff\1\127\1\uffff\1\53\1"+
- "\52\2\uffff\1\53\10\uffff\6\52\2\uffff\1\52\1\uffff\20\52\1\166"+
- "\12\uffff\4\52\1\uffff\1\52\2\uffff\1\52\2\uffff\16\52\1\u008c\4"+
- "\52\1\uffff\1\u0091\5\52\1\uffff\1\52\1\u0098\3\52\1\u009c\3\52"+
- "\1\u00a0\1\u00a1\5\52\1\u00a7\1\u00a8\3\52\1\uffff\3\52\1\u00b0"+
- "\1\uffff\2\52\1\u00b3\3\52\1\uffff\2\52\1\u00b9\1\uffff\1\u00ba"+
- "\2\52\2\uffff\1\52\1\u00a7\1\52\1\u00bf\1\52\3\uffff\6\52\1\uffff"+
- "\2\52\1\uffff\5\52\2\uffff\1\52\1\u00cf\1\52\1\u00d1\1\uffff\1\52"+
- "\1\u00d3\6\52\1\u00da\4\52\1\u00df\1\u00e0\1\uffff\1\52\1\uffff"+
- "\1\52\1\uffff\3\52\1\uffff\2\52\1\uffff\1\u00e8\1\52\1\u00ea\1\52"+
- "\2\uffff\1\u00ec\1\u00ed\3\52\1\u00f1\1\u00f2\1\uffff\1\u00f3\1"+
- "\uffff\1\u00f4\2\uffff\3\52\4\uffff\1\52\1\u00f9\1\u00fa\3\uffff";
+ "\2\uffff\3\52\1\63\1\52\1\uffff\2\52\1\uffff\10\52\1\114\1\116\1"+
+ "\53\1\121\1\123\1\53\1\52\1\53\1\52\1\uffff\1\130\1\uffff\1\53\1"+
+ "\52\2\uffff\1\53\10\uffff\6\52\2\uffff\1\52\1\uffff\24\52\1\175"+
+ "\12\uffff\1\52\1\uffff\1\52\2\uffff\1\52\2\uffff\15\52\1\u008e\10"+
+ "\52\1\u0097\2\52\1\uffff\1\u009a\5\52\1\uffff\1\52\1\u00a1\2\52"+
+ "\1\u00a4\3\52\1\u00a8\2\52\1\u00ab\1\u00ac\3\52\1\uffff\7\52\1\u00b8"+
+ "\1\uffff\2\52\1\uffff\1\u00bb\1\52\1\u00bd\3\52\1\uffff\1\u00c1"+
+ "\1\52\1\uffff\1\52\1\u00ab\1\52\1\uffff\1\52\1\u00c6\2\uffff\6\52"+
+ "\2\uffff\3\52\1\uffff\2\52\1\uffff\1\52\1\uffff\3\52\1\uffff\1\52"+
+ "\1\u00d8\1\52\1\u00da\1\uffff\2\52\1\u00dd\3\52\1\uffff\2\52\1\u00e5"+
+ "\2\52\1\u00e8\3\52\1\u00ec\1\uffff\1\52\1\uffff\2\52\1\uffff\1\52"+
+ "\1\uffff\1\52\2\uffff\2\52\1\uffff\1\u00f4\1\52\1\uffff\1\u00f6"+
+ "\1\52\1\u00f8\1\uffff\1\u00f9\1\u00fa\3\52\1\u00fe\1\u00ff\1\uffff"+
+ "\1\u0100\1\uffff\1\u0101\3\uffff\3\52\4\uffff\1\52\1\u0106\1\u0107"+
+ "\3\uffff";
public static final String DFA18_eofS =
- "\u00fb\uffff";
+ "\u0108\uffff";
public static final String DFA18_minS =
"\1\11\1\uffff\1\141\1\155\1\141\1\52\1\154\1\uffff\1\165\1\145\1"+
- "\uffff\1\143\1\141\1\157\1\165\1\145\1\157\1\162\1\174\1\46\4\75"+
- "\1\141\1\156\1\60\1\163\1\uffff\1\56\1\uffff\1\0\1\150\2\uffff\1"+
- "\52\10\uffff\1\143\1\160\1\151\1\157\1\156\1\154\2\uffff\1\157\1"+
- "\uffff\1\145\1\155\1\165\1\145\1\164\1\143\1\144\1\164\1\145\2\154"+
- "\1\55\1\162\1\163\2\154\1\60\12\uffff\1\164\1\144\1\143\1\141\1"+
- "\uffff\1\145\2\uffff\1\145\2\uffff\1\153\1\157\1\164\1\155\1\143"+
- "\1\163\1\142\1\162\1\160\1\145\1\156\1\157\1\151\1\165\1\60\1\162"+
- "\1\156\1\151\1\154\1\uffff\1\60\1\141\1\165\1\145\1\154\1\164\1"+
- "\uffff\1\143\1\60\1\154\1\163\1\154\1\60\1\156\1\141\1\162\2\60"+
- "\1\164\1\145\1\141\1\171\1\154\2\60\1\55\1\157\1\155\1\uffff\1\151"+
- "\1\144\1\145\1\60\1\uffff\1\164\1\154\1\60\1\145\1\141\1\150\1\uffff"+
- "\1\165\1\164\1\60\1\uffff\1\60\1\147\1\164\2\uffff\1\151\1\60\1"+
- "\154\1\60\1\141\3\uffff\1\156\1\141\1\165\1\142\1\141\1\156\1\uffff"+
- "\1\151\1\164\1\uffff\1\143\1\151\1\145\1\144\1\163\2\uffff\1\145"+
- "\1\60\1\157\1\60\1\uffff\1\164\1\60\1\164\1\154\1\165\1\55\1\143"+
- "\1\157\1\60\1\164\1\156\1\163\1\145\2\60\1\uffff\1\156\1\uffff\1"+
- "\145\1\uffff\1\151\1\141\1\164\1\uffff\1\145\1\156\1\uffff\1\60"+
- "\1\163\1\60\1\163\2\uffff\2\60\1\157\1\164\1\145\2\60\1\uffff\1"+
- "\60\1\uffff\1\60\2\uffff\1\156\1\145\1\163\4\uffff\1\55\2\60\3\uffff";
+ "\uffff\1\143\1\141\1\156\1\141\1\157\1\145\1\157\1\162\1\174\1\46"+
+ "\4\75\1\141\1\60\1\163\1\uffff\1\56\1\uffff\1\0\1\150\2\uffff\1"+
+ "\52\10\uffff\1\143\1\151\1\160\1\154\1\156\1\157\2\uffff\1\157\1"+
+ "\uffff\1\145\1\165\1\145\1\155\1\143\1\144\1\145\3\164\1\162\1\143"+
+ "\2\141\1\154\1\55\1\154\1\163\2\154\1\60\12\uffff\1\164\1\uffff"+
+ "\1\145\2\uffff\1\145\2\uffff\1\153\1\164\1\157\1\163\1\143\1\155"+
+ "\1\142\1\162\1\145\1\156\1\160\1\151\1\165\1\60\1\156\1\162\1\157"+
+ "\1\145\1\141\1\154\1\163\1\154\1\60\1\142\1\151\1\uffff\1\60\1\154"+
+ "\1\165\1\145\1\154\1\164\1\uffff\1\143\1\60\1\156\1\141\1\60\1\162"+
+ "\1\145\1\164\1\60\1\141\1\171\2\60\1\154\1\157\1\155\1\uffff\1\144"+
+ "\1\151\2\55\1\164\1\165\1\164\1\60\1\uffff\1\154\1\145\1\uffff\1"+
+ "\60\1\154\1\60\1\145\1\141\1\150\1\uffff\1\60\1\147\1\uffff\1\164"+
+ "\1\60\1\151\1\uffff\1\154\1\60\2\uffff\2\141\1\156\1\165\1\141\1"+
+ "\142\1\uffff\1\145\1\151\1\144\1\163\1\uffff\1\145\1\156\1\uffff"+
+ "\1\164\1\uffff\1\143\1\151\1\145\1\uffff\1\145\1\60\1\157\1\60\1"+
+ "\uffff\2\164\1\60\1\154\1\55\1\165\1\146\1\157\1\145\1\60\1\144"+
+ "\1\143\1\60\1\164\1\156\1\163\1\60\1\uffff\1\156\1\uffff\1\145\1"+
+ "\151\1\uffff\1\141\1\uffff\1\164\2\uffff\1\156\1\163\1\uffff\1\60"+
+ "\1\145\1\uffff\1\60\1\163\1\60\1\uffff\2\60\1\157\1\164\1\145\2"+
+ "\60\1\uffff\1\60\1\uffff\1\60\3\uffff\1\156\1\145\1\163\4\uffff"+
+ "\1\55\2\60\3\uffff";
public static final String DFA18_maxS =
"\1\u00ff\1\uffff\1\141\1\156\1\165\1\52\1\154\1\uffff\1\165\1\162"+
- "\1\uffff\1\165\1\141\3\165\1\157\1\162\1\174\1\46\4\75\1\141\1\170"+
+ "\1\uffff\2\165\1\170\1\141\2\165\1\157\1\162\1\174\1\46\4\75\1\141"+
"\1\76\1\163\1\uffff\1\71\1\uffff\1\ufffe\1\150\2\uffff\1\57\10\uffff"+
- "\1\143\1\160\1\151\1\157\1\156\1\154\2\uffff\1\157\1\uffff\1\145"+
- "\1\155\1\165\1\145\2\164\1\144\1\164\1\145\2\154\1\164\1\162\1\163"+
- "\1\154\1\156\1\u00ff\12\uffff\1\164\1\144\1\151\1\141\1\uffff\1"+
- "\145\2\uffff\1\145\2\uffff\1\153\1\157\1\164\1\155\1\143\1\163\1"+
- "\142\1\162\1\160\1\145\1\156\1\157\1\151\1\165\1\u00ff\1\162\1\156"+
- "\1\151\1\154\1\uffff\1\u00ff\1\141\1\165\1\145\1\154\1\164\1\uffff"+
- "\1\143\1\u00ff\1\154\1\163\1\154\1\u00ff\1\156\1\141\1\162\2\u00ff"+
- "\1\164\1\145\1\141\1\171\1\154\2\u00ff\1\55\1\166\1\155\1\uffff"+
- "\1\151\1\144\1\145\1\u00ff\1\uffff\1\164\1\154\1\u00ff\1\145\1\141"+
- "\1\150\1\uffff\1\165\1\164\1\u00ff\1\uffff\1\u00ff\1\147\1\164\2"+
- "\uffff\1\151\1\u00ff\1\154\1\u00ff\1\141\3\uffff\1\156\1\141\1\165"+
- "\1\142\1\141\1\156\1\uffff\1\151\1\164\1\uffff\1\143\1\151\1\145"+
- "\1\144\1\163\2\uffff\1\145\1\u00ff\1\157\1\u00ff\1\uffff\1\164\1"+
- "\u00ff\1\164\1\154\1\165\1\55\1\143\1\157\1\u00ff\1\164\1\156\1"+
- "\163\1\145\2\u00ff\1\uffff\1\156\1\uffff\1\145\1\uffff\1\151\1\141"+
- "\1\164\1\uffff\1\145\1\156\1\uffff\1\u00ff\1\163\1\u00ff\1\163\2"+
- "\uffff\2\u00ff\1\157\1\164\1\145\2\u00ff\1\uffff\1\u00ff\1\uffff"+
- "\1\u00ff\2\uffff\1\156\1\145\1\163\4\uffff\1\55\2\u00ff\3\uffff";
+ "\1\143\1\151\1\160\1\154\1\156\1\157\2\uffff\1\157\1\uffff\1\145"+
+ "\1\165\1\145\1\155\1\164\1\144\1\145\3\164\1\162\1\151\1\141\1\144"+
+ "\1\154\1\164\1\154\1\163\1\154\1\156\1\u00ff\12\uffff\1\164\1\uffff"+
+ "\1\145\2\uffff\1\145\2\uffff\1\153\1\164\1\157\1\163\1\143\1\155"+
+ "\1\142\1\162\1\145\1\156\1\160\1\151\1\165\1\u00ff\1\156\1\162\1"+
+ "\157\1\145\1\141\1\154\1\163\1\154\1\u00ff\1\142\1\151\1\uffff\1"+
+ "\u00ff\1\154\1\165\1\145\1\154\1\164\1\uffff\1\143\1\u00ff\1\156"+
+ "\1\141\1\u00ff\1\162\1\145\1\164\1\u00ff\1\141\1\171\2\u00ff\1\154"+
+ "\1\166\1\155\1\uffff\1\144\1\151\2\55\1\164\1\165\1\164\1\u00ff"+
+ "\1\uffff\1\154\1\145\1\uffff\1\u00ff\1\154\1\u00ff\1\145\1\141\1"+
+ "\150\1\uffff\1\u00ff\1\147\1\uffff\1\164\1\u00ff\1\151\1\uffff\1"+
+ "\154\1\u00ff\2\uffff\2\141\1\156\1\165\1\141\1\142\1\uffff\1\145"+
+ "\1\151\1\144\1\163\1\uffff\1\145\1\156\1\uffff\1\164\1\uffff\1\143"+
+ "\1\151\1\145\1\uffff\1\145\1\u00ff\1\157\1\u00ff\1\uffff\2\164\1"+
+ "\u00ff\1\154\1\55\1\165\1\170\1\157\1\145\1\u00ff\1\144\1\143\1"+
+ "\u00ff\1\164\1\156\1\163\1\u00ff\1\uffff\1\156\1\uffff\1\145\1\151"+
+ "\1\uffff\1\141\1\uffff\1\164\2\uffff\1\156\1\163\1\uffff\1\u00ff"+
+ "\1\145\1\uffff\1\u00ff\1\163\1\u00ff\1\uffff\2\u00ff\1\157\1\164"+
+ "\1\145\2\u00ff\1\uffff\1\u00ff\1\uffff\1\u00ff\3\uffff\1\156\1\145"+
+ "\1\163\4\uffff\1\55\2\u00ff\3\uffff";
public static final String DFA18_acceptS =
- "\1\uffff\1\1\5\uffff\1\10\2\uffff\1\13\21\uffff\1\56\1\uffff\1\61"+
- "\2\uffff\1\67\1\70\1\uffff\1\72\1\73\1\74\1\75\1\76\1\77\1\67\1"+
- "\101\6\uffff\1\6\1\5\1\uffff\1\10\21\uffff\1\32\1\34\1\51\1\33\1"+
- "\35\1\37\1\36\1\41\1\40\1\42\4\uffff\1\47\1\uffff\1\57\1\60\1\uffff"+
- "\1\71\1\100\23\uffff\1\16\6\uffff\1\31\25\uffff\1\50\4\uffff\1\53"+
- "\6\uffff\1\66\3\uffff\1\55\3\uffff\1\25\1\23\5\uffff\1\62\1\65\1"+
- "\17\6\uffff\1\46\2\uffff\1\63\5\uffff\1\54\1\64\4\uffff\1\11\17"+
- "\uffff\1\3\1\uffff\1\7\1\uffff\1\26\3\uffff\1\21\2\uffff\1\27\4"+
- "\uffff\1\52\1\2\7\uffff\1\30\1\uffff\1\44\1\uffff\1\4\1\12\3\uffff"+
- "\1\15\1\22\1\43\1\45\3\uffff\1\20\1\24\1\14";
+ "\1\uffff\1\1\5\uffff\1\10\2\uffff\1\13\21\uffff\1\61\1\uffff\1\64"+
+ "\2\uffff\1\72\1\73\1\uffff\1\75\1\76\1\77\1\100\1\101\1\102\1\72"+
+ "\1\104\6\uffff\1\6\1\5\1\uffff\1\10\25\uffff\1\35\1\37\1\54\1\36"+
+ "\1\40\1\42\1\41\1\44\1\43\1\45\1\uffff\1\52\1\uffff\1\62\1\63\1"+
+ "\uffff\1\74\1\103\31\uffff\1\21\6\uffff\1\34\20\uffff\1\53\10\uffff"+
+ "\1\71\2\uffff\1\56\6\uffff\1\60\2\uffff\1\30\3\uffff\1\26\2\uffff"+
+ "\1\65\1\70\6\uffff\1\22\4\uffff\1\57\2\uffff\1\51\1\uffff\1\66\3"+
+ "\uffff\1\67\4\uffff\1\11\21\uffff\1\3\1\uffff\1\7\2\uffff\1\31\1"+
+ "\uffff\1\24\1\uffff\1\15\1\16\2\uffff\1\55\2\uffff\1\32\3\uffff"+
+ "\1\2\7\uffff\1\17\1\uffff\1\33\1\uffff\1\47\1\4\1\12\3\uffff\1\25"+
+ "\1\50\1\20\1\46\3\uffff\1\23\1\27\1\14";
public static final String DFA18_specialS =
- "\u00fb\uffff}>";
+ "\u0108\uffff}>";
public static final String[] DFA18_transition = {
- "\2\34\1\uffff\2\34\22\uffff\1\34\1\27\1\36\1\42\1\41\1\53\1\23\1"+
- "\37\1\44\1\45\2\53\1\7\1\32\1\5\1\43\12\35\1\12\1\1\1\26\1\24\1"+
- "\25\2\53\32\52\1\46\1\53\1\47\1\53\1\41\1\uffff\1\13\1\52\1\20\1"+
- "\16\1\31\1\4\1\6\1\52\1\3\3\52\1\30\1\15\1\21\1\2\1\10\1\17\1\14"+
- "\1\11\1\33\1\52\1\40\3\52\1\50\1\22\1\51\102\uffff\100\52",
+ "\2\34\1\uffff\2\34\22\uffff\1\34\1\30\1\36\1\42\1\41\1\53\1\24\1"+
+ "\37\1\44\1\45\2\53\1\7\1\32\1\5\1\43\12\35\1\12\1\1\1\27\1\25\1"+
+ "\26\2\53\32\52\1\46\1\53\1\47\1\53\1\41\1\uffff\1\13\1\52\1\21\1"+
+ "\14\1\15\1\4\1\6\1\52\1\3\3\52\1\31\1\17\1\22\1\2\1\10\1\20\1\16"+
+ "\1\11\1\33\1\52\1\40\3\52\1\50\1\23\1\51\102\uffff\100\52",
"",
"\1\54",
- "\1\55\1\56",
- "\1\61\20\uffff\1\57\2\uffff\1\60",
+ "\1\56\1\55",
+ "\1\57\20\uffff\1\61\2\uffff\1\60",
"\1\62",
"\1\64",
"",
"\1\66",
- "\1\67\2\uffff\1\71\11\uffff\1\70",
+ "\1\71\2\uffff\1\70\11\uffff\1\67",
"",
- "\1\73\3\uffff\1\76\6\uffff\1\74\5\uffff\1\75\1\72",
- "\1\77",
- "\1\101\5\uffff\1\100",
- "\1\102",
- "\1\103\17\uffff\1\104",
- "\1\105",
- "\1\106",
- "\1\107",
+ "\1\72\3\uffff\1\74\6\uffff\1\73\5\uffff\1\75\1\76",
+ "\1\77\23\uffff\1\100",
+ "\1\103\7\uffff\1\102\1\uffff\1\101",
+ "\1\104",
+ "\1\105\5\uffff\1\106",
+ "\1\107\17\uffff\1\110",
"\1\111",
+ "\1\112",
"\1\113",
- "\1\114",
- "\1\116",
+ "\1\115",
+ "\1\117",
"\1\120",
- "\1\121",
- "\1\122\7\uffff\1\124\1\uffff\1\123",
- "\12\35\4\uffff\1\125",
- "\1\126",
+ "\1\122",
+ "\1\124",
+ "\1\125",
+ "\12\35\4\uffff\1\126",
+ "\1\127",
"",
- "\1\130\1\uffff\12\35",
+ "\1\131\1\uffff\12\35",
"",
"\uffff\36",
- "\1\131",
+ "\1\132",
"",
"",
- "\1\133\4\uffff\1\132",
+ "\1\134\4\uffff\1\133",
"",
"",
"",
@@ -3564,17 +3691,16 @@
"",
"",
"",
- "\1\134",
"\1\135",
"\1\136",
"\1\137",
"\1\140",
"\1\141",
+ "\1\142",
"",
"",
- "\1\142",
+ "\1\143",
"",
- "\1\143",
"\1\144",
"\1\145",
"\1\146",
@@ -3585,11 +3711,16 @@
"\1\154",
"\1\155",
"\1\156",
- "\1\157\106\uffff\1\160",
- "\1\161",
+ "\1\157",
+ "\1\160\5\uffff\1\161",
"\1\162",
- "\1\163",
- "\1\164\1\uffff\1\165",
+ "\1\164\2\uffff\1\163",
+ "\1\165",
+ "\1\166\106\uffff\1\167",
+ "\1\170",
+ "\1\171",
+ "\1\172",
+ "\1\173\1\uffff\1\174",
"\12\52\7\uffff\32\52\4\uffff\1\52\1\uffff\32\52\105\uffff\100\52",
"",
"",
@@ -3601,20 +3732,14 @@
"",
"",
"",
- "\1\167",
- "\1\170",
- "\1\171\5\uffff\1\172",
- "\1\173",
+ "\1\176",
"",
- "\1\174",
+ "\1\177",
"",
"",
- "\1\175",
+ "\1\u0080",
"",
"",
- "\1\176",
- "\1\177",
- "\1\u0080",
"\1\u0081",
"\1\u0082",
"\1\u0083",
@@ -3626,146 +3751,161 @@
"\1\u0089",
"\1\u008a",
"\1\u008b",
+ "\1\u008c",
+ "\1\u008d",
"\12\52\7\uffff\32\52\4\uffff\1\52\1\uffff\32\52\105\uffff\100\52",
- "\1\u008d",
- "\1\u008e",
"\1\u008f",
"\1\u0090",
- "",
- "\12\52\7\uffff\32\52\4\uffff\1\52\1\uffff\32\52\105\uffff\100\52",
+ "\1\u0091",
"\1\u0092",
"\1\u0093",
"\1\u0094",
"\1\u0095",
"\1\u0096",
+ "\12\52\7\uffff\32\52\4\uffff\1\52\1\uffff\32\52\105\uffff\100\52",
+ "\1\u0098",
+ "\1\u0099",
"",
- "\1\u0097",
"\12\52\7\uffff\32\52\4\uffff\1\52\1\uffff\32\52\105\uffff\100\52",
- "\1\u0099",
- "\1\u009a",
"\1\u009b",
- "\12\52\7\uffff\32\52\4\uffff\1\52\1\uffff\32\52\105\uffff\100\52",
+ "\1\u009c",
"\1\u009d",
"\1\u009e",
"\1\u009f",
+ "",
+ "\1\u00a0",
"\12\52\7\uffff\32\52\4\uffff\1\52\1\uffff\32\52\105\uffff\100\52",
- "\12\52\7\uffff\32\52\4\uffff\1\52\1\uffff\32\52\105\uffff\100\52",
"\1\u00a2",
"\1\u00a3",
- "\1\u00a4",
+ "\12\52\7\uffff\32\52\4\uffff\1\52\1\uffff\32\52\105\uffff\100\52",
"\1\u00a5",
"\1\u00a6",
+ "\1\u00a7",
"\12\52\7\uffff\32\52\4\uffff\1\52\1\uffff\32\52\105\uffff\100\52",
+ "\1\u00a9",
+ "\1\u00aa",
"\12\52\7\uffff\32\52\4\uffff\1\52\1\uffff\32\52\105\uffff\100\52",
- "\1\u00a9",
- "\1\u00aa\6\uffff\1\u00ab",
- "\1\u00ac",
- "",
+ "\12\52\7\uffff\32\52\4\uffff\1\52\1\uffff\32\52\105\uffff\100\52",
"\1\u00ad",
- "\1\u00ae",
- "\1\u00af",
- "\12\52\7\uffff\32\52\4\uffff\1\52\1\uffff\32\52\105\uffff\100\52",
+ "\1\u00af\6\uffff\1\u00ae",
+ "\1\u00b0",
"",
"\1\u00b1",
"\1\u00b2",
- "\12\52\7\uffff\32\52\4\uffff\1\52\1\uffff\32\52\105\uffff\100\52",
+ "\1\u00b3",
"\1\u00b4",
"\1\u00b5",
"\1\u00b6",
- "",
"\1\u00b7",
- "\1\u00b8",
"\12\52\7\uffff\32\52\4\uffff\1\52\1\uffff\32\52\105\uffff\100\52",
"",
+ "\1\u00b9",
+ "\1\u00ba",
+ "",
"\12\52\7\uffff\32\52\4\uffff\1\52\1\uffff\32\52\105\uffff\100\52",
- "\1\u00bb",
"\1\u00bc",
- "",
- "",
- "\1\u00bd",
"\12\52\7\uffff\32\52\4\uffff\1\52\1\uffff\32\52\105\uffff\100\52",
"\1\u00be",
- "\12\52\7\uffff\32\52\4\uffff\1\52\1\uffff\32\52\105\uffff\100\52",
+ "\1\u00bf",
"\1\u00c0",
"",
+ "\12\52\7\uffff\32\52\4\uffff\1\52\1\uffff\32\52\105\uffff\100\52",
+ "\1\u00c2",
"",
- "",
- "\1\u00c1",
- "\1\u00c2",
"\1\u00c3",
+ "\12\52\7\uffff\32\52\4\uffff\1\52\1\uffff\32\52\105\uffff\100\52",
"\1\u00c4",
+ "",
"\1\u00c5",
- "\1\u00c6",
+ "\12\52\7\uffff\32\52\4\uffff\1\52\1\uffff\32\52\105\uffff\100\52",
"",
+ "",
"\1\u00c7",
"\1\u00c8",
- "",
"\1\u00c9",
"\1\u00ca",
"\1\u00cb",
"\1\u00cc",
+ "",
"\1\u00cd",
- "",
- "",
"\1\u00ce",
- "\12\52\7\uffff\32\52\4\uffff\1\52\1\uffff\32\52\105\uffff\100\52",
+ "\1\u00cf",
"\1\u00d0",
- "\12\52\7\uffff\32\52\4\uffff\1\52\1\uffff\32\52\105\uffff\100\52",
"",
+ "\1\u00d1",
"\1\u00d2",
- "\12\52\7\uffff\32\52\4\uffff\1\52\1\uffff\32\52\105\uffff\100\52",
+ "",
+ "\1\u00d3",
+ "",
"\1\u00d4",
"\1\u00d5",
"\1\u00d6",
+ "",
"\1\u00d7",
- "\1\u00d8",
+ "\12\52\7\uffff\32\52\4\uffff\1\52\1\uffff\32\52\105\uffff\100\52",
"\1\u00d9",
"\12\52\7\uffff\32\52\4\uffff\1\52\1\uffff\32\52\105\uffff\100\52",
+ "",
"\1\u00db",
"\1\u00dc",
- "\1\u00dd",
+ "\12\52\7\uffff\32\52\4\uffff\1\52\1\uffff\32\52\105\uffff\100\52",
"\1\u00de",
- "\12\52\7\uffff\32\52\4\uffff\1\52\1\uffff\32\52\105\uffff\100\52",
- "\12\52\7\uffff\32\52\4\uffff\1\52\1\uffff\32\52\105\uffff\100\52",
- "",
- "\1\u00e1",
- "",
- "\1\u00e2",
- "",
+ "\1\u00df",
+ "\1\u00e0",
+ "\1\u00e1\21\uffff\1\u00e2",
"\1\u00e3",
"\1\u00e4",
- "\1\u00e5",
- "",
+ "\12\52\7\uffff\32\52\4\uffff\1\52\1\uffff\32\52\105\uffff\100\52",
"\1\u00e6",
"\1\u00e7",
- "",
"\12\52\7\uffff\32\52\4\uffff\1\52\1\uffff\32\52\105\uffff\100\52",
"\1\u00e9",
+ "\1\u00ea",
+ "\1\u00eb",
"\12\52\7\uffff\32\52\4\uffff\1\52\1\uffff\32\52\105\uffff\100\52",
- "\1\u00eb",
"",
+ "\1\u00ed",
"",
- "\12\52\7\uffff\32\52\4\uffff\1\52\1\uffff\32\52\105\uffff\100\52",
- "\12\52\7\uffff\32\52\4\uffff\1\52\1\uffff\32\52\105\uffff\100\52",
"\1\u00ee",
"\1\u00ef",
+ "",
"\1\u00f0",
+ "",
+ "\1\u00f1",
+ "",
+ "",
+ "\1\u00f2",
+ "\1\u00f3",
+ "",
"\12\52\7\uffff\32\52\4\uffff\1\52\1\uffff\32\52\105\uffff\100\52",
+ "\1\u00f5",
+ "",
"\12\52\7\uffff\32\52\4\uffff\1\52\1\uffff\32\52\105\uffff\100\52",
+ "\1\u00f7",
+ "\12\52\7\uffff\32\52\4\uffff\1\52\1\uffff\32\52\105\uffff\100\52",
"",
"\12\52\7\uffff\32\52\4\uffff\1\52\1\uffff\32\52\105\uffff\100\52",
+ "\12\52\7\uffff\32\52\4\uffff\1\52\1\uffff\32\52\105\uffff\100\52",
+ "\1\u00fb",
+ "\1\u00fc",
+ "\1\u00fd",
+ "\12\52\7\uffff\32\52\4\uffff\1\52\1\uffff\32\52\105\uffff\100\52",
+ "\12\52\7\uffff\32\52\4\uffff\1\52\1\uffff\32\52\105\uffff\100\52",
"",
"\12\52\7\uffff\32\52\4\uffff\1\52\1\uffff\32\52\105\uffff\100\52",
"",
+ "\12\52\7\uffff\32\52\4\uffff\1\52\1\uffff\32\52\105\uffff\100\52",
"",
- "\1\u00f5",
- "\1\u00f6",
- "\1\u00f7",
"",
"",
+ "\1\u0102",
+ "\1\u0103",
+ "\1\u0104",
"",
"",
- "\1\u00f8",
+ "",
+ "",
+ "\1\u0105",
"\12\52\7\uffff\32\52\4\uffff\1\52\1\uffff\32\52\105\uffff\100\52",
"\12\52\7\uffff\32\52\4\uffff\1\52\1\uffff\32\52\105\uffff\100\52",
"",
@@ -3790,7 +3930,7 @@
}
}
public String getDescription() {
- return "1:1: Tokens : ( 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 | WS | INT | FLOAT | STRING | BOOL | RULE | WHEN | THEN | END | ID | SH_STYLE_SINGLE_LINE_COMMENT | C_STYLE_SINGLE_LINE_COMMENT | LEFT_PAREN | RIGHT_PAREN | LEFT_SQUARE | RIGHT_SQUARE | LEFT_CURLY | RIGHT_CURLY | MULTI_LINE_COMMENT | MISC );";
+ return "1:1: Tokens : ( 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 | WS | INT | FLOAT | STRING | BOOL | RULE | WHEN | THEN | END | ID | SH_STYLE_SINGLE_LINE_COMMENT | C_STYLE_SINGLE_LINE_COMMENT | LEFT_PAREN | RIGHT_PAREN | LEFT_SQUARE | RIGHT_SQUARE | LEFT_CURLY | RIGHT_CURLY | MULTI_LINE_COMMENT | MISC );";
}
}
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 2007-01-11 21:47:50 UTC (rev 8830)
+++ labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/lang/DRLParser.java 2007-01-11 22:09:16 UTC (rev 8831)
@@ -1,16 +1,16 @@
-// $ANTLR 3.0b5 D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g 2006-12-21 21:35:24
-
- 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;
+// $ANTLR 3.0b5 /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g 2007-01-11 21:47:58
+ 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;
@@ -19,7 +19,7 @@
import java.util.HashMap;
public class DRLParser extends Parser {
public static final String[] tokenNames = new String[] {
- "<invalid>", "<EOR>", "<DOWN>", "<UP>", "ID", "RULE", "WHEN", "INT", "BOOL", "STRING", "FLOAT", "LEFT_PAREN", "RIGHT_PAREN", "LEFT_CURLY", "RIGHT_CURLY", "LEFT_SQUARE", "RIGHT_SQUARE", "END", "THEN", "EOL", "WS", "EscapeSequence", "HexDigit", "UnicodeEscape", "OctalEscape", "SH_STYLE_SINGLE_LINE_COMMENT", "C_STYLE_SINGLE_LINE_COMMENT", "MULTI_LINE_COMMENT", "MISC", "';'", "'package'", "'import'", "'function'", "'.'", "'.*'", "'global'", "','", "'query'", "'template'", "':'", "'attributes'", "'salience'", "'no-loop'", "'auto-focus'", "'activation-group'", "'agenda-group'", "'duration'", "'from'", "'accumulate'", "'init'", "'action'", "'result'", "'collect'", "'or'", "'||'", "'&'", "'|'", "'=='", "'>'", "'>='", "'<'", "'<='", "'!='", "'contains'", "'matches'", "'excludes'", "'null'", "'->'", "'and'", "'&&'", "'exists'", "'not'", "'eval'", "'use'"
+ "<invalid>", "<EOR>", "<DOWN>", "<UP>", "ID", "RULE", "WHEN", "STRING", "BOOL", "INT", "FLOAT", "LEFT_PAREN", "RIGHT_PAREN", "LEFT_CURLY", "RIGHT_CURLY", "LEFT_SQUARE", "RIGHT_SQUARE", "END", "THEN", "EOL", "WS", "EscapeSequence", "HexDigit", "UnicodeEscape", "OctalEscape", "SH_STYLE_SINGLE_LINE_COMMENT", "C_STYLE_SINGLE_LINE_COMMENT", "MULTI_LINE_COMMENT", "MISC", "';'", "'package'", "'import'", "'function'", "'.'", "'.*'", "'global'", "','", "'query'", "'template'", "':'", "'attributes'", "'date-effective'", "'date-expires'", "'enabled'", "'salience'", "'no-loop'", "'auto-focus'", "'activation-group'", "'agenda-group'", "'duration'", "'from'", "'accumulate'", "'init'", "'action'", "'result'", "'collect'", "'or'", "'||'", "'&'", "'|'", "'=='", "'>'", "'>='", "'<'", "'<='", "'!='", "'contains'", "'matches'", "'excludes'", "'null'", "'->'", "'and'", "'&&'", "'exists'", "'not'", "'eval'", "'use'"
};
public static final int LEFT_PAREN=11;
public static final int RIGHT_CURLY=14;
@@ -29,13 +29,13 @@
public static final int WHEN=6;
public static final int WS=20;
public static final int MISC=28;
- public static final int STRING=9;
+ public static final int STRING=7;
public static final int FLOAT=10;
public static final int THEN=18;
public static final int RULE=5;
public static final int UnicodeEscape=23;
public static final int EscapeSequence=21;
- public static final int INT=7;
+ public static final int INT=9;
public static final int EOF=-1;
public static final int EOL=19;
public static final int LEFT_SQUARE=15;
@@ -50,284 +50,284 @@
public DRLParser(TokenStream input) {
super(input);
- ruleMemo = new HashMap[138+1];
+ ruleMemo = new HashMap[144+1];
}
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 "/home/michael/projects/jboss-rules/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:282:1: opt_semicolon : ( ( ';' )=> ';' )? ;
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:282:1: opt_semicolon : ( ( ';' )=> ';' )? ;
public void opt_semicolon() throws RecognitionException {
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:283:4: ( ( ( ';' )=> ';' )? )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:283:4: ( ( ';' )=> ';' )?
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:283:4: ( ( ( ';' )=> ';' )? )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:283:4: ( ( ';' )=> ';' )?
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:283:4: ( ( ';' )=> ';' )?
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:283:4: ( ( ';' )=> ';' )?
int alt1=2;
int LA1_0 = input.LA(1);
if ( (LA1_0==29) ) {
@@ -335,7 +335,7 @@
}
switch (alt1) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:0:0: ( ';' )=> ';'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:0:0: ( ';' )=> ';'
{
match(input,29,FOLLOW_29_in_opt_semicolon46); if (failed) return ;
@@ -360,17 +360,17 @@
// $ANTLR start compilation_unit
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:286:1: compilation_unit : prolog ( ( statement )=> statement )+ ;
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:286:1: compilation_unit : prolog ( ( statement )=> statement )+ ;
public void compilation_unit() throws RecognitionException {
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:287:4: ( prolog ( ( statement )=> statement )+ )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:287:4: prolog ( ( statement )=> statement )+
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:287:4: ( prolog ( ( statement )=> statement )+ )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:287:4: prolog ( ( statement )=> statement )+
{
pushFollow(FOLLOW_prolog_in_compilation_unit58);
prolog();
_fsp--;
if (failed) return ;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:288:3: ( ( statement )=> statement )+
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:288:3: ( ( statement )=> statement )+
int cnt2=0;
loop2:
do {
@@ -383,7 +383,7 @@
switch (alt2) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:288:5: ( statement )=> statement
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:288:5: ( statement )=> statement
{
pushFollow(FOLLOW_statement_in_compilation_unit65);
statement();
@@ -419,19 +419,19 @@
// $ANTLR start prolog
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:291:1: prolog : ( ( package_statement )=>name= package_statement )? ;
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:291:1: prolog : ( ( package_statement )=>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:295:4: ( ( ( package_statement )=>name= package_statement )? )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:295:4: ( ( package_statement )=>name= package_statement )?
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:295:4: ( ( ( package_statement )=>name= package_statement )? )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:295:4: ( ( package_statement )=>name= package_statement )?
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:295:4: ( ( package_statement )=>name= package_statement )?
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:295:4: ( ( package_statement )=>name= package_statement )?
int alt3=2;
int LA3_0 = input.LA(1);
if ( (LA3_0==30) ) {
@@ -439,7 +439,7 @@
}
switch (alt3) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:295:6: ( package_statement )=>name= package_statement
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:295:6: ( package_statement )=>name= package_statement
{
pushFollow(FOLLOW_package_statement_in_prolog90);
name=package_statement();
@@ -455,8 +455,8 @@
}
if ( backtracking==0 ) {
-
- this.packageDescr = new PackageDescr( name );
+
+ this.packageDescr = new PackageDescr( name );
}
@@ -475,7 +475,7 @@
// $ANTLR start statement
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:301:1: statement : ( ( import_statement )=> import_statement | ( function_import_statement )=> function_import_statement | ( global )=> global | ( function )=> function | ( template )=>t= template | ( rule )=>r= rule | q= query ) ;
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:301:1: statement : ( ( import_statement )=> import_statement | ( function_import_statement )=> function_import_statement | ( global )=> global | ( function )=> function | ( template )=>t= template | ( rule )=>r= rule | q= query ) ;
public void statement() throws RecognitionException {
FactTemplateDescr t = null;
@@ -485,10 +485,10 @@
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:303:2: ( ( ( import_statement )=> import_statement | ( function_import_statement )=> function_import_statement | ( global )=> global | ( function )=> function | ( template )=>t= template | ( rule )=>r= rule | q= query ) )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:303:2: ( ( import_statement )=> import_statement | ( function_import_statement )=> function_import_statement | ( global )=> global | ( function )=> function | ( template )=>t= template | ( rule )=>r= rule | q= query )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:303:2: ( ( ( import_statement )=> import_statement | ( function_import_statement )=> function_import_statement | ( global )=> global | ( function )=> function | ( template )=>t= template | ( rule )=>r= rule | q= query ) )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:303:2: ( ( import_statement )=> import_statement | ( function_import_statement )=> function_import_statement | ( global )=> global | ( function )=> function | ( template )=>t= template | ( rule )=>r= rule | q= query )
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:303:2: ( ( import_statement )=> import_statement | ( function_import_statement )=> function_import_statement | ( global )=> global | ( function )=> function | ( template )=>t= template | ( rule )=>r= rule | q= query )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:303:2: ( ( import_statement )=> import_statement | ( function_import_statement )=> function_import_statement | ( global )=> global | ( function )=> function | ( template )=>t= template | ( rule )=>r= rule | q= query )
int alt4=7;
switch ( input.LA(1) ) {
case 31:
@@ -532,7 +532,7 @@
switch (alt4) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:303:4: ( import_statement )=> import_statement
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:303:4: ( import_statement )=> import_statement
{
pushFollow(FOLLOW_import_statement_in_statement114);
import_statement();
@@ -542,7 +542,7 @@
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:304:10: ( function_import_statement )=> function_import_statement
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:304:10: ( function_import_statement )=> function_import_statement
{
pushFollow(FOLLOW_function_import_statement_in_statement126);
function_import_statement();
@@ -552,7 +552,7 @@
}
break;
case 3 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:305:4: ( global )=> global
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:305:4: ( global )=> global
{
pushFollow(FOLLOW_global_in_statement132);
global();
@@ -562,7 +562,7 @@
}
break;
case 4 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:306:4: ( function )=> function
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:306:4: ( function )=> function
{
pushFollow(FOLLOW_function_in_statement138);
function();
@@ -572,7 +572,7 @@
}
break;
case 5 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:307:10: ( template )=>t= template
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:307:10: ( template )=>t= template
{
pushFollow(FOLLOW_template_in_statement152);
t=template();
@@ -585,7 +585,7 @@
}
break;
case 6 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:308:4: ( rule )=>r= rule
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:308:4: ( rule )=>r= rule
{
pushFollow(FOLLOW_rule_in_statement161);
r=rule();
@@ -598,7 +598,7 @@
}
break;
case 7 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:309:4: q= query
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:309:4: q= query
{
pushFollow(FOLLOW_query_in_statement171);
q=query();
@@ -629,19 +629,19 @@
// $ANTLR start package_statement
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:313:1: package_statement returns [String packageName] : 'package' name= dotted_name opt_semicolon ;
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:313: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:318:3: ( 'package' name= dotted_name opt_semicolon )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:318:3: 'package' name= dotted_name opt_semicolon
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:318:3: ( 'package' name= dotted_name opt_semicolon )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:318:3: 'package' name= dotted_name opt_semicolon
{
match(input,30,FOLLOW_30_in_package_statement200); if (failed) return packageName;
pushFollow(FOLLOW_dotted_name_in_package_statement204);
@@ -653,8 +653,8 @@
_fsp--;
if (failed) return packageName;
if ( backtracking==0 ) {
-
- packageName = name;
+
+ packageName = name;
}
@@ -673,14 +673,14 @@
// $ANTLR start import_statement
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:325:1: import_statement : 'import' name= import_name opt_semicolon ;
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:325: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:326:4: ( 'import' name= import_name opt_semicolon )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:326:4: 'import' name= import_name opt_semicolon
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:326:4: ( 'import' name= import_name opt_semicolon )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:326:4: 'import' name= import_name opt_semicolon
{
match(input,31,FOLLOW_31_in_import_statement223); if (failed) return ;
pushFollow(FOLLOW_import_name_in_import_statement227);
@@ -692,9 +692,9 @@
_fsp--;
if (failed) return ;
if ( backtracking==0 ) {
-
- if (packageDescr != null)
- packageDescr.addImport( name );
+
+ if (packageDescr != null)
+ packageDescr.addImport( name );
}
@@ -713,14 +713,14 @@
// $ANTLR start function_import_statement
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:333:1: function_import_statement : 'import' 'function' name= import_name opt_semicolon ;
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:333: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:334:4: ( 'import' 'function' name= import_name opt_semicolon )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:334:4: 'import' 'function' name= import_name opt_semicolon
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:334:4: ( 'import' 'function' name= import_name opt_semicolon )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:334:4: 'import' 'function' name= import_name opt_semicolon
{
match(input,31,FOLLOW_31_in_function_import_statement245); if (failed) return ;
match(input,32,FOLLOW_32_in_function_import_statement247); if (failed) return ;
@@ -733,9 +733,9 @@
_fsp--;
if (failed) return ;
if ( backtracking==0 ) {
-
- if (packageDescr != null)
- packageDescr.addFunctionImport( name );
+
+ if (packageDescr != null)
+ packageDescr.addFunctionImport( name );
}
@@ -754,26 +754,26 @@
// $ANTLR start import_name
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:342:1: import_name returns [String name] : id= ID ( ( '.' ID )=> '.' id= ID )* ( ( '.*' )=>star= '.*' )? ;
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:342:1: import_name returns [String name] : id= 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:347:3: (id= ID ( ( '.' ID )=> '.' id= ID )* ( ( '.*' )=>star= '.*' )? )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:347:3: id= ID ( ( '.' ID )=> '.' id= ID )* ( ( '.*' )=>star= '.*' )?
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:347:3: (id= ID ( ( '.' ID )=> '.' id= ID )* ( ( '.*' )=>star= '.*' )? )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:347:3: id= ID ( ( '.' ID )=> '.' id= ID )* ( ( '.*' )=>star= '.*' )?
{
id=(Token)input.LT(1);
match(input,ID,FOLLOW_ID_in_import_name285); if (failed) return name;
if ( backtracking==0 ) {
name=id.getText();
}
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:347:32: ( ( '.' ID )=> '.' id= ID )*
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:347:32: ( ( '.' ID )=> '.' id= ID )*
loop5:
do {
int alt5=2;
@@ -785,7 +785,7 @@
switch (alt5) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:347:34: ( '.' ID )=> '.' id= ID
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:347:34: ( '.' ID )=> '.' id= ID
{
match(input,33,FOLLOW_33_in_import_name291); if (failed) return name;
id=(Token)input.LT(1);
@@ -802,7 +802,7 @@
}
} while (true);
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:347:85: ( ( '.*' )=>star= '.*' )?
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:347:85: ( ( '.*' )=>star= '.*' )?
int alt6=2;
int LA6_0 = input.LA(1);
if ( (LA6_0==34) ) {
@@ -810,7 +810,7 @@
}
switch (alt6) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:347:86: ( '.*' )=>star= '.*'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:347:86: ( '.*' )=>star= '.*'
{
star=(Token)input.LT(1);
match(input,34,FOLLOW_34_in_import_name305); if (failed) return name;
@@ -839,17 +839,17 @@
// $ANTLR start global
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:351:1: global : 'global' type= dotted_name id= ID opt_semicolon ;
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:351: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:355:3: ( 'global' type= dotted_name id= ID opt_semicolon )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:355:3: 'global' type= dotted_name id= ID opt_semicolon
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:355:3: ( 'global' type= dotted_name id= ID opt_semicolon )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:355:3: 'global' type= dotted_name id= ID opt_semicolon
{
match(input,35,FOLLOW_35_in_global329); if (failed) return ;
pushFollow(FOLLOW_dotted_name_in_global333);
@@ -863,8 +863,8 @@
_fsp--;
if (failed) return ;
if ( backtracking==0 ) {
-
- packageDescr.addGlobal( id.getText(), type );
+
+ packageDescr.addGlobal( id.getText(), type );
}
@@ -883,7 +883,7 @@
// $ANTLR start function
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:362:1: function : loc= 'function' ( ( dotted_name )=>retType= dotted_name )? name= ID '(' ( ( ( ( dotted_name )=> dotted_name )? argument ( ( ',' ( ( dotted_name )=> dotted_name )? argument )=> ',' ( ( dotted_name )=> dotted_name )? argument )* )=> ( ( dotted_name )=>paramType= dotted_name )? paramName= argument ( ( ',' ( ( dotted_name )=> dotted_name )? argument )=> ',' ( ( dotted_name )=>paramType= dotted_name )? paramName= argument )* )? ')' body= curly_chunk ;
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:362:1: function : loc= 'function' ( ( dotted_name )=>retType= dotted_name )? name= ID '(' ( ( ( ( dotted_name )=> dotted_name )? argument ( ( ',' ( ( dotted_name )=> dotted_name )? argument )=> ',' ( ( dotted_name )=> dotted_name )? argument )* )=> ( ( dotted_name )=>paramType= dotted_name )? paramName= argument ( ( ',' ( ( dotted_name )=> dotted_name )? argument )=> ',' ( ( dotted_name )=>paramType= dotted_name )? paramName= argument )* )? ')' body= curly_chunk ;
public void function() throws RecognitionException {
Token loc=null;
Token name=null;
@@ -896,16 +896,16 @@
String body = null;
-
- FunctionDescr f = null;
+
+ FunctionDescr f = null;
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:367:3: (loc= 'function' ( ( dotted_name )=>retType= dotted_name )? name= ID '(' ( ( ( ( dotted_name )=> dotted_name )? argument ( ( ',' ( ( dotted_name )=> dotted_name )? argument )=> ',' ( ( dotted_name )=> dotted_name )? argument )* )=> ( ( dotted_name )=>paramType= dotted_name )? paramName= argument ( ( ',' ( ( dotted_name )=> dotted_name )? argument )=> ',' ( ( dotted_name )=>paramType= dotted_name )? paramName= argument )* )? ')' body= curly_chunk )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:367:3: loc= 'function' ( ( dotted_name )=>retType= dotted_name )? name= ID '(' ( ( ( ( dotted_name )=> dotted_name )? argument ( ( ',' ( ( dotted_name )=> dotted_name )? argument )=> ',' ( ( dotted_name )=> dotted_name )? argument )* )=> ( ( dotted_name )=>paramType= dotted_name )? paramName= argument ( ( ',' ( ( dotted_name )=> dotted_name )? argument )=> ',' ( ( dotted_name )=>paramType= dotted_name )? paramName= argument )* )? ')' body= curly_chunk
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:367:3: (loc= 'function' ( ( dotted_name )=>retType= dotted_name )? name= ID '(' ( ( ( ( dotted_name )=> dotted_name )? argument ( ( ',' ( ( dotted_name )=> dotted_name )? argument )=> ',' ( ( dotted_name )=> dotted_name )? argument )* )=> ( ( dotted_name )=>paramType= dotted_name )? paramName= argument ( ( ',' ( ( dotted_name )=> dotted_name )? argument )=> ',' ( ( dotted_name )=>paramType= dotted_name )? paramName= argument )* )? ')' body= curly_chunk )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:367:3: loc= 'function' ( ( dotted_name )=>retType= dotted_name )? name= ID '(' ( ( ( ( dotted_name )=> dotted_name )? argument ( ( ',' ( ( dotted_name )=> dotted_name )? argument )=> ',' ( ( dotted_name )=> dotted_name )? argument )* )=> ( ( dotted_name )=>paramType= dotted_name )? paramName= argument ( ( ',' ( ( dotted_name )=> dotted_name )? argument )=> ',' ( ( dotted_name )=>paramType= dotted_name )? paramName= argument )* )? ')' body= curly_chunk
{
loc=(Token)input.LT(1);
match(input,32,FOLLOW_32_in_function366); if (failed) return ;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:367:18: ( ( dotted_name )=>retType= dotted_name )?
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:367:18: ( ( dotted_name )=>retType= dotted_name )?
int alt7=2;
int LA7_0 = input.LA(1);
if ( (LA7_0==ID) ) {
@@ -916,7 +916,7 @@
}
switch (alt7) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:367:19: ( dotted_name )=>retType= dotted_name
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:367:19: ( dotted_name )=>retType= dotted_name
{
pushFollow(FOLLOW_dotted_name_in_function371);
retType=dotted_name();
@@ -931,14 +931,14 @@
name=(Token)input.LT(1);
match(input,ID,FOLLOW_ID_in_function377); if (failed) return ;
if ( backtracking==0 ) {
-
- //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_function386); if (failed) return ;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:374:4: ( ( ( ( dotted_name )=> dotted_name )? argument ( ( ',' ( ( dotted_name )=> dotted_name )? argument )=> ',' ( ( dotted_name )=> dotted_name )? argument )* )=> ( ( dotted_name )=>paramType= dotted_name )? paramName= argument ( ( ',' ( ( dotted_name )=> dotted_name )? argument )=> ',' ( ( dotted_name )=>paramType= dotted_name )? paramName= argument )* )?
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:374:4: ( ( ( ( dotted_name )=> dotted_name )? argument ( ( ',' ( ( dotted_name )=> dotted_name )? argument )=> ',' ( ( dotted_name )=> dotted_name )? argument )* )=> ( ( dotted_name )=>paramType= dotted_name )? paramName= argument ( ( ',' ( ( dotted_name )=> dotted_name )? argument )=> ',' ( ( dotted_name )=>paramType= dotted_name )? paramName= argument )* )?
int alt11=2;
int LA11_0 = input.LA(1);
if ( (LA11_0==ID) ) {
@@ -946,14 +946,14 @@
}
switch (alt11) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:374:6: ( ( ( dotted_name )=> dotted_name )? argument ( ( ',' ( ( dotted_name )=> dotted_name )? argument )=> ',' ( ( dotted_name )=> dotted_name )? argument )* )=> ( ( dotted_name )=>paramType= dotted_name )? paramName= argument ( ( ',' ( ( dotted_name )=> dotted_name )? argument )=> ',' ( ( dotted_name )=>paramType= dotted_name )? paramName= argument )*
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:374:6: ( ( ( dotted_name )=> dotted_name )? argument ( ( ',' ( ( dotted_name )=> dotted_name )? argument )=> ',' ( ( dotted_name )=> dotted_name )? argument )* )=> ( ( dotted_name )=>paramType= dotted_name )? paramName= argument ( ( ',' ( ( dotted_name )=> dotted_name )? argument )=> ',' ( ( dotted_name )=>paramType= dotted_name )? paramName= argument )*
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:374:6: ( ( dotted_name )=>paramType= dotted_name )?
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:374:6: ( ( dotted_name )=>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:374:7: ( dotted_name )=>paramType= dotted_name
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:374:7: ( dotted_name )=>paramType= dotted_name
{
pushFollow(FOLLOW_dotted_name_in_function396);
paramType=dotted_name();
@@ -970,11 +970,11 @@
_fsp--;
if (failed) return ;
if ( backtracking==0 ) {
-
- f.addParameter( paramType, paramName );
+
+ f.addParameter( paramType, paramName );
}
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:378:5: ( ( ',' ( ( dotted_name )=> dotted_name )? argument )=> ',' ( ( dotted_name )=>paramType= dotted_name )? paramName= argument )*
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:378:5: ( ( ',' ( ( dotted_name )=> dotted_name )? argument )=> ',' ( ( dotted_name )=>paramType= dotted_name )? paramName= argument )*
loop10:
do {
int alt10=2;
@@ -986,15 +986,15 @@
switch (alt10) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:378:7: ( ',' ( ( dotted_name )=> dotted_name )? argument )=> ',' ( ( dotted_name )=>paramType= dotted_name )? paramName= argument
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:378:7: ( ',' ( ( dotted_name )=> dotted_name )? argument )=> ',' ( ( dotted_name )=>paramType= dotted_name )? paramName= argument
{
match(input,36,FOLLOW_36_in_function416); if (failed) return ;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:378:11: ( ( dotted_name )=>paramType= dotted_name )?
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:378:11: ( ( dotted_name )=>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:378:12: ( dotted_name )=>paramType= dotted_name
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:378:12: ( dotted_name )=>paramType= dotted_name
{
pushFollow(FOLLOW_dotted_name_in_function421);
paramType=dotted_name();
@@ -1011,8 +1011,8 @@
_fsp--;
if (failed) return ;
if ( backtracking==0 ) {
-
- f.addParameter( paramType, paramName );
+
+ f.addParameter( paramType, paramName );
}
@@ -1036,11 +1036,11 @@
_fsp--;
if (failed) return ;
if ( backtracking==0 ) {
-
- //strip out '{','}'
- f.setText( body.substring( 1, body.length()-1 ) );
-
- packageDescr.addFunction( f );
+
+ //strip out '{','}'
+ f.setText( body.substring( 1, body.length()-1 ) );
+
+ packageDescr.addFunction( f );
}
@@ -1059,7 +1059,7 @@
// $ANTLR start query
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:396:1: query returns [QueryDescr query] : loc= 'query' queryName= word ( normal_lhs_block[lhs] ) 'end' ;
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:396:1: query returns [QueryDescr query] : loc= 'query' queryName= word ( normal_lhs_block[lhs] ) 'end' ;
public QueryDescr query() throws RecognitionException {
QueryDescr query = null;
@@ -1067,13 +1067,13 @@
String queryName = null;
-
- query = null;
- AndDescr lhs = null;
+
+ query = null;
+ AndDescr lhs = 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'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:402:3: (loc= 'query' queryName= word ( normal_lhs_block[lhs] ) 'end' )
+ // /home/michael/projects/jboss-rules/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,37,FOLLOW_37_in_query488); if (failed) return query;
@@ -1082,15 +1082,15 @@
_fsp--;
if (failed) return query;
if ( backtracking==0 ) {
-
- query = new QueryDescr( queryName, null );
- query.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
- 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() );
+ 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]
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:409:3: ( normal_lhs_block[lhs] )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:411:4: normal_lhs_block[lhs]
{
pushFollow(FOLLOW_normal_lhs_block_in_query506);
normal_lhs_block(lhs);
@@ -1116,7 +1116,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 ( ( template_slot )=>slot= template_slot )+ 'end' opt_semicolon ;
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:418:1: template returns [FactTemplateDescr template] : loc= 'template' templateName= ID opt_semicolon ( ( template_slot )=>slot= template_slot )+ 'end' opt_semicolon ;
public FactTemplateDescr template() throws RecognitionException {
FactTemplateDescr template = null;
@@ -1125,12 +1125,12 @@
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 ( ( template_slot )=>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 ( ( template_slot )=>slot= template_slot )+ 'end' opt_semicolon
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:423:3: (loc= 'template' templateName= ID opt_semicolon ( ( template_slot )=>slot= template_slot )+ 'end' opt_semicolon )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:423:3: loc= 'template' templateName= ID opt_semicolon ( ( template_slot )=>slot= template_slot )+ 'end' opt_semicolon
{
loc=(Token)input.LT(1);
match(input,38,FOLLOW_38_in_template547); if (failed) return template;
@@ -1141,12 +1141,12 @@
_fsp--;
if (failed) return template;
if ( backtracking==0 ) {
-
- 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: ( ( template_slot )=>slot= template_slot )+
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:428:3: ( ( template_slot )=>slot= template_slot )+
int cnt12=0;
loop12:
do {
@@ -1159,15 +1159,15 @@
switch (alt12) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:429:4: ( template_slot )=>slot= template_slot
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:429:4: ( template_slot )=>slot= template_slot
{
pushFollow(FOLLOW_template_slot_in_template568);
slot=template_slot();
_fsp--;
if (failed) return template;
if ( backtracking==0 ) {
-
- template.addFieldTemplate(slot);
+
+ template.addFieldTemplate(slot);
}
@@ -1205,7 +1205,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 ;
+ // /home/michael/projects/jboss-rules/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;
@@ -1213,12 +1213,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
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:443:4: (fieldType= dotted_name name= ID opt_semicolon )
+ // /home/michael/projects/jboss-rules/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_slot617);
fieldType=dotted_name();
@@ -1231,11 +1231,11 @@
_fsp--;
if (failed) return field;
if ( backtracking==0 ) {
-
-
-
- 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() );
}
@@ -1254,7 +1254,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] ( ( WHEN ( ( ':' )=> ':' )? ( normal_lhs_block[lhs] ) )=>loc= WHEN ( ( ':' )=> ':' )? ( normal_lhs_block[lhs] ) )? rhs_chunk[rule] ;
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:452:1: rule returns [RuleDescr rule] : loc= RULE ruleName= word rule_attributes[rule] ( ( WHEN ( ( ':' )=> ':' )? ( normal_lhs_block[lhs] ) )=>loc= WHEN ( ( ':' )=> ':' )? ( normal_lhs_block[lhs] ) )? rhs_chunk[rule] ;
public RuleDescr rule() throws RecognitionException {
RuleDescr rule = null;
@@ -1262,14 +1262,14 @@
String ruleName = null;
-
- rule = null;
- String consequence = "";
- AndDescr lhs = null;
+
+ rule = null;
+ String consequence = "";
+ AndDescr lhs = null;
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:459:3: (loc= RULE ruleName= word rule_attributes[rule] ( ( WHEN ( ( ':' )=> ':' )? ( normal_lhs_block[lhs] ) )=>loc= WHEN ( ( ':' )=> ':' )? ( normal_lhs_block[lhs] ) )? rhs_chunk[rule] )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:459:3: loc= RULE ruleName= word rule_attributes[rule] ( ( WHEN ( ( ':' )=> ':' )? ( normal_lhs_block[lhs] ) )=>loc= WHEN ( ( ':' )=> ':' )? ( normal_lhs_block[lhs] ) )? rhs_chunk[rule]
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:459:3: (loc= RULE ruleName= word rule_attributes[rule] ( ( WHEN ( ( ':' )=> ':' )? ( normal_lhs_block[lhs] ) )=>loc= WHEN ( ( ':' )=> ':' )? ( normal_lhs_block[lhs] ) )? rhs_chunk[rule] )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:459:3: loc= RULE ruleName= word rule_attributes[rule] ( ( WHEN ( ( ':' )=> ':' )? ( normal_lhs_block[lhs] ) )=>loc= WHEN ( ( ':' )=> ':' )? ( normal_lhs_block[lhs] ) )? rhs_chunk[rule]
{
loc=(Token)input.LT(1);
match(input,RULE,FOLLOW_RULE_in_rule654); if (failed) return rule;
@@ -1278,17 +1278,17 @@
_fsp--;
if (failed) return rule;
if ( backtracking==0 ) {
-
- 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_rule667);
rule_attributes(rule);
_fsp--;
if (failed) return rule;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:466:3: ( ( WHEN ( ( ':' )=> ':' )? ( normal_lhs_block[lhs] ) )=>loc= WHEN ( ( ':' )=> ':' )? ( normal_lhs_block[lhs] ) )?
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:466:3: ( ( WHEN ( ( ':' )=> ':' )? ( normal_lhs_block[lhs] ) )=>loc= WHEN ( ( ':' )=> ':' )? ( normal_lhs_block[lhs] ) )?
int alt14=2;
int LA14_0 = input.LA(1);
if ( (LA14_0==WHEN) ) {
@@ -1296,11 +1296,11 @@
}
switch (alt14) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:466:5: ( WHEN ( ( ':' )=> ':' )? ( normal_lhs_block[lhs] ) )=>loc= WHEN ( ( ':' )=> ':' )? ( normal_lhs_block[lhs] )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:466:5: ( WHEN ( ( ':' )=> ':' )? ( normal_lhs_block[lhs] ) )=>loc= WHEN ( ( ':' )=> ':' )? ( normal_lhs_block[lhs] )
{
loc=(Token)input.LT(1);
match(input,WHEN,FOLLOW_WHEN_in_rule676); if (failed) return rule;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:466:14: ( ( ':' )=> ':' )?
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:466:14: ( ( ':' )=> ':' )?
int alt13=2;
int LA13_0 = input.LA(1);
if ( (LA13_0==39) ) {
@@ -1308,7 +1308,7 @@
}
switch (alt13) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:0:0: ( ':' )=> ':'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:0:0: ( ':' )=> ':'
{
match(input,39,FOLLOW_39_in_rule678); if (failed) return rule;
@@ -1318,13 +1318,13 @@
}
if ( backtracking==0 ) {
-
- lhs = new AndDescr(); rule.setLhs( lhs );
- lhs.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+
+ 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:471:4: ( normal_lhs_block[lhs] )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:473:5: normal_lhs_block[lhs]
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:471:4: ( normal_lhs_block[lhs] )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:473:5: normal_lhs_block[lhs]
{
pushFollow(FOLLOW_normal_lhs_block_in_rule696);
normal_lhs_block(lhs);
@@ -1359,16 +1359,16 @@
// $ANTLR start rule_attributes
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:482:1: rule_attributes[RuleDescr rule] : ( ( 'attributes' ':' )=> 'attributes' ':' )? ( ( ( ( ',' )=> ',' )? rule_attribute )=> ( ( ',' )=> ',' )? a= rule_attribute )* ;
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:482:1: rule_attributes[RuleDescr rule] : ( ( 'attributes' ':' )=> 'attributes' ':' )? ( ( ( ( ',' )=> ',' )? rule_attribute )=> ( ( ',' )=> ',' )? 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:484:4: ( ( ( 'attributes' ':' )=> 'attributes' ':' )? ( ( ( ( ',' )=> ',' )? rule_attribute )=> ( ( ',' )=> ',' )? a= rule_attribute )* )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:484:4: ( ( 'attributes' ':' )=> 'attributes' ':' )? ( ( ( ( ',' )=> ',' )? rule_attribute )=> ( ( ',' )=> ',' )? a= rule_attribute )*
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:484:4: ( ( ( 'attributes' ':' )=> 'attributes' ':' )? ( ( ( ( ',' )=> ',' )? rule_attribute )=> ( ( ',' )=> ',' )? a= rule_attribute )* )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:484:4: ( ( 'attributes' ':' )=> 'attributes' ':' )? ( ( ( ( ',' )=> ',' )? rule_attribute )=> ( ( ',' )=> ',' )? a= rule_attribute )*
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:484:4: ( ( 'attributes' ':' )=> 'attributes' ':' )?
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:484:4: ( ( 'attributes' ':' )=> 'attributes' ':' )?
int alt15=2;
int LA15_0 = input.LA(1);
if ( (LA15_0==40) ) {
@@ -1376,7 +1376,7 @@
}
switch (alt15) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:484:5: ( 'attributes' ':' )=> 'attributes' ':'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:484:5: ( 'attributes' ':' )=> 'attributes' ':'
{
match(input,40,FOLLOW_40_in_rule_attributes738); if (failed) return ;
match(input,39,FOLLOW_39_in_rule_attributes740); if (failed) return ;
@@ -1386,21 +1386,21 @@
}
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:485:4: ( ( ( ( ',' )=> ',' )? rule_attribute )=> ( ( ',' )=> ',' )? a= rule_attribute )*
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:485:4: ( ( ( ( ',' )=> ',' )? rule_attribute )=> ( ( ',' )=> ',' )? a= rule_attribute )*
loop17:
do {
int alt17=2;
int LA17_0 = input.LA(1);
- if ( (LA17_0==36||(LA17_0>=41 && LA17_0<=46)) ) {
+ if ( (LA17_0==36||(LA17_0>=41 && LA17_0<=49)) ) {
alt17=1;
}
switch (alt17) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:485:6: ( ( ( ',' )=> ',' )? rule_attribute )=> ( ( ',' )=> ',' )? a= rule_attribute
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:485:6: ( ( ( ',' )=> ',' )? rule_attribute )=> ( ( ',' )=> ',' )? a= rule_attribute
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:485:6: ( ( ',' )=> ',' )?
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:485:6: ( ( ',' )=> ',' )?
int alt16=2;
int LA16_0 = input.LA(1);
if ( (LA16_0==36) ) {
@@ -1408,7 +1408,7 @@
}
switch (alt16) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:0:0: ( ',' )=> ','
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:0:0: ( ',' )=> ','
{
match(input,36,FOLLOW_36_in_rule_attributes749); if (failed) return ;
@@ -1422,8 +1422,8 @@
_fsp--;
if (failed) return ;
if ( backtracking==0 ) {
-
- rule.addAttribute( a );
+
+ rule.addAttribute( a );
}
@@ -1451,49 +1451,58 @@
// $ANTLR start rule_attribute
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:494:1: rule_attribute returns [AttributeDescr d] : ( ( salience )=>a= salience | ( no_loop )=>a= no_loop | ( agenda_group )=>a= agenda_group | ( duration )=>a= duration | ( activation_group )=>a= activation_group | a= auto_focus );
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:494:1: rule_attribute returns [AttributeDescr d] : ( ( salience )=>a= salience | ( no_loop )=>a= no_loop | ( agenda_group )=>a= agenda_group | ( duration )=>a= duration | ( activation_group )=>a= activation_group | ( auto_focus )=>a= auto_focus | ( date_effective )=>a= date_effective | ( date_expires )=>a= date_expires | a= enabled );
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:499:4: ( ( salience )=>a= salience | ( no_loop )=>a= no_loop | ( agenda_group )=>a= agenda_group | ( duration )=>a= duration | ( activation_group )=>a= activation_group | a= auto_focus )
- int alt18=6;
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:499:4: ( ( salience )=>a= salience | ( no_loop )=>a= no_loop | ( agenda_group )=>a= agenda_group | ( duration )=>a= duration | ( activation_group )=>a= activation_group | ( auto_focus )=>a= auto_focus | ( date_effective )=>a= date_effective | ( date_expires )=>a= date_expires | a= enabled )
+ int alt18=9;
switch ( input.LA(1) ) {
- case 41:
+ case 44:
alt18=1;
break;
- case 42:
+ case 45:
alt18=2;
break;
- case 45:
+ case 48:
alt18=3;
break;
- case 46:
+ case 49:
alt18=4;
break;
- case 44:
+ case 47:
alt18=5;
break;
- case 43:
+ case 46:
alt18=6;
break;
+ case 41:
+ alt18=7;
+ break;
+ case 42:
+ alt18=8;
+ break;
+ case 43:
+ alt18=9;
+ break;
default:
if (backtracking>0) {failed=true; return d;}
NoViableAltException nvae =
- new NoViableAltException("494:1: rule_attribute returns [AttributeDescr d] : ( ( salience )=>a= salience | ( no_loop )=>a= no_loop | ( agenda_group )=>a= agenda_group | ( duration )=>a= duration | ( activation_group )=>a= activation_group | a= auto_focus );", 18, 0, input);
+ new NoViableAltException("494:1: rule_attribute returns [AttributeDescr d] : ( ( salience )=>a= salience | ( no_loop )=>a= no_loop | ( agenda_group )=>a= agenda_group | ( duration )=>a= duration | ( activation_group )=>a= activation_group | ( auto_focus )=>a= auto_focus | ( date_effective )=>a= date_effective | ( date_expires )=>a= date_expires | a= enabled );", 18, 0, input);
throw nvae;
}
switch (alt18) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:499:4: ( salience )=>a= salience
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:499:4: ( salience )=>a= salience
{
pushFollow(FOLLOW_salience_in_rule_attribute795);
a=salience();
@@ -1506,7 +1515,7 @@
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:500:5: ( no_loop )=>a= no_loop
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:500:5: ( no_loop )=>a= no_loop
{
pushFollow(FOLLOW_no_loop_in_rule_attribute805);
a=no_loop();
@@ -1519,7 +1528,7 @@
}
break;
case 3 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:501:5: ( agenda_group )=>a= agenda_group
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:501:5: ( agenda_group )=>a= agenda_group
{
pushFollow(FOLLOW_agenda_group_in_rule_attribute816);
a=agenda_group();
@@ -1532,7 +1541,7 @@
}
break;
case 4 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:502:5: ( duration )=>a= duration
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:502:5: ( duration )=>a= duration
{
pushFollow(FOLLOW_duration_in_rule_attribute829);
a=duration();
@@ -1545,7 +1554,7 @@
}
break;
case 5 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:503:5: ( activation_group )=>a= activation_group
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:503:5: ( activation_group )=>a= activation_group
{
pushFollow(FOLLOW_activation_group_in_rule_attribute843);
a=activation_group();
@@ -1558,7 +1567,7 @@
}
break;
case 6 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:504:5: a= auto_focus
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:504:5: ( auto_focus )=>a= auto_focus
{
pushFollow(FOLLOW_auto_focus_in_rule_attribute854);
a=auto_focus();
@@ -1570,7 +1579,46 @@
}
break;
+ case 7 :
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:505:29: ( date_effective )=>a= date_effective
+ {
+ pushFollow(FOLLOW_date_effective_in_rule_attribute889);
+ a=date_effective();
+ _fsp--;
+ if (failed) return d;
+ if ( backtracking==0 ) {
+ d = a;
+ }
+ }
+ break;
+ case 8 :
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:506:5: ( date_expires )=>a= date_expires
+ {
+ pushFollow(FOLLOW_date_expires_in_rule_attribute899);
+ a=date_expires();
+ _fsp--;
+ if (failed) return d;
+ if ( backtracking==0 ) {
+ d = a;
+ }
+
+ }
+ break;
+ case 9 :
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:507:29: a= enabled
+ {
+ pushFollow(FOLLOW_enabled_in_rule_attribute933);
+ a=enabled();
+ _fsp--;
+ if (failed) return d;
+ if ( backtracking==0 ) {
+ d=a;
+ }
+
+ }
+ break;
+
}
}
catch (RecognitionException re) {
@@ -1584,33 +1632,157 @@
// $ANTLR end rule_attribute
+ // $ANTLR start date_effective
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:511:1: date_effective returns [AttributeDescr d] : loc= 'date-effective' val= STRING ;
+ public AttributeDescr date_effective() throws RecognitionException {
+ AttributeDescr d = null;
+
+ Token loc=null;
+ Token val=null;
+
+
+ d = null;
+
+ try {
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:516:3: (loc= 'date-effective' val= STRING )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:516:3: loc= 'date-effective' val= STRING
+ {
+ loc=(Token)input.LT(1);
+ match(input,41,FOLLOW_41_in_date_effective965); if (failed) return d;
+ val=(Token)input.LT(1);
+ match(input,STRING,FOLLOW_STRING_in_date_effective969); if (failed) return d;
+ if ( backtracking==0 ) {
+
+ d = new AttributeDescr( "date-effective", getString( val ) );
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+
+ }
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return d;
+ }
+ // $ANTLR end date_effective
+
+
+ // $ANTLR start date_expires
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:524:1: date_expires returns [AttributeDescr d] : loc= 'date-expires' val= STRING ;
+ public AttributeDescr date_expires() throws RecognitionException {
+ AttributeDescr d = null;
+
+ Token loc=null;
+ Token val=null;
+
+
+ d = null;
+
+ try {
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:529:3: (loc= 'date-expires' val= STRING )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:529:3: loc= 'date-expires' val= STRING
+ {
+ loc=(Token)input.LT(1);
+ match(input,42,FOLLOW_42_in_date_expires1000); if (failed) return d;
+ val=(Token)input.LT(1);
+ match(input,STRING,FOLLOW_STRING_in_date_expires1004); if (failed) return d;
+ if ( backtracking==0 ) {
+
+ d = new AttributeDescr( "date-expires", getString( val ) );
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+
+ }
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return d;
+ }
+ // $ANTLR end date_expires
+
+
+ // $ANTLR start enabled
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:538:1: enabled returns [AttributeDescr d] : loc= 'enabled' t= BOOL opt_semicolon ;
+ public AttributeDescr enabled() throws RecognitionException {
+ AttributeDescr d = null;
+
+ Token loc=null;
+ Token t=null;
+
+
+ d = null;
+
+ try {
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:543:4: (loc= 'enabled' t= BOOL opt_semicolon )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:543:4: loc= 'enabled' t= BOOL opt_semicolon
+ {
+ loc=(Token)input.LT(1);
+ match(input,43,FOLLOW_43_in_enabled1037); if (failed) return d;
+ t=(Token)input.LT(1);
+ match(input,BOOL,FOLLOW_BOOL_in_enabled1041); if (failed) return d;
+ pushFollow(FOLLOW_opt_semicolon_in_enabled1043);
+ opt_semicolon();
+ _fsp--;
+ if (failed) return d;
+ if ( backtracking==0 ) {
+
+ d = new AttributeDescr( "enabled", t.getText() );
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+
+ }
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return d;
+ }
+ // $ANTLR end enabled
+
+
// $ANTLR start salience
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:509:1: salience returns [AttributeDescr d ] : loc= 'salience' i= INT opt_semicolon ;
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:554: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:514:3: (loc= 'salience' i= INT opt_semicolon )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:514:3: loc= 'salience' i= INT opt_semicolon
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:559:3: (loc= 'salience' i= INT opt_semicolon )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:559:3: loc= 'salience' i= INT opt_semicolon
{
loc=(Token)input.LT(1);
- match(input,41,FOLLOW_41_in_salience888); if (failed) return d;
+ match(input,44,FOLLOW_44_in_salience1085); if (failed) return d;
i=(Token)input.LT(1);
- match(input,INT,FOLLOW_INT_in_salience892); if (failed) return d;
- pushFollow(FOLLOW_opt_semicolon_in_salience894);
+ match(input,INT,FOLLOW_INT_in_salience1089); if (failed) return d;
+ pushFollow(FOLLOW_opt_semicolon_in_salience1091);
opt_semicolon();
_fsp--;
if (failed) return d;
if ( backtracking==0 ) {
-
- 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() );
}
@@ -1629,32 +1801,32 @@
// $ANTLR start no_loop
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:521:1: no_loop returns [AttributeDescr d] : ( ( ( 'no-loop' opt_semicolon ) )=> (loc= 'no-loop' opt_semicolon ) | (loc= 'no-loop' t= BOOL opt_semicolon ) );
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:566:1: no_loop returns [AttributeDescr d] : ( ( ( 'no-loop' opt_semicolon ) )=> (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:526:3: ( ( ( 'no-loop' opt_semicolon ) )=> (loc= 'no-loop' opt_semicolon ) | (loc= 'no-loop' t= BOOL opt_semicolon ) )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:571:3: ( ( ( 'no-loop' opt_semicolon ) )=> (loc= 'no-loop' opt_semicolon ) | (loc= 'no-loop' t= BOOL opt_semicolon ) )
int alt19=2;
int LA19_0 = input.LA(1);
- if ( (LA19_0==42) ) {
+ if ( (LA19_0==45) ) {
int LA19_1 = input.LA(2);
if ( (LA19_1==BOOL) ) {
alt19=2;
}
- else if ( (LA19_1==EOF||LA19_1==WHEN||LA19_1==THEN||LA19_1==29||LA19_1==36||(LA19_1>=41 && LA19_1<=46)) ) {
+ else if ( (LA19_1==EOF||LA19_1==WHEN||LA19_1==THEN||LA19_1==29||LA19_1==36||(LA19_1>=41 && LA19_1<=49)) ) {
alt19=1;
}
else {
if (backtracking>0) {failed=true; return d;}
NoViableAltException nvae =
- new NoViableAltException("521:1: no_loop returns [AttributeDescr d] : ( ( ( 'no-loop' opt_semicolon ) )=> (loc= 'no-loop' opt_semicolon ) | (loc= 'no-loop' t= BOOL opt_semicolon ) );", 19, 1, input);
+ new NoViableAltException("566:1: no_loop returns [AttributeDescr d] : ( ( ( 'no-loop' opt_semicolon ) )=> (loc= 'no-loop' opt_semicolon ) | (loc= 'no-loop' t= BOOL opt_semicolon ) );", 19, 1, input);
throw nvae;
}
@@ -1662,27 +1834,27 @@
else {
if (backtracking>0) {failed=true; return d;}
NoViableAltException nvae =
- new NoViableAltException("521:1: no_loop returns [AttributeDescr d] : ( ( ( 'no-loop' opt_semicolon ) )=> (loc= 'no-loop' opt_semicolon ) | (loc= 'no-loop' t= BOOL opt_semicolon ) );", 19, 0, input);
+ new NoViableAltException("566:1: no_loop returns [AttributeDescr d] : ( ( ( 'no-loop' opt_semicolon ) )=> (loc= 'no-loop' opt_semicolon ) | (loc= 'no-loop' t= BOOL opt_semicolon ) );", 19, 0, input);
throw nvae;
}
switch (alt19) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:526:3: ( ( 'no-loop' opt_semicolon ) )=> (loc= 'no-loop' opt_semicolon )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:571:3: ( ( 'no-loop' opt_semicolon ) )=> (loc= 'no-loop' opt_semicolon )
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:526:3: (loc= 'no-loop' opt_semicolon )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:527:4: loc= 'no-loop' opt_semicolon
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:571:3: (loc= 'no-loop' opt_semicolon )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:572:4: loc= 'no-loop' opt_semicolon
{
loc=(Token)input.LT(1);
- match(input,42,FOLLOW_42_in_no_loop929); if (failed) return d;
- pushFollow(FOLLOW_opt_semicolon_in_no_loop931);
+ match(input,45,FOLLOW_45_in_no_loop1126); if (failed) return d;
+ pushFollow(FOLLOW_opt_semicolon_in_no_loop1128);
opt_semicolon();
_fsp--;
if (failed) return d;
if ( backtracking==0 ) {
-
- 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() );
}
@@ -1692,23 +1864,23 @@
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:534:3: (loc= 'no-loop' t= BOOL opt_semicolon )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:579:3: (loc= 'no-loop' t= BOOL opt_semicolon )
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:534:3: (loc= 'no-loop' t= BOOL opt_semicolon )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:535:4: loc= 'no-loop' t= BOOL opt_semicolon
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:579:3: (loc= 'no-loop' t= BOOL opt_semicolon )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:580:4: loc= 'no-loop' t= BOOL opt_semicolon
{
loc=(Token)input.LT(1);
- match(input,42,FOLLOW_42_in_no_loop956); if (failed) return d;
+ match(input,45,FOLLOW_45_in_no_loop1153); if (failed) return d;
t=(Token)input.LT(1);
- match(input,BOOL,FOLLOW_BOOL_in_no_loop960); if (failed) return d;
- pushFollow(FOLLOW_opt_semicolon_in_no_loop962);
+ match(input,BOOL,FOLLOW_BOOL_in_no_loop1157); if (failed) return d;
+ pushFollow(FOLLOW_opt_semicolon_in_no_loop1159);
opt_semicolon();
_fsp--;
if (failed) return d;
if ( backtracking==0 ) {
-
- 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() );
}
@@ -1732,32 +1904,32 @@
// $ANTLR start auto_focus
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:545:1: auto_focus returns [AttributeDescr d] : ( ( ( 'auto-focus' opt_semicolon ) )=> (loc= 'auto-focus' opt_semicolon ) | (loc= 'auto-focus' t= BOOL opt_semicolon ) );
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:590:1: auto_focus returns [AttributeDescr d] : ( ( ( 'auto-focus' opt_semicolon ) )=> (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:550:3: ( ( ( 'auto-focus' opt_semicolon ) )=> (loc= 'auto-focus' opt_semicolon ) | (loc= 'auto-focus' t= BOOL opt_semicolon ) )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:595:3: ( ( ( 'auto-focus' opt_semicolon ) )=> (loc= 'auto-focus' opt_semicolon ) | (loc= 'auto-focus' t= BOOL opt_semicolon ) )
int alt20=2;
int LA20_0 = input.LA(1);
- if ( (LA20_0==43) ) {
+ if ( (LA20_0==46) ) {
int LA20_1 = input.LA(2);
if ( (LA20_1==BOOL) ) {
alt20=2;
}
- else if ( (LA20_1==EOF||LA20_1==WHEN||LA20_1==THEN||LA20_1==29||LA20_1==36||(LA20_1>=41 && LA20_1<=46)) ) {
+ else if ( (LA20_1==EOF||LA20_1==WHEN||LA20_1==THEN||LA20_1==29||LA20_1==36||(LA20_1>=41 && LA20_1<=49)) ) {
alt20=1;
}
else {
if (backtracking>0) {failed=true; return d;}
NoViableAltException nvae =
- new NoViableAltException("545:1: auto_focus returns [AttributeDescr d] : ( ( ( 'auto-focus' opt_semicolon ) )=> (loc= 'auto-focus' opt_semicolon ) | (loc= 'auto-focus' t= BOOL opt_semicolon ) );", 20, 1, input);
+ new NoViableAltException("590:1: auto_focus returns [AttributeDescr d] : ( ( ( 'auto-focus' opt_semicolon ) )=> (loc= 'auto-focus' opt_semicolon ) | (loc= 'auto-focus' t= BOOL opt_semicolon ) );", 20, 1, input);
throw nvae;
}
@@ -1765,27 +1937,27 @@
else {
if (backtracking>0) {failed=true; return d;}
NoViableAltException nvae =
- new NoViableAltException("545:1: auto_focus returns [AttributeDescr d] : ( ( ( 'auto-focus' opt_semicolon ) )=> (loc= 'auto-focus' opt_semicolon ) | (loc= 'auto-focus' t= BOOL opt_semicolon ) );", 20, 0, input);
+ new NoViableAltException("590:1: auto_focus returns [AttributeDescr d] : ( ( ( 'auto-focus' opt_semicolon ) )=> (loc= 'auto-focus' opt_semicolon ) | (loc= 'auto-focus' t= BOOL opt_semicolon ) );", 20, 0, input);
throw nvae;
}
switch (alt20) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:550:3: ( ( 'auto-focus' opt_semicolon ) )=> (loc= 'auto-focus' opt_semicolon )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:595:3: ( ( 'auto-focus' opt_semicolon ) )=> (loc= 'auto-focus' opt_semicolon )
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:550:3: (loc= 'auto-focus' opt_semicolon )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:551:4: loc= 'auto-focus' opt_semicolon
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:595:3: (loc= 'auto-focus' opt_semicolon )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:596:4: loc= 'auto-focus' opt_semicolon
{
loc=(Token)input.LT(1);
- match(input,43,FOLLOW_43_in_auto_focus1008); if (failed) return d;
- pushFollow(FOLLOW_opt_semicolon_in_auto_focus1010);
+ match(input,46,FOLLOW_46_in_auto_focus1205); if (failed) return d;
+ pushFollow(FOLLOW_opt_semicolon_in_auto_focus1207);
opt_semicolon();
_fsp--;
if (failed) return d;
if ( backtracking==0 ) {
-
- 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() );
}
@@ -1795,23 +1967,23 @@
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:558:3: (loc= 'auto-focus' t= BOOL opt_semicolon )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:603:3: (loc= 'auto-focus' t= BOOL opt_semicolon )
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:558:3: (loc= 'auto-focus' t= BOOL opt_semicolon )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:559:4: loc= 'auto-focus' t= BOOL opt_semicolon
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:603:3: (loc= 'auto-focus' t= BOOL opt_semicolon )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:604:4: loc= 'auto-focus' t= BOOL opt_semicolon
{
loc=(Token)input.LT(1);
- match(input,43,FOLLOW_43_in_auto_focus1035); if (failed) return d;
+ match(input,46,FOLLOW_46_in_auto_focus1232); if (failed) return d;
t=(Token)input.LT(1);
- match(input,BOOL,FOLLOW_BOOL_in_auto_focus1039); if (failed) return d;
- pushFollow(FOLLOW_opt_semicolon_in_auto_focus1041);
+ match(input,BOOL,FOLLOW_BOOL_in_auto_focus1236); if (failed) return d;
+ pushFollow(FOLLOW_opt_semicolon_in_auto_focus1238);
opt_semicolon();
_fsp--;
if (failed) return d;
if ( backtracking==0 ) {
-
- 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() );
}
@@ -1835,32 +2007,32 @@
// $ANTLR start activation_group
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:569:1: activation_group returns [AttributeDescr d] : loc= 'activation-group' name= STRING opt_semicolon ;
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:614: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:574:3: (loc= 'activation-group' name= STRING opt_semicolon )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:574:3: loc= 'activation-group' name= STRING opt_semicolon
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:619:3: (loc= 'activation-group' name= STRING opt_semicolon )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:619:3: loc= 'activation-group' name= STRING opt_semicolon
{
loc=(Token)input.LT(1);
- match(input,44,FOLLOW_44_in_activation_group1083); if (failed) return d;
+ match(input,47,FOLLOW_47_in_activation_group1280); if (failed) return d;
name=(Token)input.LT(1);
- match(input,STRING,FOLLOW_STRING_in_activation_group1087); if (failed) return d;
- pushFollow(FOLLOW_opt_semicolon_in_activation_group1089);
+ match(input,STRING,FOLLOW_STRING_in_activation_group1284); if (failed) return d;
+ pushFollow(FOLLOW_opt_semicolon_in_activation_group1286);
opt_semicolon();
_fsp--;
if (failed) return d;
if ( backtracking==0 ) {
-
- 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() );
}
@@ -1879,32 +2051,32 @@
// $ANTLR start agenda_group
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:581:1: agenda_group returns [AttributeDescr d] : loc= 'agenda-group' name= STRING opt_semicolon ;
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:626: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:586:3: (loc= 'agenda-group' name= STRING opt_semicolon )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:586:3: loc= 'agenda-group' name= STRING opt_semicolon
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:631:3: (loc= 'agenda-group' name= STRING opt_semicolon )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:631:3: loc= 'agenda-group' name= STRING opt_semicolon
{
loc=(Token)input.LT(1);
- match(input,45,FOLLOW_45_in_agenda_group1118); if (failed) return d;
+ match(input,48,FOLLOW_48_in_agenda_group1315); if (failed) return d;
name=(Token)input.LT(1);
- match(input,STRING,FOLLOW_STRING_in_agenda_group1122); if (failed) return d;
- pushFollow(FOLLOW_opt_semicolon_in_agenda_group1124);
+ match(input,STRING,FOLLOW_STRING_in_agenda_group1319); if (failed) return d;
+ pushFollow(FOLLOW_opt_semicolon_in_agenda_group1321);
opt_semicolon();
_fsp--;
if (failed) return d;
if ( backtracking==0 ) {
-
- 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() );
}
@@ -1923,28 +2095,28 @@
// $ANTLR start duration
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:594:1: duration returns [AttributeDescr d] : loc= 'duration' i= INT ;
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:639: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:599:3: (loc= 'duration' i= INT )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:599:3: loc= 'duration' i= INT
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:644:3: (loc= 'duration' i= INT )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:644:3: loc= 'duration' i= INT
{
loc=(Token)input.LT(1);
- match(input,46,FOLLOW_46_in_duration1156); if (failed) return d;
+ match(input,49,FOLLOW_49_in_duration1353); if (failed) return d;
i=(Token)input.LT(1);
- match(input,INT,FOLLOW_INT_in_duration1160); if (failed) return d;
+ match(input,INT,FOLLOW_INT_in_duration1357); if (failed) return d;
if ( backtracking==0 ) {
-
- 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() );
}
@@ -1963,30 +2135,30 @@
// $ANTLR start normal_lhs_block
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:607:1: normal_lhs_block[AndDescr descrs] : ( ( lhs )=>d= lhs )* ;
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:652:1: normal_lhs_block[AndDescr descrs] : ( ( lhs )=>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:609:3: ( ( ( lhs )=>d= lhs )* )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:609:3: ( ( lhs )=>d= lhs )*
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:654:3: ( ( ( lhs )=>d= lhs )* )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:654:3: ( ( lhs )=>d= lhs )*
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:609:3: ( ( lhs )=>d= lhs )*
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:654:3: ( ( lhs )=>d= lhs )*
loop21:
do {
int alt21=2;
int LA21_0 = input.LA(1);
- if ( (LA21_0==ID||LA21_0==LEFT_PAREN||(LA21_0>=70 && LA21_0<=72)) ) {
+ if ( (LA21_0==ID||LA21_0==LEFT_PAREN||(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:609:5: ( lhs )=>d= lhs
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:654:5: ( lhs )=>d= lhs
{
- pushFollow(FOLLOW_lhs_in_normal_lhs_block1186);
+ pushFollow(FOLLOW_lhs_in_normal_lhs_block1383);
d=lhs();
_fsp--;
if (failed) return ;
@@ -2018,21 +2190,21 @@
// $ANTLR start lhs
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:663:1: lhs returns [BaseDescr d] : l= lhs_or ;
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:708: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:667:4: (l= lhs_or )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:667:4: l= lhs_or
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:712:4: (l= lhs_or )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:712:4: l= lhs_or
{
- pushFollow(FOLLOW_lhs_or_in_lhs1224);
+ pushFollow(FOLLOW_lhs_or_in_lhs1421);
l=lhs_or();
_fsp--;
if (failed) return d;
@@ -2055,18 +2227,18 @@
// $ANTLR start lhs_column
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:671:1: lhs_column returns [BaseDescr d] : ( ( fact_binding )=>f= fact_binding | f= fact );
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:716:1: lhs_column returns [BaseDescr d] : ( ( fact_binding )=>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:675:4: ( ( fact_binding )=>f= fact_binding | f= fact )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:720:4: ( ( fact_binding )=>f= fact_binding | f= fact )
int alt22=2;
int LA22_0 = input.LA(1);
if ( (LA22_0==ID) ) {
@@ -2080,7 +2252,7 @@
else {
if (backtracking>0) {failed=true; return d;}
NoViableAltException nvae =
- new NoViableAltException("671:1: lhs_column returns [BaseDescr d] : ( ( fact_binding )=>f= fact_binding | f= fact );", 22, 1, input);
+ new NoViableAltException("716:1: lhs_column returns [BaseDescr d] : ( ( fact_binding )=>f= fact_binding | f= fact );", 22, 1, input);
throw nvae;
}
@@ -2088,15 +2260,15 @@
else {
if (backtracking>0) {failed=true; return d;}
NoViableAltException nvae =
- new NoViableAltException("671:1: lhs_column returns [BaseDescr d] : ( ( fact_binding )=>f= fact_binding | f= fact );", 22, 0, input);
+ new NoViableAltException("716:1: lhs_column returns [BaseDescr d] : ( ( fact_binding )=>f= fact_binding | f= fact );", 22, 0, input);
throw nvae;
}
switch (alt22) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:675:4: ( fact_binding )=>f= fact_binding
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:720:4: ( fact_binding )=>f= fact_binding
{
- pushFollow(FOLLOW_fact_binding_in_lhs_column1252);
+ pushFollow(FOLLOW_fact_binding_in_lhs_column1449);
f=fact_binding();
_fsp--;
if (failed) return d;
@@ -2107,9 +2279,9 @@
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:676:4: f= fact
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:721:4: f= fact
{
- pushFollow(FOLLOW_fact_in_lhs_column1261);
+ pushFollow(FOLLOW_fact_in_lhs_column1458);
f=fact();
_fsp--;
if (failed) return d;
@@ -2134,30 +2306,30 @@
// $ANTLR start from_statement
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:679:1: from_statement returns [FromDescr d] : 'from' ds= from_source ;
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:724: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:684:2: ( 'from' ds= from_source )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:684:2: 'from' ds= from_source
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:729:2: ( 'from' ds= from_source )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:729:2: 'from' ds= from_source
{
- match(input,47,FOLLOW_47_in_from_statement1286); if (failed) return d;
- pushFollow(FOLLOW_from_source_in_from_statement1290);
+ match(input,50,FOLLOW_50_in_from_statement1483); if (failed) return d;
+ pushFollow(FOLLOW_from_source_in_from_statement1487);
ds=from_source();
_fsp--;
if (failed) return d;
if ( backtracking==0 ) {
-
- d.setDataSource(ds);
-
+
+ d.setDataSource(ds);
+
}
}
@@ -2175,7 +2347,7 @@
// $ANTLR start from_source
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:694:1: from_source returns [DeclarativeInvokerDescr ds] : ( ( ( ID paren_chunk ) )=> (functionName= ID args= paren_chunk ) | (var= ID ) ) ( ( expression_chain[ad] )=> expression_chain[ad] )? ;
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:739:1: from_source returns [DeclarativeInvokerDescr ds] : ( ( ( ID paren_chunk ) )=> (functionName= ID args= paren_chunk ) | (var= ID ) ) ( ( expression_chain[ad] )=> expression_chain[ad] )? ;
public DeclarativeInvokerDescr from_source() throws RecognitionException {
DeclarativeInvokerDescr ds = null;
@@ -2184,19 +2356,19 @@
String args = null;
-
- ds = null;
- AccessorDescr ad = null;
+
+ ds = null;
+ AccessorDescr ad = null;
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:700:3: ( ( ( ( ID paren_chunk ) )=> (functionName= ID args= paren_chunk ) | (var= ID ) ) ( ( expression_chain[ad] )=> expression_chain[ad] )? )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:700:3: ( ( ( ID paren_chunk ) )=> (functionName= ID args= paren_chunk ) | (var= ID ) ) ( ( expression_chain[ad] )=> expression_chain[ad] )?
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:745:3: ( ( ( ( ID paren_chunk ) )=> (functionName= ID args= paren_chunk ) | (var= ID ) ) ( ( expression_chain[ad] )=> expression_chain[ad] )? )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:745:3: ( ( ( ID paren_chunk ) )=> (functionName= ID args= paren_chunk ) | (var= ID ) ) ( ( expression_chain[ad] )=> expression_chain[ad] )?
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:700:3: ( ( ( ID paren_chunk ) )=> (functionName= ID args= paren_chunk ) | (var= ID ) )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:745:3: ( ( ( ID paren_chunk ) )=> (functionName= ID args= paren_chunk ) | (var= ID ) )
int alt23=2;
int LA23_0 = input.LA(1);
if ( (LA23_0==ID) ) {
- if ( (synpred32()) ) {
+ if ( (synpred35()) ) {
alt23=1;
}
else if ( (true) ) {
@@ -2205,7 +2377,7 @@
else {
if (backtracking>0) {failed=true; return ds;}
NoViableAltException nvae =
- new NoViableAltException("700:3: ( ( ( ID paren_chunk ) )=> (functionName= ID args= paren_chunk ) | (var= ID ) )", 23, 1, input);
+ new NoViableAltException("745:3: ( ( ( ID paren_chunk ) )=> (functionName= ID args= paren_chunk ) | (var= ID ) )", 23, 1, input);
throw nvae;
}
@@ -2213,32 +2385,32 @@
else {
if (backtracking>0) {failed=true; return ds;}
NoViableAltException nvae =
- new NoViableAltException("700:3: ( ( ( ID paren_chunk ) )=> (functionName= ID args= paren_chunk ) | (var= ID ) )", 23, 0, input);
+ new NoViableAltException("745:3: ( ( ( ID paren_chunk ) )=> (functionName= ID args= paren_chunk ) | (var= ID ) )", 23, 0, input);
throw nvae;
}
switch (alt23) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:700:4: ( ( ID paren_chunk ) )=> (functionName= ID args= paren_chunk )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:745:4: ( ( ID paren_chunk ) )=> (functionName= ID args= paren_chunk )
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:700:4: (functionName= ID args= paren_chunk )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:700:6: functionName= ID args= paren_chunk
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:745:4: (functionName= ID args= paren_chunk )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:745:6: functionName= ID args= paren_chunk
{
functionName=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_from_source1333); if (failed) return ds;
- pushFollow(FOLLOW_paren_chunk_in_from_source1337);
+ match(input,ID,FOLLOW_ID_in_from_source1530); if (failed) return ds;
+ pushFollow(FOLLOW_paren_chunk_in_from_source1534);
args=paren_chunk();
_fsp--;
if (failed) return ds;
if ( backtracking==0 ) {
-
- ad = new AccessorDescr();
- ad.setLocation( offset(functionName.getLine()), functionName.getCharPositionInLine() );
- ds = ad;
- FunctionCallDescr fc = new FunctionCallDescr(functionName.getText());
- fc.setLocation( offset(functionName.getLine()), functionName.getCharPositionInLine() );
- fc.setArguments(args);
- ad.addInvoker(fc);
+
+ ad = new AccessorDescr();
+ ad.setLocation( offset(functionName.getLine()), functionName.getCharPositionInLine() );
+ ds = ad;
+ FunctionCallDescr fc = new FunctionCallDescr(functionName.getText());
+ fc.setLocation( offset(functionName.getLine()), functionName.getCharPositionInLine() );
+ fc.setArguments(args);
+ ad.addInvoker(fc);
}
@@ -2248,18 +2420,18 @@
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:712:3: (var= ID )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:757:3: (var= ID )
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:712:3: (var= ID )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:712:7: var= ID
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:757:3: (var= ID )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:757:7: var= ID
{
var=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_from_source1370); if (failed) return ds;
+ match(input,ID,FOLLOW_ID_in_from_source1567); if (failed) return ds;
if ( backtracking==0 ) {
-
- ad = new AccessorDescr(var.getText());
- ad.setLocation( offset(var.getLine()), var.getCharPositionInLine() );
- ds = ad;
+
+ ad = new AccessorDescr(var.getText());
+ ad.setLocation( offset(var.getLine()), var.getCharPositionInLine() );
+ ds = ad;
}
@@ -2271,7 +2443,7 @@
}
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:720:3: ( ( expression_chain[ad] )=> expression_chain[ad] )?
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:765:3: ( ( expression_chain[ad] )=> expression_chain[ad] )?
int alt24=2;
int LA24_0 = input.LA(1);
if ( (LA24_0==33) ) {
@@ -2279,9 +2451,9 @@
}
switch (alt24) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:0:0: ( expression_chain[ad] )=> expression_chain[ad]
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:0:0: ( expression_chain[ad] )=> expression_chain[ad]
{
- pushFollow(FOLLOW_expression_chain_in_from_source1393);
+ pushFollow(FOLLOW_expression_chain_in_from_source1590);
expression_chain(ad);
_fsp--;
if (failed) return ds;
@@ -2307,7 +2479,7 @@
// $ANTLR start expression_chain
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:723:1: expression_chain[AccessorDescr as] : ( '.' field= ID ( ( LEFT_SQUARE )=>sqarg= square_chunk | ( LEFT_PAREN )=>paarg= paren_chunk )? ( ( expression_chain[as] )=> expression_chain[as] )? ) ;
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:768:1: expression_chain[AccessorDescr as] : ( '.' field= ID ( ( LEFT_SQUARE )=>sqarg= square_chunk | ( LEFT_PAREN )=>paarg= paren_chunk )? ( ( expression_chain[as] )=> expression_chain[as] )? ) ;
public void expression_chain(AccessorDescr as) throws RecognitionException {
Token field=null;
String sqarg = null;
@@ -2315,64 +2487,64 @@
String paarg = null;
-
- FieldAccessDescr fa = null;
- MethodAccessDescr ma = null;
+
+ FieldAccessDescr fa = null;
+ MethodAccessDescr ma = null;
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:729:2: ( ( '.' field= ID ( ( LEFT_SQUARE )=>sqarg= square_chunk | ( LEFT_PAREN )=>paarg= paren_chunk )? ( ( expression_chain[as] )=> expression_chain[as] )? ) )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:729:2: ( '.' field= ID ( ( LEFT_SQUARE )=>sqarg= square_chunk | ( LEFT_PAREN )=>paarg= paren_chunk )? ( ( expression_chain[as] )=> expression_chain[as] )? )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:774:2: ( ( '.' field= ID ( ( LEFT_SQUARE )=>sqarg= square_chunk | ( LEFT_PAREN )=>paarg= paren_chunk )? ( ( expression_chain[as] )=> expression_chain[as] )? ) )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:774:2: ( '.' field= ID ( ( LEFT_SQUARE )=>sqarg= square_chunk | ( LEFT_PAREN )=>paarg= paren_chunk )? ( ( expression_chain[as] )=> expression_chain[as] )? )
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:729:2: ( '.' field= ID ( ( LEFT_SQUARE )=>sqarg= square_chunk | ( LEFT_PAREN )=>paarg= paren_chunk )? ( ( expression_chain[as] )=> expression_chain[as] )? )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:729:4: '.' field= ID ( ( LEFT_SQUARE )=>sqarg= square_chunk | ( LEFT_PAREN )=>paarg= paren_chunk )? ( ( expression_chain[as] )=> expression_chain[as] )?
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:774:2: ( '.' field= ID ( ( LEFT_SQUARE )=>sqarg= square_chunk | ( LEFT_PAREN )=>paarg= paren_chunk )? ( ( expression_chain[as] )=> expression_chain[as] )? )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:774:4: '.' field= ID ( ( LEFT_SQUARE )=>sqarg= square_chunk | ( LEFT_PAREN )=>paarg= paren_chunk )? ( ( expression_chain[as] )=> expression_chain[as] )?
{
- match(input,33,FOLLOW_33_in_expression_chain1418); if (failed) return ;
+ match(input,33,FOLLOW_33_in_expression_chain1615); if (failed) return ;
field=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_expression_chain1422); if (failed) return ;
+ match(input,ID,FOLLOW_ID_in_expression_chain1619); if (failed) return ;
if ( backtracking==0 ) {
-
- fa = new FieldAccessDescr(field.getText());
- fa.setLocation( offset(field.getLine()), field.getCharPositionInLine() );
+
+ fa = new FieldAccessDescr(field.getText());
+ fa.setLocation( offset(field.getLine()), field.getCharPositionInLine() );
}
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:734:4: ( ( LEFT_SQUARE )=>sqarg= square_chunk | ( LEFT_PAREN )=>paarg= paren_chunk )?
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:779:4: ( ( LEFT_SQUARE )=>sqarg= square_chunk | ( LEFT_PAREN )=>paarg= paren_chunk )?
int alt25=3;
int LA25_0 = input.LA(1);
if ( (LA25_0==LEFT_SQUARE) ) {
alt25=1;
}
else if ( (LA25_0==LEFT_PAREN) ) {
- if ( (synpred35()) ) {
+ if ( (synpred38()) ) {
alt25=2;
}
}
switch (alt25) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:735:6: ( LEFT_SQUARE )=>sqarg= square_chunk
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:780:6: ( LEFT_SQUARE )=>sqarg= square_chunk
{
- pushFollow(FOLLOW_square_chunk_in_expression_chain1453);
+ pushFollow(FOLLOW_square_chunk_in_expression_chain1650);
sqarg=square_chunk();
_fsp--;
if (failed) return ;
if ( backtracking==0 ) {
-
- fa.setArgument( sqarg );
+
+ fa.setArgument( sqarg );
}
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:740:6: ( LEFT_PAREN )=>paarg= paren_chunk
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:785:6: ( LEFT_PAREN )=>paarg= paren_chunk
{
- pushFollow(FOLLOW_paren_chunk_in_expression_chain1486);
+ pushFollow(FOLLOW_paren_chunk_in_expression_chain1683);
paarg=paren_chunk();
_fsp--;
if (failed) return ;
if ( backtracking==0 ) {
-
- ma = new MethodAccessDescr( field.getText(), paarg );
- ma.setLocation( offset(field.getLine()), field.getCharPositionInLine() );
+
+ ma = new MethodAccessDescr( field.getText(), paarg );
+ ma.setLocation( offset(field.getLine()), field.getCharPositionInLine() );
}
@@ -2382,15 +2554,15 @@
}
if ( backtracking==0 ) {
-
- if( ma != null ) {
- as.addInvoker( ma );
- } else {
- as.addInvoker( fa );
- }
+
+ if( ma != null ) {
+ as.addInvoker( ma );
+ } else {
+ as.addInvoker( fa );
+ }
}
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:753:4: ( ( expression_chain[as] )=> expression_chain[as] )?
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:798:4: ( ( expression_chain[as] )=> expression_chain[as] )?
int alt26=2;
int LA26_0 = input.LA(1);
if ( (LA26_0==33) ) {
@@ -2398,9 +2570,9 @@
}
switch (alt26) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:0:0: ( expression_chain[as] )=> expression_chain[as]
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:0:0: ( expression_chain[as] )=> expression_chain[as]
{
- pushFollow(FOLLOW_expression_chain_in_expression_chain1506);
+ pushFollow(FOLLOW_expression_chain_in_expression_chain1703);
expression_chain(as);
_fsp--;
if (failed) return ;
@@ -2429,7 +2601,7 @@
// $ANTLR start accumulate_statement
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:757:1: accumulate_statement returns [AccumulateDescr d] : loc= 'from' 'accumulate' '(' column= lhs_column ',' 'init' text= paren_chunk ',' 'action' text= paren_chunk ',' 'result' text= paren_chunk ')' ;
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:802: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;
@@ -2439,63 +2611,63 @@
String text = null;
-
- d = factory.createAccumulate();
+
+ d = factory.createAccumulate();
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:762: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:762:10: loc= 'from' 'accumulate' '(' column= lhs_column ',' 'init' text= paren_chunk ',' 'action' text= paren_chunk ',' 'result' text= paren_chunk ')'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:807:10: (loc= 'from' 'accumulate' '(' column= lhs_column ',' 'init' text= paren_chunk ',' 'action' text= paren_chunk ',' 'result' text= paren_chunk ')' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:807: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,47,FOLLOW_47_in_accumulate_statement1547); if (failed) return d;
- match(input,48,FOLLOW_48_in_accumulate_statement1549); if (failed) return d;
+ match(input,50,FOLLOW_50_in_accumulate_statement1744); if (failed) return d;
+ match(input,51,FOLLOW_51_in_accumulate_statement1746); if (failed) return d;
if ( backtracking==0 ) {
-
- d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
}
- match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_accumulate_statement1559); if (failed) return d;
- pushFollow(FOLLOW_lhs_column_in_accumulate_statement1563);
+ match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_accumulate_statement1756); if (failed) return d;
+ pushFollow(FOLLOW_lhs_column_in_accumulate_statement1760);
column=lhs_column();
_fsp--;
if (failed) return d;
- match(input,36,FOLLOW_36_in_accumulate_statement1565); if (failed) return d;
+ match(input,36,FOLLOW_36_in_accumulate_statement1762); if (failed) return d;
if ( backtracking==0 ) {
-
- d.setSourceColumn( (ColumnDescr)column );
+
+ d.setSourceColumn( (ColumnDescr)column );
}
- match(input,49,FOLLOW_49_in_accumulate_statement1574); if (failed) return d;
- pushFollow(FOLLOW_paren_chunk_in_accumulate_statement1578);
+ match(input,52,FOLLOW_52_in_accumulate_statement1771); if (failed) return d;
+ pushFollow(FOLLOW_paren_chunk_in_accumulate_statement1775);
text=paren_chunk();
_fsp--;
if (failed) return d;
- match(input,36,FOLLOW_36_in_accumulate_statement1580); if (failed) return d;
+ match(input,36,FOLLOW_36_in_accumulate_statement1777); if (failed) return d;
if ( backtracking==0 ) {
-
- d.setInitCode( text.substring(1, text.length()-1) );
+
+ d.setInitCode( text.substring(1, text.length()-1) );
}
- match(input,50,FOLLOW_50_in_accumulate_statement1589); if (failed) return d;
- pushFollow(FOLLOW_paren_chunk_in_accumulate_statement1593);
+ match(input,53,FOLLOW_53_in_accumulate_statement1786); if (failed) return d;
+ pushFollow(FOLLOW_paren_chunk_in_accumulate_statement1790);
text=paren_chunk();
_fsp--;
if (failed) return d;
- match(input,36,FOLLOW_36_in_accumulate_statement1595); if (failed) return d;
+ match(input,36,FOLLOW_36_in_accumulate_statement1792); if (failed) return d;
if ( backtracking==0 ) {
-
- d.setActionCode( text.substring(1, text.length()-1) );
+
+ d.setActionCode( text.substring(1, text.length()-1) );
}
- match(input,51,FOLLOW_51_in_accumulate_statement1604); if (failed) return d;
- pushFollow(FOLLOW_paren_chunk_in_accumulate_statement1608);
+ match(input,54,FOLLOW_54_in_accumulate_statement1801); if (failed) return d;
+ pushFollow(FOLLOW_paren_chunk_in_accumulate_statement1805);
text=paren_chunk();
_fsp--;
if (failed) return d;
- match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_accumulate_statement1610); if (failed) return d;
+ match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_accumulate_statement1807); if (failed) return d;
if ( backtracking==0 ) {
-
- d.setResultCode( text.substring(1, text.length()-1) );
+
+ d.setResultCode( text.substring(1, text.length()-1) );
}
@@ -2514,7 +2686,7 @@
// $ANTLR start collect_statement
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:784:1: collect_statement returns [CollectDescr d] : loc= 'from' 'collect' '(' column= lhs_column ')' ;
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:829:1: collect_statement returns [CollectDescr d] : loc= 'from' 'collect' '(' column= lhs_column ')' ;
public CollectDescr collect_statement() throws RecognitionException {
CollectDescr d = null;
@@ -2522,30 +2694,30 @@
BaseDescr column = null;
-
- d = factory.createCollect();
+
+ d = factory.createCollect();
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:789:10: (loc= 'from' 'collect' '(' column= lhs_column ')' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:789:10: loc= 'from' 'collect' '(' column= lhs_column ')'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:834:10: (loc= 'from' 'collect' '(' column= lhs_column ')' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:834:10: loc= 'from' 'collect' '(' column= lhs_column ')'
{
loc=(Token)input.LT(1);
- match(input,47,FOLLOW_47_in_collect_statement1653); if (failed) return d;
- match(input,52,FOLLOW_52_in_collect_statement1655); if (failed) return d;
+ match(input,50,FOLLOW_50_in_collect_statement1850); if (failed) return d;
+ match(input,55,FOLLOW_55_in_collect_statement1852); if (failed) return d;
if ( backtracking==0 ) {
-
- d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
}
- match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_collect_statement1665); if (failed) return d;
- pushFollow(FOLLOW_lhs_column_in_collect_statement1669);
+ match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_collect_statement1862); if (failed) return d;
+ pushFollow(FOLLOW_lhs_column_in_collect_statement1866);
column=lhs_column();
_fsp--;
if (failed) return d;
- match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_collect_statement1671); if (failed) return d;
+ match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_collect_statement1868); if (failed) return d;
if ( backtracking==0 ) {
-
- d.setSourceColumn( (ColumnDescr)column );
+
+ d.setSourceColumn( (ColumnDescr)column );
}
@@ -2564,7 +2736,7 @@
// $ANTLR start fact_binding
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:870:1: fact_binding returns [BaseDescr d] : id= ID ':' fe= fact_expression[id.getText()] ;
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:915:1: fact_binding returns [BaseDescr d] : id= ID ':' fe= fact_expression[id.getText()] ;
public BaseDescr fact_binding() throws RecognitionException {
BaseDescr d = null;
@@ -2572,24 +2744,24 @@
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:876:4: (id= ID ':' fe= fact_expression[id.getText()] )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:876:4: id= ID ':' fe= fact_expression[id.getText()]
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:921:4: (id= ID ':' fe= fact_expression[id.getText()] )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:921:4: id= ID ':' fe= fact_expression[id.getText()]
{
id=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_fact_binding1706); if (failed) return d;
- match(input,39,FOLLOW_39_in_fact_binding1716); if (failed) return d;
- pushFollow(FOLLOW_fact_expression_in_fact_binding1720);
+ match(input,ID,FOLLOW_ID_in_fact_binding1903); if (failed) return d;
+ match(input,39,FOLLOW_39_in_fact_binding1913); if (failed) return d;
+ pushFollow(FOLLOW_fact_expression_in_fact_binding1917);
fe=fact_expression(id.getText());
_fsp--;
if (failed) return d;
if ( backtracking==0 ) {
-
- d=fe;
+
+ d=fe;
}
@@ -2608,7 +2780,7 @@
// $ANTLR start fact_expression
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:884:2: fact_expression[String id] returns [BaseDescr pd] : ( ( '(' fact_expression_in_paren[id] ')' )=> '(' fe= fact_expression_in_paren[id] ')' | f= fact );
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:929:2: fact_expression[String id] returns [BaseDescr pd] : ( ( '(' fact_expression_in_paren[id] ')' )=> '(' fe= fact_expression_in_paren[id] ')' | f= fact );
public BaseDescr fact_expression(String id) throws RecognitionException {
BaseDescr pd = null;
@@ -2617,12 +2789,12 @@
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:889:5: ( ( '(' fact_expression_in_paren[id] ')' )=> '(' fe= fact_expression_in_paren[id] ')' | f= fact )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:934:5: ( ( '(' fact_expression_in_paren[id] ')' )=> '(' fe= fact_expression_in_paren[id] ')' | f= fact )
int alt27=2;
int LA27_0 = input.LA(1);
if ( (LA27_0==LEFT_PAREN) ) {
@@ -2634,20 +2806,20 @@
else {
if (backtracking>0) {failed=true; return pd;}
NoViableAltException nvae =
- new NoViableAltException("884:2: fact_expression[String id] returns [BaseDescr pd] : ( ( '(' fact_expression_in_paren[id] ')' )=> '(' fe= fact_expression_in_paren[id] ')' | f= fact );", 27, 0, input);
+ new NoViableAltException("929:2: fact_expression[String id] returns [BaseDescr pd] : ( ( '(' fact_expression_in_paren[id] ')' )=> '(' fe= fact_expression_in_paren[id] ')' | f= fact );", 27, 0, input);
throw nvae;
}
switch (alt27) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:889:5: ( '(' fact_expression_in_paren[id] ')' )=> '(' fe= fact_expression_in_paren[id] ')'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:934:5: ( '(' fact_expression_in_paren[id] ')' )=> '(' fe= fact_expression_in_paren[id] ')'
{
- match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_fact_expression1752); if (failed) return pd;
- pushFollow(FOLLOW_fact_expression_in_paren_in_fact_expression1756);
+ match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_fact_expression1949); if (failed) return pd;
+ pushFollow(FOLLOW_fact_expression_in_paren_in_fact_expression1953);
fe=fact_expression_in_paren(id);
_fsp--;
if (failed) return pd;
- match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_fact_expression1759); if (failed) return pd;
+ match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_fact_expression1956); if (failed) return pd;
if ( backtracking==0 ) {
pd=fe;
}
@@ -2655,16 +2827,16 @@
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:890:6: f= fact
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:935:6: f= fact
{
- pushFollow(FOLLOW_fact_in_fact_expression1770);
+ pushFollow(FOLLOW_fact_in_fact_expression1967);
f=fact();
_fsp--;
if (failed) return pd;
if ( backtracking==0 ) {
-
- ((ColumnDescr)f).setIdentifier( id );
- pd = f;
+
+ ((ColumnDescr)f).setIdentifier( id );
+ pd = f;
}
@@ -2685,7 +2857,7 @@
// $ANTLR start fact_expression_in_paren
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:898:2: fact_expression_in_paren[String id] returns [BaseDescr pd] : ( ( '(' fact_expression_in_paren[id] ')' )=> '(' fe= fact_expression_in_paren[id] ')' | f= fact ( ( ('or'|'||') fact )=> ('or'|'||')f= fact )* );
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:943:2: fact_expression_in_paren[String id] returns [BaseDescr pd] : ( ( '(' fact_expression_in_paren[id] ')' )=> '(' fe= fact_expression_in_paren[id] ')' | f= fact ( ( ('or'|'||') fact )=> ('or'|'||')f= fact )* );
public BaseDescr fact_expression_in_paren(String id) throws RecognitionException {
BaseDescr pd = null;
@@ -2694,12 +2866,12 @@
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:903:5: ( ( '(' fact_expression_in_paren[id] ')' )=> '(' fe= fact_expression_in_paren[id] ')' | f= fact ( ( ('or'|'||') fact )=> ('or'|'||')f= fact )* )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:948:5: ( ( '(' fact_expression_in_paren[id] ')' )=> '(' fe= fact_expression_in_paren[id] ')' | f= fact ( ( ('or'|'||') fact )=> ('or'|'||')f= fact )* )
int alt29=2;
int LA29_0 = input.LA(1);
if ( (LA29_0==LEFT_PAREN) ) {
@@ -2711,20 +2883,20 @@
else {
if (backtracking>0) {failed=true; return pd;}
NoViableAltException nvae =
- new NoViableAltException("898:2: fact_expression_in_paren[String id] returns [BaseDescr pd] : ( ( '(' fact_expression_in_paren[id] ')' )=> '(' fe= fact_expression_in_paren[id] ')' | f= fact ( ( ('or'|'||') fact )=> ('or'|'||')f= fact )* );", 29, 0, input);
+ new NoViableAltException("943:2: fact_expression_in_paren[String id] returns [BaseDescr pd] : ( ( '(' fact_expression_in_paren[id] ')' )=> '(' fe= fact_expression_in_paren[id] ')' | f= fact ( ( ('or'|'||') fact )=> ('or'|'||')f= fact )* );", 29, 0, input);
throw nvae;
}
switch (alt29) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:903:5: ( '(' fact_expression_in_paren[id] ')' )=> '(' fe= fact_expression_in_paren[id] ')'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:948:5: ( '(' fact_expression_in_paren[id] ')' )=> '(' fe= fact_expression_in_paren[id] ')'
{
- match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_fact_expression_in_paren1801); if (failed) return pd;
- pushFollow(FOLLOW_fact_expression_in_paren_in_fact_expression_in_paren1805);
+ match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_fact_expression_in_paren1998); if (failed) return pd;
+ pushFollow(FOLLOW_fact_expression_in_paren_in_fact_expression_in_paren2002);
fe=fact_expression_in_paren(id);
_fsp--;
if (failed) return pd;
- match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_fact_expression_in_paren1807); if (failed) return pd;
+ match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_fact_expression_in_paren2004); if (failed) return pd;
if ( backtracking==0 ) {
pd=fe;
}
@@ -2732,33 +2904,33 @@
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:904:6: f= fact ( ( ('or'|'||') fact )=> ('or'|'||')f= fact )*
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:949:6: f= fact ( ( ('or'|'||') fact )=> ('or'|'||')f= fact )*
{
- pushFollow(FOLLOW_fact_in_fact_expression_in_paren1818);
+ pushFollow(FOLLOW_fact_in_fact_expression_in_paren2015);
f=fact();
_fsp--;
if (failed) return pd;
if ( backtracking==0 ) {
-
- ((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:909:4: ( ( ('or'|'||') fact )=> ('or'|'||')f= fact )*
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:954:4: ( ( ('or'|'||') fact )=> ('or'|'||')f= fact )*
loop28:
do {
int alt28=2;
int LA28_0 = input.LA(1);
- if ( ((LA28_0>=53 && LA28_0<=54)) ) {
+ if ( ((LA28_0>=56 && LA28_0<=57)) ) {
alt28=1;
}
switch (alt28) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:909:6: ( ('or'|'||') fact )=> ('or'|'||')f= fact
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:954:6: ( ('or'|'||') fact )=> ('or'|'||')f= fact
{
- if ( (input.LA(1)>=53 && input.LA(1)<=54) ) {
+ if ( (input.LA(1)>=56 && input.LA(1)<=57) ) {
input.consume();
errorRecovery=false;failed=false;
}
@@ -2766,26 +2938,26 @@
if (backtracking>0) {failed=true; return pd;}
MismatchedSetException mse =
new MismatchedSetException(null,input);
- recoverFromMismatchedSet(input,mse,FOLLOW_set_in_fact_expression_in_paren1831); throw mse;
+ recoverFromMismatchedSet(input,mse,FOLLOW_set_in_fact_expression_in_paren2028); throw mse;
}
if ( backtracking==0 ) {
- 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_paren1848);
+ pushFollow(FOLLOW_fact_in_fact_expression_in_paren2045);
f=fact();
_fsp--;
if (failed) return pd;
if ( backtracking==0 ) {
-
- ((ColumnDescr)f).setIdentifier( id );
- ((OrDescr)pd).addDescr( f );
+
+ ((ColumnDescr)f).setIdentifier( id );
+ ((OrDescr)pd).addDescr( f );
}
@@ -2815,7 +2987,7 @@
// $ANTLR start fact
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:925:1: fact returns [BaseDescr d] : id= dotted_name loc= '(' ( ( constraints )=>c= constraints )? endLoc= ')' ;
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:970:1: fact returns [BaseDescr d] : id= dotted_name loc= '(' ( ( constraints )=>c= constraints )? endLoc= ')' ;
public BaseDescr fact() throws RecognitionException {
BaseDescr d = null;
@@ -2826,30 +2998,30 @@
List c = null;
-
- d=null;
+
+ d=null;
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:929:5: (id= dotted_name loc= '(' ( ( constraints )=>c= constraints )? endLoc= ')' )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:929:5: id= dotted_name loc= '(' ( ( constraints )=>c= constraints )? endLoc= ')'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:974:5: (id= dotted_name loc= '(' ( ( constraints )=>c= constraints )? endLoc= ')' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:974:5: id= dotted_name loc= '(' ( ( constraints )=>c= constraints )? endLoc= ')'
{
- pushFollow(FOLLOW_dotted_name_in_fact1887);
+ pushFollow(FOLLOW_dotted_name_in_fact2084);
id=dotted_name();
_fsp--;
if (failed) return d;
if ( backtracking==0 ) {
-
- d = new ColumnDescr( id );
+
+ d = new ColumnDescr( id );
}
loc=(Token)input.LT(1);
- match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_fact1900); if (failed) return d;
+ match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_fact2097); if (failed) return d;
if ( backtracking==0 ) {
-
- d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
}
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:936:4: ( ( constraints )=>c= constraints )?
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:981:4: ( ( constraints )=>c= constraints )?
int alt30=2;
int LA30_0 = input.LA(1);
if ( (LA30_0==ID) ) {
@@ -2857,17 +3029,17 @@
}
switch (alt30) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:936:6: ( constraints )=>c= constraints
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:981:6: ( constraints )=>c= constraints
{
- pushFollow(FOLLOW_constraints_in_fact1912);
+ pushFollow(FOLLOW_constraints_in_fact2109);
c=constraints();
_fsp--;
if (failed) return d;
if ( backtracking==0 ) {
-
- 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() );
+ }
}
@@ -2877,10 +3049,10 @@
}
endLoc=(Token)input.LT(1);
- match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_fact1933); if (failed) return d;
+ match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_fact2130); if (failed) return d;
if ( backtracking==0 ) {
-
- d.setEndLocation( offset(endLoc.getLine()), endLoc.getCharPositionInLine() );
+
+ d.setEndLocation( offset(endLoc.getLine()), endLoc.getCharPositionInLine() );
}
@@ -2899,18 +3071,18 @@
// $ANTLR start constraints
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:950:1: constraints returns [List constraints] : ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) ( ( ',' ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) )=> ',' ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) )* ;
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:995:1: constraints returns [List constraints] : ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) ( ( ',' ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) )=> ',' ( ( constraint[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:954:4: ( ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) ( ( ',' ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) )=> ',' ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) )* )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:954:4: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) ( ( ',' ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) )=> ',' ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) )*
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:999:4: ( ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) ( ( ',' ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) )=> ',' ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) )* )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:999:4: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) ( ( ',' ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) )=> ',' ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) )*
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:954:4: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:999:4: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] )
int alt31=2;
int LA31_0 = input.LA(1);
if ( (LA31_0==ID) ) {
@@ -2919,16 +3091,16 @@
int LA31_2 = input.LA(3);
if ( (LA31_2==ID) ) {
int LA31_4 = input.LA(4);
- if ( (LA31_4==67) ) {
+ if ( (LA31_4==70) ) {
alt31=2;
}
- else if ( (LA31_4==EOF||LA31_4==RIGHT_PAREN||LA31_4==36||(LA31_4>=57 && LA31_4<=65)) ) {
+ else if ( (LA31_4==EOF||LA31_4==RIGHT_PAREN||LA31_4==36||(LA31_4>=60 && LA31_4<=68)) ) {
alt31=1;
}
else {
if (backtracking>0) {failed=true; return constraints;}
NoViableAltException nvae =
- new NoViableAltException("954:4: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] )", 31, 4, input);
+ new NoViableAltException("999:4: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] )", 31, 4, input);
throw nvae;
}
@@ -2936,18 +3108,18 @@
else {
if (backtracking>0) {failed=true; return constraints;}
NoViableAltException nvae =
- new NoViableAltException("954:4: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] )", 31, 2, input);
+ new NoViableAltException("999:4: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] )", 31, 2, input);
throw nvae;
}
}
- else if ( (LA31_1==EOF||LA31_1==RIGHT_PAREN||LA31_1==36||(LA31_1>=57 && LA31_1<=65)) ) {
+ else if ( (LA31_1==EOF||LA31_1==RIGHT_PAREN||LA31_1==36||(LA31_1>=60 && LA31_1<=68)) ) {
alt31=1;
}
else {
if (backtracking>0) {failed=true; return constraints;}
NoViableAltException nvae =
- new NoViableAltException("954:4: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] )", 31, 1, input);
+ new NoViableAltException("999:4: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] )", 31, 1, input);
throw nvae;
}
@@ -2955,15 +3127,15 @@
else {
if (backtracking>0) {failed=true; return constraints;}
NoViableAltException nvae =
- new NoViableAltException("954:4: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] )", 31, 0, input);
+ new NoViableAltException("999:4: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] )", 31, 0, input);
throw nvae;
}
switch (alt31) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:954:5: ( constraint[constraints] )=> constraint[constraints]
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:999:5: ( constraint[constraints] )=> constraint[constraints]
{
- pushFollow(FOLLOW_constraint_in_constraints1963);
+ pushFollow(FOLLOW_constraint_in_constraints2160);
constraint(constraints);
_fsp--;
if (failed) return constraints;
@@ -2971,9 +3143,9 @@
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:954:29: predicate[constraints]
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:999:29: predicate[constraints]
{
- pushFollow(FOLLOW_predicate_in_constraints1966);
+ pushFollow(FOLLOW_predicate_in_constraints2163);
predicate(constraints);
_fsp--;
if (failed) return constraints;
@@ -2983,7 +3155,7 @@
}
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:955:3: ( ( ',' ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) )=> ',' ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) )*
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1000:3: ( ( ',' ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) )=> ',' ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) )*
loop33:
do {
int alt33=2;
@@ -2995,10 +3167,10 @@
switch (alt33) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:955:5: ( ',' ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) )=> ',' ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1000:5: ( ',' ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) )=> ',' ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] )
{
- match(input,36,FOLLOW_36_in_constraints1974); if (failed) return constraints;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:955:9: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] )
+ match(input,36,FOLLOW_36_in_constraints2171); if (failed) return constraints;
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1000:9: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] )
int alt32=2;
int LA32_0 = input.LA(1);
if ( (LA32_0==ID) ) {
@@ -3007,16 +3179,16 @@
int LA32_2 = input.LA(3);
if ( (LA32_2==ID) ) {
int LA32_4 = input.LA(4);
- if ( (LA32_4==67) ) {
+ if ( (LA32_4==70) ) {
alt32=2;
}
- else if ( (LA32_4==EOF||LA32_4==RIGHT_PAREN||LA32_4==36||(LA32_4>=57 && LA32_4<=65)) ) {
+ else if ( (LA32_4==EOF||LA32_4==RIGHT_PAREN||LA32_4==36||(LA32_4>=60 && LA32_4<=68)) ) {
alt32=1;
}
else {
if (backtracking>0) {failed=true; return constraints;}
NoViableAltException nvae =
- new NoViableAltException("955:9: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] )", 32, 4, input);
+ new NoViableAltException("1000:9: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] )", 32, 4, input);
throw nvae;
}
@@ -3024,18 +3196,18 @@
else {
if (backtracking>0) {failed=true; return constraints;}
NoViableAltException nvae =
- new NoViableAltException("955:9: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] )", 32, 2, input);
+ new NoViableAltException("1000:9: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] )", 32, 2, input);
throw nvae;
}
}
- else if ( (LA32_1==EOF||LA32_1==RIGHT_PAREN||LA32_1==36||(LA32_1>=57 && LA32_1<=65)) ) {
+ else if ( (LA32_1==EOF||LA32_1==RIGHT_PAREN||LA32_1==36||(LA32_1>=60 && LA32_1<=68)) ) {
alt32=1;
}
else {
if (backtracking>0) {failed=true; return constraints;}
NoViableAltException nvae =
- new NoViableAltException("955:9: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] )", 32, 1, input);
+ new NoViableAltException("1000:9: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] )", 32, 1, input);
throw nvae;
}
@@ -3043,15 +3215,15 @@
else {
if (backtracking>0) {failed=true; return constraints;}
NoViableAltException nvae =
- new NoViableAltException("955:9: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] )", 32, 0, input);
+ new NoViableAltException("1000:9: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] )", 32, 0, input);
throw nvae;
}
switch (alt32) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:955:10: ( constraint[constraints] )=> constraint[constraints]
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1000:10: ( constraint[constraints] )=> constraint[constraints]
{
- pushFollow(FOLLOW_constraint_in_constraints1977);
+ pushFollow(FOLLOW_constraint_in_constraints2174);
constraint(constraints);
_fsp--;
if (failed) return constraints;
@@ -3059,9 +3231,9 @@
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:955:34: predicate[constraints]
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1000:34: predicate[constraints]
{
- pushFollow(FOLLOW_predicate_in_constraints1980);
+ pushFollow(FOLLOW_predicate_in_constraints2177);
predicate(constraints);
_fsp--;
if (failed) return constraints;
@@ -3096,7 +3268,7 @@
// $ANTLR start constraint
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:958:1: constraint[List constraints] : ( ( ID ':' )=>fb= ID ':' )? f= ID ( ( constraint_expression ( ( ('&'|'|') constraint_expression )=> ('&'|'|') constraint_expression )* )=>rd= constraint_expression ( ( ('&'|'|') constraint_expression )=>con= ('&'|'|')rd= constraint_expression )* )? ;
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1003:1: constraint[List constraints] : ( ( ID ':' )=>fb= ID ':' )? f= ID ( ( constraint_expression ( ( ('&'|'|') constraint_expression )=> ('&'|'|') constraint_expression )* )=>rd= constraint_expression ( ( ('&'|'|') constraint_expression )=>con= ('&'|'|')rd= constraint_expression )* )? ;
public void constraint(List constraints) throws RecognitionException {
Token fb=null;
Token f=null;
@@ -3104,15 +3276,15 @@
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:964:3: ( ( ( ID ':' )=>fb= ID ':' )? f= ID ( ( constraint_expression ( ( ('&'|'|') constraint_expression )=> ('&'|'|') constraint_expression )* )=>rd= constraint_expression ( ( ('&'|'|') constraint_expression )=>con= ('&'|'|')rd= constraint_expression )* )? )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:964:3: ( ( ID ':' )=>fb= ID ':' )? f= ID ( ( constraint_expression ( ( ('&'|'|') constraint_expression )=> ('&'|'|') constraint_expression )* )=>rd= constraint_expression ( ( ('&'|'|') constraint_expression )=>con= ('&'|'|')rd= constraint_expression )* )?
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1009:3: ( ( ( ID ':' )=>fb= ID ':' )? f= ID ( ( constraint_expression ( ( ('&'|'|') constraint_expression )=> ('&'|'|') constraint_expression )* )=>rd= constraint_expression ( ( ('&'|'|') constraint_expression )=>con= ('&'|'|')rd= constraint_expression )* )? )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1009:3: ( ( ID ':' )=>fb= ID ':' )? f= ID ( ( constraint_expression ( ( ('&'|'|') constraint_expression )=> ('&'|'|') constraint_expression )* )=>rd= constraint_expression ( ( ('&'|'|') constraint_expression )=>con= ('&'|'|')rd= constraint_expression )* )?
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:964:3: ( ( ID ':' )=>fb= ID ':' )?
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1009:3: ( ( ID ':' )=>fb= ID ':' )?
int alt34=2;
int LA34_0 = input.LA(1);
if ( (LA34_0==ID) ) {
@@ -3123,11 +3295,11 @@
}
switch (alt34) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:964:5: ( ID ':' )=>fb= ID ':'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1009:5: ( ID ':' )=>fb= ID ':'
{
fb=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_constraint2009); if (failed) return ;
- match(input,39,FOLLOW_39_in_constraint2011); if (failed) return ;
+ match(input,ID,FOLLOW_ID_in_constraint2206); if (failed) return ;
+ match(input,39,FOLLOW_39_in_constraint2208); if (failed) return ;
}
break;
@@ -3135,54 +3307,54 @@
}
f=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_constraint2021); if (failed) return ;
+ match(input,ID,FOLLOW_ID_in_constraint2218); if (failed) return ;
if ( backtracking==0 ) {
-
- 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() );
+
+ 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:975:3: ( ( constraint_expression ( ( ('&'|'|') constraint_expression )=> ('&'|'|') constraint_expression )* )=>rd= constraint_expression ( ( ('&'|'|') constraint_expression )=>con= ('&'|'|')rd= constraint_expression )* )?
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1020:3: ( ( constraint_expression ( ( ('&'|'|') constraint_expression )=> ('&'|'|') constraint_expression )* )=>rd= constraint_expression ( ( ('&'|'|') constraint_expression )=>con= ('&'|'|')rd= constraint_expression )* )?
int alt36=2;
int LA36_0 = input.LA(1);
- if ( ((LA36_0>=57 && LA36_0<=65)) ) {
+ if ( ((LA36_0>=60 && LA36_0<=68)) ) {
alt36=1;
}
switch (alt36) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:976:4: ( constraint_expression ( ( ('&'|'|') constraint_expression )=> ('&'|'|') constraint_expression )* )=>rd= constraint_expression ( ( ('&'|'|') constraint_expression )=>con= ('&'|'|')rd= constraint_expression )*
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1021:4: ( constraint_expression ( ( ('&'|'|') constraint_expression )=> ('&'|'|') constraint_expression )* )=>rd= constraint_expression ( ( ('&'|'|') constraint_expression )=>con= ('&'|'|')rd= constraint_expression )*
{
- pushFollow(FOLLOW_constraint_expression_in_constraint2037);
+ pushFollow(FOLLOW_constraint_expression_in_constraint2234);
rd=constraint_expression();
_fsp--;
if (failed) return ;
if ( backtracking==0 ) {
-
- 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:981:4: ( ( ('&'|'|') constraint_expression )=>con= ('&'|'|')rd= constraint_expression )*
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1026:4: ( ( ('&'|'|') constraint_expression )=>con= ('&'|'|')rd= constraint_expression )*
loop35:
do {
int alt35=2;
int LA35_0 = input.LA(1);
- if ( ((LA35_0>=55 && LA35_0<=56)) ) {
+ if ( ((LA35_0>=58 && LA35_0<=59)) ) {
alt35=1;
}
switch (alt35) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:982:5: ( ('&'|'|') constraint_expression )=>con= ('&'|'|')rd= constraint_expression
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1027:5: ( ('&'|'|') constraint_expression )=>con= ('&'|'|')rd= constraint_expression
{
con=(Token)input.LT(1);
- if ( (input.LA(1)>=55 && input.LA(1)<=56) ) {
+ if ( (input.LA(1)>=58 && input.LA(1)<=59) ) {
input.consume();
errorRecovery=false;failed=false;
}
@@ -3190,25 +3362,25 @@
if (backtracking>0) {failed=true; return ;}
MismatchedSetException mse =
new MismatchedSetException(null,input);
- recoverFromMismatchedSet(input,mse,FOLLOW_set_in_constraint2056); throw mse;
+ recoverFromMismatchedSet(input,mse,FOLLOW_set_in_constraint2253); throw mse;
}
if ( backtracking==0 ) {
-
- 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_constraint2073);
+ pushFollow(FOLLOW_constraint_expression_in_constraint2270);
rd=constraint_expression();
_fsp--;
if (failed) return ;
if ( backtracking==0 ) {
-
- fc.addRestriction(rd);
+
+ fc.addRestriction(rd);
}
@@ -3242,7 +3414,7 @@
// $ANTLR start constraint_expression
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:998:1: constraint_expression returns [RestrictionDescr rd] : op= ('=='|'>'|'>='|'<'|'<='|'!='|'contains'|'matches'|'excludes') ( ( ID )=>bvc= ID | ( enum_constraint )=>lc= enum_constraint | ( literal_constraint )=>lc= literal_constraint | rvc= retval_constraint ) ;
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1043:1: constraint_expression returns [RestrictionDescr rd] : op= ('=='|'>'|'>='|'<'|'<='|'!='|'contains'|'matches'|'excludes') ( ( ID )=>bvc= ID | ( enum_constraint )=>lc= enum_constraint | ( literal_constraint )=>lc= literal_constraint | rvc= retval_constraint ) ;
public RestrictionDescr constraint_expression() throws RecognitionException {
RestrictionDescr rd = null;
@@ -3254,11 +3426,11 @@
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1000:3: (op= ('=='|'>'|'>='|'<'|'<='|'!='|'contains'|'matches'|'excludes') ( ( ID )=>bvc= ID | ( enum_constraint )=>lc= enum_constraint | ( literal_constraint )=>lc= literal_constraint | rvc= retval_constraint ) )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1000:3: op= ('=='|'>'|'>='|'<'|'<='|'!='|'contains'|'matches'|'excludes') ( ( ID )=>bvc= ID | ( enum_constraint )=>lc= enum_constraint | ( literal_constraint )=>lc= literal_constraint | rvc= retval_constraint )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1045:3: (op= ('=='|'>'|'>='|'<'|'<='|'!='|'contains'|'matches'|'excludes') ( ( ID )=>bvc= ID | ( enum_constraint )=>lc= enum_constraint | ( literal_constraint )=>lc= literal_constraint | rvc= retval_constraint ) )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1045:3: op= ('=='|'>'|'>='|'<'|'<='|'!='|'contains'|'matches'|'excludes') ( ( ID )=>bvc= ID | ( enum_constraint )=>lc= enum_constraint | ( literal_constraint )=>lc= literal_constraint | rvc= retval_constraint )
{
op=(Token)input.LT(1);
- if ( (input.LA(1)>=57 && input.LA(1)<=65) ) {
+ if ( (input.LA(1)>=60 && input.LA(1)<=68) ) {
input.consume();
errorRecovery=false;failed=false;
}
@@ -3266,10 +3438,10 @@
if (backtracking>0) {failed=true; return rd;}
MismatchedSetException mse =
new MismatchedSetException(null,input);
- recoverFromMismatchedSet(input,mse,FOLLOW_set_in_constraint_expression2125); throw mse;
+ recoverFromMismatchedSet(input,mse,FOLLOW_set_in_constraint_expression2322); throw mse;
}
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1010:3: ( ( ID )=>bvc= ID | ( enum_constraint )=>lc= enum_constraint | ( literal_constraint )=>lc= literal_constraint | rvc= retval_constraint )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1055:3: ( ( ID )=>bvc= ID | ( enum_constraint )=>lc= enum_constraint | ( literal_constraint )=>lc= literal_constraint | rvc= retval_constraint )
int alt37=4;
switch ( input.LA(1) ) {
case ID:
@@ -3277,22 +3449,22 @@
if ( (LA37_1==33) ) {
alt37=2;
}
- else if ( (LA37_1==EOF||LA37_1==RIGHT_PAREN||LA37_1==36||(LA37_1>=55 && LA37_1<=56)) ) {
+ else if ( (LA37_1==EOF||LA37_1==RIGHT_PAREN||LA37_1==36||(LA37_1>=58 && LA37_1<=59)) ) {
alt37=1;
}
else {
if (backtracking>0) {failed=true; return rd;}
NoViableAltException nvae =
- new NoViableAltException("1010:3: ( ( ID )=>bvc= ID | ( enum_constraint )=>lc= enum_constraint | ( literal_constraint )=>lc= literal_constraint | rvc= retval_constraint )", 37, 1, input);
+ new NoViableAltException("1055:3: ( ( ID )=>bvc= ID | ( enum_constraint )=>lc= enum_constraint | ( literal_constraint )=>lc= literal_constraint | rvc= retval_constraint )", 37, 1, input);
throw nvae;
}
break;
+ case STRING:
+ case BOOL:
case INT:
- case BOOL:
- case STRING:
case FLOAT:
- case 66:
+ case 69:
alt37=3;
break;
case LEFT_PAREN:
@@ -3301,65 +3473,65 @@
default:
if (backtracking>0) {failed=true; return rd;}
NoViableAltException nvae =
- new NoViableAltException("1010:3: ( ( ID )=>bvc= ID | ( enum_constraint )=>lc= enum_constraint | ( literal_constraint )=>lc= literal_constraint | rvc= retval_constraint )", 37, 0, input);
+ new NoViableAltException("1055:3: ( ( ID )=>bvc= ID | ( enum_constraint )=>lc= enum_constraint | ( literal_constraint )=>lc= literal_constraint | rvc= retval_constraint )", 37, 0, input);
throw nvae;
}
switch (alt37) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1010:5: ( ID )=>bvc= ID
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1055:5: ( ID )=>bvc= ID
{
bvc=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_constraint_expression2192); if (failed) return rd;
+ match(input,ID,FOLLOW_ID_in_constraint_expression2389); if (failed) return rd;
if ( backtracking==0 ) {
-
- rd = new VariableRestrictionDescr(op.getText(), bvc.getText());
+
+ rd = new VariableRestrictionDescr(op.getText(), bvc.getText());
}
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1015:4: ( enum_constraint )=>lc= enum_constraint
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1060:4: ( enum_constraint )=>lc= enum_constraint
{
- pushFollow(FOLLOW_enum_constraint_in_constraint_expression2208);
+ pushFollow(FOLLOW_enum_constraint_in_constraint_expression2405);
lc=enum_constraint();
_fsp--;
if (failed) return rd;
if ( backtracking==0 ) {
-
- 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:1020:4: ( literal_constraint )=>lc= literal_constraint
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1065:4: ( literal_constraint )=>lc= literal_constraint
{
- pushFollow(FOLLOW_literal_constraint_in_constraint_expression2231);
+ pushFollow(FOLLOW_literal_constraint_in_constraint_expression2428);
lc=literal_constraint();
_fsp--;
if (failed) return rd;
if ( backtracking==0 ) {
-
- 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:1024:5: rvc= retval_constraint
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1069:5: rvc= retval_constraint
{
- pushFollow(FOLLOW_retval_constraint_in_constraint_expression2245);
+ pushFollow(FOLLOW_retval_constraint_in_constraint_expression2442);
rvc=retval_constraint();
_fsp--;
if (failed) return rd;
if ( backtracking==0 ) {
-
- rd = new ReturnValueRestrictionDescr(op.getText(), rvc);
+
+ rd = new ReturnValueRestrictionDescr(op.getText(), rvc);
}
@@ -3384,20 +3556,20 @@
// $ANTLR start literal_constraint
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1031:1: literal_constraint returns [String text] : ( ( STRING )=>t= STRING | ( INT )=>t= INT | ( FLOAT )=>t= FLOAT | ( BOOL )=>t= BOOL | t= 'null' ) ;
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1076:1: literal_constraint returns [String text] : ( ( STRING )=>t= STRING | ( INT )=>t= INT | ( FLOAT )=>t= FLOAT | ( BOOL )=>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:1035:4: ( ( ( STRING )=>t= STRING | ( INT )=>t= INT | ( FLOAT )=>t= FLOAT | ( BOOL )=>t= BOOL | t= 'null' ) )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1035:4: ( ( STRING )=>t= STRING | ( INT )=>t= INT | ( FLOAT )=>t= FLOAT | ( BOOL )=>t= BOOL | t= 'null' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1080:4: ( ( ( STRING )=>t= STRING | ( INT )=>t= INT | ( FLOAT )=>t= FLOAT | ( BOOL )=>t= BOOL | t= 'null' ) )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1080:4: ( ( STRING )=>t= STRING | ( INT )=>t= INT | ( FLOAT )=>t= FLOAT | ( BOOL )=>t= BOOL | t= 'null' )
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1035:4: ( ( STRING )=>t= STRING | ( INT )=>t= INT | ( FLOAT )=>t= FLOAT | ( BOOL )=>t= BOOL | t= 'null' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1080:4: ( ( STRING )=>t= STRING | ( INT )=>t= INT | ( FLOAT )=>t= FLOAT | ( BOOL )=>t= BOOL | t= 'null' )
int alt38=5;
switch ( input.LA(1) ) {
case STRING:
@@ -3412,23 +3584,23 @@
case BOOL:
alt38=4;
break;
- case 66:
+ case 69:
alt38=5;
break;
default:
if (backtracking>0) {failed=true; return text;}
NoViableAltException nvae =
- new NoViableAltException("1035:4: ( ( STRING )=>t= STRING | ( INT )=>t= INT | ( FLOAT )=>t= FLOAT | ( BOOL )=>t= BOOL | t= 'null' )", 38, 0, input);
+ new NoViableAltException("1080:4: ( ( STRING )=>t= STRING | ( INT )=>t= INT | ( FLOAT )=>t= FLOAT | ( BOOL )=>t= BOOL | t= 'null' )", 38, 0, input);
throw nvae;
}
switch (alt38) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1035:6: ( STRING )=>t= STRING
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1080:6: ( STRING )=>t= STRING
{
t=(Token)input.LT(1);
- match(input,STRING,FOLLOW_STRING_in_literal_constraint2284); if (failed) return text;
+ match(input,STRING,FOLLOW_STRING_in_literal_constraint2481); if (failed) return text;
if ( backtracking==0 ) {
text = getString( t );
}
@@ -3436,10 +3608,10 @@
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1036:5: ( INT )=>t= INT
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1081:5: ( INT )=>t= INT
{
t=(Token)input.LT(1);
- match(input,INT,FOLLOW_INT_in_literal_constraint2295); if (failed) return text;
+ match(input,INT,FOLLOW_INT_in_literal_constraint2492); if (failed) return text;
if ( backtracking==0 ) {
text = t.getText();
}
@@ -3447,10 +3619,10 @@
}
break;
case 3 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1037:5: ( FLOAT )=>t= FLOAT
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1082:5: ( FLOAT )=>t= FLOAT
{
t=(Token)input.LT(1);
- match(input,FLOAT,FOLLOW_FLOAT_in_literal_constraint2308); if (failed) return text;
+ match(input,FLOAT,FOLLOW_FLOAT_in_literal_constraint2505); if (failed) return text;
if ( backtracking==0 ) {
text = t.getText();
}
@@ -3458,10 +3630,10 @@
}
break;
case 4 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1038:5: ( BOOL )=>t= BOOL
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1083:5: ( BOOL )=>t= BOOL
{
t=(Token)input.LT(1);
- match(input,BOOL,FOLLOW_BOOL_in_literal_constraint2319); if (failed) return text;
+ match(input,BOOL,FOLLOW_BOOL_in_literal_constraint2516); if (failed) return text;
if ( backtracking==0 ) {
text = t.getText();
}
@@ -3469,10 +3641,10 @@
}
break;
case 5 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1039:5: t= 'null'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1084:5: t= 'null'
{
t=(Token)input.LT(1);
- match(input,66,FOLLOW_66_in_literal_constraint2331); if (failed) return text;
+ match(input,69,FOLLOW_69_in_literal_constraint2528); if (failed) return text;
if ( backtracking==0 ) {
text = null;
}
@@ -3498,28 +3670,28 @@
// $ANTLR start enum_constraint
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1043:1: enum_constraint returns [String text] : (cls= ID '.' en= ID ) ;
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1088: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:1047:4: ( (cls= ID '.' en= ID ) )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1047:4: (cls= ID '.' en= ID )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1092:4: ( (cls= ID '.' en= ID ) )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1092:4: (cls= ID '.' en= ID )
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1047:4: (cls= ID '.' en= ID )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1047:5: cls= ID '.' en= ID
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1092:4: (cls= ID '.' en= ID )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1092:5: cls= ID '.' en= ID
{
cls=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_enum_constraint2362); if (failed) return text;
- match(input,33,FOLLOW_33_in_enum_constraint2364); if (failed) return text;
+ match(input,ID,FOLLOW_ID_in_enum_constraint2559); if (failed) return text;
+ match(input,33,FOLLOW_33_in_enum_constraint2561); if (failed) return text;
en=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_enum_constraint2368); if (failed) return text;
+ match(input,ID,FOLLOW_ID_in_enum_constraint2565); if (failed) return text;
}
@@ -3542,7 +3714,7 @@
// $ANTLR start predicate
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1051:1: predicate[List constraints] : decl= ID ':' field= ID '->' text= paren_chunk ;
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1096:1: predicate[List constraints] : decl= ID ':' field= ID '->' text= paren_chunk ;
public void predicate(List constraints) throws RecognitionException {
Token decl=null;
Token field=null;
@@ -3550,24 +3722,24 @@
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1053:3: (decl= ID ':' field= ID '->' text= paren_chunk )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1053:3: decl= ID ':' field= ID '->' text= paren_chunk
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1098:3: (decl= ID ':' field= ID '->' text= paren_chunk )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1098:3: decl= ID ':' field= ID '->' text= paren_chunk
{
decl=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_predicate2390); if (failed) return ;
- match(input,39,FOLLOW_39_in_predicate2392); if (failed) return ;
+ match(input,ID,FOLLOW_ID_in_predicate2587); if (failed) return ;
+ match(input,39,FOLLOW_39_in_predicate2589); if (failed) return ;
field=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_predicate2396); if (failed) return ;
- match(input,67,FOLLOW_67_in_predicate2398); if (failed) return ;
- pushFollow(FOLLOW_paren_chunk_in_predicate2402);
+ match(input,ID,FOLLOW_ID_in_predicate2593); if (failed) return ;
+ match(input,70,FOLLOW_70_in_predicate2595); if (failed) return ;
+ pushFollow(FOLLOW_paren_chunk_in_predicate2599);
text=paren_chunk();
_fsp--;
if (failed) return ;
if ( backtracking==0 ) {
-
- 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 );
}
@@ -3586,7 +3758,7 @@
// $ANTLR start paren_chunk
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1061:1: paren_chunk returns [String text] : loc= LEFT_PAREN ( (~ (LEFT_PAREN|RIGHT_PAREN))=>~ (LEFT_PAREN|RIGHT_PAREN) | ( paren_chunk )=>chunk= paren_chunk )* loc= RIGHT_PAREN ;
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1106:1: paren_chunk returns [String text] : loc= LEFT_PAREN ( (~ (LEFT_PAREN|RIGHT_PAREN))=>~ (LEFT_PAREN|RIGHT_PAREN) | ( paren_chunk )=>chunk= paren_chunk )* loc= RIGHT_PAREN ;
public String paren_chunk() throws RecognitionException {
String text = null;
@@ -3594,35 +3766,35 @@
String chunk = null;
-
- StringBuffer buf = null;
- Integer channel = null;
+
+ StringBuffer buf = null;
+ Integer channel = null;
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1067:10: (loc= LEFT_PAREN ( (~ (LEFT_PAREN|RIGHT_PAREN))=>~ (LEFT_PAREN|RIGHT_PAREN) | ( paren_chunk )=>chunk= paren_chunk )* loc= RIGHT_PAREN )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1067:10: loc= LEFT_PAREN ( (~ (LEFT_PAREN|RIGHT_PAREN))=>~ (LEFT_PAREN|RIGHT_PAREN) | ( paren_chunk )=>chunk= paren_chunk )* loc= RIGHT_PAREN
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1112:10: (loc= LEFT_PAREN ( (~ (LEFT_PAREN|RIGHT_PAREN))=>~ (LEFT_PAREN|RIGHT_PAREN) | ( paren_chunk )=>chunk= paren_chunk )* loc= RIGHT_PAREN )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1112:10: loc= LEFT_PAREN ( (~ (LEFT_PAREN|RIGHT_PAREN))=>~ (LEFT_PAREN|RIGHT_PAREN) | ( paren_chunk )=>chunk= paren_chunk )* loc= RIGHT_PAREN
{
if ( backtracking==0 ) {
-
- channel = ((SwitchingCommonTokenStream)input).getTokenTypeChannel( WS );
- ((SwitchingCommonTokenStream)input).setTokenTypeChannel( WS, Token.DEFAULT_CHANNEL );
- buf = new StringBuffer();
+
+ channel = ((SwitchingCommonTokenStream)input).getTokenTypeChannel( WS );
+ ((SwitchingCommonTokenStream)input).setTokenTypeChannel( WS, Token.DEFAULT_CHANNEL );
+ buf = new StringBuffer();
}
loc=(Token)input.LT(1);
- match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_paren_chunk2449); if (failed) return text;
+ match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_paren_chunk2646); if (failed) return text;
if ( backtracking==0 ) {
-
- buf.append( loc.getText());
-
+
+ buf.append( loc.getText());
+
}
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1077:3: ( (~ (LEFT_PAREN|RIGHT_PAREN))=>~ (LEFT_PAREN|RIGHT_PAREN) | ( paren_chunk )=>chunk= paren_chunk )*
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1122:3: ( (~ (LEFT_PAREN|RIGHT_PAREN))=>~ (LEFT_PAREN|RIGHT_PAREN) | ( paren_chunk )=>chunk= paren_chunk )*
loop39:
do {
int alt39=3;
int LA39_0 = input.LA(1);
- if ( ((LA39_0>=ID && LA39_0<=FLOAT)||(LA39_0>=LEFT_CURLY && LA39_0<=73)) ) {
+ if ( ((LA39_0>=ID && LA39_0<=FLOAT)||(LA39_0>=LEFT_CURLY && LA39_0<=76)) ) {
alt39=1;
}
else if ( (LA39_0==LEFT_PAREN) ) {
@@ -3632,9 +3804,9 @@
switch (alt39) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1078:4: (~ (LEFT_PAREN|RIGHT_PAREN))=>~ (LEFT_PAREN|RIGHT_PAREN)
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1123:4: (~ (LEFT_PAREN|RIGHT_PAREN))=>~ (LEFT_PAREN|RIGHT_PAREN)
{
- if ( (input.LA(1)>=ID && input.LA(1)<=FLOAT)||(input.LA(1)>=LEFT_CURLY && input.LA(1)<=73) ) {
+ if ( (input.LA(1)>=ID && input.LA(1)<=FLOAT)||(input.LA(1)>=LEFT_CURLY && input.LA(1)<=76) ) {
input.consume();
errorRecovery=false;failed=false;
}
@@ -3642,27 +3814,27 @@
if (backtracking>0) {failed=true; return text;}
MismatchedSetException mse =
new MismatchedSetException(null,input);
- recoverFromMismatchedSet(input,mse,FOLLOW_set_in_paren_chunk2465); throw mse;
+ recoverFromMismatchedSet(input,mse,FOLLOW_set_in_paren_chunk2662); throw mse;
}
if ( backtracking==0 ) {
-
- buf.append( input.LT(-1).getText() );
+
+ buf.append( input.LT(-1).getText() );
}
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1083:4: ( paren_chunk )=>chunk= paren_chunk
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1128:4: ( paren_chunk )=>chunk= paren_chunk
{
- pushFollow(FOLLOW_paren_chunk_in_paren_chunk2489);
+ pushFollow(FOLLOW_paren_chunk_in_paren_chunk2686);
chunk=paren_chunk();
_fsp--;
if (failed) return text;
if ( backtracking==0 ) {
-
- buf.append( chunk );
+
+ buf.append( chunk );
}
@@ -3675,20 +3847,20 @@
} while (true);
if ( backtracking==0 ) {
-
- if( channel != null ) {
- ((SwitchingCommonTokenStream)input).setTokenTypeChannel(WS, channel.intValue());
- } else {
- ((SwitchingCommonTokenStream)input).setTokenTypeChannel(WS, Token.HIDDEN_CHANNEL);
- }
+
+ if( channel != null ) {
+ ((SwitchingCommonTokenStream)input).setTokenTypeChannel(WS, channel.intValue());
+ } else {
+ ((SwitchingCommonTokenStream)input).setTokenTypeChannel(WS, Token.HIDDEN_CHANNEL);
+ }
}
loc=(Token)input.LT(1);
- match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_paren_chunk2525); if (failed) return text;
+ match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_paren_chunk2722); if (failed) return text;
if ( backtracking==0 ) {
-
- buf.append( loc.getText() );
- text = buf.toString();
+
+ buf.append( loc.getText() );
+ text = buf.toString();
}
@@ -3707,7 +3879,7 @@
// $ANTLR start curly_chunk
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1102:1: curly_chunk returns [String text] : loc= LEFT_CURLY ( (~ (LEFT_CURLY|RIGHT_CURLY))=>~ (LEFT_CURLY|RIGHT_CURLY) | ( curly_chunk )=>chunk= curly_chunk )* loc= RIGHT_CURLY ;
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1147:1: curly_chunk returns [String text] : loc= LEFT_CURLY ( (~ (LEFT_CURLY|RIGHT_CURLY))=>~ (LEFT_CURLY|RIGHT_CURLY) | ( curly_chunk )=>chunk= curly_chunk )* loc= RIGHT_CURLY ;
public String curly_chunk() throws RecognitionException {
String text = null;
@@ -3715,31 +3887,31 @@
String chunk = null;
-
- StringBuffer buf = null;
- Integer channel = null;
+
+ StringBuffer buf = null;
+ Integer channel = null;
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1108:3: (loc= LEFT_CURLY ( (~ (LEFT_CURLY|RIGHT_CURLY))=>~ (LEFT_CURLY|RIGHT_CURLY) | ( curly_chunk )=>chunk= curly_chunk )* loc= RIGHT_CURLY )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1108:3: loc= LEFT_CURLY ( (~ (LEFT_CURLY|RIGHT_CURLY))=>~ (LEFT_CURLY|RIGHT_CURLY) | ( curly_chunk )=>chunk= curly_chunk )* loc= RIGHT_CURLY
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1153:3: (loc= LEFT_CURLY ( (~ (LEFT_CURLY|RIGHT_CURLY))=>~ (LEFT_CURLY|RIGHT_CURLY) | ( curly_chunk )=>chunk= curly_chunk )* loc= RIGHT_CURLY )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1153:3: loc= LEFT_CURLY ( (~ (LEFT_CURLY|RIGHT_CURLY))=>~ (LEFT_CURLY|RIGHT_CURLY) | ( curly_chunk )=>chunk= curly_chunk )* loc= RIGHT_CURLY
{
loc=(Token)input.LT(1);
- match(input,LEFT_CURLY,FOLLOW_LEFT_CURLY_in_curly_chunk2575); if (failed) return text;
+ match(input,LEFT_CURLY,FOLLOW_LEFT_CURLY_in_curly_chunk2772); if (failed) return text;
if ( backtracking==0 ) {
-
- channel = ((SwitchingCommonTokenStream)input).getTokenTypeChannel( WS );
- ((SwitchingCommonTokenStream)input).setTokenTypeChannel( WS, Token.DEFAULT_CHANNEL );
- buf = new StringBuffer();
-
- buf.append( loc.getText() );
+
+ channel = ((SwitchingCommonTokenStream)input).getTokenTypeChannel( WS );
+ ((SwitchingCommonTokenStream)input).setTokenTypeChannel( WS, Token.DEFAULT_CHANNEL );
+ buf = new StringBuffer();
+
+ buf.append( loc.getText() );
}
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1116:3: ( (~ (LEFT_CURLY|RIGHT_CURLY))=>~ (LEFT_CURLY|RIGHT_CURLY) | ( curly_chunk )=>chunk= curly_chunk )*
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1161:3: ( (~ (LEFT_CURLY|RIGHT_CURLY))=>~ (LEFT_CURLY|RIGHT_CURLY) | ( curly_chunk )=>chunk= curly_chunk )*
loop40:
do {
int alt40=3;
int LA40_0 = input.LA(1);
- if ( ((LA40_0>=ID && LA40_0<=RIGHT_PAREN)||(LA40_0>=LEFT_SQUARE && LA40_0<=73)) ) {
+ if ( ((LA40_0>=ID && LA40_0<=RIGHT_PAREN)||(LA40_0>=LEFT_SQUARE && LA40_0<=76)) ) {
alt40=1;
}
else if ( (LA40_0==LEFT_CURLY) ) {
@@ -3749,9 +3921,9 @@
switch (alt40) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1117:4: (~ (LEFT_CURLY|RIGHT_CURLY))=>~ (LEFT_CURLY|RIGHT_CURLY)
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1162:4: (~ (LEFT_CURLY|RIGHT_CURLY))=>~ (LEFT_CURLY|RIGHT_CURLY)
{
- if ( (input.LA(1)>=ID && input.LA(1)<=RIGHT_PAREN)||(input.LA(1)>=LEFT_SQUARE && input.LA(1)<=73) ) {
+ if ( (input.LA(1)>=ID && input.LA(1)<=RIGHT_PAREN)||(input.LA(1)>=LEFT_SQUARE && input.LA(1)<=76) ) {
input.consume();
errorRecovery=false;failed=false;
}
@@ -3759,27 +3931,27 @@
if (backtracking>0) {failed=true; return text;}
MismatchedSetException mse =
new MismatchedSetException(null,input);
- recoverFromMismatchedSet(input,mse,FOLLOW_set_in_curly_chunk2591); throw mse;
+ recoverFromMismatchedSet(input,mse,FOLLOW_set_in_curly_chunk2788); throw mse;
}
if ( backtracking==0 ) {
-
- buf.append( input.LT(-1).getText() );
+
+ buf.append( input.LT(-1).getText() );
}
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1122:4: ( curly_chunk )=>chunk= curly_chunk
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1167:4: ( curly_chunk )=>chunk= curly_chunk
{
- pushFollow(FOLLOW_curly_chunk_in_curly_chunk2615);
+ pushFollow(FOLLOW_curly_chunk_in_curly_chunk2812);
chunk=curly_chunk();
_fsp--;
if (failed) return text;
if ( backtracking==0 ) {
-
- buf.append( chunk );
+
+ buf.append( chunk );
}
@@ -3792,20 +3964,20 @@
} while (true);
if ( backtracking==0 ) {
-
- if( channel != null ) {
- ((SwitchingCommonTokenStream)input).setTokenTypeChannel(WS, channel.intValue());
- } else {
- ((SwitchingCommonTokenStream)input).setTokenTypeChannel(WS, Token.HIDDEN_CHANNEL);
- }
+
+ if( channel != null ) {
+ ((SwitchingCommonTokenStream)input).setTokenTypeChannel(WS, channel.intValue());
+ } else {
+ ((SwitchingCommonTokenStream)input).setTokenTypeChannel(WS, Token.HIDDEN_CHANNEL);
+ }
}
loc=(Token)input.LT(1);
- match(input,RIGHT_CURLY,FOLLOW_RIGHT_CURLY_in_curly_chunk2651); if (failed) return text;
+ match(input,RIGHT_CURLY,FOLLOW_RIGHT_CURLY_in_curly_chunk2848); if (failed) return text;
if ( backtracking==0 ) {
-
- buf.append( loc.getText() );
- text = buf.toString();
+
+ buf.append( loc.getText() );
+ text = buf.toString();
}
@@ -3824,7 +3996,7 @@
// $ANTLR start square_chunk
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1141:1: square_chunk returns [String text] : loc= LEFT_SQUARE ( (~ (LEFT_SQUARE|RIGHT_SQUARE))=>~ (LEFT_SQUARE|RIGHT_SQUARE) | ( square_chunk )=>chunk= square_chunk )* loc= RIGHT_SQUARE ;
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1186:1: square_chunk returns [String text] : loc= LEFT_SQUARE ( (~ (LEFT_SQUARE|RIGHT_SQUARE))=>~ (LEFT_SQUARE|RIGHT_SQUARE) | ( square_chunk )=>chunk= square_chunk )* loc= RIGHT_SQUARE ;
public String square_chunk() throws RecognitionException {
String text = null;
@@ -3832,35 +4004,35 @@
String chunk = null;
-
- StringBuffer buf = null;
- Integer channel = null;
+
+ StringBuffer buf = null;
+ Integer channel = null;
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1147:10: (loc= LEFT_SQUARE ( (~ (LEFT_SQUARE|RIGHT_SQUARE))=>~ (LEFT_SQUARE|RIGHT_SQUARE) | ( square_chunk )=>chunk= square_chunk )* loc= RIGHT_SQUARE )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1147:10: loc= LEFT_SQUARE ( (~ (LEFT_SQUARE|RIGHT_SQUARE))=>~ (LEFT_SQUARE|RIGHT_SQUARE) | ( square_chunk )=>chunk= square_chunk )* loc= RIGHT_SQUARE
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1192:10: (loc= LEFT_SQUARE ( (~ (LEFT_SQUARE|RIGHT_SQUARE))=>~ (LEFT_SQUARE|RIGHT_SQUARE) | ( square_chunk )=>chunk= square_chunk )* loc= RIGHT_SQUARE )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1192:10: loc= LEFT_SQUARE ( (~ (LEFT_SQUARE|RIGHT_SQUARE))=>~ (LEFT_SQUARE|RIGHT_SQUARE) | ( square_chunk )=>chunk= square_chunk )* loc= RIGHT_SQUARE
{
if ( backtracking==0 ) {
-
- channel = ((SwitchingCommonTokenStream)input).getTokenTypeChannel( WS );
- ((SwitchingCommonTokenStream)input).setTokenTypeChannel( WS, Token.DEFAULT_CHANNEL );
- buf = new StringBuffer();
+
+ channel = ((SwitchingCommonTokenStream)input).getTokenTypeChannel( WS );
+ ((SwitchingCommonTokenStream)input).setTokenTypeChannel( WS, Token.DEFAULT_CHANNEL );
+ buf = new StringBuffer();
}
loc=(Token)input.LT(1);
- match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_square_chunk2712); if (failed) return text;
+ match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_square_chunk2909); if (failed) return text;
if ( backtracking==0 ) {
-
- buf.append( loc.getText());
-
+
+ buf.append( loc.getText());
+
}
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1157:3: ( (~ (LEFT_SQUARE|RIGHT_SQUARE))=>~ (LEFT_SQUARE|RIGHT_SQUARE) | ( square_chunk )=>chunk= square_chunk )*
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1202:3: ( (~ (LEFT_SQUARE|RIGHT_SQUARE))=>~ (LEFT_SQUARE|RIGHT_SQUARE) | ( square_chunk )=>chunk= square_chunk )*
loop41:
do {
int alt41=3;
int LA41_0 = input.LA(1);
- if ( ((LA41_0>=ID && LA41_0<=RIGHT_CURLY)||(LA41_0>=END && LA41_0<=73)) ) {
+ if ( ((LA41_0>=ID && LA41_0<=RIGHT_CURLY)||(LA41_0>=END && LA41_0<=76)) ) {
alt41=1;
}
else if ( (LA41_0==LEFT_SQUARE) ) {
@@ -3870,9 +4042,9 @@
switch (alt41) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1158:4: (~ (LEFT_SQUARE|RIGHT_SQUARE))=>~ (LEFT_SQUARE|RIGHT_SQUARE)
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1203:4: (~ (LEFT_SQUARE|RIGHT_SQUARE))=>~ (LEFT_SQUARE|RIGHT_SQUARE)
{
- if ( (input.LA(1)>=ID && input.LA(1)<=RIGHT_CURLY)||(input.LA(1)>=END && input.LA(1)<=73) ) {
+ if ( (input.LA(1)>=ID && input.LA(1)<=RIGHT_CURLY)||(input.LA(1)>=END && input.LA(1)<=76) ) {
input.consume();
errorRecovery=false;failed=false;
}
@@ -3880,27 +4052,27 @@
if (backtracking>0) {failed=true; return text;}
MismatchedSetException mse =
new MismatchedSetException(null,input);
- recoverFromMismatchedSet(input,mse,FOLLOW_set_in_square_chunk2728); throw mse;
+ recoverFromMismatchedSet(input,mse,FOLLOW_set_in_square_chunk2925); throw mse;
}
if ( backtracking==0 ) {
-
- buf.append( input.LT(-1).getText() );
+
+ buf.append( input.LT(-1).getText() );
}
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1163:4: ( square_chunk )=>chunk= square_chunk
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1208:4: ( square_chunk )=>chunk= square_chunk
{
- pushFollow(FOLLOW_square_chunk_in_square_chunk2752);
+ pushFollow(FOLLOW_square_chunk_in_square_chunk2949);
chunk=square_chunk();
_fsp--;
if (failed) return text;
if ( backtracking==0 ) {
-
- buf.append( chunk );
+
+ buf.append( chunk );
}
@@ -3913,20 +4085,20 @@
} while (true);
if ( backtracking==0 ) {
-
- if( channel != null ) {
- ((SwitchingCommonTokenStream)input).setTokenTypeChannel(WS, channel.intValue());
- } else {
- ((SwitchingCommonTokenStream)input).setTokenTypeChannel(WS, Token.HIDDEN_CHANNEL);
- }
+
+ if( channel != null ) {
+ ((SwitchingCommonTokenStream)input).setTokenTypeChannel(WS, channel.intValue());
+ } else {
+ ((SwitchingCommonTokenStream)input).setTokenTypeChannel(WS, Token.HIDDEN_CHANNEL);
+ }
}
loc=(Token)input.LT(1);
- match(input,RIGHT_SQUARE,FOLLOW_RIGHT_SQUARE_in_square_chunk2788); if (failed) return text;
+ match(input,RIGHT_SQUARE,FOLLOW_RIGHT_SQUARE_in_square_chunk2985); if (failed) return text;
if ( backtracking==0 ) {
-
- buf.append( loc.getText() );
- text = buf.toString();
+
+ buf.append( loc.getText() );
+ text = buf.toString();
}
@@ -3945,21 +4117,21 @@
// $ANTLR start retval_constraint
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1182:1: retval_constraint returns [String text] : c= paren_chunk ;
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1227: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:1187:3: (c= paren_chunk )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1187:3: c= paren_chunk
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1232:3: (c= paren_chunk )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1232:3: c= paren_chunk
{
- pushFollow(FOLLOW_paren_chunk_in_retval_constraint2833);
+ pushFollow(FOLLOW_paren_chunk_in_retval_constraint3030);
c=paren_chunk();
_fsp--;
if (failed) return text;
@@ -3982,7 +4154,7 @@
// $ANTLR start lhs_or
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1195:1: lhs_or returns [BaseDescr d] : left= lhs_and ( ( ('or'|'||') lhs_and )=> ('or'|'||')right= lhs_and )* ;
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1240:1: lhs_or returns [BaseDescr d] : left= lhs_and ( ( ('or'|'||') lhs_and )=> ('or'|'||')right= lhs_and )* ;
public BaseDescr lhs_or() throws RecognitionException {
BaseDescr d = null;
@@ -3991,36 +4163,36 @@
BaseDescr right = null;
-
- d = null;
- OrDescr or = null;
+
+ d = null;
+ OrDescr or = null;
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1201:3: (left= lhs_and ( ( ('or'|'||') lhs_and )=> ('or'|'||')right= lhs_and )* )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1201:3: left= lhs_and ( ( ('or'|'||') lhs_and )=> ('or'|'||')right= lhs_and )*
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1246:3: (left= lhs_and ( ( ('or'|'||') lhs_and )=> ('or'|'||')right= lhs_and )* )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1246:3: left= lhs_and ( ( ('or'|'||') lhs_and )=> ('or'|'||')right= lhs_and )*
{
- pushFollow(FOLLOW_lhs_and_in_lhs_or2866);
+ pushFollow(FOLLOW_lhs_and_in_lhs_or3063);
left=lhs_and();
_fsp--;
if (failed) return d;
if ( backtracking==0 ) {
d = left;
}
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1202:3: ( ( ('or'|'||') lhs_and )=> ('or'|'||')right= lhs_and )*
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1247:3: ( ( ('or'|'||') lhs_and )=> ('or'|'||')right= lhs_and )*
loop42:
do {
int alt42=2;
int LA42_0 = input.LA(1);
- if ( ((LA42_0>=53 && LA42_0<=54)) ) {
+ if ( ((LA42_0>=56 && LA42_0<=57)) ) {
alt42=1;
}
switch (alt42) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1202:5: ( ('or'|'||') lhs_and )=> ('or'|'||')right= lhs_and
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1247:5: ( ('or'|'||') lhs_and )=> ('or'|'||')right= lhs_and
{
- if ( (input.LA(1)>=53 && input.LA(1)<=54) ) {
+ if ( (input.LA(1)>=56 && input.LA(1)<=57) ) {
input.consume();
errorRecovery=false;failed=false;
}
@@ -4028,22 +4200,22 @@
if (backtracking>0) {failed=true; return d;}
MismatchedSetException mse =
new MismatchedSetException(null,input);
- recoverFromMismatchedSet(input,mse,FOLLOW_set_in_lhs_or2875); throw mse;
+ recoverFromMismatchedSet(input,mse,FOLLOW_set_in_lhs_or3072); throw mse;
}
- pushFollow(FOLLOW_lhs_and_in_lhs_or2885);
+ pushFollow(FOLLOW_lhs_and_in_lhs_or3082);
right=lhs_and();
_fsp--;
if (failed) return d;
if ( backtracking==0 ) {
-
- 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 );
}
@@ -4071,7 +4243,7 @@
// $ANTLR start lhs_and
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1216:1: lhs_and returns [BaseDescr d] : left= lhs_unary ( ( ('and'|'&&') lhs_unary )=> ('and'|'&&')right= lhs_unary )* ;
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1261:1: lhs_and returns [BaseDescr d] : left= lhs_unary ( ( ('and'|'&&') lhs_unary )=> ('and'|'&&')right= lhs_unary )* ;
public BaseDescr lhs_and() throws RecognitionException {
BaseDescr d = null;
@@ -4080,36 +4252,36 @@
BaseDescr right = null;
-
- d = null;
- AndDescr and = null;
+
+ d = null;
+ AndDescr and = null;
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1222:3: (left= lhs_unary ( ( ('and'|'&&') lhs_unary )=> ('and'|'&&')right= lhs_unary )* )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1222:3: left= lhs_unary ( ( ('and'|'&&') lhs_unary )=> ('and'|'&&')right= lhs_unary )*
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1267:3: (left= lhs_unary ( ( ('and'|'&&') lhs_unary )=> ('and'|'&&')right= lhs_unary )* )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1267:3: left= lhs_unary ( ( ('and'|'&&') lhs_unary )=> ('and'|'&&')right= lhs_unary )*
{
- pushFollow(FOLLOW_lhs_unary_in_lhs_and2921);
+ pushFollow(FOLLOW_lhs_unary_in_lhs_and3118);
left=lhs_unary();
_fsp--;
if (failed) return d;
if ( backtracking==0 ) {
d = left;
}
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1223:3: ( ( ('and'|'&&') lhs_unary )=> ('and'|'&&')right= lhs_unary )*
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1268:3: ( ( ('and'|'&&') lhs_unary )=> ('and'|'&&')right= lhs_unary )*
loop43:
do {
int alt43=2;
int LA43_0 = input.LA(1);
- if ( ((LA43_0>=68 && LA43_0<=69)) ) {
+ if ( ((LA43_0>=71 && LA43_0<=72)) ) {
alt43=1;
}
switch (alt43) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1223:5: ( ('and'|'&&') lhs_unary )=> ('and'|'&&')right= lhs_unary
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1268:5: ( ('and'|'&&') lhs_unary )=> ('and'|'&&')right= lhs_unary
{
- if ( (input.LA(1)>=68 && input.LA(1)<=69) ) {
+ if ( (input.LA(1)>=71 && input.LA(1)<=72) ) {
input.consume();
errorRecovery=false;failed=false;
}
@@ -4117,22 +4289,22 @@
if (backtracking>0) {failed=true; return d;}
MismatchedSetException mse =
new MismatchedSetException(null,input);
- recoverFromMismatchedSet(input,mse,FOLLOW_set_in_lhs_and2930); throw mse;
+ recoverFromMismatchedSet(input,mse,FOLLOW_set_in_lhs_and3127); throw mse;
}
- pushFollow(FOLLOW_lhs_unary_in_lhs_and2940);
+ pushFollow(FOLLOW_lhs_unary_in_lhs_and3137);
right=lhs_unary();
_fsp--;
if (failed) return d;
if ( backtracking==0 ) {
-
- 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 );
}
@@ -4160,7 +4332,7 @@
// $ANTLR start lhs_unary
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1237:1: lhs_unary returns [BaseDescr d] : ( ( lhs_exist )=>u= lhs_exist | ( lhs_not )=>u= lhs_not | ( lhs_eval )=>u= lhs_eval | ( lhs_column ( ( ( from_statement ) )=> ( from_statement ) | ( ( accumulate_statement ) )=> ( accumulate_statement ) | ( ( collect_statement ) )=> ( collect_statement ) )? )=>u= lhs_column ( ( ( from_statement ) )=> (fm= from_statement ) | ( ( accumulate_statement ) )=> (ac= accumulate_statement ) | ( ( collect_statement ) )=> (cs= collect_statement ) )? | '(' u= lhs ')' ) opt_semicolon ;
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1282:1: lhs_unary returns [BaseDescr d] : ( ( lhs_exist )=>u= lhs_exist | ( lhs_not )=>u= lhs_not | ( lhs_eval )=>u= lhs_eval | ( lhs_column ( ( ( from_statement ) )=> ( from_statement ) | ( ( accumulate_statement ) )=> ( accumulate_statement ) | ( ( collect_statement ) )=> ( collect_statement ) )? )=>u= lhs_column ( ( ( from_statement ) )=> (fm= from_statement ) | ( ( accumulate_statement ) )=> (ac= accumulate_statement ) | ( ( collect_statement ) )=> (cs= collect_statement ) )? | '(' u= lhs ')' ) opt_semicolon ;
public BaseDescr lhs_unary() throws RecognitionException {
BaseDescr d = null;
@@ -4173,23 +4345,23 @@
CollectDescr cs = null;
-
- d = null;
+
+ d = null;
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1241:4: ( ( ( lhs_exist )=>u= lhs_exist | ( lhs_not )=>u= lhs_not | ( lhs_eval )=>u= lhs_eval | ( lhs_column ( ( ( from_statement ) )=> ( from_statement ) | ( ( accumulate_statement ) )=> ( accumulate_statement ) | ( ( collect_statement ) )=> ( collect_statement ) )? )=>u= lhs_column ( ( ( from_statement ) )=> (fm= from_statement ) | ( ( accumulate_statement ) )=> (ac= accumulate_statement ) | ( ( collect_statement ) )=> (cs= collect_statement ) )? | '(' u= lhs ')' ) opt_semicolon )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1241:4: ( ( lhs_exist )=>u= lhs_exist | ( lhs_not )=>u= lhs_not | ( lhs_eval )=>u= lhs_eval | ( lhs_column ( ( ( from_statement ) )=> ( from_statement ) | ( ( accumulate_statement ) )=> ( accumulate_statement ) | ( ( collect_statement ) )=> ( collect_statement ) )? )=>u= lhs_column ( ( ( from_statement ) )=> (fm= from_statement ) | ( ( accumulate_statement ) )=> (ac= accumulate_statement ) | ( ( collect_statement ) )=> (cs= collect_statement ) )? | '(' u= lhs ')' ) opt_semicolon
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1286:4: ( ( ( lhs_exist )=>u= lhs_exist | ( lhs_not )=>u= lhs_not | ( lhs_eval )=>u= lhs_eval | ( lhs_column ( ( ( from_statement ) )=> ( from_statement ) | ( ( accumulate_statement ) )=> ( accumulate_statement ) | ( ( collect_statement ) )=> ( collect_statement ) )? )=>u= lhs_column ( ( ( from_statement ) )=> (fm= from_statement ) | ( ( accumulate_statement ) )=> (ac= accumulate_statement ) | ( ( collect_statement ) )=> (cs= collect_statement ) )? | '(' u= lhs ')' ) opt_semicolon )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1286:4: ( ( lhs_exist )=>u= lhs_exist | ( lhs_not )=>u= lhs_not | ( lhs_eval )=>u= lhs_eval | ( lhs_column ( ( ( from_statement ) )=> ( from_statement ) | ( ( accumulate_statement ) )=> ( accumulate_statement ) | ( ( collect_statement ) )=> ( collect_statement ) )? )=>u= lhs_column ( ( ( from_statement ) )=> (fm= from_statement ) | ( ( accumulate_statement ) )=> (ac= accumulate_statement ) | ( ( collect_statement ) )=> (cs= collect_statement ) )? | '(' u= lhs ')' ) opt_semicolon
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1241:4: ( ( lhs_exist )=>u= lhs_exist | ( lhs_not )=>u= lhs_not | ( lhs_eval )=>u= lhs_eval | ( lhs_column ( ( ( from_statement ) )=> ( from_statement ) | ( ( accumulate_statement ) )=> ( accumulate_statement ) | ( ( collect_statement ) )=> ( collect_statement ) )? )=>u= lhs_column ( ( ( from_statement ) )=> (fm= from_statement ) | ( ( accumulate_statement ) )=> (ac= accumulate_statement ) | ( ( collect_statement ) )=> (cs= collect_statement ) )? | '(' u= lhs ')' )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1286:4: ( ( lhs_exist )=>u= lhs_exist | ( lhs_not )=>u= lhs_not | ( lhs_eval )=>u= lhs_eval | ( lhs_column ( ( ( from_statement ) )=> ( from_statement ) | ( ( accumulate_statement ) )=> ( accumulate_statement ) | ( ( collect_statement ) )=> ( collect_statement ) )? )=>u= lhs_column ( ( ( from_statement ) )=> (fm= from_statement ) | ( ( accumulate_statement ) )=> (ac= accumulate_statement ) | ( ( collect_statement ) )=> (cs= collect_statement ) )? | '(' u= lhs ')' )
int alt45=5;
switch ( input.LA(1) ) {
- case 70:
+ case 73:
alt45=1;
break;
- case 71:
+ case 74:
alt45=2;
break;
- case 72:
+ case 75:
alt45=3;
break;
case ID:
@@ -4201,16 +4373,16 @@
default:
if (backtracking>0) {failed=true; return d;}
NoViableAltException nvae =
- new NoViableAltException("1241:4: ( ( lhs_exist )=>u= lhs_exist | ( lhs_not )=>u= lhs_not | ( lhs_eval )=>u= lhs_eval | ( lhs_column ( ( ( from_statement ) )=> ( from_statement ) | ( ( accumulate_statement ) )=> ( accumulate_statement ) | ( ( collect_statement ) )=> ( collect_statement ) )? )=>u= lhs_column ( ( ( from_statement ) )=> (fm= from_statement ) | ( ( accumulate_statement ) )=> (ac= accumulate_statement ) | ( ( collect_statement ) )=> (cs= collect_statement ) )? | '(' u= lhs ')' )", 45, 0, input);
+ new NoViableAltException("1286:4: ( ( lhs_exist )=>u= lhs_exist | ( lhs_not )=>u= lhs_not | ( lhs_eval )=>u= lhs_eval | ( lhs_column ( ( ( from_statement ) )=> ( from_statement ) | ( ( accumulate_statement ) )=> ( accumulate_statement ) | ( ( collect_statement ) )=> ( collect_statement ) )? )=>u= lhs_column ( ( ( from_statement ) )=> (fm= from_statement ) | ( ( accumulate_statement ) )=> (ac= accumulate_statement ) | ( ( collect_statement ) )=> (cs= collect_statement ) )? | '(' u= lhs ')' )", 45, 0, input);
throw nvae;
}
switch (alt45) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1241:6: ( lhs_exist )=>u= lhs_exist
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1286:6: ( lhs_exist )=>u= lhs_exist
{
- pushFollow(FOLLOW_lhs_exist_in_lhs_unary2977);
+ pushFollow(FOLLOW_lhs_exist_in_lhs_unary3174);
u=lhs_exist();
_fsp--;
if (failed) return d;
@@ -4218,9 +4390,9 @@
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1242:5: ( lhs_not )=>u= lhs_not
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1287:5: ( lhs_not )=>u= lhs_not
{
- pushFollow(FOLLOW_lhs_not_in_lhs_unary2985);
+ pushFollow(FOLLOW_lhs_not_in_lhs_unary3182);
u=lhs_not();
_fsp--;
if (failed) return d;
@@ -4228,9 +4400,9 @@
}
break;
case 3 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1243:5: ( lhs_eval )=>u= lhs_eval
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1288:5: ( lhs_eval )=>u= lhs_eval
{
- pushFollow(FOLLOW_lhs_eval_in_lhs_unary2993);
+ pushFollow(FOLLOW_lhs_eval_in_lhs_unary3190);
u=lhs_eval();
_fsp--;
if (failed) return d;
@@ -4238,21 +4410,21 @@
}
break;
case 4 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1244:5: ( lhs_column ( ( ( from_statement ) )=> ( from_statement ) | ( ( accumulate_statement ) )=> ( accumulate_statement ) | ( ( collect_statement ) )=> ( collect_statement ) )? )=>u= lhs_column ( ( ( from_statement ) )=> (fm= from_statement ) | ( ( accumulate_statement ) )=> (ac= accumulate_statement ) | ( ( collect_statement ) )=> (cs= collect_statement ) )?
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1289:5: ( lhs_column ( ( ( from_statement ) )=> ( from_statement ) | ( ( accumulate_statement ) )=> ( accumulate_statement ) | ( ( collect_statement ) )=> ( collect_statement ) )? )=>u= lhs_column ( ( ( from_statement ) )=> (fm= from_statement ) | ( ( accumulate_statement ) )=> (ac= accumulate_statement ) | ( ( collect_statement ) )=> (cs= collect_statement ) )?
{
- pushFollow(FOLLOW_lhs_column_in_lhs_unary3001);
+ pushFollow(FOLLOW_lhs_column_in_lhs_unary3198);
u=lhs_column();
_fsp--;
if (failed) return d;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1244:18: ( ( ( from_statement ) )=> (fm= from_statement ) | ( ( accumulate_statement ) )=> (ac= accumulate_statement ) | ( ( collect_statement ) )=> (cs= collect_statement ) )?
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1289:18: ( ( ( from_statement ) )=> (fm= from_statement ) | ( ( accumulate_statement ) )=> (ac= accumulate_statement ) | ( ( collect_statement ) )=> (cs= collect_statement ) )?
int alt44=4;
int LA44_0 = input.LA(1);
- if ( (LA44_0==47) ) {
+ if ( (LA44_0==50) ) {
switch ( input.LA(2) ) {
- case 48:
+ case 51:
alt44=2;
break;
- case 52:
+ case 55:
alt44=3;
break;
case ID:
@@ -4263,12 +4435,12 @@
}
switch (alt44) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1245:14: ( ( from_statement ) )=> (fm= from_statement )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1290:14: ( ( from_statement ) )=> (fm= from_statement )
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1245:14: (fm= from_statement )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1245:15: fm= from_statement
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1290:14: (fm= from_statement )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1290:15: fm= from_statement
{
- pushFollow(FOLLOW_from_statement_in_lhs_unary3021);
+ pushFollow(FOLLOW_from_statement_in_lhs_unary3218);
fm=from_statement();
_fsp--;
if (failed) return d;
@@ -4282,12 +4454,12 @@
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1246:14: ( ( accumulate_statement ) )=> (ac= accumulate_statement )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1291:14: ( ( accumulate_statement ) )=> (ac= accumulate_statement )
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1246:14: (ac= accumulate_statement )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1246:15: ac= accumulate_statement
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1291:14: (ac= accumulate_statement )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1291:15: ac= accumulate_statement
{
- pushFollow(FOLLOW_accumulate_statement_in_lhs_unary3043);
+ pushFollow(FOLLOW_accumulate_statement_in_lhs_unary3240);
ac=accumulate_statement();
_fsp--;
if (failed) return d;
@@ -4301,12 +4473,12 @@
}
break;
case 3 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1247:14: ( ( collect_statement ) )=> (cs= collect_statement )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1292:14: ( ( collect_statement ) )=> (cs= collect_statement )
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1247:14: (cs= collect_statement )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1247:15: cs= collect_statement
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1292:14: (cs= collect_statement )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1292:15: cs= collect_statement
{
- pushFollow(FOLLOW_collect_statement_in_lhs_unary3064);
+ pushFollow(FOLLOW_collect_statement_in_lhs_unary3261);
cs=collect_statement();
_fsp--;
if (failed) return d;
@@ -4326,14 +4498,14 @@
}
break;
case 5 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1249:5: '(' u= lhs ')'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1294:5: '(' u= lhs ')'
{
- match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_lhs_unary3087); if (failed) return d;
- pushFollow(FOLLOW_lhs_in_lhs_unary3091);
+ match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_lhs_unary3284); if (failed) return d;
+ pushFollow(FOLLOW_lhs_in_lhs_unary3288);
u=lhs();
_fsp--;
if (failed) return d;
- match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_lhs_unary3093); if (failed) return d;
+ match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_lhs_unary3290); if (failed) return d;
}
break;
@@ -4343,7 +4515,7 @@
if ( backtracking==0 ) {
d = u;
}
- pushFollow(FOLLOW_opt_semicolon_in_lhs_unary3103);
+ pushFollow(FOLLOW_opt_semicolon_in_lhs_unary3300);
opt_semicolon();
_fsp--;
if (failed) return d;
@@ -4363,7 +4535,7 @@
// $ANTLR start lhs_exist
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1254:1: lhs_exist returns [BaseDescr d] : loc= 'exists' ( ( '(' lhs_or ')' )=> '(' column= lhs_or ')' | column= lhs_column ) ;
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1299:1: lhs_exist returns [BaseDescr d] : loc= 'exists' ( ( '(' lhs_or ')' )=> '(' column= lhs_or ')' | column= lhs_column ) ;
public BaseDescr lhs_exist() throws RecognitionException {
BaseDescr d = null;
@@ -4371,16 +4543,16 @@
BaseDescr column = null;
-
- d = null;
+
+ d = null;
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1258:4: (loc= 'exists' ( ( '(' lhs_or ')' )=> '(' column= lhs_or ')' | column= lhs_column ) )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1258:4: loc= 'exists' ( ( '(' lhs_or ')' )=> '(' column= lhs_or ')' | column= lhs_column )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1303:4: (loc= 'exists' ( ( '(' lhs_or ')' )=> '(' column= lhs_or ')' | column= lhs_column ) )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1303:4: loc= 'exists' ( ( '(' lhs_or ')' )=> '(' column= lhs_or ')' | column= lhs_column )
{
loc=(Token)input.LT(1);
- match(input,70,FOLLOW_70_in_lhs_exist3127); if (failed) return d;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1258:17: ( ( '(' lhs_or ')' )=> '(' column= lhs_or ')' | column= lhs_column )
+ match(input,73,FOLLOW_73_in_lhs_exist3324); if (failed) return d;
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1303:17: ( ( '(' lhs_or ')' )=> '(' column= lhs_or ')' | column= lhs_column )
int alt46=2;
int LA46_0 = input.LA(1);
if ( (LA46_0==LEFT_PAREN) ) {
@@ -4392,27 +4564,27 @@
else {
if (backtracking>0) {failed=true; return d;}
NoViableAltException nvae =
- new NoViableAltException("1258:17: ( ( '(' lhs_or ')' )=> '(' column= lhs_or ')' | column= lhs_column )", 46, 0, input);
+ new NoViableAltException("1303:17: ( ( '(' lhs_or ')' )=> '(' column= lhs_or ')' | column= lhs_column )", 46, 0, input);
throw nvae;
}
switch (alt46) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1258:18: ( '(' lhs_or ')' )=> '(' column= lhs_or ')'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1303:18: ( '(' lhs_or ')' )=> '(' column= lhs_or ')'
{
- match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_lhs_exist3130); if (failed) return d;
- pushFollow(FOLLOW_lhs_or_in_lhs_exist3134);
+ match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_lhs_exist3327); if (failed) return d;
+ pushFollow(FOLLOW_lhs_or_in_lhs_exist3331);
column=lhs_or();
_fsp--;
if (failed) return d;
- match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_lhs_exist3136); if (failed) return d;
+ match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_lhs_exist3333); if (failed) return d;
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1258:42: column= lhs_column
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1303:42: column= lhs_column
{
- pushFollow(FOLLOW_lhs_column_in_lhs_exist3142);
+ pushFollow(FOLLOW_lhs_column_in_lhs_exist3339);
column=lhs_column();
_fsp--;
if (failed) return d;
@@ -4423,9 +4595,9 @@
}
if ( backtracking==0 ) {
-
- d = new ExistsDescr( (ColumnDescr) column );
- d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+
+ d = new ExistsDescr( (ColumnDescr) column );
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
}
@@ -4444,7 +4616,7 @@
// $ANTLR start lhs_not
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1265:1: lhs_not returns [NotDescr d] : loc= 'not' ( ( '(' lhs_or ')' )=> '(' column= lhs_or ')' | column= lhs_column ) ;
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1310:1: lhs_not returns [NotDescr d] : loc= 'not' ( ( '(' lhs_or ')' )=> '(' column= lhs_or ')' | column= lhs_column ) ;
public NotDescr lhs_not() throws RecognitionException {
NotDescr d = null;
@@ -4452,16 +4624,16 @@
BaseDescr column = null;
-
- d = null;
+
+ d = null;
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1269:4: (loc= 'not' ( ( '(' lhs_or ')' )=> '(' column= lhs_or ')' | column= lhs_column ) )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1269:4: loc= 'not' ( ( '(' lhs_or ')' )=> '(' column= lhs_or ')' | column= lhs_column )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1314:4: (loc= 'not' ( ( '(' lhs_or ')' )=> '(' column= lhs_or ')' | column= lhs_column ) )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1314:4: loc= 'not' ( ( '(' lhs_or ')' )=> '(' column= lhs_or ')' | column= lhs_column )
{
loc=(Token)input.LT(1);
- match(input,71,FOLLOW_71_in_lhs_not3172); if (failed) return d;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1269:14: ( ( '(' lhs_or ')' )=> '(' column= lhs_or ')' | column= lhs_column )
+ match(input,74,FOLLOW_74_in_lhs_not3369); if (failed) return d;
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1314:14: ( ( '(' lhs_or ')' )=> '(' column= lhs_or ')' | column= lhs_column )
int alt47=2;
int LA47_0 = input.LA(1);
if ( (LA47_0==LEFT_PAREN) ) {
@@ -4473,27 +4645,27 @@
else {
if (backtracking>0) {failed=true; return d;}
NoViableAltException nvae =
- new NoViableAltException("1269:14: ( ( '(' lhs_or ')' )=> '(' column= lhs_or ')' | column= lhs_column )", 47, 0, input);
+ new NoViableAltException("1314:14: ( ( '(' lhs_or ')' )=> '(' column= lhs_or ')' | column= lhs_column )", 47, 0, input);
throw nvae;
}
switch (alt47) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1269:15: ( '(' lhs_or ')' )=> '(' column= lhs_or ')'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1314:15: ( '(' lhs_or ')' )=> '(' column= lhs_or ')'
{
- match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_lhs_not3175); if (failed) return d;
- pushFollow(FOLLOW_lhs_or_in_lhs_not3179);
+ match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_lhs_not3372); if (failed) return d;
+ pushFollow(FOLLOW_lhs_or_in_lhs_not3376);
column=lhs_or();
_fsp--;
if (failed) return d;
- match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_lhs_not3182); if (failed) return d;
+ match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_lhs_not3379); if (failed) return d;
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1269:40: column= lhs_column
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1314:40: column= lhs_column
{
- pushFollow(FOLLOW_lhs_column_in_lhs_not3188);
+ pushFollow(FOLLOW_lhs_column_in_lhs_not3385);
column=lhs_column();
_fsp--;
if (failed) return d;
@@ -4504,9 +4676,9 @@
}
if ( backtracking==0 ) {
-
- d = new NotDescr( column );
- d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+
+ d = new NotDescr( column );
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
}
@@ -4525,7 +4697,7 @@
// $ANTLR start lhs_eval
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1276:1: lhs_eval returns [BaseDescr d] : loc= 'eval' c= paren_chunk ;
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1321:1: lhs_eval returns [BaseDescr d] : loc= 'eval' c= paren_chunk ;
public BaseDescr lhs_eval() throws RecognitionException {
BaseDescr d = null;
@@ -4533,24 +4705,24 @@
String c = null;
-
- d = null;
+
+ d = null;
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1280:4: (loc= 'eval' c= paren_chunk )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1280:4: loc= 'eval' c= paren_chunk
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1325:4: (loc= 'eval' c= paren_chunk )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1325:4: loc= 'eval' c= paren_chunk
{
loc=(Token)input.LT(1);
- match(input,72,FOLLOW_72_in_lhs_eval3216); if (failed) return d;
- pushFollow(FOLLOW_paren_chunk_in_lhs_eval3220);
+ match(input,75,FOLLOW_75_in_lhs_eval3413); if (failed) return d;
+ pushFollow(FOLLOW_paren_chunk_in_lhs_eval3417);
c=paren_chunk();
_fsp--;
if (failed) return d;
if ( backtracking==0 ) {
-
- 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 );
}
@@ -4569,25 +4741,25 @@
// $ANTLR start dotted_name
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1288:1: dotted_name returns [String name] : id= ID ( ( '.' ID )=> '.' id= ID )* ( ( '[' ']' )=> '[' ']' )* ;
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1333:1: dotted_name returns [String name] : id= 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:1293:3: (id= ID ( ( '.' ID )=> '.' id= ID )* ( ( '[' ']' )=> '[' ']' )* )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1293:3: id= ID ( ( '.' ID )=> '.' id= ID )* ( ( '[' ']' )=> '[' ']' )*
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1338:3: (id= ID ( ( '.' ID )=> '.' id= ID )* ( ( '[' ']' )=> '[' ']' )* )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1338:3: id= ID ( ( '.' ID )=> '.' id= ID )* ( ( '[' ']' )=> '[' ']' )*
{
id=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_dotted_name3251); if (failed) return name;
+ match(input,ID,FOLLOW_ID_in_dotted_name3448); if (failed) return name;
if ( backtracking==0 ) {
name=id.getText();
}
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1293:32: ( ( '.' ID )=> '.' id= ID )*
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1338:32: ( ( '.' ID )=> '.' id= ID )*
loop48:
do {
int alt48=2;
@@ -4599,11 +4771,11 @@
switch (alt48) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1293:34: ( '.' ID )=> '.' id= ID
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1338:34: ( '.' ID )=> '.' id= ID
{
- match(input,33,FOLLOW_33_in_dotted_name3257); if (failed) return name;
+ match(input,33,FOLLOW_33_in_dotted_name3454); if (failed) return name;
id=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_dotted_name3261); if (failed) return name;
+ match(input,ID,FOLLOW_ID_in_dotted_name3458); if (failed) return name;
if ( backtracking==0 ) {
name = name + "." + id.getText();
}
@@ -4616,7 +4788,7 @@
}
} while (true);
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1293:85: ( ( '[' ']' )=> '[' ']' )*
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1338:85: ( ( '[' ']' )=> '[' ']' )*
loop49:
do {
int alt49=2;
@@ -4628,10 +4800,10 @@
switch (alt49) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1293:87: ( '[' ']' )=> '[' ']'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1338:87: ( '[' ']' )=> '[' ']'
{
- match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_dotted_name3270); if (failed) return name;
- match(input,RIGHT_SQUARE,FOLLOW_RIGHT_SQUARE_in_dotted_name3272); if (failed) return name;
+ match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_dotted_name3467); if (failed) return name;
+ match(input,RIGHT_SQUARE,FOLLOW_RIGHT_SQUARE_in_dotted_name3469); if (failed) return name;
if ( backtracking==0 ) {
name = name + "[]";
}
@@ -4660,25 +4832,25 @@
// $ANTLR start argument
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1296:1: argument returns [String name] : id= ID ( ( '[' ']' )=> '[' ']' )* ;
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1341: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:1301:3: (id= ID ( ( '[' ']' )=> '[' ']' )* )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1301:3: id= ID ( ( '[' ']' )=> '[' ']' )*
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1346:3: (id= ID ( ( '[' ']' )=> '[' ']' )* )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1346:3: id= ID ( ( '[' ']' )=> '[' ']' )*
{
id=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_argument3302); if (failed) return name;
+ match(input,ID,FOLLOW_ID_in_argument3499); if (failed) return name;
if ( backtracking==0 ) {
name=id.getText();
}
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1301:32: ( ( '[' ']' )=> '[' ']' )*
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1346:32: ( ( '[' ']' )=> '[' ']' )*
loop50:
do {
int alt50=2;
@@ -4690,10 +4862,10 @@
switch (alt50) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1301:34: ( '[' ']' )=> '[' ']'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1346:34: ( '[' ']' )=> '[' ']'
{
- match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_argument3308); if (failed) return name;
- match(input,RIGHT_SQUARE,FOLLOW_RIGHT_SQUARE_in_argument3310); if (failed) return name;
+ match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_argument3505); if (failed) return name;
+ match(input,RIGHT_SQUARE,FOLLOW_RIGHT_SQUARE_in_argument3507); if (failed) return name;
if ( backtracking==0 ) {
name = name + "[]";
}
@@ -4722,42 +4894,42 @@
// $ANTLR start rhs_chunk
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1304:1: rhs_chunk[RuleDescr rule] : start= 'then' ( (~ END )=>~ END )* END ;
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1349:1: rhs_chunk[RuleDescr rule] : start= 'then' ( (~ END )=>~ END )* END ;
public void rhs_chunk(RuleDescr rule) throws RecognitionException {
Token start=null;
-
- StringBuffer buf = null;
- Integer channel = null;
+
+ StringBuffer buf = null;
+ Integer channel = null;
try {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1310:10: (start= 'then' ( (~ END )=>~ END )* END )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1310:10: start= 'then' ( (~ END )=>~ END )* END
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1355:10: (start= 'then' ( (~ END )=>~ END )* END )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1355:10: start= 'then' ( (~ END )=>~ END )* END
{
if ( backtracking==0 ) {
-
- channel = ((SwitchingCommonTokenStream)input).getTokenTypeChannel( WS );
- ((SwitchingCommonTokenStream)input).setTokenTypeChannel( WS, Token.DEFAULT_CHANNEL );
- buf = new StringBuffer();
+
+ channel = ((SwitchingCommonTokenStream)input).getTokenTypeChannel( WS );
+ ((SwitchingCommonTokenStream)input).setTokenTypeChannel( WS, Token.DEFAULT_CHANNEL );
+ buf = new StringBuffer();
}
start=(Token)input.LT(1);
- match(input,THEN,FOLLOW_THEN_in_rhs_chunk3354); if (failed) return ;
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1316:3: ( (~ END )=>~ END )*
+ match(input,THEN,FOLLOW_THEN_in_rhs_chunk3551); if (failed) return ;
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1361:3: ( (~ END )=>~ END )*
loop51:
do {
int alt51=2;
int LA51_0 = input.LA(1);
- if ( ((LA51_0>=ID && LA51_0<=RIGHT_SQUARE)||(LA51_0>=THEN && LA51_0<=73)) ) {
+ if ( ((LA51_0>=ID && LA51_0<=RIGHT_SQUARE)||(LA51_0>=THEN && LA51_0<=76)) ) {
alt51=1;
}
switch (alt51) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1317:6: (~ END )=>~ END
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1362:6: (~ END )=>~ END
{
- if ( (input.LA(1)>=ID && input.LA(1)<=RIGHT_SQUARE)||(input.LA(1)>=THEN && input.LA(1)<=73) ) {
+ if ( (input.LA(1)>=ID && input.LA(1)<=RIGHT_SQUARE)||(input.LA(1)>=THEN && input.LA(1)<=76) ) {
input.consume();
errorRecovery=false;failed=false;
}
@@ -4765,12 +4937,12 @@
if (backtracking>0) {failed=true; return ;}
MismatchedSetException mse =
new MismatchedSetException(null,input);
- recoverFromMismatchedSet(input,mse,FOLLOW_set_in_rhs_chunk3366); throw mse;
+ recoverFromMismatchedSet(input,mse,FOLLOW_set_in_rhs_chunk3563); throw mse;
}
if ( backtracking==0 ) {
-
- buf.append( input.LT(-1).getText() );
+
+ buf.append( input.LT(-1).getText() );
}
@@ -4783,29 +4955,29 @@
} while (true);
if ( backtracking==0 ) {
-
- if( channel != null ) {
- ((SwitchingCommonTokenStream)input).setTokenTypeChannel(WS, channel.intValue());
- } else {
- ((SwitchingCommonTokenStream)input).setTokenTypeChannel(WS, Token.HIDDEN_CHANNEL);
- }
+
+ if( channel != null ) {
+ ((SwitchingCommonTokenStream)input).setTokenTypeChannel(WS, channel.intValue());
+ } else {
+ ((SwitchingCommonTokenStream)input).setTokenTypeChannel(WS, Token.HIDDEN_CHANNEL);
+ }
}
- match(input,END,FOLLOW_END_in_rhs_chunk3401); if (failed) return ;
+ match(input,END,FOLLOW_END_in_rhs_chunk3598); if (failed) return ;
if ( backtracking==0 ) {
-
- // ignoring first line in the consequence
- int index = 0;
- while( (index < buf.length() ) && Character.isWhitespace( buf.charAt( index ) ) &&
- (buf.charAt( index ) != 10 ) && (buf.charAt( index ) != 13 ))
- index++;
- if( (index < buf.length() ) && ( buf.charAt( index ) == '\r' ) )
- index++;
- if( (index < buf.length() ) && ( buf.charAt( index ) == '\n' ) )
- index++;
-
- rule.setConsequence( buf.substring( index ) );
- rule.setConsequenceLocation(offset(start.getLine()), start.getCharPositionInLine());
+
+ // ignoring first line in the consequence
+ int index = 0;
+ while( (index < buf.length() ) && Character.isWhitespace( buf.charAt( index ) ) &&
+ (buf.charAt( index ) != 10 ) && (buf.charAt( index ) != 13 ))
+ index++;
+ if( (index < buf.length() ) && ( buf.charAt( index ) == '\r' ) )
+ index++;
+ if( (index < buf.length() ) && ( buf.charAt( index ) == '\n' ) )
+ index++;
+
+ rule.setConsequence( buf.substring( index ) );
+ rule.setConsequenceLocation(offset(start.getLine()), start.getCharPositionInLine());
}
@@ -4824,18 +4996,18 @@
// $ANTLR start word
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1347:1: word returns [String word] : ( ( ID )=>id= ID | ( 'import' )=> 'import' | ( 'use' )=> 'use' | ( RULE )=> RULE | ( 'query' )=> 'query' | ( 'salience' )=> 'salience' | ( 'no-loop' )=> 'no-loop' | ( WHEN )=> WHEN | ( THEN )=> THEN | ( END )=> END | str= STRING );
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1392:1: word returns [String word] : ( ( ID )=>id= ID | ( 'import' )=> 'import' | ( 'use' )=> 'use' | ( RULE )=> RULE | ( 'query' )=> 'query' | ( 'salience' )=> 'salience' | ( 'no-loop' )=> 'no-loop' | ( WHEN )=> WHEN | ( THEN )=> THEN | ( END )=> 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:1351:4: ( ( ID )=>id= ID | ( 'import' )=> 'import' | ( 'use' )=> 'use' | ( RULE )=> RULE | ( 'query' )=> 'query' | ( 'salience' )=> 'salience' | ( 'no-loop' )=> 'no-loop' | ( WHEN )=> WHEN | ( THEN )=> THEN | ( END )=> END | str= STRING )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1396:4: ( ( ID )=>id= ID | ( 'import' )=> 'import' | ( 'use' )=> 'use' | ( RULE )=> RULE | ( 'query' )=> 'query' | ( 'salience' )=> 'salience' | ( 'no-loop' )=> 'no-loop' | ( WHEN )=> WHEN | ( THEN )=> THEN | ( END )=> END | str= STRING )
int alt52=11;
switch ( input.LA(1) ) {
case ID:
@@ -4844,7 +5016,7 @@
case 31:
alt52=2;
break;
- case 73:
+ case 76:
alt52=3;
break;
case RULE:
@@ -4853,10 +5025,10 @@
case 37:
alt52=5;
break;
- case 41:
+ case 44:
alt52=6;
break;
- case 42:
+ case 45:
alt52=7;
break;
case WHEN:
@@ -4874,17 +5046,17 @@
default:
if (backtracking>0) {failed=true; return word;}
NoViableAltException nvae =
- new NoViableAltException("1347:1: word returns [String word] : ( ( ID )=>id= ID | ( 'import' )=> 'import' | ( 'use' )=> 'use' | ( RULE )=> RULE | ( 'query' )=> 'query' | ( 'salience' )=> 'salience' | ( 'no-loop' )=> 'no-loop' | ( WHEN )=> WHEN | ( THEN )=> THEN | ( END )=> END | str= STRING );", 52, 0, input);
+ new NoViableAltException("1392:1: word returns [String word] : ( ( ID )=>id= ID | ( 'import' )=> 'import' | ( 'use' )=> 'use' | ( RULE )=> RULE | ( 'query' )=> 'query' | ( 'salience' )=> 'salience' | ( 'no-loop' )=> 'no-loop' | ( WHEN )=> WHEN | ( THEN )=> THEN | ( END )=> END | str= STRING );", 52, 0, input);
throw nvae;
}
switch (alt52) {
case 1 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1351:4: ( ID )=>id= ID
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1396:4: ( ID )=>id= ID
{
id=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_word3443); if (failed) return word;
+ match(input,ID,FOLLOW_ID_in_word3640); if (failed) return word;
if ( backtracking==0 ) {
word=id.getText();
}
@@ -4892,9 +5064,9 @@
}
break;
case 2 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1352:4: ( 'import' )=> 'import'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1397:4: ( 'import' )=> 'import'
{
- match(input,31,FOLLOW_31_in_word3455); if (failed) return word;
+ match(input,31,FOLLOW_31_in_word3652); if (failed) return word;
if ( backtracking==0 ) {
word="import";
}
@@ -4902,9 +5074,9 @@
}
break;
case 3 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1353:4: ( 'use' )=> 'use'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1398:4: ( 'use' )=> 'use'
{
- match(input,73,FOLLOW_73_in_word3464); if (failed) return word;
+ match(input,76,FOLLOW_76_in_word3661); if (failed) return word;
if ( backtracking==0 ) {
word="use";
}
@@ -4912,9 +5084,9 @@
}
break;
case 4 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1354:4: ( RULE )=> RULE
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1399:4: ( RULE )=> RULE
{
- match(input,RULE,FOLLOW_RULE_in_word3476); if (failed) return word;
+ match(input,RULE,FOLLOW_RULE_in_word3673); if (failed) return word;
if ( backtracking==0 ) {
word="rule";
}
@@ -4922,9 +5094,9 @@
}
break;
case 5 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1355:4: ( 'query' )=> 'query'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1400:4: ( 'query' )=> 'query'
{
- match(input,37,FOLLOW_37_in_word3489); if (failed) return word;
+ match(input,37,FOLLOW_37_in_word3686); if (failed) return word;
if ( backtracking==0 ) {
word="query";
}
@@ -4932,9 +5104,9 @@
}
break;
case 6 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1356:4: ( 'salience' )=> 'salience'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1401:4: ( 'salience' )=> 'salience'
{
- match(input,41,FOLLOW_41_in_word3499); if (failed) return word;
+ match(input,44,FOLLOW_44_in_word3696); if (failed) return word;
if ( backtracking==0 ) {
word="salience";
}
@@ -4942,9 +5114,9 @@
}
break;
case 7 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1357:5: ( 'no-loop' )=> 'no-loop'
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1402:5: ( 'no-loop' )=> 'no-loop'
{
- match(input,42,FOLLOW_42_in_word3507); if (failed) return word;
+ match(input,45,FOLLOW_45_in_word3704); if (failed) return word;
if ( backtracking==0 ) {
word="no-loop";
}
@@ -4952,9 +5124,9 @@
}
break;
case 8 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1358:4: ( WHEN )=> WHEN
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1403:4: ( WHEN )=> WHEN
{
- match(input,WHEN,FOLLOW_WHEN_in_word3515); if (failed) return word;
+ match(input,WHEN,FOLLOW_WHEN_in_word3712); if (failed) return word;
if ( backtracking==0 ) {
word="when";
}
@@ -4962,9 +5134,9 @@
}
break;
case 9 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1359:4: ( THEN )=> THEN
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1404:4: ( THEN )=> THEN
{
- match(input,THEN,FOLLOW_THEN_in_word3528); if (failed) return word;
+ match(input,THEN,FOLLOW_THEN_in_word3725); if (failed) return word;
if ( backtracking==0 ) {
word="then";
}
@@ -4972,9 +5144,9 @@
}
break;
case 10 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1360:4: ( END )=> END
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1405:4: ( END )=> END
{
- match(input,END,FOLLOW_END_in_word3541); if (failed) return word;
+ match(input,END,FOLLOW_END_in_word3738); if (failed) return word;
if ( backtracking==0 ) {
word="end";
}
@@ -4982,10 +5154,10 @@
}
break;
case 11 :
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1361:4: str= STRING
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1406:4: str= STRING
{
str=(Token)input.LT(1);
- match(input,STRING,FOLLOW_STRING_in_word3557); if (failed) return word;
+ match(input,STRING,FOLLOW_STRING_in_word3754); if (failed) return word;
if ( backtracking==0 ) {
word=getString(str);
}
@@ -5005,16 +5177,16 @@
}
// $ANTLR end word
- // $ANTLR start synpred32
- public void synpred32_fragment() throws RecognitionException {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:700:4: ( ( ID paren_chunk ) )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:700:4: ( ID paren_chunk )
+ // $ANTLR start synpred35
+ public void synpred35_fragment() throws RecognitionException {
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:745:4: ( ( ID paren_chunk ) )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:745:4: ( ID paren_chunk )
{
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:700:4: ( ID paren_chunk )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:700:6: ID paren_chunk
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:745:4: ( ID paren_chunk )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:745:6: ID paren_chunk
{
- match(input,ID,FOLLOW_ID_in_synpred321333); if (failed) return ;
- pushFollow(FOLLOW_paren_chunk_in_synpred321337);
+ match(input,ID,FOLLOW_ID_in_synpred351530); if (failed) return ;
+ pushFollow(FOLLOW_paren_chunk_in_synpred351534);
paren_chunk();
_fsp--;
if (failed) return ;
@@ -5024,18 +5196,18 @@
}
}
- // $ANTLR end synpred32
+ // $ANTLR end synpred35
- // $ANTLR start synpred35
- public void synpred35_fragment() throws RecognitionException {
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:740:6: ( LEFT_PAREN )
- // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:740:8: LEFT_PAREN
+ // $ANTLR start synpred38
+ public void synpred38_fragment() throws RecognitionException {
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:785:6: ( LEFT_PAREN )
+ // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:785:8: LEFT_PAREN
{
- match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_synpred351478); if (failed) return ;
+ match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_synpred381675); if (failed) return ;
}
}
- // $ANTLR end synpred35
+ // $ANTLR end synpred38
public boolean synpred35() {
backtracking++;
@@ -5051,11 +5223,11 @@
failed=false;
return success;
}
- public boolean synpred32() {
+ public boolean synpred38() {
backtracking++;
int start = input.mark();
try {
- synpred32_fragment(); // can never throw exception
+ synpred38_fragment(); // can never throw exception
} catch (RecognitionException re) {
System.err.println("impossible: "+re);
}
@@ -5193,8 +5365,8 @@
public static final BitSet FOLLOW_argument_in_function427 = new BitSet(new long[]{0x0000001000001000L});
public static final BitSet FOLLOW_RIGHT_PAREN_in_function451 = new BitSet(new long[]{0x0000000000002000L});
public static final BitSet FOLLOW_curly_chunk_in_function457 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_37_in_query488 = new BitSet(new long[]{0x0000062080060270L,0x0000000000000200L});
- public static final BitSet FOLLOW_word_in_query492 = new BitSet(new long[]{0x0000000000020810L,0x00000000000001C0L});
+ public static final BitSet FOLLOW_37_in_query488 = new BitSet(new long[]{0x00003020800600F0L,0x0000000000001000L});
+ public static final BitSet FOLLOW_word_in_query492 = new BitSet(new long[]{0x0000000000020810L,0x0000000000000E00L});
public static final BitSet FOLLOW_normal_lhs_block_in_query506 = new BitSet(new long[]{0x0000000000020000L});
public static final BitSet FOLLOW_END_in_query521 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_38_in_template547 = new BitSet(new long[]{0x0000000000000010L});
@@ -5206,190 +5378,200 @@
public static final BitSet FOLLOW_dotted_name_in_template_slot617 = new BitSet(new long[]{0x0000000000000010L});
public static final BitSet FOLLOW_ID_in_template_slot621 = new BitSet(new long[]{0x0000000020000002L});
public static final BitSet FOLLOW_opt_semicolon_in_template_slot623 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_RULE_in_rule654 = new BitSet(new long[]{0x0000062080060270L,0x0000000000000200L});
- public static final BitSet FOLLOW_word_in_rule658 = new BitSet(new long[]{0x00007F1000040040L});
+ public static final BitSet FOLLOW_RULE_in_rule654 = new BitSet(new long[]{0x00003020800600F0L,0x0000000000001000L});
+ public static final BitSet FOLLOW_word_in_rule658 = new BitSet(new long[]{0x0003FF1000040040L});
public static final BitSet FOLLOW_rule_attributes_in_rule667 = new BitSet(new long[]{0x0000000000040040L});
- public static final BitSet FOLLOW_WHEN_in_rule676 = new BitSet(new long[]{0x0000008000040810L,0x00000000000001C0L});
- public static final BitSet FOLLOW_39_in_rule678 = new BitSet(new long[]{0x0000000000040810L,0x00000000000001C0L});
+ public static final BitSet FOLLOW_WHEN_in_rule676 = new BitSet(new long[]{0x0000008000040810L,0x0000000000000E00L});
+ public static final BitSet FOLLOW_39_in_rule678 = new BitSet(new long[]{0x0000000000040810L,0x0000000000000E00L});
public static final BitSet FOLLOW_normal_lhs_block_in_rule696 = new BitSet(new long[]{0x0000000000040000L});
public static final BitSet FOLLOW_rhs_chunk_in_rule717 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_40_in_rule_attributes738 = new BitSet(new long[]{0x0000008000000000L});
- public static final BitSet FOLLOW_39_in_rule_attributes740 = new BitSet(new long[]{0x00007E1000000002L});
- public static final BitSet FOLLOW_36_in_rule_attributes749 = new BitSet(new long[]{0x00007E0000000000L});
- public static final BitSet FOLLOW_rule_attribute_in_rule_attributes754 = new BitSet(new long[]{0x00007E1000000002L});
+ public static final BitSet FOLLOW_39_in_rule_attributes740 = new BitSet(new long[]{0x0003FE1000000002L});
+ public static final BitSet FOLLOW_36_in_rule_attributes749 = new BitSet(new long[]{0x0003FE0000000000L});
+ public static final BitSet FOLLOW_rule_attribute_in_rule_attributes754 = new BitSet(new long[]{0x0003FE1000000002L});
public static final BitSet FOLLOW_salience_in_rule_attribute795 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_no_loop_in_rule_attribute805 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_agenda_group_in_rule_attribute816 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_duration_in_rule_attribute829 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_activation_group_in_rule_attribute843 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_auto_focus_in_rule_attribute854 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_41_in_salience888 = new BitSet(new long[]{0x0000000000000080L});
- public static final BitSet FOLLOW_INT_in_salience892 = new BitSet(new long[]{0x0000000020000002L});
- public static final BitSet FOLLOW_opt_semicolon_in_salience894 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_42_in_no_loop929 = new BitSet(new long[]{0x0000000020000002L});
- public static final BitSet FOLLOW_opt_semicolon_in_no_loop931 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_42_in_no_loop956 = new BitSet(new long[]{0x0000000000000100L});
- public static final BitSet FOLLOW_BOOL_in_no_loop960 = new BitSet(new long[]{0x0000000020000002L});
- public static final BitSet FOLLOW_opt_semicolon_in_no_loop962 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_43_in_auto_focus1008 = new BitSet(new long[]{0x0000000020000002L});
- public static final BitSet FOLLOW_opt_semicolon_in_auto_focus1010 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_43_in_auto_focus1035 = new BitSet(new long[]{0x0000000000000100L});
- public static final BitSet FOLLOW_BOOL_in_auto_focus1039 = new BitSet(new long[]{0x0000000020000002L});
- public static final BitSet FOLLOW_opt_semicolon_in_auto_focus1041 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_44_in_activation_group1083 = new BitSet(new long[]{0x0000000000000200L});
- public static final BitSet FOLLOW_STRING_in_activation_group1087 = new BitSet(new long[]{0x0000000020000002L});
- public static final BitSet FOLLOW_opt_semicolon_in_activation_group1089 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_45_in_agenda_group1118 = new BitSet(new long[]{0x0000000000000200L});
- public static final BitSet FOLLOW_STRING_in_agenda_group1122 = new BitSet(new long[]{0x0000000020000002L});
- public static final BitSet FOLLOW_opt_semicolon_in_agenda_group1124 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_46_in_duration1156 = new BitSet(new long[]{0x0000000000000080L});
- public static final BitSet FOLLOW_INT_in_duration1160 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_lhs_in_normal_lhs_block1186 = new BitSet(new long[]{0x0000000000000812L,0x00000000000001C0L});
- public static final BitSet FOLLOW_lhs_or_in_lhs1224 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_fact_binding_in_lhs_column1252 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_fact_in_lhs_column1261 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_47_in_from_statement1286 = new BitSet(new long[]{0x0000000000000010L});
- public static final BitSet FOLLOW_from_source_in_from_statement1290 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ID_in_from_source1333 = new BitSet(new long[]{0x0000000000000800L});
- public static final BitSet FOLLOW_paren_chunk_in_from_source1337 = new BitSet(new long[]{0x0000000200000002L});
- public static final BitSet FOLLOW_ID_in_from_source1370 = new BitSet(new long[]{0x0000000200000002L});
- public static final BitSet FOLLOW_expression_chain_in_from_source1393 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_33_in_expression_chain1418 = new BitSet(new long[]{0x0000000000000010L});
- public static final BitSet FOLLOW_ID_in_expression_chain1422 = new BitSet(new long[]{0x0000000200008802L});
- public static final BitSet FOLLOW_square_chunk_in_expression_chain1453 = new BitSet(new long[]{0x0000000200000002L});
- public static final BitSet FOLLOW_paren_chunk_in_expression_chain1486 = new BitSet(new long[]{0x0000000200000002L});
- public static final BitSet FOLLOW_expression_chain_in_expression_chain1506 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_47_in_accumulate_statement1547 = new BitSet(new long[]{0x0001000000000000L});
- public static final BitSet FOLLOW_48_in_accumulate_statement1549 = new BitSet(new long[]{0x0000000000000800L});
- public static final BitSet FOLLOW_LEFT_PAREN_in_accumulate_statement1559 = new BitSet(new long[]{0x0000000000000010L});
- public static final BitSet FOLLOW_lhs_column_in_accumulate_statement1563 = new BitSet(new long[]{0x0000001000000000L});
- public static final BitSet FOLLOW_36_in_accumulate_statement1565 = new BitSet(new long[]{0x0002000000000000L});
- public static final BitSet FOLLOW_49_in_accumulate_statement1574 = new BitSet(new long[]{0x0000000000000800L});
- public static final BitSet FOLLOW_paren_chunk_in_accumulate_statement1578 = new BitSet(new long[]{0x0000001000000000L});
- public static final BitSet FOLLOW_36_in_accumulate_statement1580 = new BitSet(new long[]{0x0004000000000000L});
- public static final BitSet FOLLOW_50_in_accumulate_statement1589 = new BitSet(new long[]{0x0000000000000800L});
- public static final BitSet FOLLOW_paren_chunk_in_accumulate_statement1593 = new BitSet(new long[]{0x0000001000000000L});
- public static final BitSet FOLLOW_36_in_accumulate_statement1595 = new BitSet(new long[]{0x0008000000000000L});
- public static final BitSet FOLLOW_51_in_accumulate_statement1604 = new BitSet(new long[]{0x0000000000000800L});
- public static final BitSet FOLLOW_paren_chunk_in_accumulate_statement1608 = new BitSet(new long[]{0x0000000000001000L});
- public static final BitSet FOLLOW_RIGHT_PAREN_in_accumulate_statement1610 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_47_in_collect_statement1653 = new BitSet(new long[]{0x0010000000000000L});
- public static final BitSet FOLLOW_52_in_collect_statement1655 = new BitSet(new long[]{0x0000000000000800L});
- public static final BitSet FOLLOW_LEFT_PAREN_in_collect_statement1665 = new BitSet(new long[]{0x0000000000000010L});
- public static final BitSet FOLLOW_lhs_column_in_collect_statement1669 = new BitSet(new long[]{0x0000000000001000L});
- public static final BitSet FOLLOW_RIGHT_PAREN_in_collect_statement1671 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ID_in_fact_binding1706 = new BitSet(new long[]{0x0000008000000000L});
- public static final BitSet FOLLOW_39_in_fact_binding1716 = new BitSet(new long[]{0x0000000000000810L});
- public static final BitSet FOLLOW_fact_expression_in_fact_binding1720 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_LEFT_PAREN_in_fact_expression1752 = new BitSet(new long[]{0x0000000000000810L});
- public static final BitSet FOLLOW_fact_expression_in_paren_in_fact_expression1756 = new BitSet(new long[]{0x0000000000001000L});
- public static final BitSet FOLLOW_RIGHT_PAREN_in_fact_expression1759 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_fact_in_fact_expression1770 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_LEFT_PAREN_in_fact_expression_in_paren1801 = new BitSet(new long[]{0x0000000000000810L});
- public static final BitSet FOLLOW_fact_expression_in_paren_in_fact_expression_in_paren1805 = new BitSet(new long[]{0x0000000000001000L});
- public static final BitSet FOLLOW_RIGHT_PAREN_in_fact_expression_in_paren1807 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_fact_in_fact_expression_in_paren1818 = new BitSet(new long[]{0x0060000000000002L});
- public static final BitSet FOLLOW_set_in_fact_expression_in_paren1831 = new BitSet(new long[]{0x0000000000000010L});
- public static final BitSet FOLLOW_fact_in_fact_expression_in_paren1848 = new BitSet(new long[]{0x0060000000000002L});
- public static final BitSet FOLLOW_dotted_name_in_fact1887 = new BitSet(new long[]{0x0000000000000800L});
- public static final BitSet FOLLOW_LEFT_PAREN_in_fact1900 = new BitSet(new long[]{0x0000000000001010L});
- public static final BitSet FOLLOW_constraints_in_fact1912 = new BitSet(new long[]{0x0000000000001000L});
- public static final BitSet FOLLOW_RIGHT_PAREN_in_fact1933 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_constraint_in_constraints1963 = new BitSet(new long[]{0x0000001000000002L});
- public static final BitSet FOLLOW_predicate_in_constraints1966 = new BitSet(new long[]{0x0000001000000002L});
- public static final BitSet FOLLOW_36_in_constraints1974 = new BitSet(new long[]{0x0000000000000010L});
- public static final BitSet FOLLOW_constraint_in_constraints1977 = new BitSet(new long[]{0x0000001000000002L});
- public static final BitSet FOLLOW_predicate_in_constraints1980 = new BitSet(new long[]{0x0000001000000002L});
- public static final BitSet FOLLOW_ID_in_constraint2009 = new BitSet(new long[]{0x0000008000000000L});
- public static final BitSet FOLLOW_39_in_constraint2011 = new BitSet(new long[]{0x0000000000000010L});
- public static final BitSet FOLLOW_ID_in_constraint2021 = new BitSet(new long[]{0xFE00000000000002L,0x0000000000000003L});
- public static final BitSet FOLLOW_constraint_expression_in_constraint2037 = new BitSet(new long[]{0x0180000000000002L});
- public static final BitSet FOLLOW_set_in_constraint2056 = new BitSet(new long[]{0xFE00000000000000L,0x0000000000000003L});
- public static final BitSet FOLLOW_constraint_expression_in_constraint2073 = new BitSet(new long[]{0x0180000000000002L});
- public static final BitSet FOLLOW_set_in_constraint_expression2125 = new BitSet(new long[]{0x0000000000000F90L,0x0000000000000004L});
- public static final BitSet FOLLOW_ID_in_constraint_expression2192 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_enum_constraint_in_constraint_expression2208 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_literal_constraint_in_constraint_expression2231 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_retval_constraint_in_constraint_expression2245 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_STRING_in_literal_constraint2284 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_INT_in_literal_constraint2295 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_FLOAT_in_literal_constraint2308 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_BOOL_in_literal_constraint2319 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_66_in_literal_constraint2331 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ID_in_enum_constraint2362 = new BitSet(new long[]{0x0000000200000000L});
- public static final BitSet FOLLOW_33_in_enum_constraint2364 = new BitSet(new long[]{0x0000000000000010L});
- public static final BitSet FOLLOW_ID_in_enum_constraint2368 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ID_in_predicate2390 = new BitSet(new long[]{0x0000008000000000L});
- public static final BitSet FOLLOW_39_in_predicate2392 = new BitSet(new long[]{0x0000000000000010L});
- public static final BitSet FOLLOW_ID_in_predicate2396 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000008L});
- public static final BitSet FOLLOW_67_in_predicate2398 = new BitSet(new long[]{0x0000000000000800L});
- public static final BitSet FOLLOW_paren_chunk_in_predicate2402 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_LEFT_PAREN_in_paren_chunk2449 = new BitSet(new long[]{0xFFFFFFFFFFFFFFF0L,0x00000000000003FFL});
- public static final BitSet FOLLOW_set_in_paren_chunk2465 = new BitSet(new long[]{0xFFFFFFFFFFFFFFF0L,0x00000000000003FFL});
- public static final BitSet FOLLOW_paren_chunk_in_paren_chunk2489 = new BitSet(new long[]{0xFFFFFFFFFFFFFFF0L,0x00000000000003FFL});
- public static final BitSet FOLLOW_RIGHT_PAREN_in_paren_chunk2525 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_LEFT_CURLY_in_curly_chunk2575 = new BitSet(new long[]{0xFFFFFFFFFFFFFFF0L,0x00000000000003FFL});
- public static final BitSet FOLLOW_set_in_curly_chunk2591 = new BitSet(new long[]{0xFFFFFFFFFFFFFFF0L,0x00000000000003FFL});
- public static final BitSet FOLLOW_curly_chunk_in_curly_chunk2615 = new BitSet(new long[]{0xFFFFFFFFFFFFFFF0L,0x00000000000003FFL});
- public static final BitSet FOLLOW_RIGHT_CURLY_in_curly_chunk2651 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_LEFT_SQUARE_in_square_chunk2712 = new BitSet(new long[]{0xFFFFFFFFFFFFFFF0L,0x00000000000003FFL});
- public static final BitSet FOLLOW_set_in_square_chunk2728 = new BitSet(new long[]{0xFFFFFFFFFFFFFFF0L,0x00000000000003FFL});
- public static final BitSet FOLLOW_square_chunk_in_square_chunk2752 = new BitSet(new long[]{0xFFFFFFFFFFFFFFF0L,0x00000000000003FFL});
- public static final BitSet FOLLOW_RIGHT_SQUARE_in_square_chunk2788 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_paren_chunk_in_retval_constraint2833 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_lhs_and_in_lhs_or2866 = new BitSet(new long[]{0x0060000000000002L});
- public static final BitSet FOLLOW_set_in_lhs_or2875 = new BitSet(new long[]{0x0000000000000810L,0x00000000000001C0L});
- public static final BitSet FOLLOW_lhs_and_in_lhs_or2885 = new BitSet(new long[]{0x0060000000000002L});
- public static final BitSet FOLLOW_lhs_unary_in_lhs_and2921 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000030L});
- public static final BitSet FOLLOW_set_in_lhs_and2930 = new BitSet(new long[]{0x0000000000000810L,0x00000000000001C0L});
- public static final BitSet FOLLOW_lhs_unary_in_lhs_and2940 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000030L});
- public static final BitSet FOLLOW_lhs_exist_in_lhs_unary2977 = new BitSet(new long[]{0x0000000020000002L});
- public static final BitSet FOLLOW_lhs_not_in_lhs_unary2985 = new BitSet(new long[]{0x0000000020000002L});
- public static final BitSet FOLLOW_lhs_eval_in_lhs_unary2993 = new BitSet(new long[]{0x0000000020000002L});
- public static final BitSet FOLLOW_lhs_column_in_lhs_unary3001 = new BitSet(new long[]{0x0000800020000002L});
- public static final BitSet FOLLOW_from_statement_in_lhs_unary3021 = new BitSet(new long[]{0x0000000020000002L});
- public static final BitSet FOLLOW_accumulate_statement_in_lhs_unary3043 = new BitSet(new long[]{0x0000000020000002L});
- public static final BitSet FOLLOW_collect_statement_in_lhs_unary3064 = new BitSet(new long[]{0x0000000020000002L});
- public static final BitSet FOLLOW_LEFT_PAREN_in_lhs_unary3087 = new BitSet(new long[]{0x0000000000000810L,0x00000000000001C0L});
- public static final BitSet FOLLOW_lhs_in_lhs_unary3091 = new BitSet(new long[]{0x0000000000001000L});
- public static final BitSet FOLLOW_RIGHT_PAREN_in_lhs_unary3093 = new BitSet(new long[]{0x0000000020000002L});
- public static final BitSet FOLLOW_opt_semicolon_in_lhs_unary3103 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_70_in_lhs_exist3127 = new BitSet(new long[]{0x0000000000000810L});
- public static final BitSet FOLLOW_LEFT_PAREN_in_lhs_exist3130 = new BitSet(new long[]{0x0000000000000810L,0x00000000000001C0L});
- public static final BitSet FOLLOW_lhs_or_in_lhs_exist3134 = new BitSet(new long[]{0x0000000000001000L});
- public static final BitSet FOLLOW_RIGHT_PAREN_in_lhs_exist3136 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_lhs_column_in_lhs_exist3142 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_71_in_lhs_not3172 = new BitSet(new long[]{0x0000000000000810L});
- public static final BitSet FOLLOW_LEFT_PAREN_in_lhs_not3175 = new BitSet(new long[]{0x0000000000000810L,0x00000000000001C0L});
- public static final BitSet FOLLOW_lhs_or_in_lhs_not3179 = new BitSet(new long[]{0x0000000000001000L});
- public static final BitSet FOLLOW_RIGHT_PAREN_in_lhs_not3182 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_lhs_column_in_lhs_not3188 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_72_in_lhs_eval3216 = new BitSet(new long[]{0x0000000000000800L});
- public static final BitSet FOLLOW_paren_chunk_in_lhs_eval3220 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ID_in_dotted_name3251 = new BitSet(new long[]{0x0000000200008002L});
- public static final BitSet FOLLOW_33_in_dotted_name3257 = new BitSet(new long[]{0x0000000000000010L});
- public static final BitSet FOLLOW_ID_in_dotted_name3261 = new BitSet(new long[]{0x0000000200008002L});
- public static final BitSet FOLLOW_LEFT_SQUARE_in_dotted_name3270 = new BitSet(new long[]{0x0000000000010000L});
- public static final BitSet FOLLOW_RIGHT_SQUARE_in_dotted_name3272 = new BitSet(new long[]{0x0000000000008002L});
- public static final BitSet FOLLOW_ID_in_argument3302 = new BitSet(new long[]{0x0000000000008002L});
- public static final BitSet FOLLOW_LEFT_SQUARE_in_argument3308 = new BitSet(new long[]{0x0000000000010000L});
- public static final BitSet FOLLOW_RIGHT_SQUARE_in_argument3310 = new BitSet(new long[]{0x0000000000008002L});
- public static final BitSet FOLLOW_THEN_in_rhs_chunk3354 = new BitSet(new long[]{0xFFFFFFFFFFFFFFF0L,0x00000000000003FFL});
- public static final BitSet FOLLOW_set_in_rhs_chunk3366 = new BitSet(new long[]{0xFFFFFFFFFFFFFFF0L,0x00000000000003FFL});
- public static final BitSet FOLLOW_END_in_rhs_chunk3401 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ID_in_word3443 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_31_in_word3455 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_73_in_word3464 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_RULE_in_word3476 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_37_in_word3489 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_41_in_word3499 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_42_in_word3507 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_WHEN_in_word3515 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_THEN_in_word3528 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_END_in_word3541 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_STRING_in_word3557 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ID_in_synpred321333 = new BitSet(new long[]{0x0000000000000800L});
- public static final BitSet FOLLOW_paren_chunk_in_synpred321337 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_LEFT_PAREN_in_synpred351478 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_date_effective_in_rule_attribute889 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_date_expires_in_rule_attribute899 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_enabled_in_rule_attribute933 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_41_in_date_effective965 = new BitSet(new long[]{0x0000000000000080L});
+ public static final BitSet FOLLOW_STRING_in_date_effective969 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_42_in_date_expires1000 = new BitSet(new long[]{0x0000000000000080L});
+ public static final BitSet FOLLOW_STRING_in_date_expires1004 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_43_in_enabled1037 = new BitSet(new long[]{0x0000000000000100L});
+ public static final BitSet FOLLOW_BOOL_in_enabled1041 = new BitSet(new long[]{0x0000000020000002L});
+ public static final BitSet FOLLOW_opt_semicolon_in_enabled1043 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_44_in_salience1085 = new BitSet(new long[]{0x0000000000000200L});
+ public static final BitSet FOLLOW_INT_in_salience1089 = new BitSet(new long[]{0x0000000020000002L});
+ public static final BitSet FOLLOW_opt_semicolon_in_salience1091 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_45_in_no_loop1126 = new BitSet(new long[]{0x0000000020000002L});
+ public static final BitSet FOLLOW_opt_semicolon_in_no_loop1128 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_45_in_no_loop1153 = new BitSet(new long[]{0x0000000000000100L});
+ public static final BitSet FOLLOW_BOOL_in_no_loop1157 = new BitSet(new long[]{0x0000000020000002L});
+ public static final BitSet FOLLOW_opt_semicolon_in_no_loop1159 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_46_in_auto_focus1205 = new BitSet(new long[]{0x0000000020000002L});
+ public static final BitSet FOLLOW_opt_semicolon_in_auto_focus1207 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_46_in_auto_focus1232 = new BitSet(new long[]{0x0000000000000100L});
+ public static final BitSet FOLLOW_BOOL_in_auto_focus1236 = new BitSet(new long[]{0x0000000020000002L});
+ public static final BitSet FOLLOW_opt_semicolon_in_auto_focus1238 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_47_in_activation_group1280 = new BitSet(new long[]{0x0000000000000080L});
+ public static final BitSet FOLLOW_STRING_in_activation_group1284 = new BitSet(new long[]{0x0000000020000002L});
+ public static final BitSet FOLLOW_opt_semicolon_in_activation_group1286 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_48_in_agenda_group1315 = new BitSet(new long[]{0x0000000000000080L});
+ public static final BitSet FOLLOW_STRING_in_agenda_group1319 = new BitSet(new long[]{0x0000000020000002L});
+ public static final BitSet FOLLOW_opt_semicolon_in_agenda_group1321 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_49_in_duration1353 = new BitSet(new long[]{0x0000000000000200L});
+ public static final BitSet FOLLOW_INT_in_duration1357 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_lhs_in_normal_lhs_block1383 = new BitSet(new long[]{0x0000000000000812L,0x0000000000000E00L});
+ public static final BitSet FOLLOW_lhs_or_in_lhs1421 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_fact_binding_in_lhs_column1449 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_fact_in_lhs_column1458 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_50_in_from_statement1483 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_from_source_in_from_statement1487 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ID_in_from_source1530 = new BitSet(new long[]{0x0000000000000800L});
+ public static final BitSet FOLLOW_paren_chunk_in_from_source1534 = new BitSet(new long[]{0x0000000200000002L});
+ public static final BitSet FOLLOW_ID_in_from_source1567 = new BitSet(new long[]{0x0000000200000002L});
+ public static final BitSet FOLLOW_expression_chain_in_from_source1590 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_33_in_expression_chain1615 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_ID_in_expression_chain1619 = new BitSet(new long[]{0x0000000200008802L});
+ public static final BitSet FOLLOW_square_chunk_in_expression_chain1650 = new BitSet(new long[]{0x0000000200000002L});
+ public static final BitSet FOLLOW_paren_chunk_in_expression_chain1683 = new BitSet(new long[]{0x0000000200000002L});
+ public static final BitSet FOLLOW_expression_chain_in_expression_chain1703 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_50_in_accumulate_statement1744 = new BitSet(new long[]{0x0008000000000000L});
+ public static final BitSet FOLLOW_51_in_accumulate_statement1746 = new BitSet(new long[]{0x0000000000000800L});
+ public static final BitSet FOLLOW_LEFT_PAREN_in_accumulate_statement1756 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_lhs_column_in_accumulate_statement1760 = new BitSet(new long[]{0x0000001000000000L});
+ public static final BitSet FOLLOW_36_in_accumulate_statement1762 = new BitSet(new long[]{0x0010000000000000L});
+ public static final BitSet FOLLOW_52_in_accumulate_statement1771 = new BitSet(new long[]{0x0000000000000800L});
+ public static final BitSet FOLLOW_paren_chunk_in_accumulate_statement1775 = new BitSet(new long[]{0x0000001000000000L});
+ public static final BitSet FOLLOW_36_in_accumulate_statement1777 = new BitSet(new long[]{0x0020000000000000L});
+ public static final BitSet FOLLOW_53_in_accumulate_statement1786 = new BitSet(new long[]{0x0000000000000800L});
+ public static final BitSet FOLLOW_paren_chunk_in_accumulate_statement1790 = new BitSet(new long[]{0x0000001000000000L});
+ public static final BitSet FOLLOW_36_in_accumulate_statement1792 = new BitSet(new long[]{0x0040000000000000L});
+ public static final BitSet FOLLOW_54_in_accumulate_statement1801 = new BitSet(new long[]{0x0000000000000800L});
+ public static final BitSet FOLLOW_paren_chunk_in_accumulate_statement1805 = new BitSet(new long[]{0x0000000000001000L});
+ public static final BitSet FOLLOW_RIGHT_PAREN_in_accumulate_statement1807 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_50_in_collect_statement1850 = new BitSet(new long[]{0x0080000000000000L});
+ public static final BitSet FOLLOW_55_in_collect_statement1852 = new BitSet(new long[]{0x0000000000000800L});
+ public static final BitSet FOLLOW_LEFT_PAREN_in_collect_statement1862 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_lhs_column_in_collect_statement1866 = new BitSet(new long[]{0x0000000000001000L});
+ public static final BitSet FOLLOW_RIGHT_PAREN_in_collect_statement1868 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ID_in_fact_binding1903 = new BitSet(new long[]{0x0000008000000000L});
+ public static final BitSet FOLLOW_39_in_fact_binding1913 = new BitSet(new long[]{0x0000000000000810L});
+ public static final BitSet FOLLOW_fact_expression_in_fact_binding1917 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_LEFT_PAREN_in_fact_expression1949 = new BitSet(new long[]{0x0000000000000810L});
+ public static final BitSet FOLLOW_fact_expression_in_paren_in_fact_expression1953 = new BitSet(new long[]{0x0000000000001000L});
+ public static final BitSet FOLLOW_RIGHT_PAREN_in_fact_expression1956 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_fact_in_fact_expression1967 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_LEFT_PAREN_in_fact_expression_in_paren1998 = new BitSet(new long[]{0x0000000000000810L});
+ public static final BitSet FOLLOW_fact_expression_in_paren_in_fact_expression_in_paren2002 = new BitSet(new long[]{0x0000000000001000L});
+ public static final BitSet FOLLOW_RIGHT_PAREN_in_fact_expression_in_paren2004 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_fact_in_fact_expression_in_paren2015 = new BitSet(new long[]{0x0300000000000002L});
+ public static final BitSet FOLLOW_set_in_fact_expression_in_paren2028 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_fact_in_fact_expression_in_paren2045 = new BitSet(new long[]{0x0300000000000002L});
+ public static final BitSet FOLLOW_dotted_name_in_fact2084 = new BitSet(new long[]{0x0000000000000800L});
+ public static final BitSet FOLLOW_LEFT_PAREN_in_fact2097 = new BitSet(new long[]{0x0000000000001010L});
+ public static final BitSet FOLLOW_constraints_in_fact2109 = new BitSet(new long[]{0x0000000000001000L});
+ public static final BitSet FOLLOW_RIGHT_PAREN_in_fact2130 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_constraint_in_constraints2160 = new BitSet(new long[]{0x0000001000000002L});
+ public static final BitSet FOLLOW_predicate_in_constraints2163 = new BitSet(new long[]{0x0000001000000002L});
+ public static final BitSet FOLLOW_36_in_constraints2171 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_constraint_in_constraints2174 = new BitSet(new long[]{0x0000001000000002L});
+ public static final BitSet FOLLOW_predicate_in_constraints2177 = new BitSet(new long[]{0x0000001000000002L});
+ public static final BitSet FOLLOW_ID_in_constraint2206 = new BitSet(new long[]{0x0000008000000000L});
+ public static final BitSet FOLLOW_39_in_constraint2208 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_ID_in_constraint2218 = new BitSet(new long[]{0xF000000000000002L,0x000000000000001FL});
+ public static final BitSet FOLLOW_constraint_expression_in_constraint2234 = new BitSet(new long[]{0x0C00000000000002L});
+ public static final BitSet FOLLOW_set_in_constraint2253 = new BitSet(new long[]{0xF000000000000000L,0x000000000000001FL});
+ public static final BitSet FOLLOW_constraint_expression_in_constraint2270 = new BitSet(new long[]{0x0C00000000000002L});
+ public static final BitSet FOLLOW_set_in_constraint_expression2322 = new BitSet(new long[]{0x0000000000000F90L,0x0000000000000020L});
+ public static final BitSet FOLLOW_ID_in_constraint_expression2389 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_enum_constraint_in_constraint_expression2405 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_literal_constraint_in_constraint_expression2428 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_retval_constraint_in_constraint_expression2442 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_STRING_in_literal_constraint2481 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_INT_in_literal_constraint2492 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_FLOAT_in_literal_constraint2505 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_BOOL_in_literal_constraint2516 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_69_in_literal_constraint2528 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ID_in_enum_constraint2559 = new BitSet(new long[]{0x0000000200000000L});
+ public static final BitSet FOLLOW_33_in_enum_constraint2561 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_ID_in_enum_constraint2565 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ID_in_predicate2587 = new BitSet(new long[]{0x0000008000000000L});
+ public static final BitSet FOLLOW_39_in_predicate2589 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_ID_in_predicate2593 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000040L});
+ public static final BitSet FOLLOW_70_in_predicate2595 = new BitSet(new long[]{0x0000000000000800L});
+ public static final BitSet FOLLOW_paren_chunk_in_predicate2599 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_LEFT_PAREN_in_paren_chunk2646 = new BitSet(new long[]{0xFFFFFFFFFFFFFFF0L,0x0000000000001FFFL});
+ public static final BitSet FOLLOW_set_in_paren_chunk2662 = new BitSet(new long[]{0xFFFFFFFFFFFFFFF0L,0x0000000000001FFFL});
+ public static final BitSet FOLLOW_paren_chunk_in_paren_chunk2686 = new BitSet(new long[]{0xFFFFFFFFFFFFFFF0L,0x0000000000001FFFL});
+ public static final BitSet FOLLOW_RIGHT_PAREN_in_paren_chunk2722 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_LEFT_CURLY_in_curly_chunk2772 = new BitSet(new long[]{0xFFFFFFFFFFFFFFF0L,0x0000000000001FFFL});
+ public static final BitSet FOLLOW_set_in_curly_chunk2788 = new BitSet(new long[]{0xFFFFFFFFFFFFFFF0L,0x0000000000001FFFL});
+ public static final BitSet FOLLOW_curly_chunk_in_curly_chunk2812 = new BitSet(new long[]{0xFFFFFFFFFFFFFFF0L,0x0000000000001FFFL});
+ public static final BitSet FOLLOW_RIGHT_CURLY_in_curly_chunk2848 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_LEFT_SQUARE_in_square_chunk2909 = new BitSet(new long[]{0xFFFFFFFFFFFFFFF0L,0x0000000000001FFFL});
+ public static final BitSet FOLLOW_set_in_square_chunk2925 = new BitSet(new long[]{0xFFFFFFFFFFFFFFF0L,0x0000000000001FFFL});
+ public static final BitSet FOLLOW_square_chunk_in_square_chunk2949 = new BitSet(new long[]{0xFFFFFFFFFFFFFFF0L,0x0000000000001FFFL});
+ public static final BitSet FOLLOW_RIGHT_SQUARE_in_square_chunk2985 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_paren_chunk_in_retval_constraint3030 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_lhs_and_in_lhs_or3063 = new BitSet(new long[]{0x0300000000000002L});
+ public static final BitSet FOLLOW_set_in_lhs_or3072 = new BitSet(new long[]{0x0000000000000810L,0x0000000000000E00L});
+ public static final BitSet FOLLOW_lhs_and_in_lhs_or3082 = new BitSet(new long[]{0x0300000000000002L});
+ public static final BitSet FOLLOW_lhs_unary_in_lhs_and3118 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000180L});
+ public static final BitSet FOLLOW_set_in_lhs_and3127 = new BitSet(new long[]{0x0000000000000810L,0x0000000000000E00L});
+ public static final BitSet FOLLOW_lhs_unary_in_lhs_and3137 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000180L});
+ public static final BitSet FOLLOW_lhs_exist_in_lhs_unary3174 = new BitSet(new long[]{0x0000000020000002L});
+ public static final BitSet FOLLOW_lhs_not_in_lhs_unary3182 = new BitSet(new long[]{0x0000000020000002L});
+ public static final BitSet FOLLOW_lhs_eval_in_lhs_unary3190 = new BitSet(new long[]{0x0000000020000002L});
+ public static final BitSet FOLLOW_lhs_column_in_lhs_unary3198 = new BitSet(new long[]{0x0004000020000002L});
+ public static final BitSet FOLLOW_from_statement_in_lhs_unary3218 = new BitSet(new long[]{0x0000000020000002L});
+ public static final BitSet FOLLOW_accumulate_statement_in_lhs_unary3240 = new BitSet(new long[]{0x0000000020000002L});
+ public static final BitSet FOLLOW_collect_statement_in_lhs_unary3261 = new BitSet(new long[]{0x0000000020000002L});
+ public static final BitSet FOLLOW_LEFT_PAREN_in_lhs_unary3284 = new BitSet(new long[]{0x0000000000000810L,0x0000000000000E00L});
+ public static final BitSet FOLLOW_lhs_in_lhs_unary3288 = new BitSet(new long[]{0x0000000000001000L});
+ public static final BitSet FOLLOW_RIGHT_PAREN_in_lhs_unary3290 = new BitSet(new long[]{0x0000000020000002L});
+ public static final BitSet FOLLOW_opt_semicolon_in_lhs_unary3300 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_73_in_lhs_exist3324 = new BitSet(new long[]{0x0000000000000810L});
+ public static final BitSet FOLLOW_LEFT_PAREN_in_lhs_exist3327 = new BitSet(new long[]{0x0000000000000810L,0x0000000000000E00L});
+ public static final BitSet FOLLOW_lhs_or_in_lhs_exist3331 = new BitSet(new long[]{0x0000000000001000L});
+ public static final BitSet FOLLOW_RIGHT_PAREN_in_lhs_exist3333 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_lhs_column_in_lhs_exist3339 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_74_in_lhs_not3369 = new BitSet(new long[]{0x0000000000000810L});
+ public static final BitSet FOLLOW_LEFT_PAREN_in_lhs_not3372 = new BitSet(new long[]{0x0000000000000810L,0x0000000000000E00L});
+ public static final BitSet FOLLOW_lhs_or_in_lhs_not3376 = new BitSet(new long[]{0x0000000000001000L});
+ public static final BitSet FOLLOW_RIGHT_PAREN_in_lhs_not3379 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_lhs_column_in_lhs_not3385 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_75_in_lhs_eval3413 = new BitSet(new long[]{0x0000000000000800L});
+ public static final BitSet FOLLOW_paren_chunk_in_lhs_eval3417 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ID_in_dotted_name3448 = new BitSet(new long[]{0x0000000200008002L});
+ public static final BitSet FOLLOW_33_in_dotted_name3454 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_ID_in_dotted_name3458 = new BitSet(new long[]{0x0000000200008002L});
+ public static final BitSet FOLLOW_LEFT_SQUARE_in_dotted_name3467 = new BitSet(new long[]{0x0000000000010000L});
+ public static final BitSet FOLLOW_RIGHT_SQUARE_in_dotted_name3469 = new BitSet(new long[]{0x0000000000008002L});
+ public static final BitSet FOLLOW_ID_in_argument3499 = new BitSet(new long[]{0x0000000000008002L});
+ public static final BitSet FOLLOW_LEFT_SQUARE_in_argument3505 = new BitSet(new long[]{0x0000000000010000L});
+ public static final BitSet FOLLOW_RIGHT_SQUARE_in_argument3507 = new BitSet(new long[]{0x0000000000008002L});
+ public static final BitSet FOLLOW_THEN_in_rhs_chunk3551 = new BitSet(new long[]{0xFFFFFFFFFFFFFFF0L,0x0000000000001FFFL});
+ public static final BitSet FOLLOW_set_in_rhs_chunk3563 = new BitSet(new long[]{0xFFFFFFFFFFFFFFF0L,0x0000000000001FFFL});
+ public static final BitSet FOLLOW_END_in_rhs_chunk3598 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ID_in_word3640 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_31_in_word3652 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_76_in_word3661 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_RULE_in_word3673 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_37_in_word3686 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_44_in_word3696 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_45_in_word3704 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_WHEN_in_word3712 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_THEN_in_word3725 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_END_in_word3738 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_STRING_in_word3754 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ID_in_synpred351530 = new BitSet(new long[]{0x0000000000000800L});
+ public static final BitSet FOLLOW_paren_chunk_in_synpred351534 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_LEFT_PAREN_in_synpred381675 = 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 2007-01-11 21:47:50 UTC (rev 8830)
+++ labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/semantics/java/RuleBuilder.java 2007-01-11 22:09:16 UTC (rev 8831)
@@ -16,6 +16,7 @@
* limitations under the License.
*/
+import java.util.Calendar;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
@@ -24,6 +25,7 @@
import org.codehaus.jfdi.interpreter.TypeResolver;
import org.drools.RuntimeDroolsException;
import org.drools.base.ClassFieldExtractorCache;
+import org.drools.base.evaluators.DateFactory;
import org.drools.lang.descr.AccumulateDescr;
import org.drools.lang.descr.AndDescr;
import org.drools.lang.descr.AttributeDescr;
@@ -35,7 +37,6 @@
import org.drools.lang.descr.OrDescr;
import org.drools.lang.descr.QueryDescr;
import org.drools.lang.descr.RuleDescr;
-import org.drools.rule.ConditionalElement;
import org.drools.rule.GroupElement;
import org.drools.rule.Package;
import org.drools.rule.Rule;
@@ -195,8 +196,9 @@
* @param rule
* @param attributes
*/
- private void setAttributes(final Rule rule,
+ void setAttributes(final Rule rule,
final List attributes) {
+
for ( final Iterator it = attributes.iterator(); it.hasNext(); ) {
final AttributeDescr attributeDescr = (AttributeDescr) it.next();
final String name = attributeDescr.getName();
@@ -221,6 +223,21 @@
} else if ( name.equals( "duration" ) ) {
rule.setDuration( Long.parseLong( attributeDescr.getValue() ) );
rule.setAgendaGroup( "" );
+ } else if (name.equals( "enabled" )){
+ if (attributeDescr.getValue() == null) {
+ rule.setEnabled( true );
+ } else {
+ rule.setEnabled( Boolean.valueOf( attributeDescr.getValue() ).booleanValue());
+ }
+ } else if (name.equals( "date-effective" )) {
+ Calendar cal = Calendar.getInstance();
+ cal.setTime( DateFactory.parseDate( attributeDescr.getValue() ) );
+ rule.setDateEffective( cal );
+ } else if (name.equals( "date-expires" )) {
+ Calendar cal = Calendar.getInstance();
+ cal.setTime( DateFactory.parseDate( attributeDescr.getValue() ) );
+ rule.setDateExpires( cal );
+
} else if ( name.equals( "language" ) ) {
//@todo: we don't currently support multiple languages
}
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 2007-01-11 21:47:50 UTC (rev 8830)
+++ labs/jbossrules/trunk/drools-compiler/src/main/resources/org/drools/lang/DRL.g 2007-01-11 22:09:16 UTC (rev 8831)
@@ -1,1478 +1,1523 @@
-grammar DRL;
-options {backtrack=true;}
-
- at parser::header {
- 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;
-}
-
- at parser::members {
- 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) ) );
- }
- }
-
-}
-
- at lexer::header {
- package org.drools.lang;
-}
-
-opt_semicolon
- : ';'?
- ;
-
-compilation_unit
- : prolog
- ( statement )+
- ;
-
-prolog
- @init {
- String packageName = "";
- }
- : ( name=package_statement { packageName = name; } )?
- {
- this.packageDescr = new PackageDescr( name );
- }
- ;
-
-statement
- :
- ( import_statement
- | function_import_statement
- | global
- | function
- | t=template {this.packageDescr.addFactTemplate( t ); }
- | r=rule {this.packageDescr.addRule( r ); }
- | q=query {this.packageDescr.addRule( q ); }
- )
- ;
-
-package_statement returns [String packageName]
- @init{
- packageName = null;
- }
- :
- 'package' name=dotted_name opt_semicolon
- {
- packageName = name;
- }
- ;
-
-
-import_statement
- : 'import' name=import_name opt_semicolon
- {
- if (packageDescr != null)
- packageDescr.addImport( name );
- }
- ;
-
-function_import_statement
- : 'import' 'function' name=import_name opt_semicolon
- {
- if (packageDescr != null)
- packageDescr.addFunctionImport( name );
- }
- ;
-
-
-import_name returns [String name]
- @init {
- name = null;
- }
- :
- id=ID { name=id.getText(); } ( '.' id=ID { name = name + "." + id.getText(); } )* (star='.*' { name = name + star.getText(); })?
- ;
-
-
-global
- @init {
- }
- :
- 'global' type=dotted_name id=ID opt_semicolon
- {
- packageDescr.addGlobal( id.getText(), type );
- }
- ;
-
-
-function
- @init {
- FunctionDescr f = null;
- }
- :
- loc='function' (retType=dotted_name)? name=ID
- {
- //System.err.println( "function :: " + name.getText() );
- f = new FunctionDescr( name.getText(), retType );
- f.setLocation(offset(loc.getLine()), loc.getCharPositionInLine());
- }
- '('
- ( (paramType=dotted_name)? paramName=argument
- {
- f.addParameter( paramType, paramName );
- }
- ( ',' (paramType=dotted_name)? paramName=argument
- {
- f.addParameter( paramType, paramName );
- }
- )*
- )?
- ')'
- body=curly_chunk
- {
- //strip out '{','}'
- f.setText( body.substring( 1, body.length()-1 ) );
-
- packageDescr.addFunction( f );
- }
- ;
-
-
-
-query returns [QueryDescr query]
- @init {
- query = null;
- AndDescr lhs = null;
- }
- :
- loc='query' queryName=word
- {
- query = new QueryDescr( queryName, null );
- query.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
- lhs = new AndDescr(); query.setLhs( lhs );
- lhs.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
- }
- (
-// { expander != null }? expander_lhs_block[lhs] |
- normal_lhs_block[lhs]
- )
-
- 'end'
- ;
-
-
-template returns [FactTemplateDescr template]
- @init {
- template = null;
- }
- :
- loc='template' templateName=ID opt_semicolon
- {
- template = new FactTemplateDescr(templateName.getText());
- template.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
- }
- (
- slot=template_slot
- {
- template.addFieldTemplate(slot);
- }
- )+
- 'end' opt_semicolon
- ;
-
-template_slot returns [FieldTemplateDescr field]
- @init {
- field = null;
- }
- :
- //name=ID ':' fieldType=dotted_name ( EOL | ';' )
- fieldType=dotted_name name=ID opt_semicolon
- {
-
-
- field = new FieldTemplateDescr(name.getText(), fieldType);
- field.setLocation( offset(name.getLine()), name.getCharPositionInLine() );
- }
- ;
-
-rule returns [RuleDescr rule]
- @init {
- rule = null;
- String consequence = "";
- AndDescr lhs = null;
- }
- :
- loc=RULE ruleName=word
- {
- debug( "start rule: " + ruleName );
- rule = new RuleDescr( ruleName, null );
- rule.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
- }
- rule_attributes[rule]
- ( loc=WHEN ':'?
- {
- lhs = new AndDescr(); rule.setLhs( lhs );
- lhs.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
- }
- (
-// { expander != null }? expander_lhs_block[lhs] |
- normal_lhs_block[lhs]
- )
-
- )?
- rhs_chunk[rule]
- ;
-
-
-
-rule_attributes[RuleDescr rule]
- :
- ('attributes' ':')?
- ( ','? a=rule_attribute
- {
- rule.addAttribute( a );
- }
- )*
- ;
-
-
-
-rule_attribute returns [AttributeDescr d]
- @init {
- d = null;
- }
- :
- a=salience { d = a; }
- | a=no_loop { d = a; }
- | a=agenda_group { d = a; }
- | a=duration { d = a; }
- | a=activation_group { d = a; }
- | a=auto_focus { d = a; }
-
- ;
-
-
-salience returns [AttributeDescr d ]
- @init {
- d = null;
- }
- :
- loc='salience' i=INT opt_semicolon
- {
- d = new AttributeDescr( "salience", i.getText() );
- d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
- }
- ;
-
-no_loop returns [AttributeDescr d]
- @init {
- d = null;
- }
- :
- (
- loc='no-loop' opt_semicolon
- {
- d = new AttributeDescr( "no-loop", "true" );
- d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
- }
- )
- |
- (
- loc='no-loop' t=BOOL opt_semicolon
- {
- d = new AttributeDescr( "no-loop", t.getText() );
- d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
- }
-
- )
-
- ;
-
-auto_focus returns [AttributeDescr d]
- @init {
- d = null;
- }
- :
- (
- loc='auto-focus' opt_semicolon
- {
- d = new AttributeDescr( "auto-focus", "true" );
- d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
- }
- )
- |
- (
- loc='auto-focus' t=BOOL opt_semicolon
- {
- d = new AttributeDescr( "auto-focus", t.getText() );
- d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
- }
-
- )
-
- ;
-
-activation_group returns [AttributeDescr d]
- @init {
- d = null;
- }
- :
- loc='activation-group' name=STRING opt_semicolon
- {
- d = new AttributeDescr( "activation-group", getString( name ) );
- d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
- }
- ;
-
-agenda_group returns [AttributeDescr d]
- @init {
- d = null;
- }
- :
- loc='agenda-group' name=STRING opt_semicolon
- {
- d = new AttributeDescr( "agenda-group", getString( name ) );
- d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
- }
- ;
-
-
-duration returns [AttributeDescr d]
- @init {
- d = null;
- }
- :
- loc='duration' i=INT
- {
- d = new AttributeDescr( "duration", i.getText() );
- d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
- }
- ;
-
-
-normal_lhs_block[AndDescr descrs]
- :
- ( d=lhs
- { descrs.addDescr( d ); }
- )*
- ;
-
-/*
-expander_lhs_block[AndDescr descrs]
- @init {
- String lhsBlock = null;
- String eol = System.getProperty( "line.separator" );
- List constraints = null;
- }
- :
- (options{greedy=false;} :
- text=paren_chunk (options{greedy=true;} : loc=EOL)
- {
- //only expand non null
- if (text != null) {
- if (text.trim().startsWith("-")) {
- if (constraints == null) {
- constraints = new ArrayList();
- }
- constraints.add(runWhenExpander( text, offset(loc.getLine())));
- } else {
- if (constraints != null) {
- lhsBlock = applyConstraints(constraints, lhsBlock);
- constraints = null;
- }
-
-
- if (lhsBlock == null) {
- lhsBlock = runWhenExpander( text, offset(loc.getLine()));
- } else {
- lhsBlock = lhsBlock + eol + runWhenExpander( text, offset(loc.getLine()));
- }
- }
- text = null;
- }
- }
-
-
- )*
-
- {
- //flush out any constraints left handing before the RHS
- lhsBlock = applyConstraints(constraints, lhsBlock);
- if (lhsBlock != null) {
- reparseLhs(lhsBlock, descrs);
- }
- }
-
- ;
-*/
-
-lhs returns [BaseDescr d]
- @init {
- d=null;
- }
- : l=lhs_or { d = l; }
- ;
-
-
-lhs_column returns [BaseDescr d]
- @init {
- d=null;
- }
- : f=fact_binding { d = f; }
- | f=fact { d = f; }
- ;
-
-from_statement returns [FromDescr d]
- @init {
- d=factory.createFrom();
- }
- :
- 'from' ds=from_source
- {
- d.setDataSource(ds);
-
- }
-
-
-
- ;
-
-from_source returns [DeclarativeInvokerDescr ds]
- @init {
- ds = null;
- AccessorDescr ad = null;
- }
- :
- (( functionName=ID args=paren_chunk
- {
- ad = new AccessorDescr();
- ad.setLocation( offset(functionName.getLine()), functionName.getCharPositionInLine() );
- ds = ad;
- FunctionCallDescr fc = new FunctionCallDescr(functionName.getText());
- fc.setLocation( offset(functionName.getLine()), functionName.getCharPositionInLine() );
- fc.setArguments(args);
- ad.addInvoker(fc);
- }
- )
- |
- ( var=ID
- {
- ad = new AccessorDescr(var.getText());
- ad.setLocation( offset(var.getLine()), var.getCharPositionInLine() );
- ds = ad;
- }
- ))
-
- expression_chain[ad]?
- ;
-
-expression_chain[AccessorDescr as]
- @init {
- FieldAccessDescr fa = null;
- MethodAccessDescr ma = null;
- }
- :
- ( '.' field=ID
- {
- fa = new FieldAccessDescr(field.getText());
- fa.setLocation( offset(field.getLine()), field.getCharPositionInLine() );
- }
- (
- ( LEFT_SQUARE ) => sqarg=square_chunk
- {
- fa.setArgument( sqarg );
- }
- |
- ( LEFT_PAREN ) => paarg=paren_chunk
- {
- ma = new MethodAccessDescr( field.getText(), paarg );
- ma.setLocation( offset(field.getLine()), field.getCharPositionInLine() );
- }
- )?
- {
- if( ma != null ) {
- as.addInvoker( ma );
- } else {
- as.addInvoker( fa );
- }
- }
- expression_chain[as]?
- )
- ;
-
-accumulate_statement returns [AccumulateDescr d]
- @init {
- d = factory.createAccumulate();
- }
- :
- loc='from' 'accumulate'
- {
- d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
- }
- '(' column=lhs_column ','
- {
- d.setSourceColumn( (ColumnDescr)column );
- }
- 'init' text=paren_chunk ','
- {
- d.setInitCode( text.substring(1, text.length()-1) );
- }
- 'action' text=paren_chunk ','
- {
- d.setActionCode( text.substring(1, text.length()-1) );
- }
- 'result' text=paren_chunk ')'
- {
- d.setResultCode( text.substring(1, text.length()-1) );
- }
- ;
-
-collect_statement returns [CollectDescr d]
- @init {
- d = factory.createCollect();
- }
- :
- loc='from' 'collect'
- {
- d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
- }
- '(' column=lhs_column ')'
- {
- d.setSourceColumn( (ColumnDescr)column );
- }
- ;
-/*
-argument_list returns [ArrayList args]
- @init {
- args = new ArrayList();
- }
- :
- (param=argument_value {
- if (param != null) {
- args.add(param);
- }
- }
-
- (
- ',' param=argument_value {
- if (param != null) {
- args.add(param);
- }
- }
- )*
- )?
- ;
-
-argument_value returns [ArgumentValueDescr value]
- @init {
- value = null;
- String text = null;
- }
- : ( t=STRING { text = getString( t ); value=new ArgumentValueDescr(ArgumentValueDescr.STRING, text);}
- | t=INT { text = t.getText(); value=new ArgumentValueDescr(ArgumentValueDescr.INTEGRAL, text);}
- | 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 ); }
- )
- ;
-
-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;
- boolean multi=false;
- }
- :
- id=ID
-
- ':' fe=fact_expression[id.getText()]
- {
- d=fe;
- }
- ;
-
- fact_expression[String id] returns [BaseDescr pd]
- @init {
- pd = null;
- boolean multi = false;
- }
- : '(' fe=fact_expression_in_paren[id] ')' { pd=fe; }
- | f=fact
- {
- ((ColumnDescr)f).setIdentifier( id );
- pd = f;
- }
- ;
-
-// in parenthesis alternative is allowed
- fact_expression_in_paren[String id] returns [BaseDescr pd]
- @init {
- pd = null;
- boolean multi = false;
- }
- : '(' fe=fact_expression_in_paren[id]')' { pd=fe; }
- | f=fact
- {
- ((ColumnDescr)f).setIdentifier( id );
- pd = f;
- }
- ( ('or'|'||')
- { if ( ! multi ) {
- BaseDescr first = pd;
- pd = new OrDescr();
- ((OrDescr)pd).addDescr( first );
- multi=true;
- }
- }
- f=fact
- {
- ((ColumnDescr)f).setIdentifier( id );
- ((OrDescr)pd).addDescr( f );
- }
- )*
- ;
-
-fact returns [BaseDescr d]
- @init {
- d=null;
- }
- : id=dotted_name
- {
- d = new ColumnDescr( id );
- }
- loc='(' {
- d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
- }
- ( c=constraints
- {
- for ( Iterator cIter = c.iterator() ; cIter.hasNext() ; ) {
- ((ColumnDescr)d).addDescr( (BaseDescr) cIter.next() );
- }
- }
- )?
- endLoc=')'
- {
- d.setEndLocation( offset(endLoc.getLine()), endLoc.getCharPositionInLine() );
- }
- ;
-
-
-constraints returns [List constraints]
- @init {
- constraints = new ArrayList();
- }
- : (constraint[constraints]|predicate[constraints])
- ( ',' (constraint[constraints]|predicate[constraints]))*
- ;
-
-constraint[List constraints]
- @init {
- BaseDescr d = null;
- FieldConstraintDescr fc = null;
- }
- :
- ( fb=ID ':' )?
- f=ID
- {
- 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() );
- }
- (
- rd=constraint_expression
- {
- fc.addRestriction(rd);
- constraints.add(fc);
- }
- (
- con=('&'|'|')
- {
- if (con.getText().equals("&") ) {
- fc.addRestriction(new RestrictionConnectiveDescr(RestrictionConnectiveDescr.AND));
- } else {
- fc.addRestriction(new RestrictionConnectiveDescr(RestrictionConnectiveDescr.OR));
- }
- }
- rd=constraint_expression
- {
- fc.addRestriction(rd);
- }
- )*
- )?
- ;
-
-constraint_expression returns [RestrictionDescr rd]
- :
- op=( '=='
- | '>'
- | '>='
- | '<'
- | '<='
- | '!='
- | 'contains'
- | 'matches'
- | 'excludes'
- )
- ( bvc=ID
- {
- rd = new VariableRestrictionDescr(op.getText(), bvc.getText());
- }
- |
- lc=enum_constraint
- {
- rd = new LiteralRestrictionDescr(op.getText(), lc, true);
- }
- |
- lc=literal_constraint
- {
- rd = new LiteralRestrictionDescr(op.getText(), lc);
- }
- | rvc=retval_constraint
- {
- rd = new ReturnValueRestrictionDescr(op.getText(), rvc);
- }
- )
- ;
-
-literal_constraint returns [String text]
- @init {
- text = null;
- }
- : ( t=STRING { text = getString( t ); } //t.getText(); text=text.substring( 1, text.length() - 1 ); }
- | t=INT { text = t.getText(); }
- | t=FLOAT { text = t.getText(); }
- | t=BOOL { text = t.getText(); }
- | t='null' { text = null; }
- )
- ;
-
-enum_constraint returns [String text]
- @init {
- text = null;
- }
- : (cls=ID '.' en=ID) { text = cls.getText() + "." + en.getText(); }
- ;
-
-
-predicate[List constraints]
- :
- decl=ID ':' field=ID '->' text=paren_chunk
- {
- String body = text.substring(1, text.length()-1);
- PredicateDescr d = new PredicateDescr(field.getText(), decl.getText(), body );
- constraints.add( d );
- }
- ;
-
-paren_chunk returns [String text]
- @init {
- StringBuffer buf = null;
- Integer channel = null;
- }
- :
- {
- channel = ((SwitchingCommonTokenStream)input).getTokenTypeChannel( WS );
- ((SwitchingCommonTokenStream)input).setTokenTypeChannel( WS, Token.DEFAULT_CHANNEL );
- buf = new StringBuffer();
- }
- loc=LEFT_PAREN
- {
- buf.append( loc.getText());
-
- }
- (
- ~(LEFT_PAREN|RIGHT_PAREN)
- {
- buf.append( input.LT(-1).getText() );
- }
- |
- chunk=paren_chunk
- {
- buf.append( chunk );
- }
- )*
- {
- if( channel != null ) {
- ((SwitchingCommonTokenStream)input).setTokenTypeChannel(WS, channel.intValue());
- } else {
- ((SwitchingCommonTokenStream)input).setTokenTypeChannel(WS, Token.HIDDEN_CHANNEL);
- }
- }
- loc=RIGHT_PAREN
- {
- buf.append( loc.getText() );
- text = buf.toString();
- }
- ;
-
-curly_chunk returns [String text]
- @init {
- StringBuffer buf = null;
- Integer channel = null;
- }
- :
- loc=LEFT_CURLY
- {
- channel = ((SwitchingCommonTokenStream)input).getTokenTypeChannel( WS );
- ((SwitchingCommonTokenStream)input).setTokenTypeChannel( WS, Token.DEFAULT_CHANNEL );
- buf = new StringBuffer();
-
- buf.append( loc.getText() );
- }
- (
- ~(LEFT_CURLY|RIGHT_CURLY)
- {
- buf.append( input.LT(-1).getText() );
- }
- |
- chunk=curly_chunk
- {
- buf.append( chunk );
- }
- )*
- {
- if( channel != null ) {
- ((SwitchingCommonTokenStream)input).setTokenTypeChannel(WS, channel.intValue());
- } else {
- ((SwitchingCommonTokenStream)input).setTokenTypeChannel(WS, Token.HIDDEN_CHANNEL);
- }
- }
- loc=RIGHT_CURLY
- {
- buf.append( loc.getText() );
- text = buf.toString();
- }
- ;
-
-square_chunk returns [String text]
- @init {
- StringBuffer buf = null;
- Integer channel = null;
- }
- :
- {
- channel = ((SwitchingCommonTokenStream)input).getTokenTypeChannel( WS );
- ((SwitchingCommonTokenStream)input).setTokenTypeChannel( WS, Token.DEFAULT_CHANNEL );
- buf = new StringBuffer();
- }
- loc=LEFT_SQUARE
- {
- buf.append( loc.getText());
-
- }
- (
- ~(LEFT_SQUARE|RIGHT_SQUARE)
- {
- buf.append( input.LT(-1).getText() );
- }
- |
- chunk=square_chunk
- {
- buf.append( chunk );
- }
- )*
- {
- if( channel != null ) {
- ((SwitchingCommonTokenStream)input).setTokenTypeChannel(WS, channel.intValue());
- } else {
- ((SwitchingCommonTokenStream)input).setTokenTypeChannel(WS, Token.HIDDEN_CHANNEL);
- }
- }
- loc=RIGHT_SQUARE
- {
- buf.append( loc.getText() );
- text = buf.toString();
- }
- ;
-
-retval_constraint returns [String text]
- @init {
- text = null;
- }
- :
- c=paren_chunk { text = c.substring(1, c.length()-1); }
- ;
-
-
-
-
-
-
-lhs_or returns [BaseDescr d]
- @init{
- d = null;
- OrDescr or = null;
- }
- :
- left=lhs_and {d = left; }
- ( ('or'|'||')
- right=lhs_and
- {
- if ( or == null ) {
- or = new OrDescr();
- or.addDescr( left );
- d = or;
- }
-
- or.addDescr( right );
- }
- )*
- ;
-
-lhs_and returns [BaseDescr d]
- @init{
- d = null;
- AndDescr and = null;
- }
- :
- left=lhs_unary { d = left; }
- ( ('and'|'&&')
- right=lhs_unary
- {
- if ( and == null ) {
- and = new AndDescr();
- and.addDescr( left );
- d = and;
- }
-
- and.addDescr( right );
- }
- )*
- ;
-
-lhs_unary returns [BaseDescr d]
- @init {
- d = null;
- }
- : ( u=lhs_exist
- | u=lhs_not
- | u=lhs_eval
- | u=lhs_column (
- (fm=from_statement {fm.setColumn((ColumnDescr) u); u=fm;})
- |(ac=accumulate_statement {ac.setResultColumn((ColumnDescr) u); u=ac;})
- |(cs=collect_statement {cs.setResultColumn((ColumnDescr) u); u=cs;})
- )?
- | '(' u=lhs ')'
- ) { d = u; }
- opt_semicolon
- ;
-
-lhs_exist returns [BaseDescr d]
- @init {
- d = null;
- }
- : loc='exists' ('(' column=lhs_or ')' | column=lhs_column)
- {
- d = new ExistsDescr( (ColumnDescr) column );
- d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
- }
- ;
-
-lhs_not returns [NotDescr d]
- @init {
- d = null;
- }
- : loc='not' ('(' column=lhs_or ')' | column=lhs_column)
- {
- d = new NotDescr( column );
- d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
- }
- ;
-
-lhs_eval returns [BaseDescr d]
- @init {
- d = null;
- }
- : loc='eval' c=paren_chunk
- {
- String body = c.substring(1, c.length()-1);
- checkTrailingSemicolon( body, offset(loc.getLine()) );
- d = new EvalDescr( body );
- }
- ;
-
-dotted_name returns [String name]
- @init {
- name = null;
- }
- :
- id=ID { name=id.getText(); } ( '.' id=ID { name = name + "." + id.getText(); } )* ( '[' ']' { name = name + "[]";})*
- ;
-
-argument returns [String name]
- @init {
- name = null;
- }
- :
- id=ID { name=id.getText(); } ( '[' ']' { name = name + "[]";})*
- ;
-
-rhs_chunk[RuleDescr rule]
- @init {
- StringBuffer buf = null;
- Integer channel = null;
- }
- :
- {
- channel = ((SwitchingCommonTokenStream)input).getTokenTypeChannel( WS );
- ((SwitchingCommonTokenStream)input).setTokenTypeChannel( WS, Token.DEFAULT_CHANNEL );
- buf = new StringBuffer();
- }
- start='then'
- (
- ~END
- {
- buf.append( input.LT(-1).getText() );
- }
- )*
- {
- if( channel != null ) {
- ((SwitchingCommonTokenStream)input).setTokenTypeChannel(WS, channel.intValue());
- } else {
- ((SwitchingCommonTokenStream)input).setTokenTypeChannel(WS, Token.HIDDEN_CHANNEL);
- }
- }
- END
- {
- // ignoring first line in the consequence
- int index = 0;
- while( (index < buf.length() ) && Character.isWhitespace( buf.charAt( index ) ) &&
- (buf.charAt( index ) != 10 ) && (buf.charAt( index ) != 13 ))
- index++;
- if( (index < buf.length() ) && ( buf.charAt( index ) == '\r' ) )
- index++;
- if( (index < buf.length() ) && ( buf.charAt( index ) == '\n' ) )
- index++;
-
- rule.setConsequence( buf.substring( index ) );
- rule.setConsequenceLocation(offset(start.getLine()), start.getCharPositionInLine());
- }
- ;
-
-
-word returns [String word]
- @init{
- word = null;
- }
- : id=ID { word=id.getText(); }
- | 'import' { word="import"; }
- | 'use' { word="use"; }
- | RULE { word="rule"; }
- | 'query' { word="query"; }
- | 'salience' { word="salience"; }
- | 'no-loop' { word="no-loop"; }
- | WHEN { word="when"; }
- | THEN { word="then"; }
- | END { word="end"; }
- | str=STRING { word=getString(str);} //str.getText(); word=word.substring( 1, word.length()-1 ); }
- ;
-
-//RHS :'then' (options{greedy=false;} : .)* ('\n'|'\r') (' '|'\t'|'\f')* 'end'
-// ;
-
-WS : ( ' '
- | '\t'
- | '\f'
- | EOL
- )
- { $channel=HIDDEN; }
- ;
-
-fragment
-EOL :
- ( ( '\r\n' )=> '\r\n' // Evil DOS
- | '\r' // Macintosh
- | '\n' // Unix (the right way)
- )
- ;
-
-INT
- : ('-')?('0'..'9')+
- ;
-
-FLOAT
- : ('-')?('0'..'9')+ '.' ('0'..'9')+
- ;
-
-STRING
- : ('"' ( EscapeSequence | ~('\\'|'"') )* '"')
- | ('\'' ( EscapeSequence | ~('\\'|'\'') )* '\'')
- ;
-
-fragment
-HexDigit : ('0'..'9'|'a'..'f'|'A'..'F') ;
-
-fragment
-EscapeSequence
- : '\\' ('b'|'t'|'n'|'f'|'r'|'\"'|'\''|'\\')
- | UnicodeEscape
- | OctalEscape
- ;
-
-fragment
-OctalEscape
- : '\\' ('0'..'3') ('0'..'7') ('0'..'7')
- | '\\' ('0'..'7') ('0'..'7')
- | '\\' ('0'..'7')
- ;
-
-fragment
-UnicodeEscape
- : '\\' 'u' HexDigit HexDigit HexDigit HexDigit
- ;
-
-BOOL
- : ('true'|'false')
- ;
-
-RULE : 'rule';
-
-WHEN : 'when';
-
-THEN : 'then';
-
-END : 'end';
-
-ID
- : ('a'..'z'|'A'..'Z'|'_'|'$'|'\u00c0'..'\u00ff')('a'..'z'|'A'..'Z'|'_'|'0'..'9'|'\u00c0'..'\u00ff')*
- ;
-
-
-SH_STYLE_SINGLE_LINE_COMMENT
- : '#' ( options{greedy=false;} : .)* EOL /* ('\r')? '\n' */
- { $channel=HIDDEN; }
- ;
-
-
-C_STYLE_SINGLE_LINE_COMMENT
- : '//' ( options{greedy=false;} : .)* EOL // ('\r')? '\n'
- { $channel=HIDDEN; }
- ;
-
-
-LEFT_PAREN
- : '('
- ;
-
-RIGHT_PAREN
- : ')'
- ;
-
-LEFT_SQUARE
- : '['
- ;
-
-RIGHT_SQUARE
- : ']'
- ;
-
-LEFT_CURLY
- : '{'
- ;
-
-RIGHT_CURLY
- : '}'
- ;
-
-MULTI_LINE_COMMENT
- : '/*' (options{greedy=false;} : .)* '*/'
- { $channel=HIDDEN; }
- ;
-
-MISC :
- '!' | '@' | '$' | '%' | '^' | '&' | '*' | '_' | '-' | '+' | '?' | '|' | ',' | '=' | '/' | '\'' | '\\'
- ;
+grammar DRL;
+options {backtrack=true;}
+
+ at parser::header {
+ 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;
+}
+
+ at parser::members {
+ 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) ) );
+ }
+ }
+
+}
+
+ at lexer::header {
+ package org.drools.lang;
+}
+
+opt_semicolon
+ : ';'?
+ ;
+
+compilation_unit
+ : prolog
+ ( statement )+
+ ;
+
+prolog
+ @init {
+ String packageName = "";
+ }
+ : ( name=package_statement { packageName = name; } )?
+ {
+ this.packageDescr = new PackageDescr( name );
+ }
+ ;
+
+statement
+ :
+ ( import_statement
+ | function_import_statement
+ | global
+ | function
+ | t=template {this.packageDescr.addFactTemplate( t ); }
+ | r=rule {this.packageDescr.addRule( r ); }
+ | q=query {this.packageDescr.addRule( q ); }
+ )
+ ;
+
+package_statement returns [String packageName]
+ @init{
+ packageName = null;
+ }
+ :
+ 'package' name=dotted_name opt_semicolon
+ {
+ packageName = name;
+ }
+ ;
+
+
+import_statement
+ : 'import' name=import_name opt_semicolon
+ {
+ if (packageDescr != null)
+ packageDescr.addImport( name );
+ }
+ ;
+
+function_import_statement
+ : 'import' 'function' name=import_name opt_semicolon
+ {
+ if (packageDescr != null)
+ packageDescr.addFunctionImport( name );
+ }
+ ;
+
+
+import_name returns [String name]
+ @init {
+ name = null;
+ }
+ :
+ id=ID { name=id.getText(); } ( '.' id=ID { name = name + "." + id.getText(); } )* (star='.*' { name = name + star.getText(); })?
+ ;
+
+
+global
+ @init {
+ }
+ :
+ 'global' type=dotted_name id=ID opt_semicolon
+ {
+ packageDescr.addGlobal( id.getText(), type );
+ }
+ ;
+
+
+function
+ @init {
+ FunctionDescr f = null;
+ }
+ :
+ loc='function' (retType=dotted_name)? name=ID
+ {
+ //System.err.println( "function :: " + name.getText() );
+ f = new FunctionDescr( name.getText(), retType );
+ f.setLocation(offset(loc.getLine()), loc.getCharPositionInLine());
+ }
+ '('
+ ( (paramType=dotted_name)? paramName=argument
+ {
+ f.addParameter( paramType, paramName );
+ }
+ ( ',' (paramType=dotted_name)? paramName=argument
+ {
+ f.addParameter( paramType, paramName );
+ }
+ )*
+ )?
+ ')'
+ body=curly_chunk
+ {
+ //strip out '{','}'
+ f.setText( body.substring( 1, body.length()-1 ) );
+
+ packageDescr.addFunction( f );
+ }
+ ;
+
+
+
+query returns [QueryDescr query]
+ @init {
+ query = null;
+ AndDescr lhs = null;
+ }
+ :
+ loc='query' queryName=word
+ {
+ query = new QueryDescr( queryName, null );
+ query.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+ lhs = new AndDescr(); query.setLhs( lhs );
+ lhs.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+ }
+ (
+// { expander != null }? expander_lhs_block[lhs] |
+ normal_lhs_block[lhs]
+ )
+
+ 'end'
+ ;
+
+
+template returns [FactTemplateDescr template]
+ @init {
+ template = null;
+ }
+ :
+ loc='template' templateName=ID opt_semicolon
+ {
+ template = new FactTemplateDescr(templateName.getText());
+ template.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+ }
+ (
+ slot=template_slot
+ {
+ template.addFieldTemplate(slot);
+ }
+ )+
+ 'end' opt_semicolon
+ ;
+
+template_slot returns [FieldTemplateDescr field]
+ @init {
+ field = null;
+ }
+ :
+ //name=ID ':' fieldType=dotted_name ( EOL | ';' )
+ fieldType=dotted_name name=ID opt_semicolon
+ {
+
+
+ field = new FieldTemplateDescr(name.getText(), fieldType);
+ field.setLocation( offset(name.getLine()), name.getCharPositionInLine() );
+ }
+ ;
+
+rule returns [RuleDescr rule]
+ @init {
+ rule = null;
+ String consequence = "";
+ AndDescr lhs = null;
+ }
+ :
+ loc=RULE ruleName=word
+ {
+ debug( "start rule: " + ruleName );
+ rule = new RuleDescr( ruleName, null );
+ rule.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+ }
+ rule_attributes[rule]
+ ( loc=WHEN ':'?
+ {
+ lhs = new AndDescr(); rule.setLhs( lhs );
+ lhs.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+ }
+ (
+// { expander != null }? expander_lhs_block[lhs] |
+ normal_lhs_block[lhs]
+ )
+
+ )?
+ rhs_chunk[rule]
+ ;
+
+
+
+rule_attributes[RuleDescr rule]
+ :
+ ('attributes' ':')?
+ ( ','? a=rule_attribute
+ {
+ rule.addAttribute( a );
+ }
+ )*
+ ;
+
+
+
+rule_attribute returns [AttributeDescr d]
+ @init {
+ d = null;
+ }
+ :
+ a=salience { d = a; }
+ | a=no_loop { d = a; }
+ | a=agenda_group { d = a; }
+ | a=duration { d = a; }
+ | a=activation_group { d = a; }
+ | a=auto_focus { d = a; }
+ | a=date_effective {d = a; }
+ | a=date_expires {d = a; }
+ | a=enabled {d=a;}
+
+ ;
+
+date_effective returns [AttributeDescr d]
+ @init {
+ d = null;
+ }
+ :
+ loc='date-effective' val=STRING
+ {
+ d = new AttributeDescr( "date-effective", getString( val ) );
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+ }
+
+ ;
+
+date_expires returns [AttributeDescr d]
+ @init {
+ d = null;
+ }
+ :
+ loc='date-expires' val=STRING
+ {
+ d = new AttributeDescr( "date-expires", getString( val ) );
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+ }
+
+ ;
+
+
+enabled returns [AttributeDescr d]
+ @init {
+ d = null;
+ }
+ :
+ loc='enabled' t=BOOL opt_semicolon
+ {
+ d = new AttributeDescr( "enabled", t.getText() );
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+ }
+
+
+ ;
+
+
+
+salience returns [AttributeDescr d ]
+ @init {
+ d = null;
+ }
+ :
+ loc='salience' i=INT opt_semicolon
+ {
+ d = new AttributeDescr( "salience", i.getText() );
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+ }
+ ;
+
+no_loop returns [AttributeDescr d]
+ @init {
+ d = null;
+ }
+ :
+ (
+ loc='no-loop' opt_semicolon
+ {
+ d = new AttributeDescr( "no-loop", "true" );
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+ }
+ )
+ |
+ (
+ loc='no-loop' t=BOOL opt_semicolon
+ {
+ d = new AttributeDescr( "no-loop", t.getText() );
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+ }
+
+ )
+
+ ;
+
+auto_focus returns [AttributeDescr d]
+ @init {
+ d = null;
+ }
+ :
+ (
+ loc='auto-focus' opt_semicolon
+ {
+ d = new AttributeDescr( "auto-focus", "true" );
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+ }
+ )
+ |
+ (
+ loc='auto-focus' t=BOOL opt_semicolon
+ {
+ d = new AttributeDescr( "auto-focus", t.getText() );
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+ }
+
+ )
+
+ ;
+
+activation_group returns [AttributeDescr d]
+ @init {
+ d = null;
+ }
+ :
+ loc='activation-group' name=STRING opt_semicolon
+ {
+ d = new AttributeDescr( "activation-group", getString( name ) );
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+ }
+ ;
+
+agenda_group returns [AttributeDescr d]
+ @init {
+ d = null;
+ }
+ :
+ loc='agenda-group' name=STRING opt_semicolon
+ {
+ d = new AttributeDescr( "agenda-group", getString( name ) );
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+ }
+ ;
+
+
+duration returns [AttributeDescr d]
+ @init {
+ d = null;
+ }
+ :
+ loc='duration' i=INT
+ {
+ d = new AttributeDescr( "duration", i.getText() );
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+ }
+ ;
+
+
+normal_lhs_block[AndDescr descrs]
+ :
+ ( d=lhs
+ { descrs.addDescr( d ); }
+ )*
+ ;
+
+/*
+expander_lhs_block[AndDescr descrs]
+ @init {
+ String lhsBlock = null;
+ String eol = System.getProperty( "line.separator" );
+ List constraints = null;
+ }
+ :
+ (options{greedy=false;} :
+ text=paren_chunk (options{greedy=true;} : loc=EOL)
+ {
+ //only expand non null
+ if (text != null) {
+ if (text.trim().startsWith("-")) {
+ if (constraints == null) {
+ constraints = new ArrayList();
+ }
+ constraints.add(runWhenExpander( text, offset(loc.getLine())));
+ } else {
+ if (constraints != null) {
+ lhsBlock = applyConstraints(constraints, lhsBlock);
+ constraints = null;
+ }
+
+
+ if (lhsBlock == null) {
+ lhsBlock = runWhenExpander( text, offset(loc.getLine()));
+ } else {
+ lhsBlock = lhsBlock + eol + runWhenExpander( text, offset(loc.getLine()));
+ }
+ }
+ text = null;
+ }
+ }
+
+
+ )*
+
+ {
+ //flush out any constraints left handing before the RHS
+ lhsBlock = applyConstraints(constraints, lhsBlock);
+ if (lhsBlock != null) {
+ reparseLhs(lhsBlock, descrs);
+ }
+ }
+
+ ;
+*/
+
+lhs returns [BaseDescr d]
+ @init {
+ d=null;
+ }
+ : l=lhs_or { d = l; }
+ ;
+
+
+lhs_column returns [BaseDescr d]
+ @init {
+ d=null;
+ }
+ : f=fact_binding { d = f; }
+ | f=fact { d = f; }
+ ;
+
+from_statement returns [FromDescr d]
+ @init {
+ d=factory.createFrom();
+ }
+ :
+ 'from' ds=from_source
+ {
+ d.setDataSource(ds);
+
+ }
+
+
+
+ ;
+
+from_source returns [DeclarativeInvokerDescr ds]
+ @init {
+ ds = null;
+ AccessorDescr ad = null;
+ }
+ :
+ (( functionName=ID args=paren_chunk
+ {
+ ad = new AccessorDescr();
+ ad.setLocation( offset(functionName.getLine()), functionName.getCharPositionInLine() );
+ ds = ad;
+ FunctionCallDescr fc = new FunctionCallDescr(functionName.getText());
+ fc.setLocation( offset(functionName.getLine()), functionName.getCharPositionInLine() );
+ fc.setArguments(args);
+ ad.addInvoker(fc);
+ }
+ )
+ |
+ ( var=ID
+ {
+ ad = new AccessorDescr(var.getText());
+ ad.setLocation( offset(var.getLine()), var.getCharPositionInLine() );
+ ds = ad;
+ }
+ ))
+
+ expression_chain[ad]?
+ ;
+
+expression_chain[AccessorDescr as]
+ @init {
+ FieldAccessDescr fa = null;
+ MethodAccessDescr ma = null;
+ }
+ :
+ ( '.' field=ID
+ {
+ fa = new FieldAccessDescr(field.getText());
+ fa.setLocation( offset(field.getLine()), field.getCharPositionInLine() );
+ }
+ (
+ ( LEFT_SQUARE ) => sqarg=square_chunk
+ {
+ fa.setArgument( sqarg );
+ }
+ |
+ ( LEFT_PAREN ) => paarg=paren_chunk
+ {
+ ma = new MethodAccessDescr( field.getText(), paarg );
+ ma.setLocation( offset(field.getLine()), field.getCharPositionInLine() );
+ }
+ )?
+ {
+ if( ma != null ) {
+ as.addInvoker( ma );
+ } else {
+ as.addInvoker( fa );
+ }
+ }
+ expression_chain[as]?
+ )
+ ;
+
+accumulate_statement returns [AccumulateDescr d]
+ @init {
+ d = factory.createAccumulate();
+ }
+ :
+ loc='from' 'accumulate'
+ {
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+ }
+ '(' column=lhs_column ','
+ {
+ d.setSourceColumn( (ColumnDescr)column );
+ }
+ 'init' text=paren_chunk ','
+ {
+ d.setInitCode( text.substring(1, text.length()-1) );
+ }
+ 'action' text=paren_chunk ','
+ {
+ d.setActionCode( text.substring(1, text.length()-1) );
+ }
+ 'result' text=paren_chunk ')'
+ {
+ d.setResultCode( text.substring(1, text.length()-1) );
+ }
+ ;
+
+collect_statement returns [CollectDescr d]
+ @init {
+ d = factory.createCollect();
+ }
+ :
+ loc='from' 'collect'
+ {
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+ }
+ '(' column=lhs_column ')'
+ {
+ d.setSourceColumn( (ColumnDescr)column );
+ }
+ ;
+/*
+argument_list returns [ArrayList args]
+ @init {
+ args = new ArrayList();
+ }
+ :
+ (param=argument_value {
+ if (param != null) {
+ args.add(param);
+ }
+ }
+
+ (
+ ',' param=argument_value {
+ if (param != null) {
+ args.add(param);
+ }
+ }
+ )*
+ )?
+ ;
+
+argument_value returns [ArgumentValueDescr value]
+ @init {
+ value = null;
+ String text = null;
+ }
+ : ( t=STRING { text = getString( t ); value=new ArgumentValueDescr(ArgumentValueDescr.STRING, text);}
+ | t=INT { text = t.getText(); value=new ArgumentValueDescr(ArgumentValueDescr.INTEGRAL, text);}
+ | 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 ); }
+ )
+ ;
+
+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;
+ boolean multi=false;
+ }
+ :
+ id=ID
+
+ ':' fe=fact_expression[id.getText()]
+ {
+ d=fe;
+ }
+ ;
+
+ fact_expression[String id] returns [BaseDescr pd]
+ @init {
+ pd = null;
+ boolean multi = false;
+ }
+ : '(' fe=fact_expression_in_paren[id] ')' { pd=fe; }
+ | f=fact
+ {
+ ((ColumnDescr)f).setIdentifier( id );
+ pd = f;
+ }
+ ;
+
+// in parenthesis alternative is allowed
+ fact_expression_in_paren[String id] returns [BaseDescr pd]
+ @init {
+ pd = null;
+ boolean multi = false;
+ }
+ : '(' fe=fact_expression_in_paren[id]')' { pd=fe; }
+ | f=fact
+ {
+ ((ColumnDescr)f).setIdentifier( id );
+ pd = f;
+ }
+ ( ('or'|'||')
+ { if ( ! multi ) {
+ BaseDescr first = pd;
+ pd = new OrDescr();
+ ((OrDescr)pd).addDescr( first );
+ multi=true;
+ }
+ }
+ f=fact
+ {
+ ((ColumnDescr)f).setIdentifier( id );
+ ((OrDescr)pd).addDescr( f );
+ }
+ )*
+ ;
+
+fact returns [BaseDescr d]
+ @init {
+ d=null;
+ }
+ : id=dotted_name
+ {
+ d = new ColumnDescr( id );
+ }
+ loc='(' {
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+ }
+ ( c=constraints
+ {
+ for ( Iterator cIter = c.iterator() ; cIter.hasNext() ; ) {
+ ((ColumnDescr)d).addDescr( (BaseDescr) cIter.next() );
+ }
+ }
+ )?
+ endLoc=')'
+ {
+ d.setEndLocation( offset(endLoc.getLine()), endLoc.getCharPositionInLine() );
+ }
+ ;
+
+
+constraints returns [List constraints]
+ @init {
+ constraints = new ArrayList();
+ }
+ : (constraint[constraints]|predicate[constraints])
+ ( ',' (constraint[constraints]|predicate[constraints]))*
+ ;
+
+constraint[List constraints]
+ @init {
+ BaseDescr d = null;
+ FieldConstraintDescr fc = null;
+ }
+ :
+ ( fb=ID ':' )?
+ f=ID
+ {
+ 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() );
+ }
+ (
+ rd=constraint_expression
+ {
+ fc.addRestriction(rd);
+ constraints.add(fc);
+ }
+ (
+ con=('&'|'|')
+ {
+ if (con.getText().equals("&") ) {
+ fc.addRestriction(new RestrictionConnectiveDescr(RestrictionConnectiveDescr.AND));
+ } else {
+ fc.addRestriction(new RestrictionConnectiveDescr(RestrictionConnectiveDescr.OR));
+ }
+ }
+ rd=constraint_expression
+ {
+ fc.addRestriction(rd);
+ }
+ )*
+ )?
+ ;
+
+constraint_expression returns [RestrictionDescr rd]
+ :
+ op=( '=='
+ | '>'
+ | '>='
+ | '<'
+ | '<='
+ | '!='
+ | 'contains'
+ | 'matches'
+ | 'excludes'
+ )
+ ( bvc=ID
+ {
+ rd = new VariableRestrictionDescr(op.getText(), bvc.getText());
+ }
+ |
+ lc=enum_constraint
+ {
+ rd = new LiteralRestrictionDescr(op.getText(), lc, true);
+ }
+ |
+ lc=literal_constraint
+ {
+ rd = new LiteralRestrictionDescr(op.getText(), lc);
+ }
+ | rvc=retval_constraint
+ {
+ rd = new ReturnValueRestrictionDescr(op.getText(), rvc);
+ }
+ )
+ ;
+
+literal_constraint returns [String text]
+ @init {
+ text = null;
+ }
+ : ( t=STRING { text = getString( t ); } //t.getText(); text=text.substring( 1, text.length() - 1 ); }
+ | t=INT { text = t.getText(); }
+ | t=FLOAT { text = t.getText(); }
+ | t=BOOL { text = t.getText(); }
+ | t='null' { text = null; }
+ )
+ ;
+
+enum_constraint returns [String text]
+ @init {
+ text = null;
+ }
+ : (cls=ID '.' en=ID) { text = cls.getText() + "." + en.getText(); }
+ ;
+
+
+predicate[List constraints]
+ :
+ decl=ID ':' field=ID '->' text=paren_chunk
+ {
+ String body = text.substring(1, text.length()-1);
+ PredicateDescr d = new PredicateDescr(field.getText(), decl.getText(), body );
+ constraints.add( d );
+ }
+ ;
+
+paren_chunk returns [String text]
+ @init {
+ StringBuffer buf = null;
+ Integer channel = null;
+ }
+ :
+ {
+ channel = ((SwitchingCommonTokenStream)input).getTokenTypeChannel( WS );
+ ((SwitchingCommonTokenStream)input).setTokenTypeChannel( WS, Token.DEFAULT_CHANNEL );
+ buf = new StringBuffer();
+ }
+ loc=LEFT_PAREN
+ {
+ buf.append( loc.getText());
+
+ }
+ (
+ ~(LEFT_PAREN|RIGHT_PAREN)
+ {
+ buf.append( input.LT(-1).getText() );
+ }
+ |
+ chunk=paren_chunk
+ {
+ buf.append( chunk );
+ }
+ )*
+ {
+ if( channel != null ) {
+ ((SwitchingCommonTokenStream)input).setTokenTypeChannel(WS, channel.intValue());
+ } else {
+ ((SwitchingCommonTokenStream)input).setTokenTypeChannel(WS, Token.HIDDEN_CHANNEL);
+ }
+ }
+ loc=RIGHT_PAREN
+ {
+ buf.append( loc.getText() );
+ text = buf.toString();
+ }
+ ;
+
+curly_chunk returns [String text]
+ @init {
+ StringBuffer buf = null;
+ Integer channel = null;
+ }
+ :
+ loc=LEFT_CURLY
+ {
+ channel = ((SwitchingCommonTokenStream)input).getTokenTypeChannel( WS );
+ ((SwitchingCommonTokenStream)input).setTokenTypeChannel( WS, Token.DEFAULT_CHANNEL );
+ buf = new StringBuffer();
+
+ buf.append( loc.getText() );
+ }
+ (
+ ~(LEFT_CURLY|RIGHT_CURLY)
+ {
+ buf.append( input.LT(-1).getText() );
+ }
+ |
+ chunk=curly_chunk
+ {
+ buf.append( chunk );
+ }
+ )*
+ {
+ if( channel != null ) {
+ ((SwitchingCommonTokenStream)input).setTokenTypeChannel(WS, channel.intValue());
+ } else {
+ ((SwitchingCommonTokenStream)input).setTokenTypeChannel(WS, Token.HIDDEN_CHANNEL);
+ }
+ }
+ loc=RIGHT_CURLY
+ {
+ buf.append( loc.getText() );
+ text = buf.toString();
+ }
+ ;
+
+square_chunk returns [String text]
+ @init {
+ StringBuffer buf = null;
+ Integer channel = null;
+ }
+ :
+ {
+ channel = ((SwitchingCommonTokenStream)input).getTokenTypeChannel( WS );
+ ((SwitchingCommonTokenStream)input).setTokenTypeChannel( WS, Token.DEFAULT_CHANNEL );
+ buf = new StringBuffer();
+ }
+ loc=LEFT_SQUARE
+ {
+ buf.append( loc.getText());
+
+ }
+ (
+ ~(LEFT_SQUARE|RIGHT_SQUARE)
+ {
+ buf.append( input.LT(-1).getText() );
+ }
+ |
+ chunk=square_chunk
+ {
+ buf.append( chunk );
+ }
+ )*
+ {
+ if( channel != null ) {
+ ((SwitchingCommonTokenStream)input).setTokenTypeChannel(WS, channel.intValue());
+ } else {
+ ((SwitchingCommonTokenStream)input).setTokenTypeChannel(WS, Token.HIDDEN_CHANNEL);
+ }
+ }
+ loc=RIGHT_SQUARE
+ {
+ buf.append( loc.getText() );
+ text = buf.toString();
+ }
+ ;
+
+retval_constraint returns [String text]
+ @init {
+ text = null;
+ }
+ :
+ c=paren_chunk { text = c.substring(1, c.length()-1); }
+ ;
+
+
+
+
+
+
+lhs_or returns [BaseDescr d]
+ @init{
+ d = null;
+ OrDescr or = null;
+ }
+ :
+ left=lhs_and {d = left; }
+ ( ('or'|'||')
+ right=lhs_and
+ {
+ if ( or == null ) {
+ or = new OrDescr();
+ or.addDescr( left );
+ d = or;
+ }
+
+ or.addDescr( right );
+ }
+ )*
+ ;
+
+lhs_and returns [BaseDescr d]
+ @init{
+ d = null;
+ AndDescr and = null;
+ }
+ :
+ left=lhs_unary { d = left; }
+ ( ('and'|'&&')
+ right=lhs_unary
+ {
+ if ( and == null ) {
+ and = new AndDescr();
+ and.addDescr( left );
+ d = and;
+ }
+
+ and.addDescr( right );
+ }
+ )*
+ ;
+
+lhs_unary returns [BaseDescr d]
+ @init {
+ d = null;
+ }
+ : ( u=lhs_exist
+ | u=lhs_not
+ | u=lhs_eval
+ | u=lhs_column (
+ (fm=from_statement {fm.setColumn((ColumnDescr) u); u=fm;})
+ |(ac=accumulate_statement {ac.setResultColumn((ColumnDescr) u); u=ac;})
+ |(cs=collect_statement {cs.setResultColumn((ColumnDescr) u); u=cs;})
+ )?
+ | '(' u=lhs ')'
+ ) { d = u; }
+ opt_semicolon
+ ;
+
+lhs_exist returns [BaseDescr d]
+ @init {
+ d = null;
+ }
+ : loc='exists' ('(' column=lhs_or ')' | column=lhs_column)
+ {
+ d = new ExistsDescr( (ColumnDescr) column );
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+ }
+ ;
+
+lhs_not returns [NotDescr d]
+ @init {
+ d = null;
+ }
+ : loc='not' ('(' column=lhs_or ')' | column=lhs_column)
+ {
+ d = new NotDescr( column );
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+ }
+ ;
+
+lhs_eval returns [BaseDescr d]
+ @init {
+ d = null;
+ }
+ : loc='eval' c=paren_chunk
+ {
+ String body = c.substring(1, c.length()-1);
+ checkTrailingSemicolon( body, offset(loc.getLine()) );
+ d = new EvalDescr( body );
+ }
+ ;
+
+dotted_name returns [String name]
+ @init {
+ name = null;
+ }
+ :
+ id=ID { name=id.getText(); } ( '.' id=ID { name = name + "." + id.getText(); } )* ( '[' ']' { name = name + "[]";})*
+ ;
+
+argument returns [String name]
+ @init {
+ name = null;
+ }
+ :
+ id=ID { name=id.getText(); } ( '[' ']' { name = name + "[]";})*
+ ;
+
+rhs_chunk[RuleDescr rule]
+ @init {
+ StringBuffer buf = null;
+ Integer channel = null;
+ }
+ :
+ {
+ channel = ((SwitchingCommonTokenStream)input).getTokenTypeChannel( WS );
+ ((SwitchingCommonTokenStream)input).setTokenTypeChannel( WS, Token.DEFAULT_CHANNEL );
+ buf = new StringBuffer();
+ }
+ start='then'
+ (
+ ~END
+ {
+ buf.append( input.LT(-1).getText() );
+ }
+ )*
+ {
+ if( channel != null ) {
+ ((SwitchingCommonTokenStream)input).setTokenTypeChannel(WS, channel.intValue());
+ } else {
+ ((SwitchingCommonTokenStream)input).setTokenTypeChannel(WS, Token.HIDDEN_CHANNEL);
+ }
+ }
+ END
+ {
+ // ignoring first line in the consequence
+ int index = 0;
+ while( (index < buf.length() ) && Character.isWhitespace( buf.charAt( index ) ) &&
+ (buf.charAt( index ) != 10 ) && (buf.charAt( index ) != 13 ))
+ index++;
+ if( (index < buf.length() ) && ( buf.charAt( index ) == '\r' ) )
+ index++;
+ if( (index < buf.length() ) && ( buf.charAt( index ) == '\n' ) )
+ index++;
+
+ rule.setConsequence( buf.substring( index ) );
+ rule.setConsequenceLocation(offset(start.getLine()), start.getCharPositionInLine());
+ }
+ ;
+
+
+word returns [String word]
+ @init{
+ word = null;
+ }
+ : id=ID { word=id.getText(); }
+ | 'import' { word="import"; }
+ | 'use' { word="use"; }
+ | RULE { word="rule"; }
+ | 'query' { word="query"; }
+ | 'salience' { word="salience"; }
+ | 'no-loop' { word="no-loop"; }
+ | WHEN { word="when"; }
+ | THEN { word="then"; }
+ | END { word="end"; }
+ | str=STRING { word=getString(str);} //str.getText(); word=word.substring( 1, word.length()-1 ); }
+ ;
+
+//RHS :'then' (options{greedy=false;} : .)* ('\n'|'\r') (' '|'\t'|'\f')* 'end'
+// ;
+
+WS : ( ' '
+ | '\t'
+ | '\f'
+ | EOL
+ )
+ { $channel=HIDDEN; }
+ ;
+
+fragment
+EOL :
+ ( ( '\r\n' )=> '\r\n' // Evil DOS
+ | '\r' // Macintosh
+ | '\n' // Unix (the right way)
+ )
+ ;
+
+INT
+ : ('-')?('0'..'9')+
+ ;
+
+FLOAT
+ : ('-')?('0'..'9')+ '.' ('0'..'9')+
+ ;
+
+STRING
+ : ('"' ( EscapeSequence | ~('\\'|'"') )* '"')
+ | ('\'' ( EscapeSequence | ~('\\'|'\'') )* '\'')
+ ;
+
+fragment
+HexDigit : ('0'..'9'|'a'..'f'|'A'..'F') ;
+
+fragment
+EscapeSequence
+ : '\\' ('b'|'t'|'n'|'f'|'r'|'\"'|'\''|'\\')
+ | UnicodeEscape
+ | OctalEscape
+ ;
+
+fragment
+OctalEscape
+ : '\\' ('0'..'3') ('0'..'7') ('0'..'7')
+ | '\\' ('0'..'7') ('0'..'7')
+ | '\\' ('0'..'7')
+ ;
+
+fragment
+UnicodeEscape
+ : '\\' 'u' HexDigit HexDigit HexDigit HexDigit
+ ;
+
+BOOL
+ : ('true'|'false')
+ ;
+
+RULE : 'rule';
+
+WHEN : 'when';
+
+THEN : 'then';
+
+END : 'end';
+
+ID
+ : ('a'..'z'|'A'..'Z'|'_'|'$'|'\u00c0'..'\u00ff')('a'..'z'|'A'..'Z'|'_'|'0'..'9'|'\u00c0'..'\u00ff')*
+ ;
+
+
+SH_STYLE_SINGLE_LINE_COMMENT
+ : '#' ( options{greedy=false;} : .)* EOL /* ('\r')? '\n' */
+ { $channel=HIDDEN; }
+ ;
+
+
+C_STYLE_SINGLE_LINE_COMMENT
+ : '//' ( options{greedy=false;} : .)* EOL // ('\r')? '\n'
+ { $channel=HIDDEN; }
+ ;
+
+
+LEFT_PAREN
+ : '('
+ ;
+
+RIGHT_PAREN
+ : ')'
+ ;
+
+LEFT_SQUARE
+ : '['
+ ;
+
+RIGHT_SQUARE
+ : ']'
+ ;
+
+LEFT_CURLY
+ : '{'
+ ;
+
+RIGHT_CURLY
+ : '}'
+ ;
+
+MULTI_LINE_COMMENT
+ : '/*' (options{greedy=false;} : .)* '*/'
+ { $channel=HIDDEN; }
+ ;
+
+MISC :
+ '!' | '@' | '$' | '%' | '^' | '&' | '*' | '_' | '-' | '+' | '?' | '|' | ',' | '=' | '/' | '\'' | '\\'
+ ;
Modified: labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/integrationtests/IntegrationCases.java
===================================================================
--- labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/integrationtests/IntegrationCases.java 2007-01-11 21:47:50 UTC (rev 8830)
+++ labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/integrationtests/IntegrationCases.java 2007-01-11 22:09:16 UTC (rev 8831)
@@ -189,6 +189,9 @@
Exception {
final DrlParser parser = new DrlParser();
final PackageDescr packageDescr = parser.parse( reader );
+ if (parser.hasErrors()) {
+ Assert.fail("Error messages in parser, need to sort this our (or else collect error messages)");
+ }
// pre build the package
final PackageBuilder builder = new PackageBuilder();
builder.addPackage( packageDescr );
@@ -248,7 +251,26 @@
list.get( 0 ) );
}
+
+ public void testDateEffective() throws Exception {
+ // read in the source
+ final Reader reader = new InputStreamReader( getClass().getResourceAsStream( "test_EffectiveDate.drl" ) );
+ final RuleBase ruleBase = loadRuleBase( reader );
+ final WorkingMemory workingMemory = ruleBase.newWorkingMemory();
+
+ final List list = new ArrayList();
+ workingMemory.setGlobal( "list",
+ list );
+
+ // go !
+ final Message message = new Message( "hola" );
+ workingMemory.assertObject( message );
+ workingMemory.fireAllRules();
+ assertFalse( message.isFired() );
+
+ }
+
public void testLiteral() throws Exception {
final PackageBuilder builder = new PackageBuilder();
builder.addPackageFromDrl( new InputStreamReader( getClass().getResourceAsStream( "literal_rule_test.drl" ) ) );
Modified: labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/semantics/java/RuleBuilderTest.java
===================================================================
--- labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/semantics/java/RuleBuilderTest.java 2007-01-11 21:47:50 UTC (rev 8830)
+++ labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/semantics/java/RuleBuilderTest.java 2007-01-11 22:09:16 UTC (rev 8831)
@@ -17,7 +17,11 @@
package org.drools.semantics.java;
import java.io.InputStreamReader;
+import java.lang.reflect.Field;
+import java.lang.reflect.Method;
import java.util.ArrayList;
+import java.util.Calendar;
+import java.util.List;
import junit.framework.Assert;
import junit.framework.TestCase;
@@ -26,6 +30,7 @@
import org.codehaus.jfdi.interpreter.TypeResolver;
import org.drools.base.ClassFieldExtractorCache;
import org.drools.compiler.DrlParser;
+import org.drools.lang.descr.AttributeDescr;
import org.drools.lang.descr.PackageDescr;
import org.drools.lang.descr.RuleDescr;
import org.drools.rule.Declaration;
@@ -120,5 +125,42 @@
}
}
+
+ public void testBuildAttributes() throws Exception {
+ RuleBuilder builder = new RuleBuilder(null, null, null);
+ Rule rule = new Rule("myrule");
+ List attributes = new ArrayList();
+
+ attributes.add( new AttributeDescr("no-loop", "true") );
+ attributes.add( new AttributeDescr("enabled", "false") );
+ builder.setAttributes( rule, attributes );
+
+ assertTrue(rule.getNoLoop());
+ assertFalse(rule.isEffective());
+
+ attributes = new ArrayList();
+ attributes.add(new AttributeDescr("date-effective", "10-Jul-1974"));
+ attributes.add(new AttributeDescr("date-expires", "10-Jul-2040") );
+
+ rule = new Rule("myrule");
+
+ builder.setAttributes( rule, attributes );
+
+ Field eff = rule.getClass().getDeclaredField( "dateEffective" );
+ eff.setAccessible( true );
+ Calendar effectiveDate = (Calendar) eff.get( rule );
+ assertNotNull(effectiveDate);
+
+ assertEquals(1974, effectiveDate.get( Calendar.YEAR ));
+
+ Field exp = rule.getClass().getDeclaredField( "dateExpires" );
+ exp.setAccessible( true );
+ Calendar expiryDate = (Calendar) exp.get( rule );
+
+ assertEquals(2040, expiryDate.get(Calendar.YEAR));
+
+ assertNotNull(expiryDate);
+
+ }
}
Modified: labs/jbossrules/trunk/drools-core/src/main/java/org/drools/reteoo/RuleTerminalNode.java
===================================================================
--- labs/jbossrules/trunk/drools-core/src/main/java/org/drools/reteoo/RuleTerminalNode.java 2007-01-11 21:47:50 UTC (rev 8830)
+++ labs/jbossrules/trunk/drools-core/src/main/java/org/drools/reteoo/RuleTerminalNode.java 2007-01-11 22:09:16 UTC (rev 8831)
@@ -125,14 +125,21 @@
final PropagationContext context,
final InternalWorkingMemory workingMemory,
final boolean fireActivationCreated) {
- //we only have to clone the head fact to make sure the graph is not affected during consequence reads after a modify
- final ReteTuple cloned = new ReteTuple( tuple );
+
+ //check if the rule is effective
+ if (!this.rule.isEffective()) {
+ return;
+ }
// if the current Rule is no-loop and the origin rule is the same then
// return
if ( this.rule.getNoLoop() && this.rule.equals( context.getRuleOrigin() ) ) {
return;
- }
+ }
+
+ //we only have to clone the head fact to make sure the graph is not affected during consequence reads after a modify
+ final ReteTuple cloned = new ReteTuple( tuple );
+
final InternalAgenda agenda = (InternalAgenda) workingMemory.getAgenda();
final Duration dur = this.rule.getDuration();
Modified: labs/jbossrules/trunk/drools-core/src/main/java/org/drools/rule/Rule.java
===================================================================
--- labs/jbossrules/trunk/drools-core/src/main/java/org/drools/rule/Rule.java 2007-01-11 21:47:50 UTC (rev 8830)
+++ labs/jbossrules/trunk/drools-core/src/main/java/org/drools/rule/Rule.java 2007-01-11 22:09:16 UTC (rev 8831)
@@ -17,6 +17,7 @@
*/
import java.io.Serializable;
+import java.util.Calendar;
import java.util.Iterator;
import java.util.Map;
@@ -36,7 +37,7 @@
* @see Consequence
* @author <a href="mailto:bob at eng.werken.com"> bob mcwhirter </a>
* @author <a href="mailto:simon at redhillconsulting.com.au"> Simon Harris </a>
- * @author <a href="mailto:mproctor at codehaus.org"> mark pro </a>
+ * @author <a href="mailto:mproctor at codehaus.org"> mark proctor </a>
*/
public class Rule
implements
@@ -86,7 +87,13 @@
/** indicates that the rule is semantically correct. */
private boolean semanticallyValid = true;
+
+ private Calendar dateEffective = null;
+
+ private Calendar dateExpires = null;
+ private boolean enabled = true;
+
// ------------------------------------------------------------
// Constructors
// ------------------------------------------------------------
@@ -234,6 +241,30 @@
return this.noLoop;
}
+ /**
+ * This returns true is the rule is effective.
+ * If the rule is not effective, it cannot activate.
+ *
+ * This uses the dateEffective, dateExpires and enabled flag to decide this.
+ */
+ public boolean isEffective() {
+ if (!enabled) return false;
+ if (this.dateEffective == null && this.dateExpires == null) {
+ return true;
+ } else {
+ Calendar now = Calendar.getInstance();
+ if (this.dateEffective != null && this.dateExpires != null) {
+ return (now.after( this.dateEffective ) && now.before( this.dateExpires ));
+ } else if (this.dateEffective != null) {
+ return (now.after( this.dateEffective ));
+ } else {
+ return (now.before( this.dateExpires ));
+ }
+
+ }
+
+ }
+
public void setNoLoop(final boolean noLoop) {
this.noLoop = noLoop;
}
@@ -423,4 +454,27 @@
public boolean isSemanticallyValid() {
return this.semanticallyValid;
}
+
+ /**
+ * Sets the date from which this rule takes effect (can include time to the millisecond).
+ * @param effectiveDate
+ */
+ public void setDateEffective(Calendar effectiveDate) {
+ this.dateEffective = effectiveDate;
+ }
+
+ /**
+ * Sets the date after which the rule will no longer apply (can include time to the millisecond).
+ * @param expiresDate
+ */
+ public void setDateExpires(Calendar expiresDate) {
+ this.dateExpires = expiresDate;
+ }
+
+ /**
+ * A rule is enabled by default. This can explicitly disable it in which case it will never activate.
+ */
+ public void setEnabled(boolean b) {
+ this.enabled = b;
+ }
}
More information about the jboss-svn-commits
mailing list