[jboss-svn-commits] JBL Code SVN: r20713 - in labs/jbossrules/trunk/drools-clips/src/main: resources/org/drools/cips and 1 other directory.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Mon Jun 23 21:25:42 EDT 2008
Author: mark.proctor at jboss.com
Date: 2008-06-23 21:25:42 -0400 (Mon, 23 Jun 2008)
New Revision: 20713
Modified:
labs/jbossrules/trunk/drools-clips/src/main/java/org/drools/clips/ClipsLexer.java
labs/jbossrules/trunk/drools-clips/src/main/java/org/drools/clips/ClipsParser.java
labs/jbossrules/trunk/drools-clips/src/main/resources/org/drools/cips/Clips.g
Log:
JBRULES-720 Clips Parser
-fixed a bad commit from an out of date clips.g
Modified: labs/jbossrules/trunk/drools-clips/src/main/java/org/drools/clips/ClipsLexer.java
===================================================================
--- labs/jbossrules/trunk/drools-clips/src/main/java/org/drools/clips/ClipsLexer.java 2008-06-24 00:50:01 UTC (rev 20712)
+++ labs/jbossrules/trunk/drools-clips/src/main/java/org/drools/clips/ClipsLexer.java 2008-06-24 01:25:42 UTC (rev 20713)
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g 2008-06-24 01:45:58
+// $ANTLR 3.0.1 C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g 2008-06-24 02:24:27
package org.drools.clips;
@@ -10,53 +10,53 @@
import java.util.Map;
import java.util.HashMap;
public class ClipsLexer extends Lexer {
- public static final int RIGHT_SQUARE=41;
- public static final int RIGHT_CURLY=43;
- public static final int EQUALS=26;
- public static final int FLOAT=27;
- public static final int SH_STYLE_SINGLE_LINE_COMMENT=38;
- public static final int SYMBOL_CHAR=37;
- public static final int NOT=17;
- public static final int AND=15;
- public static final int FIRST_SYMBOL_CHAR=46;
+ public static final int RIGHT_SQUARE=40;
+ public static final int RIGHT_CURLY=42;
+ public static final int EQUALS=23;
+ public static final int FLOAT=24;
+ public static final int SH_STYLE_SINGLE_LINE_COMMENT=37;
+ public static final int SYMBOL_CHAR=36;
+ public static final int NOT=14;
+ public static final int AND=12;
+ public static final int FIRST_SYMBOL_CHAR=45;
public static final int EOF=-1;
- public static final int HexDigit=34;
- public static final int DEFFUNCTION=11;
- public static final int TYPE=10;
- public static final int ASSIGN_OP=21;
+ public static final int HexDigit=33;
+ public static final int DEFFUNCTION=7;
+ public static final int ASSIGN_OP=18;
public static final int RIGHT_PAREN=6;
public static final int NAME=5;
- public static final int EOL=30;
- public static final int DEFRULE=12;
- public static final int TILDE=24;
- public static final int PIPE=22;
- public static final int VAR=20;
- public static final int EXISTS=18;
- public static final int SYMBOL=45;
- public static final int NULL=29;
- public static final int BOOL=28;
- public static final int SALIENCE=13;
- public static final int AMPERSAND=23;
+ public static final int EOL=29;
+ public static final int DEFRULE=8;
+ public static final int TILDE=21;
+ public static final int PIPE=19;
+ public static final int VAR=17;
+ public static final int EXISTS=15;
+ public static final int SYMBOL=44;
+ public static final int NULL=26;
+ public static final int BOOL=25;
+ public static final int SALIENCE=10;
+ public static final int AMPERSAND=20;
public static final int T48=48;
- public static final int INT=14;
+ public static final int INT=11;
public static final int Tokens=49;
- public static final int MULTI_LINE_COMMENT=44;
+ public static final int MULTI_LINE_COMMENT=43;
public static final int T47=47;
- public static final int COLON=25;
- public static final int WS=31;
- public static final int UnicodeEscape=35;
- public static final int SLOT=9;
- public static final int LEFT_CURLY=42;
- public static final int OR=16;
- public static final int TEST=19;
+ public static final int T46=46;
+ public static final int COLON=22;
+ public static final int WS=30;
+ public static final int UnicodeEscape=34;
+ public static final int SLOT=28;
+ public static final int LEFT_CURLY=41;
+ public static final int OR=13;
+ public static final int TEST=16;
public static final int LEFT_PAREN=4;
- public static final int DECLARE=32;
- public static final int DEFTEMPLATE=7;
- public static final int LEFT_SQUARE=40;
- public static final int OctalEscape=36;
- public static final int EscapeSequence=33;
- public static final int C_STYLE_SINGLE_LINE_COMMENT=39;
- public static final int STRING=8;
+ public static final int DECLARE=31;
+ public static final int DEFTEMPLATE=27;
+ public static final int LEFT_SQUARE=39;
+ public static final int EscapeSequence=32;
+ public static final int OctalEscape=35;
+ public static final int C_STYLE_SINGLE_LINE_COMMENT=38;
+ public static final int STRING=9;
public ClipsLexer() {;}
public ClipsLexer(CharStream input) {
super(input);
@@ -64,10 +64,10 @@
}
public String getGrammarFileName() { return "C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g"; }
- // $ANTLR start T47
- public final void mT47() throws RecognitionException {
+ // $ANTLR start T46
+ public final void mT46() throws RecognitionException {
try {
- int _type = T47;
+ int _type = T46;
// C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:6:5: ( 'import' )
// C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:6:7: 'import'
{
@@ -81,16 +81,35 @@
finally {
}
}
+ // $ANTLR end T46
+
+ // $ANTLR start T47
+ public final void mT47() throws RecognitionException {
+ try {
+ int _type = T47;
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:7:5: ( '=>' )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:7:7: '=>'
+ {
+ match("=>"); if (failed) return ;
+
+
+ }
+
+ this.type = _type;
+ }
+ finally {
+ }
+ }
// $ANTLR end T47
// $ANTLR start T48
public final void mT48() throws RecognitionException {
try {
int _type = T48;
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:7:5: ( '=>' )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:7:7: '=>'
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:8:5: ( 'type' )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:8:7: 'type'
{
- match("=>"); if (failed) return ;
+ match("type"); if (failed) return ;
}
@@ -106,10 +125,10 @@
public final void mWS() throws RecognitionException {
try {
int _type = WS;
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:755:9: ( ( ' ' | '\\t' | '\\f' | EOL ) )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:755:17: ( ' ' | '\\t' | '\\f' | EOL )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:752:9: ( ( ' ' | '\\t' | '\\f' | EOL ) )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:752:17: ( ' ' | '\\t' | '\\f' | EOL )
{
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:755:17: ( ' ' | '\\t' | '\\f' | EOL )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:752:17: ( ' ' | '\\t' | '\\f' | EOL )
int alt1=4;
switch ( input.LA(1) ) {
case ' ':
@@ -136,35 +155,35 @@
default:
if (backtracking>0) {failed=true; return ;}
NoViableAltException nvae =
- new NoViableAltException("755:17: ( ' ' | '\\t' | '\\f' | EOL )", 1, 0, input);
+ new NoViableAltException("752:17: ( ' ' | '\\t' | '\\f' | EOL )", 1, 0, input);
throw nvae;
}
switch (alt1) {
case 1 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:755:19: ' '
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:752:19: ' '
{
match(' '); if (failed) return ;
}
break;
case 2 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:756:19: '\\t'
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:753:19: '\\t'
{
match('\t'); if (failed) return ;
}
break;
case 3 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:757:19: '\\f'
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:754:19: '\\f'
{
match('\f'); if (failed) return ;
}
break;
case 4 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:758:19: EOL
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:755:19: EOL
{
mEOL(); if (failed) return ;
@@ -190,8 +209,8 @@
public final void mDEFTEMPLATE() throws RecognitionException {
try {
int _type = DEFTEMPLATE;
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:764:13: ( 'deftemplate' )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:764:17: 'deftemplate'
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:761:13: ( 'deftemplate' )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:761:17: 'deftemplate'
{
match("deftemplate"); if (failed) return ;
@@ -205,31 +224,12 @@
}
// $ANTLR end DEFTEMPLATE
- // $ANTLR start TYPE
- public final void mTYPE() throws RecognitionException {
- try {
- int _type = TYPE;
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:765:13: ( 'qwerty' )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:765:15: 'qwerty'
- {
- match("qwerty"); if (failed) return ;
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end TYPE
-
// $ANTLR start SLOT
public final void mSLOT() throws RecognitionException {
try {
int _type = SLOT;
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:766:13: ( 'slot' )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:766:15: 'slot'
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:763:13: ( 'slot' )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:763:15: 'slot'
{
match("slot"); if (failed) return ;
@@ -247,8 +247,8 @@
public final void mDEFRULE() throws RecognitionException {
try {
int _type = DEFRULE;
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:767:10: ( 'defrule' )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:767:12: 'defrule'
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:764:10: ( 'defrule' )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:764:12: 'defrule'
{
match("defrule"); if (failed) return ;
@@ -266,8 +266,8 @@
public final void mDEFFUNCTION() throws RecognitionException {
try {
int _type = DEFFUNCTION;
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:768:13: ( 'deffunction' )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:768:15: 'deffunction'
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:765:13: ( 'deffunction' )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:765:15: 'deffunction'
{
match("deffunction"); if (failed) return ;
@@ -285,8 +285,8 @@
public final void mOR() throws RecognitionException {
try {
int _type = OR;
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:769:7: ( 'or' )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:769:9: 'or'
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:766:7: ( 'or' )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:766:9: 'or'
{
match("or"); if (failed) return ;
@@ -304,8 +304,8 @@
public final void mAND() throws RecognitionException {
try {
int _type = AND;
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:770:7: ( 'and' )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:770:9: 'and'
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:767:7: ( 'and' )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:767:9: 'and'
{
match("and"); if (failed) return ;
@@ -323,8 +323,8 @@
public final void mNOT() throws RecognitionException {
try {
int _type = NOT;
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:771:7: ( 'not' )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:771:9: 'not'
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:768:7: ( 'not' )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:768:9: 'not'
{
match("not"); if (failed) return ;
@@ -342,8 +342,8 @@
public final void mEXISTS() throws RecognitionException {
try {
int _type = EXISTS;
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:772:10: ( 'exists' )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:772:12: 'exists'
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:769:10: ( 'exists' )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:769:12: 'exists'
{
match("exists"); if (failed) return ;
@@ -361,8 +361,8 @@
public final void mTEST() throws RecognitionException {
try {
int _type = TEST;
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:773:8: ( 'test' )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:773:10: 'test'
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:770:8: ( 'test' )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:770:10: 'test'
{
match("test"); if (failed) return ;
@@ -380,8 +380,8 @@
public final void mNULL() throws RecognitionException {
try {
int _type = NULL;
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:775:7: ( 'null' )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:775:9: 'null'
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:771:7: ( 'null' )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:771:9: 'null'
{
match("null"); if (failed) return ;
@@ -399,8 +399,8 @@
public final void mDECLARE() throws RecognitionException {
try {
int _type = DECLARE;
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:777:10: ( 'declare' )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:777:12: 'declare'
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:773:10: ( 'declare' )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:773:12: 'declare'
{
match("declare"); if (failed) return ;
@@ -418,8 +418,8 @@
public final void mSALIENCE() throws RecognitionException {
try {
int _type = SALIENCE;
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:779:10: ( 'salience' )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:779:12: 'salience'
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:775:10: ( 'salience' )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:775:12: 'salience'
{
match("salience"); if (failed) return ;
@@ -436,10 +436,10 @@
// $ANTLR start EOL
public final void mEOL() throws RecognitionException {
try {
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:784:6: ( ( ( '\\r\\n' )=> '\\r\\n' | '\\r' | '\\n' ) )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:785:6: ( ( '\\r\\n' )=> '\\r\\n' | '\\r' | '\\n' )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:780:6: ( ( ( '\\r\\n' )=> '\\r\\n' | '\\r' | '\\n' ) )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:781:6: ( ( '\\r\\n' )=> '\\r\\n' | '\\r' | '\\n' )
{
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:785:6: ( ( '\\r\\n' )=> '\\r\\n' | '\\r' | '\\n' )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:781:6: ( ( '\\r\\n' )=> '\\r\\n' | '\\r' | '\\n' )
int alt2=3;
int LA2_0 = input.LA(1);
@@ -458,13 +458,13 @@
else {
if (backtracking>0) {failed=true; return ;}
NoViableAltException nvae =
- new NoViableAltException("785:6: ( ( '\\r\\n' )=> '\\r\\n' | '\\r' | '\\n' )", 2, 0, input);
+ new NoViableAltException("781:6: ( ( '\\r\\n' )=> '\\r\\n' | '\\r' | '\\n' )", 2, 0, input);
throw nvae;
}
switch (alt2) {
case 1 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:785:14: ( '\\r\\n' )=> '\\r\\n'
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:781:14: ( '\\r\\n' )=> '\\r\\n'
{
match("\r\n"); if (failed) return ;
@@ -472,14 +472,14 @@
}
break;
case 2 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:786:25: '\\r'
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:782:25: '\\r'
{
match('\r'); if (failed) return ;
}
break;
case 3 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:787:25: '\\n'
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:783:25: '\\n'
{
match('\n'); if (failed) return ;
@@ -501,10 +501,10 @@
public final void mINT() throws RecognitionException {
try {
int _type = INT;
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:792:2: ( ( '-' )? ( '0' .. '9' )+ )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:792:4: ( '-' )? ( '0' .. '9' )+
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:788:2: ( ( '-' )? ( '0' .. '9' )+ )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:788:4: ( '-' )? ( '0' .. '9' )+
{
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:792:4: ( '-' )?
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:788:4: ( '-' )?
int alt3=2;
int LA3_0 = input.LA(1);
@@ -513,7 +513,7 @@
}
switch (alt3) {
case 1 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:792:5: '-'
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:788:5: '-'
{
match('-'); if (failed) return ;
@@ -522,7 +522,7 @@
}
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:792:10: ( '0' .. '9' )+
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:788:10: ( '0' .. '9' )+
int cnt4=0;
loop4:
do {
@@ -536,7 +536,7 @@
switch (alt4) {
case 1 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:792:11: '0' .. '9'
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:788:11: '0' .. '9'
{
matchRange('0','9'); if (failed) return ;
@@ -567,10 +567,10 @@
public final void mFLOAT() throws RecognitionException {
try {
int _type = FLOAT;
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:796:2: ( ( '-' )? ( '0' .. '9' )+ '.' ( '0' .. '9' )+ )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:796:4: ( '-' )? ( '0' .. '9' )+ '.' ( '0' .. '9' )+
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:792:2: ( ( '-' )? ( '0' .. '9' )+ '.' ( '0' .. '9' )+ )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:792:4: ( '-' )? ( '0' .. '9' )+ '.' ( '0' .. '9' )+
{
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:796:4: ( '-' )?
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:792:4: ( '-' )?
int alt5=2;
int LA5_0 = input.LA(1);
@@ -579,7 +579,7 @@
}
switch (alt5) {
case 1 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:796:5: '-'
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:792:5: '-'
{
match('-'); if (failed) return ;
@@ -588,7 +588,7 @@
}
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:796:10: ( '0' .. '9' )+
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:792:10: ( '0' .. '9' )+
int cnt6=0;
loop6:
do {
@@ -602,7 +602,7 @@
switch (alt6) {
case 1 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:796:11: '0' .. '9'
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:792:11: '0' .. '9'
{
matchRange('0','9'); if (failed) return ;
@@ -620,7 +620,7 @@
} while (true);
match('.'); if (failed) return ;
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:796:26: ( '0' .. '9' )+
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:792:26: ( '0' .. '9' )+
int cnt7=0;
loop7:
do {
@@ -634,7 +634,7 @@
switch (alt7) {
case 1 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:796:27: '0' .. '9'
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:792:27: '0' .. '9'
{
matchRange('0','9'); if (failed) return ;
@@ -665,7 +665,7 @@
public final void mSTRING() throws RecognitionException {
try {
int _type = STRING;
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:800:5: ( ( '\"' ( EscapeSequence | ~ ( '\\\\' | '\"' ) )* '\"' ) | ( '\\'' ( EscapeSequence | ~ ( '\\\\' | '\\'' ) )* '\\'' ) )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:796:5: ( ( '\"' ( EscapeSequence | ~ ( '\\\\' | '\"' ) )* '\"' ) | ( '\\'' ( EscapeSequence | ~ ( '\\\\' | '\\'' ) )* '\\'' ) )
int alt10=2;
int LA10_0 = input.LA(1);
@@ -678,19 +678,19 @@
else {
if (backtracking>0) {failed=true; return ;}
NoViableAltException nvae =
- new NoViableAltException("799:1: STRING : ( ( '\"' ( EscapeSequence | ~ ( '\\\\' | '\"' ) )* '\"' ) | ( '\\'' ( EscapeSequence | ~ ( '\\\\' | '\\'' ) )* '\\'' ) );", 10, 0, input);
+ new NoViableAltException("795:1: STRING : ( ( '\"' ( EscapeSequence | ~ ( '\\\\' | '\"' ) )* '\"' ) | ( '\\'' ( EscapeSequence | ~ ( '\\\\' | '\\'' ) )* '\\'' ) );", 10, 0, input);
throw nvae;
}
switch (alt10) {
case 1 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:800:8: ( '\"' ( EscapeSequence | ~ ( '\\\\' | '\"' ) )* '\"' )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:796:8: ( '\"' ( EscapeSequence | ~ ( '\\\\' | '\"' ) )* '\"' )
{
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:800:8: ( '\"' ( EscapeSequence | ~ ( '\\\\' | '\"' ) )* '\"' )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:800:9: '\"' ( EscapeSequence | ~ ( '\\\\' | '\"' ) )* '\"'
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:796:8: ( '\"' ( EscapeSequence | ~ ( '\\\\' | '\"' ) )* '\"' )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:796:9: '\"' ( EscapeSequence | ~ ( '\\\\' | '\"' ) )* '\"'
{
match('\"'); if (failed) return ;
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:800:13: ( EscapeSequence | ~ ( '\\\\' | '\"' ) )*
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:796:13: ( EscapeSequence | ~ ( '\\\\' | '\"' ) )*
loop8:
do {
int alt8=3;
@@ -706,14 +706,14 @@
switch (alt8) {
case 1 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:800:15: EscapeSequence
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:796:15: EscapeSequence
{
mEscapeSequence(); if (failed) return ;
}
break;
case 2 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:800:32: ~ ( '\\\\' | '\"' )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:796:32: ~ ( '\\\\' | '\"' )
{
if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFE') ) {
input.consume();
@@ -743,13 +743,13 @@
}
break;
case 2 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:801:8: ( '\\'' ( EscapeSequence | ~ ( '\\\\' | '\\'' ) )* '\\'' )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:797:8: ( '\\'' ( EscapeSequence | ~ ( '\\\\' | '\\'' ) )* '\\'' )
{
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:801:8: ( '\\'' ( EscapeSequence | ~ ( '\\\\' | '\\'' ) )* '\\'' )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:801:9: '\\'' ( EscapeSequence | ~ ( '\\\\' | '\\'' ) )* '\\''
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:797:8: ( '\\'' ( EscapeSequence | ~ ( '\\\\' | '\\'' ) )* '\\'' )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:797:9: '\\'' ( EscapeSequence | ~ ( '\\\\' | '\\'' ) )* '\\''
{
match('\''); if (failed) return ;
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:801:14: ( EscapeSequence | ~ ( '\\\\' | '\\'' ) )*
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:797:14: ( EscapeSequence | ~ ( '\\\\' | '\\'' ) )*
loop9:
do {
int alt9=3;
@@ -765,14 +765,14 @@
switch (alt9) {
case 1 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:801:16: EscapeSequence
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:797:16: EscapeSequence
{
mEscapeSequence(); if (failed) return ;
}
break;
case 2 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:801:33: ~ ( '\\\\' | '\\'' )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:797:33: ~ ( '\\\\' | '\\'' )
{
if ( (input.LA(1)>='\u0000' && input.LA(1)<='&')||(input.LA(1)>='(' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFE') ) {
input.consume();
@@ -813,8 +813,8 @@
// $ANTLR start HexDigit
public final void mHexDigit() throws RecognitionException {
try {
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:805:10: ( ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:805:12: ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:801:10: ( ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:801: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();
@@ -839,7 +839,7 @@
// $ANTLR start EscapeSequence
public final void mEscapeSequence() throws RecognitionException {
try {
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:809:5: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | UnicodeEscape | OctalEscape )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:805:5: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | UnicodeEscape | OctalEscape )
int alt11=3;
int LA11_0 = input.LA(1);
@@ -877,7 +877,7 @@
default:
if (backtracking>0) {failed=true; return ;}
NoViableAltException nvae =
- new NoViableAltException("807:1: fragment EscapeSequence : ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | UnicodeEscape | OctalEscape );", 11, 1, input);
+ new NoViableAltException("803:1: fragment EscapeSequence : ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | UnicodeEscape | OctalEscape );", 11, 1, input);
throw nvae;
}
@@ -886,13 +886,13 @@
else {
if (backtracking>0) {failed=true; return ;}
NoViableAltException nvae =
- new NoViableAltException("807:1: fragment EscapeSequence : ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | UnicodeEscape | OctalEscape );", 11, 0, input);
+ new NoViableAltException("803:1: fragment EscapeSequence : ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | UnicodeEscape | OctalEscape );", 11, 0, input);
throw nvae;
}
switch (alt11) {
case 1 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:809:9: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:805: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' ) {
@@ -910,14 +910,14 @@
}
break;
case 2 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:810:9: UnicodeEscape
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:806:9: UnicodeEscape
{
mUnicodeEscape(); if (failed) return ;
}
break;
case 3 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:811:9: OctalEscape
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:807:9: OctalEscape
{
mOctalEscape(); if (failed) return ;
@@ -934,7 +934,7 @@
// $ANTLR start OctalEscape
public final void mOctalEscape() throws RecognitionException {
try {
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:816:5: ( '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:812:5: ( '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) )
int alt12=3;
int LA12_0 = input.LA(1);
@@ -968,7 +968,7 @@
else {
if (backtracking>0) {failed=true; return ;}
NoViableAltException nvae =
- new NoViableAltException("814:1: fragment OctalEscape : ( '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) );", 12, 1, input);
+ new NoViableAltException("810:1: fragment OctalEscape : ( '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) );", 12, 1, input);
throw nvae;
}
@@ -976,31 +976,31 @@
else {
if (backtracking>0) {failed=true; return ;}
NoViableAltException nvae =
- new NoViableAltException("814:1: fragment OctalEscape : ( '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) );", 12, 0, input);
+ new NoViableAltException("810:1: fragment OctalEscape : ( '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) );", 12, 0, input);
throw nvae;
}
switch (alt12) {
case 1 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:816:9: '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:812:9: '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' )
{
match('\\'); if (failed) return ;
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:816:14: ( '0' .. '3' )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:816:15: '0' .. '3'
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:812:14: ( '0' .. '3' )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:812:15: '0' .. '3'
{
matchRange('0','3'); if (failed) return ;
}
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:816:25: ( '0' .. '7' )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:816:26: '0' .. '7'
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:812:25: ( '0' .. '7' )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:812:26: '0' .. '7'
{
matchRange('0','7'); if (failed) return ;
}
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:816:36: ( '0' .. '7' )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:816:37: '0' .. '7'
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:812:36: ( '0' .. '7' )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:812:37: '0' .. '7'
{
matchRange('0','7'); if (failed) return ;
@@ -1010,18 +1010,18 @@
}
break;
case 2 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:817:9: '\\\\' ( '0' .. '7' ) ( '0' .. '7' )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:813:9: '\\\\' ( '0' .. '7' ) ( '0' .. '7' )
{
match('\\'); if (failed) return ;
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:817:14: ( '0' .. '7' )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:817:15: '0' .. '7'
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:813:14: ( '0' .. '7' )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:813:15: '0' .. '7'
{
matchRange('0','7'); if (failed) return ;
}
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:817:25: ( '0' .. '7' )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:817:26: '0' .. '7'
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:813:25: ( '0' .. '7' )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:813:26: '0' .. '7'
{
matchRange('0','7'); if (failed) return ;
@@ -1031,11 +1031,11 @@
}
break;
case 3 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:818:9: '\\\\' ( '0' .. '7' )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:814:9: '\\\\' ( '0' .. '7' )
{
match('\\'); if (failed) return ;
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:818:14: ( '0' .. '7' )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:818:15: '0' .. '7'
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:814:14: ( '0' .. '7' )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:814:15: '0' .. '7'
{
matchRange('0','7'); if (failed) return ;
@@ -1055,8 +1055,8 @@
// $ANTLR start UnicodeEscape
public final void mUnicodeEscape() throws RecognitionException {
try {
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:823:5: ( '\\\\' 'u' HexDigit HexDigit HexDigit HexDigit )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:823:9: '\\\\' 'u' HexDigit HexDigit HexDigit HexDigit
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:819:5: ( '\\\\' 'u' HexDigit HexDigit HexDigit HexDigit )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:819:9: '\\\\' 'u' HexDigit HexDigit HexDigit HexDigit
{
match('\\'); if (failed) return ;
match('u'); if (failed) return ;
@@ -1077,10 +1077,10 @@
public final void mBOOL() throws RecognitionException {
try {
int _type = BOOL;
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:827:2: ( ( 'true' | 'false' ) )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:827:4: ( 'true' | 'false' )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:823:2: ( ( 'true' | 'false' ) )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:823:4: ( 'true' | 'false' )
{
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:827:4: ( 'true' | 'false' )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:823:4: ( 'true' | 'false' )
int alt13=2;
int LA13_0 = input.LA(1);
@@ -1093,13 +1093,13 @@
else {
if (backtracking>0) {failed=true; return ;}
NoViableAltException nvae =
- new NoViableAltException("827:4: ( 'true' | 'false' )", 13, 0, input);
+ new NoViableAltException("823:4: ( 'true' | 'false' )", 13, 0, input);
throw nvae;
}
switch (alt13) {
case 1 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:827:5: 'true'
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:823:5: 'true'
{
match("true"); if (failed) return ;
@@ -1107,7 +1107,7 @@
}
break;
case 2 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:827:12: 'false'
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:823:12: 'false'
{
match("false"); if (failed) return ;
@@ -1131,11 +1131,11 @@
public final void mVAR() throws RecognitionException {
try {
int _type = VAR;
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:830:6: ( '?' ( SYMBOL_CHAR )+ )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:830:8: '?' ( SYMBOL_CHAR )+
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:826:6: ( '?' ( SYMBOL_CHAR )+ )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:826:8: '?' ( SYMBOL_CHAR )+
{
match('?'); if (failed) return ;
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:830:12: ( SYMBOL_CHAR )+
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:826:12: ( SYMBOL_CHAR )+
int cnt14=0;
loop14:
do {
@@ -1149,7 +1149,7 @@
switch (alt14) {
case 1 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:830:12: SYMBOL_CHAR
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:826:12: SYMBOL_CHAR
{
mSYMBOL_CHAR(); if (failed) return ;
@@ -1180,11 +1180,11 @@
public final void mSH_STYLE_SINGLE_LINE_COMMENT() throws RecognitionException {
try {
int _type = SH_STYLE_SINGLE_LINE_COMMENT;
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:834:2: ( '#' ( options {greedy=false; } : . )* EOL )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:834:4: '#' ( options {greedy=false; } : . )* EOL
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:830:2: ( '#' ( options {greedy=false; } : . )* EOL )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:830:4: '#' ( options {greedy=false; } : . )* EOL
{
match('#'); if (failed) return ;
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:834:8: ( options {greedy=false; } : . )*
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:830:8: ( options {greedy=false; } : . )*
loop15:
do {
int alt15=2;
@@ -1203,7 +1203,7 @@
switch (alt15) {
case 1 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:834:35: .
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:830:35: .
{
matchAny(); if (failed) return ;
@@ -1233,12 +1233,12 @@
public final void mC_STYLE_SINGLE_LINE_COMMENT() throws RecognitionException {
try {
int _type = C_STYLE_SINGLE_LINE_COMMENT;
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:840:2: ( '//' ( options {greedy=false; } : . )* EOL )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:840:4: '//' ( options {greedy=false; } : . )* EOL
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:836:2: ( '//' ( options {greedy=false; } : . )* EOL )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:836:4: '//' ( options {greedy=false; } : . )* EOL
{
match("//"); if (failed) return ;
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:840:9: ( options {greedy=false; } : . )*
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:836:9: ( options {greedy=false; } : . )*
loop16:
do {
int alt16=2;
@@ -1257,7 +1257,7 @@
switch (alt16) {
case 1 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:840:36: .
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:836:36: .
{
matchAny(); if (failed) return ;
@@ -1287,8 +1287,8 @@
public final void mLEFT_PAREN() throws RecognitionException {
try {
int _type = LEFT_PAREN;
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:846:2: ( '(' )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:846:4: '('
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:842:2: ( '(' )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:842:4: '('
{
match('('); if (failed) return ;
@@ -1305,8 +1305,8 @@
public final void mRIGHT_PAREN() throws RecognitionException {
try {
int _type = RIGHT_PAREN;
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:850:2: ( ')' )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:850:4: ')'
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:846:2: ( ')' )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:846:4: ')'
{
match(')'); if (failed) return ;
@@ -1323,8 +1323,8 @@
public final void mLEFT_SQUARE() throws RecognitionException {
try {
int _type = LEFT_SQUARE;
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:854:2: ( '[' )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:854:4: '['
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:850:2: ( '[' )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:850:4: '['
{
match('['); if (failed) return ;
@@ -1341,8 +1341,8 @@
public final void mRIGHT_SQUARE() throws RecognitionException {
try {
int _type = RIGHT_SQUARE;
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:858:2: ( ']' )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:858:4: ']'
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:854:2: ( ']' )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:854:4: ']'
{
match(']'); if (failed) return ;
@@ -1359,8 +1359,8 @@
public final void mLEFT_CURLY() throws RecognitionException {
try {
int _type = LEFT_CURLY;
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:862:2: ( '{' )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:862:4: '{'
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:858:2: ( '{' )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:858:4: '{'
{
match('{'); if (failed) return ;
@@ -1377,8 +1377,8 @@
public final void mRIGHT_CURLY() throws RecognitionException {
try {
int _type = RIGHT_CURLY;
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:866:2: ( '}' )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:866:4: '}'
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:862:2: ( '}' )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:862:4: '}'
{
match('}'); if (failed) return ;
@@ -1395,8 +1395,8 @@
public final void mTILDE() throws RecognitionException {
try {
int _type = TILDE;
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:869:7: ( '~' )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:869:9: '~'
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:865:7: ( '~' )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:865:9: '~'
{
match('~'); if (failed) return ;
@@ -1413,8 +1413,8 @@
public final void mAMPERSAND() throws RecognitionException {
try {
int _type = AMPERSAND;
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:873:2: ( '&' )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:873:4: '&'
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:869:2: ( '&' )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:869:4: '&'
{
match('&'); if (failed) return ;
@@ -1431,8 +1431,8 @@
public final void mPIPE() throws RecognitionException {
try {
int _type = PIPE;
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:877:2: ( '|' )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:877:4: '|'
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:873:2: ( '|' )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:873:4: '|'
{
match('|'); if (failed) return ;
@@ -1449,8 +1449,8 @@
public final void mASSIGN_OP() throws RecognitionException {
try {
int _type = ASSIGN_OP;
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:881:2: ( '<-' )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:881:4: '<-'
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:877:2: ( '<-' )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:877:4: '<-'
{
match("<-"); if (failed) return ;
@@ -1468,8 +1468,8 @@
public final void mCOLON() throws RecognitionException {
try {
int _type = COLON;
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:884:7: ( ':' )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:884:9: ':'
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:880:7: ( ':' )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:880:9: ':'
{
match(':'); if (failed) return ;
@@ -1486,8 +1486,8 @@
public final void mEQUALS() throws RecognitionException {
try {
int _type = EQUALS;
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:886:8: ( '=' )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:886:10: '='
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:882:8: ( '=' )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:882:10: '='
{
match('='); if (failed) return ;
@@ -1504,12 +1504,12 @@
public final void mMULTI_LINE_COMMENT() throws RecognitionException {
try {
int _type = MULTI_LINE_COMMENT;
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:889:2: ( '/*' ( options {greedy=false; } : . )* '*/' )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:889:4: '/*' ( options {greedy=false; } : . )* '*/'
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:885:2: ( '/*' ( options {greedy=false; } : . )* '*/' )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:885:4: '/*' ( options {greedy=false; } : . )* '*/'
{
match("/*"); if (failed) return ;
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:889:9: ( options {greedy=false; } : . )*
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:885:9: ( options {greedy=false; } : . )*
loop17:
do {
int alt17=2;
@@ -1534,7 +1534,7 @@
switch (alt17) {
case 1 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:889:35: .
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:885:35: .
{
matchAny(); if (failed) return ;
@@ -1565,8 +1565,8 @@
public final void mNAME() throws RecognitionException {
try {
int _type = NAME;
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:893:6: ( SYMBOL )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:893:8: SYMBOL
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:889:6: ( SYMBOL )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:889:8: SYMBOL
{
mSYMBOL(); if (failed) return ;
@@ -1582,11 +1582,11 @@
// $ANTLR start SYMBOL
public final void mSYMBOL() throws RecognitionException {
try {
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:896:8: ( FIRST_SYMBOL_CHAR ( SYMBOL_CHAR )* )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:896:10: FIRST_SYMBOL_CHAR ( SYMBOL_CHAR )*
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:892:8: ( FIRST_SYMBOL_CHAR ( SYMBOL_CHAR )* )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:892:10: FIRST_SYMBOL_CHAR ( SYMBOL_CHAR )*
{
mFIRST_SYMBOL_CHAR(); if (failed) return ;
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:896:28: ( SYMBOL_CHAR )*
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:892:28: ( SYMBOL_CHAR )*
loop18:
do {
int alt18=2;
@@ -1599,7 +1599,7 @@
switch (alt18) {
case 1 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:896:28: SYMBOL_CHAR
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:892:28: SYMBOL_CHAR
{
mSYMBOL_CHAR(); if (failed) return ;
@@ -1623,8 +1623,8 @@
// $ANTLR start FIRST_SYMBOL_CHAR
public final void mFIRST_SYMBOL_CHAR() throws RecognitionException {
try {
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:901:19: ( ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '!' | '$' | '%' | '^' | '*' | '_' | '-' | '+' | '=' | '\\\\' | '/' | '@' | '#' | ':' | '>' | '<' | ',' | '.' | '[' | ']' | '{' | '}' ) )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:901:21: ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '!' | '$' | '%' | '^' | '*' | '_' | '-' | '+' | '=' | '\\\\' | '/' | '@' | '#' | ':' | '>' | '<' | ',' | '.' | '[' | ']' | '{' | '}' )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:897:19: ( ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '!' | '$' | '%' | '^' | '*' | '_' | '-' | '+' | '=' | '\\\\' | '/' | '@' | '#' | ':' | '>' | '<' | ',' | '.' | '[' | ']' | '{' | '}' ) )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:897:21: ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '!' | '$' | '%' | '^' | '*' | '_' | '-' | '+' | '=' | '\\\\' | '/' | '@' | '#' | ':' | '>' | '<' | ',' | '.' | '[' | ']' | '{' | '}' )
{
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)>='a' && input.LA(1)<='{')||input.LA(1)=='}' ) {
input.consume();
@@ -1649,8 +1649,8 @@
// $ANTLR start SYMBOL_CHAR
public final void mSYMBOL_CHAR() throws RecognitionException {
try {
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:906:13: ( ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '!' | '$' | '%' | '^' | '*' | '_' | '-' | '+' | '=' | '\\\\' | '/' | '@' | '#' | ':' | '>' | ',' | '.' | '[' | ']' | '{' | '}' | '?' ) )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:906:15: ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '!' | '$' | '%' | '^' | '*' | '_' | '-' | '+' | '=' | '\\\\' | '/' | '@' | '#' | ':' | '>' | ',' | '.' | '[' | ']' | '{' | '}' | '?' )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:902:13: ( ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '!' | '$' | '%' | '^' | '*' | '_' | '-' | '+' | '=' | '\\\\' | '/' | '@' | '#' | ':' | '>' | ',' | '.' | '[' | ']' | '{' | '}' | '?' ) )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:902:15: ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '!' | '$' | '%' | '^' | '*' | '_' | '-' | '+' | '=' | '\\\\' | '/' | '@' | '#' | ':' | '>' | ',' | '.' | '[' | ']' | '{' | '}' | '?' )
{
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)>='a' && input.LA(1)<='{')||input.LA(1)=='}' ) {
input.consume();
@@ -1673,264 +1673,264 @@
// $ANTLR end SYMBOL_CHAR
public void mTokens() throws RecognitionException {
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:8: ( T47 | T48 | WS | DEFTEMPLATE | TYPE | SLOT | DEFRULE | DEFFUNCTION | OR | AND | NOT | EXISTS | TEST | NULL | DECLARE | SALIENCE | INT | FLOAT | STRING | BOOL | VAR | SH_STYLE_SINGLE_LINE_COMMENT | C_STYLE_SINGLE_LINE_COMMENT | LEFT_PAREN | RIGHT_PAREN | LEFT_SQUARE | RIGHT_SQUARE | LEFT_CURLY | RIGHT_CURLY | TILDE | AMPERSAND | PIPE | ASSIGN_OP | COLON | EQUALS | MULTI_LINE_COMMENT | NAME )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:8: ( T46 | T47 | T48 | WS | DEFTEMPLATE | SLOT | DEFRULE | DEFFUNCTION | OR | AND | NOT | EXISTS | TEST | NULL | DECLARE | SALIENCE | INT | FLOAT | STRING | BOOL | VAR | SH_STYLE_SINGLE_LINE_COMMENT | C_STYLE_SINGLE_LINE_COMMENT | LEFT_PAREN | RIGHT_PAREN | LEFT_SQUARE | RIGHT_SQUARE | LEFT_CURLY | RIGHT_CURLY | TILDE | AMPERSAND | PIPE | ASSIGN_OP | COLON | EQUALS | MULTI_LINE_COMMENT | NAME )
int alt19=37;
alt19 = dfa19.predict(input);
switch (alt19) {
case 1 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:10: T47
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:10: T46
{
- mT47(); if (failed) return ;
+ mT46(); if (failed) return ;
}
break;
case 2 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:14: T48
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:14: T47
{
- mT48(); if (failed) return ;
+ mT47(); if (failed) return ;
}
break;
case 3 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:18: WS
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:18: T48
{
- mWS(); if (failed) return ;
+ mT48(); if (failed) return ;
}
break;
case 4 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:21: DEFTEMPLATE
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:22: WS
{
- mDEFTEMPLATE(); if (failed) return ;
+ mWS(); if (failed) return ;
}
break;
case 5 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:33: TYPE
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:25: DEFTEMPLATE
{
- mTYPE(); if (failed) return ;
+ mDEFTEMPLATE(); if (failed) return ;
}
break;
case 6 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:38: SLOT
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:37: SLOT
{
mSLOT(); if (failed) return ;
}
break;
case 7 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:43: DEFRULE
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:42: DEFRULE
{
mDEFRULE(); if (failed) return ;
}
break;
case 8 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:51: DEFFUNCTION
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:50: DEFFUNCTION
{
mDEFFUNCTION(); if (failed) return ;
}
break;
case 9 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:63: OR
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:62: OR
{
mOR(); if (failed) return ;
}
break;
case 10 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:66: AND
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:65: AND
{
mAND(); if (failed) return ;
}
break;
case 11 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:70: NOT
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:69: NOT
{
mNOT(); if (failed) return ;
}
break;
case 12 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:74: EXISTS
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:73: EXISTS
{
mEXISTS(); if (failed) return ;
}
break;
case 13 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:81: TEST
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:80: TEST
{
mTEST(); if (failed) return ;
}
break;
case 14 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:86: NULL
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:85: NULL
{
mNULL(); if (failed) return ;
}
break;
case 15 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:91: DECLARE
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:90: DECLARE
{
mDECLARE(); if (failed) return ;
}
break;
case 16 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:99: SALIENCE
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:98: SALIENCE
{
mSALIENCE(); if (failed) return ;
}
break;
case 17 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:108: INT
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:107: INT
{
mINT(); if (failed) return ;
}
break;
case 18 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:112: FLOAT
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:111: FLOAT
{
mFLOAT(); if (failed) return ;
}
break;
case 19 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:118: STRING
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:117: STRING
{
mSTRING(); if (failed) return ;
}
break;
case 20 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:125: BOOL
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:124: BOOL
{
mBOOL(); if (failed) return ;
}
break;
case 21 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:130: VAR
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:129: VAR
{
mVAR(); if (failed) return ;
}
break;
case 22 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:134: SH_STYLE_SINGLE_LINE_COMMENT
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:133: SH_STYLE_SINGLE_LINE_COMMENT
{
mSH_STYLE_SINGLE_LINE_COMMENT(); if (failed) return ;
}
break;
case 23 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:163: C_STYLE_SINGLE_LINE_COMMENT
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:162: C_STYLE_SINGLE_LINE_COMMENT
{
mC_STYLE_SINGLE_LINE_COMMENT(); if (failed) return ;
}
break;
case 24 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:191: LEFT_PAREN
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:190: LEFT_PAREN
{
mLEFT_PAREN(); if (failed) return ;
}
break;
case 25 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:202: RIGHT_PAREN
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:201: RIGHT_PAREN
{
mRIGHT_PAREN(); if (failed) return ;
}
break;
case 26 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:214: LEFT_SQUARE
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:213: LEFT_SQUARE
{
mLEFT_SQUARE(); if (failed) return ;
}
break;
case 27 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:226: RIGHT_SQUARE
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:225: RIGHT_SQUARE
{
mRIGHT_SQUARE(); if (failed) return ;
}
break;
case 28 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:239: LEFT_CURLY
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:238: LEFT_CURLY
{
mLEFT_CURLY(); if (failed) return ;
}
break;
case 29 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:250: RIGHT_CURLY
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:249: RIGHT_CURLY
{
mRIGHT_CURLY(); if (failed) return ;
}
break;
case 30 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:262: TILDE
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:261: TILDE
{
mTILDE(); if (failed) return ;
}
break;
case 31 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:268: AMPERSAND
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:267: AMPERSAND
{
mAMPERSAND(); if (failed) return ;
}
break;
case 32 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:278: PIPE
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:277: PIPE
{
mPIPE(); if (failed) return ;
}
break;
case 33 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:283: ASSIGN_OP
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:282: ASSIGN_OP
{
mASSIGN_OP(); if (failed) return ;
}
break;
case 34 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:293: COLON
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:292: COLON
{
mCOLON(); if (failed) return ;
}
break;
case 35 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:299: EQUALS
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:298: EQUALS
{
mEQUALS(); if (failed) return ;
}
break;
case 36 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:306: MULTI_LINE_COMMENT
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:305: MULTI_LINE_COMMENT
{
mMULTI_LINE_COMMENT(); if (failed) return ;
}
break;
case 37 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:325: NAME
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:1:324: NAME
{
mNAME(); if (failed) return ;
@@ -1943,8 +1943,8 @@
// $ANTLR start synpred1
public final void synpred1_fragment() throws RecognitionException {
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:785:14: ( '\\r\\n' )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:785:16: '\\r\\n'
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:781:14: ( '\\r\\n' )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:781:16: '\\r\\n'
{
match("\r\n"); if (failed) return ;
@@ -1971,233 +1971,228 @@
protected DFA19 dfa19 = new DFA19(this);
static final String DFA19_eotS =
- "\1\uffff\1\36\1\41\1\uffff\11\36\1\56\1\uffff\1\36\1\uffff\2\36"+
- "\2\uffff\1\65\1\66\1\67\1\70\3\uffff\1\36\1\72\1\uffff\1\36\1\74"+
- "\1\uffff\4\36\1\102\6\36\1\56\1\uffff\3\36\1\uffff\2\36\4\uffff"+
- "\1\120\1\uffff\1\36\1\uffff\5\36\1\uffff\1\131\1\132\4\36\1\137"+
- "\1\36\1\uffff\3\36\2\uffff\6\36\1\150\1\36\2\uffff\1\152\1\36\1"+
- "\154\1\155\1\uffff\1\36\1\117\6\36\1\uffff\1\36\1\uffff\1\36\2\uffff"+
- "\1\154\1\167\4\36\1\174\1\36\1\176\1\uffff\1\36\1\u0080\1\36\1\u0082"+
- "\1\uffff\1\36\1\uffff\1\36\1\uffff\1\36\1\uffff\1\u0086\2\36\1\uffff"+
- "\2\36\1\u008b\1\u008c\2\uffff";
+ "\1\uffff\1\35\1\40\1\35\1\uffff\7\35\1\56\1\uffff\1\35\1\uffff\2"+
+ "\35\2\uffff\1\64\1\65\1\66\1\67\3\uffff\1\35\1\71\1\uffff\1\35\1"+
+ "\73\1\uffff\6\35\1\103\4\35\1\56\1\35\1\uffff\2\35\1\uffff\2\35"+
+ "\4\uffff\1\117\1\uffff\1\35\1\uffff\7\35\1\uffff\1\132\1\133\2\35"+
+ "\1\136\2\35\1\uffff\2\35\2\uffff\1\35\1\142\1\143\1\144\4\35\1\151"+
+ "\1\35\2\uffff\1\153\1\35\1\uffff\1\35\1\116\1\35\3\uffff\4\35\1"+
+ "\uffff\1\35\1\uffff\1\35\1\142\1\165\5\35\1\173\1\uffff\2\35\1\176"+
+ "\1\177\1\35\1\uffff\2\35\2\uffff\1\u0083\2\35\1\uffff\2\35\1\u0088"+
+ "\1\u0089\2\uffff";
static final String DFA19_eofS =
- "\u008d\uffff";
+ "\u008a\uffff";
static final String DFA19_minS =
- "\1\11\1\155\1\41\1\uffff\1\145\1\167\1\141\1\162\1\156\1\157\1\170"+
- "\1\145\1\60\1\41\1\uffff\1\141\1\uffff\1\0\1\52\2\uffff\4\41\3\uffff"+
- "\1\55\1\41\1\uffff\1\160\1\41\1\uffff\1\143\1\145\1\157\1\154\1"+
- "\41\1\144\1\164\1\154\1\151\1\165\1\163\1\41\1\uffff\1\60\1\154"+
- "\1\0\1\uffff\2\0\4\uffff\1\41\1\uffff\1\157\1\uffff\1\146\1\154"+
- "\1\162\1\164\1\151\1\uffff\2\41\1\154\1\163\1\145\1\164\1\41\1\163"+
- "\1\uffff\3\0\2\uffff\1\162\2\165\1\145\1\141\1\164\1\41\1\145\2"+
- "\uffff\1\41\1\164\2\41\1\uffff\1\145\1\41\1\164\1\156\1\154\1\155"+
- "\1\162\1\171\1\uffff\1\156\1\uffff\1\163\2\uffff\2\41\1\143\1\145"+
- "\1\160\1\145\1\41\1\143\1\41\1\uffff\1\164\1\41\1\154\1\41\1\uffff"+
- "\1\145\1\uffff\1\151\1\uffff\1\141\1\uffff\1\41\1\157\1\164\1\uffff"+
- "\1\156\1\145\2\41\2\uffff";
+ "\1\11\1\155\1\41\1\145\1\uffff\1\145\1\141\1\162\1\156\1\157\1\170"+
+ "\1\60\1\41\1\uffff\1\141\1\uffff\1\0\1\52\2\uffff\4\41\3\uffff\1"+
+ "\55\1\41\1\uffff\1\160\1\41\1\uffff\1\165\1\160\1\163\1\143\1\157"+
+ "\1\154\1\41\1\144\1\164\1\154\1\151\1\41\1\60\1\uffff\1\154\1\0"+
+ "\1\uffff\2\0\4\uffff\1\41\1\uffff\1\157\1\uffff\2\145\1\164\1\146"+
+ "\1\154\1\164\1\151\1\uffff\2\41\1\154\1\163\1\41\1\163\1\0\1\uffff"+
+ "\2\0\2\uffff\1\162\3\41\1\145\2\165\1\141\1\41\1\145\2\uffff\1\41"+
+ "\1\164\1\uffff\1\145\1\41\1\164\3\uffff\1\155\1\156\1\154\1\162"+
+ "\1\uffff\1\156\1\uffff\1\163\2\41\1\160\1\143\2\145\1\143\1\41\1"+
+ "\uffff\1\154\1\164\2\41\1\145\1\uffff\1\141\1\151\2\uffff\1\41\1"+
+ "\164\1\157\1\uffff\1\145\1\156\2\41\2\uffff";
static final String DFA19_maxS =
- "\1\176\1\155\1\175\1\uffff\1\145\1\167\1\154\1\162\1\156\1\165\1"+
- "\170\1\162\1\71\1\175\1\uffff\1\141\1\uffff\1\ufffe\1\57\2\uffff"+
- "\4\175\3\uffff\1\55\1\175\1\uffff\1\160\1\175\1\uffff\1\146\1\145"+
- "\1\157\1\154\1\175\1\144\1\164\1\154\1\151\1\165\1\163\1\175\1\uffff"+
- "\1\71\1\154\1\ufffe\1\uffff\2\ufffe\4\uffff\1\175\1\uffff\1\157"+
- "\1\uffff\1\164\1\154\1\162\1\164\1\151\1\uffff\2\175\1\154\1\163"+
- "\1\145\1\164\1\175\1\163\1\uffff\3\ufffe\2\uffff\1\162\2\165\1\145"+
- "\1\141\1\164\1\175\1\145\2\uffff\1\175\1\164\2\175\1\uffff\1\145"+
- "\1\175\1\164\1\156\1\154\1\155\1\162\1\171\1\uffff\1\156\1\uffff"+
- "\1\163\2\uffff\2\175\1\143\1\145\1\160\1\145\1\175\1\143\1\175\1"+
- "\uffff\1\164\1\175\1\154\1\175\1\uffff\1\145\1\uffff\1\151\1\uffff"+
- "\1\141\1\uffff\1\175\1\157\1\164\1\uffff\1\156\1\145\2\175\2\uffff";
+ "\1\176\1\155\1\175\1\171\1\uffff\1\145\1\154\1\162\1\156\1\165\1"+
+ "\170\1\71\1\175\1\uffff\1\141\1\uffff\1\ufffe\1\57\2\uffff\4\175"+
+ "\3\uffff\1\55\1\175\1\uffff\1\160\1\175\1\uffff\1\165\1\160\1\163"+
+ "\1\146\1\157\1\154\1\175\1\144\1\164\1\154\1\151\1\175\1\71\1\uffff"+
+ "\1\154\1\ufffe\1\uffff\2\ufffe\4\uffff\1\175\1\uffff\1\157\1\uffff"+
+ "\2\145\2\164\1\154\1\164\1\151\1\uffff\2\175\1\154\1\163\1\175\1"+
+ "\163\1\ufffe\1\uffff\2\ufffe\2\uffff\1\162\3\175\1\145\2\165\1\141"+
+ "\1\175\1\145\2\uffff\1\175\1\164\1\uffff\1\145\1\175\1\164\3\uffff"+
+ "\1\155\1\156\1\154\1\162\1\uffff\1\156\1\uffff\1\163\2\175\1\160"+
+ "\1\143\2\145\1\143\1\175\1\uffff\1\154\1\164\2\175\1\145\1\uffff"+
+ "\1\141\1\151\2\uffff\1\175\1\164\1\157\1\uffff\1\145\1\156\2\175"+
+ "\2\uffff";
static final String DFA19_acceptS =
- "\3\uffff\1\3\12\uffff\1\23\1\uffff\1\25\2\uffff\1\30\1\31\4\uffff"+
- "\1\36\1\37\1\40\2\uffff\1\45\2\uffff\1\43\14\uffff\1\21\3\uffff"+
- "\1\26\2\uffff\1\32\1\33\1\34\1\35\1\uffff\1\42\1\uffff\1\2\5\uffff"+
- "\1\11\10\uffff\1\27\3\uffff\1\44\1\41\10\uffff\1\12\1\13\4\uffff"+
- "\1\22\10\uffff\1\6\1\uffff\1\16\1\uffff\1\24\1\15\11\uffff\1\1\4"+
- "\uffff\1\5\1\uffff\1\14\1\uffff\1\7\1\uffff\1\17\3\uffff\1\20\4"+
- "\uffff\1\10\1\4";
+ "\4\uffff\1\4\10\uffff\1\23\1\uffff\1\25\2\uffff\1\30\1\31\4\uffff"+
+ "\1\36\1\37\1\40\2\uffff\1\45\2\uffff\1\43\15\uffff\1\21\2\uffff"+
+ "\1\26\2\uffff\1\32\1\33\1\34\1\35\1\uffff\1\42\1\uffff\1\2\7\uffff"+
+ "\1\11\7\uffff\1\27\2\uffff\1\44\1\41\12\uffff\1\12\1\13\2\uffff"+
+ "\1\22\3\uffff\1\24\1\3\1\15\4\uffff\1\6\1\uffff\1\16\11\uffff\1"+
+ "\1\5\uffff\1\14\2\uffff\1\7\1\17\3\uffff\1\20\4\uffff\1\5\1\10";
static final String DFA19_specialS =
- "\u008d\uffff}>";
+ "\u008a\uffff}>";
static final String[] DFA19_transitionS = {
- "\2\3\1\uffff\2\3\22\uffff\1\3\1\36\1\16\1\21\2\36\1\32\1\16"+
- "\1\23\1\24\3\36\1\14\1\36\1\22\12\15\1\35\1\uffff\1\34\1\2\1"+
- "\36\1\20\33\36\1\25\1\36\1\26\2\36\1\uffff\1\10\2\36\1\4\1\12"+
- "\1\17\2\36\1\1\4\36\1\11\1\7\1\36\1\5\1\36\1\6\1\13\6\36\1\27"+
- "\1\33\1\30\1\31",
- "\1\37",
- "\1\36\1\uffff\3\36\4\uffff\21\36\2\uffff\1\36\1\40\41\36\1\uffff"+
- "\33\36\1\uffff\1\36",
+ "\2\4\1\uffff\2\4\22\uffff\1\4\1\35\1\15\1\20\2\35\1\31\1\15"+
+ "\1\22\1\23\3\35\1\13\1\35\1\21\12\14\1\34\1\uffff\1\33\1\2\1"+
+ "\35\1\17\33\35\1\24\1\35\1\25\2\35\1\uffff\1\10\2\35\1\5\1\12"+
+ "\1\16\2\35\1\1\4\35\1\11\1\7\3\35\1\6\1\3\6\35\1\26\1\32\1\27"+
+ "\1\30",
+ "\1\36",
+ "\1\35\1\uffff\3\35\4\uffff\21\35\2\uffff\1\35\1\37\41\35\1\uffff"+
+ "\33\35\1\uffff\1\35",
+ "\1\43\14\uffff\1\41\6\uffff\1\42",
"",
- "\1\42",
- "\1\43",
- "\1\45\12\uffff\1\44",
- "\1\46",
+ "\1\44",
+ "\1\46\12\uffff\1\45",
"\1\47",
- "\1\50\5\uffff\1\51",
- "\1\52",
- "\1\54\14\uffff\1\53",
- "\12\55",
- "\1\36\1\uffff\3\36\4\uffff\4\36\1\57\1\36\12\55\1\36\2\uffff"+
- "\43\36\1\uffff\33\36\1\uffff\1\36",
+ "\1\50",
+ "\1\51\5\uffff\1\52",
+ "\1\53",
+ "\12\54",
+ "\1\35\1\uffff\3\35\4\uffff\4\35\1\55\1\35\12\54\1\35\2\uffff"+
+ "\43\35\1\uffff\33\35\1\uffff\1\35",
"",
- "\1\60",
+ "\1\57",
"",
- "\41\62\1\61\1\62\3\61\4\62\21\61\2\62\43\61\1\62\33\61\1\62"+
- "\1\61\uff81\62",
- "\1\64\4\uffff\1\63",
+ "\41\61\1\60\1\61\3\60\4\61\21\60\2\61\43\60\1\61\33\60\1\61"+
+ "\1\60\uff81\61",
+ "\1\63\4\uffff\1\62",
"",
"",
- "\1\36\1\uffff\3\36\4\uffff\21\36\2\uffff\43\36\1\uffff\33\36"+
- "\1\uffff\1\36",
- "\1\36\1\uffff\3\36\4\uffff\21\36\2\uffff\43\36\1\uffff\33\36"+
- "\1\uffff\1\36",
- "\1\36\1\uffff\3\36\4\uffff\21\36\2\uffff\43\36\1\uffff\33\36"+
- "\1\uffff\1\36",
- "\1\36\1\uffff\3\36\4\uffff\21\36\2\uffff\43\36\1\uffff\33\36"+
- "\1\uffff\1\36",
+ "\1\35\1\uffff\3\35\4\uffff\21\35\2\uffff\43\35\1\uffff\33\35"+
+ "\1\uffff\1\35",
+ "\1\35\1\uffff\3\35\4\uffff\21\35\2\uffff\43\35\1\uffff\33\35"+
+ "\1\uffff\1\35",
+ "\1\35\1\uffff\3\35\4\uffff\21\35\2\uffff\43\35\1\uffff\33\35"+
+ "\1\uffff\1\35",
+ "\1\35\1\uffff\3\35\4\uffff\21\35\2\uffff\43\35\1\uffff\33\35"+
+ "\1\uffff\1\35",
"",
"",
"",
- "\1\71",
- "\1\36\1\uffff\3\36\4\uffff\21\36\2\uffff\43\36\1\uffff\33\36"+
- "\1\uffff\1\36",
+ "\1\70",
+ "\1\35\1\uffff\3\35\4\uffff\21\35\2\uffff\43\35\1\uffff\33\35"+
+ "\1\uffff\1\35",
"",
- "\1\73",
- "\1\36\1\uffff\3\36\4\uffff\21\36\2\uffff\43\36\1\uffff\33\36"+
- "\1\uffff\1\36",
+ "\1\72",
+ "\1\35\1\uffff\3\35\4\uffff\21\35\2\uffff\43\35\1\uffff\33\35"+
+ "\1\uffff\1\35",
"",
- "\1\76\2\uffff\1\75",
- "\1\77",
- "\1\100",
+ "\1\74",
+ "\1\75",
+ "\1\76",
+ "\1\100\2\uffff\1\77",
"\1\101",
- "\1\36\1\uffff\3\36\4\uffff\21\36\2\uffff\43\36\1\uffff\33\36"+
- "\1\uffff\1\36",
- "\1\103",
+ "\1\102",
+ "\1\35\1\uffff\3\35\4\uffff\21\35\2\uffff\43\35\1\uffff\33\35"+
+ "\1\uffff\1\35",
"\1\104",
"\1\105",
"\1\106",
"\1\107",
- "\1\110",
- "\1\36\1\uffff\3\36\4\uffff\4\36\1\57\1\36\12\55\1\36\2\uffff"+
- "\43\36\1\uffff\33\36\1\uffff\1\36",
+ "\1\35\1\uffff\3\35\4\uffff\4\35\1\55\1\35\12\54\1\35\2\uffff"+
+ "\43\35\1\uffff\33\35\1\uffff\1\35",
+ "\12\110",
"",
- "\12\111",
- "\1\112",
- "\41\62\1\61\1\62\3\61\4\62\21\61\2\62\43\61\1\62\33\61\1\62"+
- "\1\61\uff81\62",
+ "\1\111",
+ "\41\61\1\60\1\61\3\60\4\61\21\60\2\61\43\60\1\61\33\60\1\61"+
+ "\1\60\uff81\61",
"",
- "\41\113\1\114\1\113\3\114\4\113\21\114\2\113\43\114\1\113\33"+
- "\114\1\113\1\114\uff81\113",
- "\41\117\1\116\1\117\3\116\4\117\1\115\20\116\2\117\43\116\1"+
- "\117\33\116\1\117\1\116\uff81\117",
+ "\41\113\1\112\1\113\3\112\4\113\21\112\2\113\43\112\1\113\33"+
+ "\112\1\113\1\112\uff81\113",
+ "\41\116\1\115\1\116\3\115\4\116\1\114\20\115\2\116\43\115\1"+
+ "\116\33\115\1\116\1\115\uff81\116",
"",
"",
"",
"",
- "\1\36\1\uffff\3\36\4\uffff\21\36\2\uffff\43\36\1\uffff\33\36"+
- "\1\uffff\1\36",
+ "\1\35\1\uffff\3\35\4\uffff\21\35\2\uffff\43\35\1\uffff\33\35"+
+ "\1\uffff\1\35",
"",
- "\1\121",
+ "\1\120",
"",
- "\1\122\13\uffff\1\123\1\uffff\1\124",
- "\1\125",
- "\1\126",
+ "\1\121",
+ "\1\122",
+ "\1\123",
+ "\1\125\13\uffff\1\126\1\uffff\1\124",
"\1\127",
"\1\130",
+ "\1\131",
"",
- "\1\36\1\uffff\3\36\4\uffff\21\36\2\uffff\43\36\1\uffff\33\36"+
- "\1\uffff\1\36",
- "\1\36\1\uffff\3\36\4\uffff\21\36\2\uffff\43\36\1\uffff\33\36"+
- "\1\uffff\1\36",
- "\1\133",
+ "\1\35\1\uffff\3\35\4\uffff\21\35\2\uffff\43\35\1\uffff\33\35"+
+ "\1\uffff\1\35",
+ "\1\35\1\uffff\3\35\4\uffff\21\35\2\uffff\43\35\1\uffff\33\35"+
+ "\1\uffff\1\35",
"\1\134",
"\1\135",
- "\1\136",
- "\1\36\1\uffff\3\36\4\uffff\6\36\12\111\1\36\2\uffff\43\36\1"+
- "\uffff\33\36\1\uffff\1\36",
- "\1\140",
+ "\1\35\1\uffff\3\35\4\uffff\6\35\12\110\1\35\2\uffff\43\35\1"+
+ "\uffff\33\35\1\uffff\1\35",
+ "\1\137",
+ "\41\113\1\112\1\113\3\112\4\113\21\112\2\113\43\112\1\113\33"+
+ "\112\1\113\1\112\uff81\113",
"",
- "\41\113\1\114\1\113\3\114\4\113\21\114\2\113\43\114\1\113\33"+
- "\114\1\113\1\114\uff81\113",
- "\41\117\1\116\1\117\3\116\4\117\1\115\4\116\1\141\13\116\2\117"+
- "\43\116\1\117\33\116\1\117\1\116\uff81\117",
- "\41\117\1\116\1\117\3\116\4\117\1\115\20\116\2\117\43\116\1"+
- "\117\33\116\1\117\1\116\uff81\117",
+ "\41\116\1\115\1\116\3\115\4\116\1\114\4\115\1\140\13\115\2\116"+
+ "\43\115\1\116\33\115\1\116\1\115\uff81\116",
+ "\41\116\1\115\1\116\3\115\4\116\1\114\20\115\2\116\43\115\1"+
+ "\116\33\115\1\116\1\115\uff81\116",
"",
"",
- "\1\142",
- "\1\143",
- "\1\144",
+ "\1\141",
+ "\1\35\1\uffff\3\35\4\uffff\21\35\2\uffff\43\35\1\uffff\33\35"+
+ "\1\uffff\1\35",
+ "\1\35\1\uffff\3\35\4\uffff\21\35\2\uffff\43\35\1\uffff\33\35"+
+ "\1\uffff\1\35",
+ "\1\35\1\uffff\3\35\4\uffff\21\35\2\uffff\43\35\1\uffff\33\35"+
+ "\1\uffff\1\35",
"\1\145",
"\1\146",
"\1\147",
- "\1\36\1\uffff\3\36\4\uffff\21\36\2\uffff\43\36\1\uffff\33\36"+
- "\1\uffff\1\36",
- "\1\151",
+ "\1\150",
+ "\1\35\1\uffff\3\35\4\uffff\21\35\2\uffff\43\35\1\uffff\33\35"+
+ "\1\uffff\1\35",
+ "\1\152",
"",
"",
- "\1\36\1\uffff\3\36\4\uffff\21\36\2\uffff\43\36\1\uffff\33\36"+
- "\1\uffff\1\36",
- "\1\153",
- "\1\36\1\uffff\3\36\4\uffff\21\36\2\uffff\43\36\1\uffff\33\36"+
- "\1\uffff\1\36",
- "\1\36\1\uffff\3\36\4\uffff\21\36\2\uffff\43\36\1\uffff\33\36"+
- "\1\uffff\1\36",
+ "\1\35\1\uffff\3\35\4\uffff\21\35\2\uffff\43\35\1\uffff\33\35"+
+ "\1\uffff\1\35",
+ "\1\154",
"",
+ "\1\155",
+ "\1\115\1\uffff\3\115\4\uffff\1\114\20\115\2\uffff\43\115\1\uffff"+
+ "\33\115\1\uffff\1\115",
"\1\156",
- "\1\116\1\uffff\3\116\4\uffff\1\115\20\116\2\uffff\43\116\1\uffff"+
- "\33\116\1\uffff\1\116",
+ "",
+ "",
+ "",
"\1\157",
"\1\160",
"\1\161",
"\1\162",
+ "",
"\1\163",
- "\1\164",
"",
- "\1\165",
- "",
+ "\1\164",
+ "\1\35\1\uffff\3\35\4\uffff\21\35\2\uffff\43\35\1\uffff\33\35"+
+ "\1\uffff\1\35",
+ "\1\35\1\uffff\3\35\4\uffff\21\35\2\uffff\43\35\1\uffff\33\35"+
+ "\1\uffff\1\35",
"\1\166",
- "",
- "",
- "\1\36\1\uffff\3\36\4\uffff\21\36\2\uffff\43\36\1\uffff\33\36"+
- "\1\uffff\1\36",
- "\1\36\1\uffff\3\36\4\uffff\21\36\2\uffff\43\36\1\uffff\33\36"+
- "\1\uffff\1\36",
+ "\1\167",
"\1\170",
"\1\171",
"\1\172",
- "\1\173",
- "\1\36\1\uffff\3\36\4\uffff\21\36\2\uffff\43\36\1\uffff\33\36"+
- "\1\uffff\1\36",
+ "\1\35\1\uffff\3\35\4\uffff\21\35\2\uffff\43\35\1\uffff\33\35"+
+ "\1\uffff\1\35",
+ "",
+ "\1\174",
"\1\175",
- "\1\36\1\uffff\3\36\4\uffff\21\36\2\uffff\43\36\1\uffff\33\36"+
- "\1\uffff\1\36",
+ "\1\35\1\uffff\3\35\4\uffff\21\35\2\uffff\43\35\1\uffff\33\35"+
+ "\1\uffff\1\35",
+ "\1\35\1\uffff\3\35\4\uffff\21\35\2\uffff\43\35\1\uffff\33\35"+
+ "\1\uffff\1\35",
+ "\1\u0080",
"",
- "\1\177",
- "\1\36\1\uffff\3\36\4\uffff\21\36\2\uffff\43\36\1\uffff\33\36"+
- "\1\uffff\1\36",
"\1\u0081",
- "\1\36\1\uffff\3\36\4\uffff\21\36\2\uffff\43\36\1\uffff\33\36"+
- "\1\uffff\1\36",
+ "\1\u0082",
"",
- "\1\u0083",
"",
+ "\1\35\1\uffff\3\35\4\uffff\21\35\2\uffff\43\35\1\uffff\33\35"+
+ "\1\uffff\1\35",
"\1\u0084",
- "",
"\1\u0085",
"",
- "\1\36\1\uffff\3\36\4\uffff\21\36\2\uffff\43\36\1\uffff\33\36"+
- "\1\uffff\1\36",
+ "\1\u0086",
"\1\u0087",
- "\1\u0088",
+ "\1\35\1\uffff\3\35\4\uffff\21\35\2\uffff\43\35\1\uffff\33\35"+
+ "\1\uffff\1\35",
+ "\1\35\1\uffff\3\35\4\uffff\21\35\2\uffff\43\35\1\uffff\33\35"+
+ "\1\uffff\1\35",
"",
- "\1\u0089",
- "\1\u008a",
- "\1\36\1\uffff\3\36\4\uffff\21\36\2\uffff\43\36\1\uffff\33\36"+
- "\1\uffff\1\36",
- "\1\36\1\uffff\3\36\4\uffff\21\36\2\uffff\43\36\1\uffff\33\36"+
- "\1\uffff\1\36",
- "",
""
};
@@ -2231,7 +2226,7 @@
this.transition = DFA19_transition;
}
public String getDescription() {
- return "1:1: Tokens : ( T47 | T48 | WS | DEFTEMPLATE | TYPE | SLOT | DEFRULE | DEFFUNCTION | OR | AND | NOT | EXISTS | TEST | NULL | DECLARE | SALIENCE | INT | FLOAT | STRING | BOOL | VAR | SH_STYLE_SINGLE_LINE_COMMENT | C_STYLE_SINGLE_LINE_COMMENT | LEFT_PAREN | RIGHT_PAREN | LEFT_SQUARE | RIGHT_SQUARE | LEFT_CURLY | RIGHT_CURLY | TILDE | AMPERSAND | PIPE | ASSIGN_OP | COLON | EQUALS | MULTI_LINE_COMMENT | NAME );";
+ return "1:1: Tokens : ( T46 | T47 | T48 | WS | DEFTEMPLATE | SLOT | DEFRULE | DEFFUNCTION | OR | AND | NOT | EXISTS | TEST | NULL | DECLARE | SALIENCE | INT | FLOAT | STRING | BOOL | VAR | SH_STYLE_SINGLE_LINE_COMMENT | C_STYLE_SINGLE_LINE_COMMENT | LEFT_PAREN | RIGHT_PAREN | LEFT_SQUARE | RIGHT_SQUARE | LEFT_CURLY | RIGHT_CURLY | TILDE | AMPERSAND | PIPE | ASSIGN_OP | COLON | EQUALS | MULTI_LINE_COMMENT | NAME );";
}
}
Modified: labs/jbossrules/trunk/drools-clips/src/main/java/org/drools/clips/ClipsParser.java
===================================================================
--- labs/jbossrules/trunk/drools-clips/src/main/java/org/drools/clips/ClipsParser.java 2008-06-24 00:50:01 UTC (rev 20712)
+++ labs/jbossrules/trunk/drools-clips/src/main/java/org/drools/clips/ClipsParser.java 2008-06-24 01:25:42 UTC (rev 20713)
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g 2008-06-24 01:45:58
+// $ANTLR 3.0.1 C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g 2008-06-24 02:24:27
package org.drools.clips;
@@ -23,56 +23,55 @@
import java.util.HashMap;
public class ClipsParser extends Parser {
public static final String[] tokenNames = new String[] {
- "<invalid>", "<EOR>", "<DOWN>", "<UP>", "LEFT_PAREN", "NAME", "RIGHT_PAREN", "DEFTEMPLATE", "STRING", "SLOT", "TYPE", "DEFFUNCTION", "DEFRULE", "SALIENCE", "INT", "AND", "OR", "NOT", "EXISTS", "TEST", "VAR", "ASSIGN_OP", "PIPE", "AMPERSAND", "TILDE", "COLON", "EQUALS", "FLOAT", "BOOL", "NULL", "EOL", "WS", "DECLARE", "EscapeSequence", "HexDigit", "UnicodeEscape", "OctalEscape", "SYMBOL_CHAR", "SH_STYLE_SINGLE_LINE_COMMENT", "C_STYLE_SINGLE_LINE_COMMENT", "LEFT_SQUARE", "RIGHT_SQUARE", "LEFT_CURLY", "RIGHT_CURLY", "MULTI_LINE_COMMENT", "SYMBOL", "FIRST_SYMBOL_CHAR", "'import'", "'=>'"
+ "<invalid>", "<EOR>", "<DOWN>", "<UP>", "LEFT_PAREN", "NAME", "RIGHT_PAREN", "DEFFUNCTION", "DEFRULE", "STRING", "SALIENCE", "INT", "AND", "OR", "NOT", "EXISTS", "TEST", "VAR", "ASSIGN_OP", "PIPE", "AMPERSAND", "TILDE", "COLON", "EQUALS", "FLOAT", "BOOL", "NULL", "DEFTEMPLATE", "SLOT", "EOL", "WS", "DECLARE", "EscapeSequence", "HexDigit", "UnicodeEscape", "OctalEscape", "SYMBOL_CHAR", "SH_STYLE_SINGLE_LINE_COMMENT", "C_STYLE_SINGLE_LINE_COMMENT", "LEFT_SQUARE", "RIGHT_SQUARE", "LEFT_CURLY", "RIGHT_CURLY", "MULTI_LINE_COMMENT", "SYMBOL", "FIRST_SYMBOL_CHAR", "'import'", "'=>'", "'type'"
};
- public static final int RIGHT_SQUARE=41;
- public static final int RIGHT_CURLY=43;
- public static final int EQUALS=26;
- public static final int FLOAT=27;
- public static final int NOT=17;
- public static final int SYMBOL_CHAR=37;
- public static final int SH_STYLE_SINGLE_LINE_COMMENT=38;
- public static final int AND=15;
- public static final int FIRST_SYMBOL_CHAR=46;
+ public static final int RIGHT_SQUARE=40;
+ public static final int RIGHT_CURLY=42;
+ public static final int EQUALS=23;
+ public static final int FLOAT=24;
+ public static final int NOT=14;
+ public static final int SYMBOL_CHAR=36;
+ public static final int SH_STYLE_SINGLE_LINE_COMMENT=37;
+ public static final int AND=12;
+ public static final int FIRST_SYMBOL_CHAR=45;
public static final int EOF=-1;
- public static final int HexDigit=34;
- public static final int DEFFUNCTION=11;
- public static final int TYPE=10;
- public static final int ASSIGN_OP=21;
+ public static final int HexDigit=33;
+ public static final int DEFFUNCTION=7;
+ public static final int ASSIGN_OP=18;
public static final int RIGHT_PAREN=6;
public static final int NAME=5;
- public static final int EOL=30;
- public static final int DEFRULE=12;
- public static final int TILDE=24;
- public static final int PIPE=22;
- public static final int VAR=20;
- public static final int EXISTS=18;
- public static final int SYMBOL=45;
- public static final int NULL=29;
- public static final int BOOL=28;
- public static final int SALIENCE=13;
- public static final int AMPERSAND=23;
- public static final int INT=14;
- public static final int MULTI_LINE_COMMENT=44;
- public static final int COLON=25;
- public static final int WS=31;
- public static final int UnicodeEscape=35;
- public static final int SLOT=9;
- public static final int LEFT_CURLY=42;
- public static final int OR=16;
- public static final int TEST=19;
+ public static final int EOL=29;
+ public static final int DEFRULE=8;
+ public static final int TILDE=21;
+ public static final int PIPE=19;
+ public static final int VAR=17;
+ public static final int EXISTS=15;
+ public static final int SYMBOL=44;
+ public static final int NULL=26;
+ public static final int BOOL=25;
+ public static final int SALIENCE=10;
+ public static final int AMPERSAND=20;
+ public static final int INT=11;
+ public static final int MULTI_LINE_COMMENT=43;
+ public static final int COLON=22;
+ public static final int WS=30;
+ public static final int UnicodeEscape=34;
+ public static final int SLOT=28;
+ public static final int LEFT_CURLY=41;
+ public static final int OR=13;
+ public static final int TEST=16;
public static final int LEFT_PAREN=4;
- public static final int DECLARE=32;
- public static final int DEFTEMPLATE=7;
- public static final int LEFT_SQUARE=40;
- public static final int EscapeSequence=33;
- public static final int OctalEscape=36;
- public static final int C_STYLE_SINGLE_LINE_COMMENT=39;
- public static final int STRING=8;
+ public static final int DECLARE=31;
+ public static final int DEFTEMPLATE=27;
+ public static final int LEFT_SQUARE=39;
+ public static final int EscapeSequence=32;
+ public static final int OctalEscape=35;
+ public static final int C_STYLE_SINGLE_LINE_COMMENT=38;
+ public static final int STRING=9;
public ClipsParser(TokenStream input) {
super(input);
- ruleMemo = new HashMap[29+1];
+ ruleMemo = new HashMap[28+1];
}
@@ -253,19 +252,14 @@
if ( (LA1_0==LEFT_PAREN) ) {
switch ( input.LA(2) ) {
- case 47:
- {
- alt1=1;
- }
- break;
case DEFRULE:
{
alt1=4;
}
break;
- case DEFTEMPLATE:
+ case 46:
{
- alt1=3;
+ alt1=1;
}
break;
case DEFFUNCTION:
@@ -273,6 +267,11 @@
alt1=2;
}
break;
+ case DEFTEMPLATE:
+ {
+ alt1=3;
+ }
+ break;
case NAME:
case VAR:
{
@@ -384,7 +383,7 @@
// C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:246:4: LEFT_PAREN 'import' importName= NAME RIGHT_PAREN
{
match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_importDescr140); if (failed) return importDescr;
- match(input,47,FOLLOW_47_in_importDescr142); if (failed) return importDescr;
+ match(input,46,FOLLOW_46_in_importDescr142); if (failed) return importDescr;
importName=(Token)input.LT(1);
match(input,NAME,FOLLOW_NAME_in_importDescr146); if (failed) return importDescr;
if ( backtracking==0 ) {
@@ -406,141 +405,8 @@
// $ANTLR end importDescr
- // $ANTLR start deftemplate
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:295:1: deftemplate returns [TypeDeclarationDescr typeDescr] : loc= LEFT_PAREN DEFTEMPLATE deftemplateName= NAME documentation= STRING ( deftemplate_slot[typeDescr] )* RIGHT_PAREN ;
- public final TypeDeclarationDescr deftemplate() throws RecognitionException {
- TypeDeclarationDescr typeDescr = null;
-
- Token loc=null;
- Token deftemplateName=null;
- Token documentation=null;
-
- try {
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:296:5: (loc= LEFT_PAREN DEFTEMPLATE deftemplateName= NAME documentation= STRING ( deftemplate_slot[typeDescr] )* RIGHT_PAREN )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:297:5: loc= LEFT_PAREN DEFTEMPLATE deftemplateName= NAME documentation= STRING ( deftemplate_slot[typeDescr] )* RIGHT_PAREN
- {
- loc=(Token)input.LT(1);
- match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_deftemplate185); if (failed) return typeDescr;
- match(input,DEFTEMPLATE,FOLLOW_DEFTEMPLATE_in_deftemplate192); if (failed) return typeDescr;
- deftemplateName=(Token)input.LT(1);
- match(input,NAME,FOLLOW_NAME_in_deftemplate196); if (failed) return typeDescr;
- if ( backtracking==0 ) {
-
- debug( "start rule: " + deftemplateName.getText() );
- String templateStr = deftemplateName.getText();
-
- String mod = null;
- if ( templateStr.indexOf("::") >= 0 ) {
- mod = templateStr.substring(0, templateStr.indexOf("::"));
- templateStr = templateStr.substring(templateStr.indexOf("::")+2);
- }
-
- typeDescr = new TypeDeclarationDescr( templateStr );
- if( mod != null ) {
- typeDescr.setNamespace( mod );
- }
-
- typeDescr.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
- typeDescr.setStartCharacter( ((CommonToken)loc).getStartIndex() );
-
-
-
- }
- documentation=(Token)input.LT(1);
- match(input,STRING,FOLLOW_STRING_in_deftemplate207); if (failed) return typeDescr;
- if ( backtracking==0 ) {
-
- // do nothing here for now
-
- }
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:322:4: ( deftemplate_slot[typeDescr] )*
- loop2:
- do {
- int alt2=2;
- int LA2_0 = input.LA(1);
-
- if ( (LA2_0==LEFT_PAREN) ) {
- alt2=1;
- }
-
-
- switch (alt2) {
- case 1 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:322:4: deftemplate_slot[typeDescr]
- {
- pushFollow(FOLLOW_deftemplate_slot_in_deftemplate220);
- deftemplate_slot(typeDescr);
- _fsp--;
- if (failed) return typeDescr;
-
- }
- break;
-
- default :
- break loop2;
- }
- } while (true);
-
- match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_deftemplate228); if (failed) return typeDescr;
-
- }
-
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return typeDescr;
- }
- // $ANTLR end deftemplate
-
-
- // $ANTLR start deftemplate_slot
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:326:1: deftemplate_slot[TypeDeclarationDescr typeDescr] : LEFT_PAREN SLOT slotName= NAME LEFT_PAREN TYPE slotType= NAME RIGHT_PAREN RIGHT_PAREN ;
- public final void deftemplate_slot(TypeDeclarationDescr typeDescr) throws RecognitionException {
- Token slotName=null;
- Token slotType=null;
-
-
-
- try {
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:329:6: ( LEFT_PAREN SLOT slotName= NAME LEFT_PAREN TYPE slotType= NAME RIGHT_PAREN RIGHT_PAREN )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:330:5: LEFT_PAREN SLOT slotName= NAME LEFT_PAREN TYPE slotType= NAME RIGHT_PAREN RIGHT_PAREN
- {
- match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_deftemplate_slot267); if (failed) return ;
- match(input,SLOT,FOLLOW_SLOT_in_deftemplate_slot279); if (failed) return ;
- slotName=(Token)input.LT(1);
- match(input,NAME,FOLLOW_NAME_in_deftemplate_slot283); if (failed) return ;
- match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_deftemplate_slot293); if (failed) return ;
- match(input,TYPE,FOLLOW_TYPE_in_deftemplate_slot309); if (failed) return ;
- slotType=(Token)input.LT(1);
- match(input,NAME,FOLLOW_NAME_in_deftemplate_slot313); if (failed) return ;
- if ( backtracking==0 ) {
-
- typeDescr.addField( new TypeFieldDescr(slotName.getText(), new PatternDescr( slotType.getText() ) ) );
-
- }
- match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_deftemplate_slot333); if (failed) return ;
- match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_deftemplate_slot340); if (failed) return ;
-
- }
-
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return ;
- }
- // $ANTLR end deftemplate_slot
-
-
// $ANTLR start deffunction
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:341:1: deffunction returns [FunctionDescr functionDescr] : LEFT_PAREN t= DEFFUNCTION name= lisp_atom params= lisp_form (form= lisp_form )+ RIGHT_PAREN ;
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:295:1: deffunction returns [FunctionDescr functionDescr] : LEFT_PAREN t= DEFFUNCTION name= lisp_atom params= lisp_form (form= lisp_form )+ RIGHT_PAREN ;
public final FunctionDescr deffunction() throws RecognitionException {
FunctionDescr functionDescr = null;
@@ -557,37 +423,37 @@
functionDescr = null;
try {
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:346:2: ( LEFT_PAREN t= DEFFUNCTION name= lisp_atom params= lisp_form (form= lisp_form )+ RIGHT_PAREN )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:346:4: LEFT_PAREN t= DEFFUNCTION name= lisp_atom params= lisp_form (form= lisp_form )+ RIGHT_PAREN
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:300:2: ( LEFT_PAREN t= DEFFUNCTION name= lisp_atom params= lisp_form (form= lisp_form )+ RIGHT_PAREN )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:300:4: LEFT_PAREN t= DEFFUNCTION name= lisp_atom params= lisp_form (form= lisp_form )+ RIGHT_PAREN
{
- match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_deffunction375); if (failed) return functionDescr;
+ match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_deffunction185); if (failed) return functionDescr;
t=(Token)input.LT(1);
- match(input,DEFFUNCTION,FOLLOW_DEFFUNCTION_in_deffunction385); if (failed) return functionDescr;
- pushFollow(FOLLOW_lisp_atom_in_deffunction395);
+ match(input,DEFFUNCTION,FOLLOW_DEFFUNCTION_in_deffunction195); if (failed) return functionDescr;
+ pushFollow(FOLLOW_lisp_atom_in_deffunction205);
name=lisp_atom();
_fsp--;
if (failed) return functionDescr;
- pushFollow(FOLLOW_lisp_form_in_deffunction405);
+ pushFollow(FOLLOW_lisp_form_in_deffunction215);
params=lisp_form();
_fsp--;
if (failed) return functionDescr;
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:350:3: (form= lisp_form )+
- int cnt3=0;
- loop3:
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:304:3: (form= lisp_form )+
+ int cnt2=0;
+ loop2:
do {
- int alt3=2;
- int LA3_0 = input.LA(1);
+ int alt2=2;
+ int LA2_0 = input.LA(1);
- if ( (LA3_0==LEFT_PAREN) ) {
- alt3=1;
+ if ( (LA2_0==LEFT_PAREN) ) {
+ alt2=1;
}
- switch (alt3) {
+ switch (alt2) {
case 1 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:350:4: form= lisp_form
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:304:4: form= lisp_form
{
- pushFollow(FOLLOW_lisp_form_in_deffunction414);
+ pushFollow(FOLLOW_lisp_form_in_deffunction224);
form=lisp_form();
_fsp--;
if (failed) return functionDescr;
@@ -599,16 +465,16 @@
break;
default :
- if ( cnt3 >= 1 ) break loop3;
+ if ( cnt2 >= 1 ) break loop2;
if (backtracking>0) {failed=true; return functionDescr;}
EarlyExitException eee =
- new EarlyExitException(3, input);
+ new EarlyExitException(2, input);
throw eee;
}
- cnt3++;
+ cnt2++;
} while (true);
- match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_deffunction436); if (failed) return functionDescr;
+ match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_deffunction246); if (failed) return functionDescr;
if ( backtracking==0 ) {
functionDescr = FunctionHandlers.createFunctionDescr( name, params, content );
}
@@ -628,7 +494,7 @@
// $ANTLR start defrule
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:356:1: defrule returns [RuleDescr rule] : loc= LEFT_PAREN DEFRULE ruleName= NAME documentation= STRING ruleAttribute[rule] ( ce[lhs, declarations] )* '=>' list= rule_consequence RIGHT_PAREN ;
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:310:1: defrule returns [RuleDescr rule] : loc= LEFT_PAREN DEFRULE ruleName= NAME documentation= STRING ruleAttribute[rule] ( ce[lhs, declarations] )* '=>' list= rule_consequence RIGHT_PAREN ;
public final RuleDescr defrule() throws RecognitionException {
RuleDescr rule = null;
@@ -645,14 +511,14 @@
Set declarations = null;
try {
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:363:2: (loc= LEFT_PAREN DEFRULE ruleName= NAME documentation= STRING ruleAttribute[rule] ( ce[lhs, declarations] )* '=>' list= rule_consequence RIGHT_PAREN )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:363:4: loc= LEFT_PAREN DEFRULE ruleName= NAME documentation= STRING ruleAttribute[rule] ( ce[lhs, declarations] )* '=>' list= rule_consequence RIGHT_PAREN
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:317:2: (loc= LEFT_PAREN DEFRULE ruleName= NAME documentation= STRING ruleAttribute[rule] ( ce[lhs, declarations] )* '=>' list= rule_consequence RIGHT_PAREN )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:317:4: loc= LEFT_PAREN DEFRULE ruleName= NAME documentation= STRING ruleAttribute[rule] ( ce[lhs, declarations] )* '=>' list= rule_consequence RIGHT_PAREN
{
loc=(Token)input.LT(1);
- match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_defrule473); if (failed) return rule;
- match(input,DEFRULE,FOLLOW_DEFRULE_in_defrule481); if (failed) return rule;
+ match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_defrule283); if (failed) return rule;
+ match(input,DEFRULE,FOLLOW_DEFRULE_in_defrule291); if (failed) return rule;
ruleName=(Token)input.LT(1);
- match(input,NAME,FOLLOW_NAME_in_defrule485); if (failed) return rule;
+ match(input,NAME,FOLLOW_NAME_in_defrule295); if (failed) return rule;
if ( backtracking==0 ) {
debug( "start rule: " + ruleName.getText() );
@@ -689,32 +555,32 @@
}
documentation=(Token)input.LT(1);
- match(input,STRING,FOLLOW_STRING_in_defrule497); if (failed) return rule;
+ match(input,STRING,FOLLOW_STRING_in_defrule307); if (failed) return rule;
if ( backtracking==0 ) {
// do nothing here for now
}
- pushFollow(FOLLOW_ruleAttribute_in_defrule503);
+ pushFollow(FOLLOW_ruleAttribute_in_defrule313);
ruleAttribute(rule);
_fsp--;
if (failed) return rule;
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:404:3: ( ce[lhs, declarations] )*
- loop4:
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:358:3: ( ce[lhs, declarations] )*
+ loop3:
do {
- int alt4=2;
- int LA4_0 = input.LA(1);
+ int alt3=2;
+ int LA3_0 = input.LA(1);
- if ( (LA4_0==LEFT_PAREN||LA4_0==VAR) ) {
- alt4=1;
+ if ( (LA3_0==LEFT_PAREN||LA3_0==VAR) ) {
+ alt3=1;
}
- switch (alt4) {
+ switch (alt3) {
case 1 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:404:3: ce[lhs, declarations]
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:358:3: ce[lhs, declarations]
{
- pushFollow(FOLLOW_ce_in_defrule511);
+ pushFollow(FOLLOW_ce_in_defrule321);
ce(lhs, declarations);
_fsp--;
if (failed) return rule;
@@ -723,19 +589,19 @@
break;
default :
- break loop4;
+ break loop3;
}
} while (true);
- match(input,48,FOLLOW_48_in_defrule520); if (failed) return rule;
- pushFollow(FOLLOW_rule_consequence_in_defrule529);
+ match(input,47,FOLLOW_47_in_defrule330); if (failed) return rule;
+ pushFollow(FOLLOW_rule_consequence_in_defrule339);
list=rule_consequence();
_fsp--;
if (failed) return rule;
if ( backtracking==0 ) {
rule.setConsequence( list );
}
- match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_defrule537); if (failed) return rule;
+ match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_defrule347); if (failed) return rule;
}
@@ -752,7 +618,7 @@
// $ANTLR start rule_consequence
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:413:1: rule_consequence returns [List list] : (l= lisp_form )* ;
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:367:1: rule_consequence returns [List list] : (l= lisp_form )* ;
public final List rule_consequence() throws RecognitionException {
List list = null;
@@ -763,25 +629,25 @@
list = null;
try {
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:417:5: ( (l= lisp_form )* )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:418:3: (l= lisp_form )*
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:371:5: ( (l= lisp_form )* )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:372:3: (l= lisp_form )*
{
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:418:3: (l= lisp_form )*
- loop5:
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:372:3: (l= lisp_form )*
+ loop4:
do {
- int alt5=2;
- int LA5_0 = input.LA(1);
+ int alt4=2;
+ int LA4_0 = input.LA(1);
- if ( (LA5_0==LEFT_PAREN) ) {
- alt5=1;
+ if ( (LA4_0==LEFT_PAREN) ) {
+ alt4=1;
}
- switch (alt5) {
+ switch (alt4) {
case 1 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:418:4: l= lisp_form
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:372:4: l= lisp_form
{
- pushFollow(FOLLOW_lisp_form_in_rule_consequence569);
+ pushFollow(FOLLOW_lisp_form_in_rule_consequence379);
l=lisp_form();
_fsp--;
if (failed) return list;
@@ -793,7 +659,7 @@
break;
default :
- break loop5;
+ break loop4;
}
} while (true);
@@ -813,59 +679,59 @@
// $ANTLR start ruleAttribute
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:421:1: ruleAttribute[RuleDescr rule] : ( LEFT_PAREN 'declare' ( LEFT_PAREN d= salience RIGHT_PAREN )? RIGHT_PAREN )? ;
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:375:1: ruleAttribute[RuleDescr rule] : ( LEFT_PAREN 'declare' ( LEFT_PAREN d= salience RIGHT_PAREN )? RIGHT_PAREN )? ;
public final void ruleAttribute(RuleDescr rule) throws RecognitionException {
AttributeDescr d = null;
try {
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:422:2: ( ( LEFT_PAREN 'declare' ( LEFT_PAREN d= salience RIGHT_PAREN )? RIGHT_PAREN )? )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:423:3: ( LEFT_PAREN 'declare' ( LEFT_PAREN d= salience RIGHT_PAREN )? RIGHT_PAREN )?
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:376:2: ( ( LEFT_PAREN 'declare' ( LEFT_PAREN d= salience RIGHT_PAREN )? RIGHT_PAREN )? )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:377:3: ( LEFT_PAREN 'declare' ( LEFT_PAREN d= salience RIGHT_PAREN )? RIGHT_PAREN )?
{
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:423:3: ( LEFT_PAREN 'declare' ( LEFT_PAREN d= salience RIGHT_PAREN )? RIGHT_PAREN )?
- int alt7=2;
- int LA7_0 = input.LA(1);
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:377:3: ( LEFT_PAREN 'declare' ( LEFT_PAREN d= salience RIGHT_PAREN )? RIGHT_PAREN )?
+ int alt6=2;
+ int LA6_0 = input.LA(1);
- if ( (LA7_0==LEFT_PAREN) ) {
- int LA7_1 = input.LA(2);
+ if ( (LA6_0==LEFT_PAREN) ) {
+ int LA6_1 = input.LA(2);
- if ( (LA7_1==DECLARE) ) {
- alt7=1;
+ if ( (LA6_1==DECLARE) ) {
+ alt6=1;
}
}
- switch (alt7) {
+ switch (alt6) {
case 1 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:423:5: LEFT_PAREN 'declare' ( LEFT_PAREN d= salience RIGHT_PAREN )? RIGHT_PAREN
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:377:5: LEFT_PAREN 'declare' ( LEFT_PAREN d= salience RIGHT_PAREN )? RIGHT_PAREN
{
- match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_ruleAttribute602); if (failed) return ;
- match(input,DECLARE,FOLLOW_DECLARE_in_ruleAttribute604); if (failed) return ;
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:424:4: ( LEFT_PAREN d= salience RIGHT_PAREN )?
- int alt6=2;
- int LA6_0 = input.LA(1);
+ match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_ruleAttribute412); if (failed) return ;
+ match(input,DECLARE,FOLLOW_DECLARE_in_ruleAttribute414); if (failed) return ;
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:378:4: ( LEFT_PAREN d= salience RIGHT_PAREN )?
+ int alt5=2;
+ int LA5_0 = input.LA(1);
- if ( (LA6_0==LEFT_PAREN) ) {
- alt6=1;
+ if ( (LA5_0==LEFT_PAREN) ) {
+ alt5=1;
}
- switch (alt6) {
+ switch (alt5) {
case 1 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:424:6: LEFT_PAREN d= salience RIGHT_PAREN
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:378:6: LEFT_PAREN d= salience RIGHT_PAREN
{
- match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_ruleAttribute611); if (failed) return ;
- pushFollow(FOLLOW_salience_in_ruleAttribute615);
+ match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_ruleAttribute421); if (failed) return ;
+ pushFollow(FOLLOW_salience_in_ruleAttribute425);
d=salience();
_fsp--;
if (failed) return ;
if ( backtracking==0 ) {
rule.addAttribute( d );
}
- match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_ruleAttribute619); if (failed) return ;
+ match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_ruleAttribute429); if (failed) return ;
}
break;
}
- match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_ruleAttribute626); if (failed) return ;
+ match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_ruleAttribute436); if (failed) return ;
}
break;
@@ -888,7 +754,7 @@
// $ANTLR start salience
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:428:1: salience returns [AttributeDescr d ] : loc= SALIENCE i= INT ;
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:382:1: salience returns [AttributeDescr d ] : loc= SALIENCE i= INT ;
public final AttributeDescr salience() throws RecognitionException {
AttributeDescr d = null;
@@ -899,13 +765,13 @@
d = null;
try {
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:432:2: (loc= SALIENCE i= INT )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:433:3: loc= SALIENCE i= INT
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:386:2: (loc= SALIENCE i= INT )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:387:3: loc= SALIENCE i= INT
{
loc=(Token)input.LT(1);
- match(input,SALIENCE,FOLLOW_SALIENCE_in_salience656); if (failed) return d;
+ match(input,SALIENCE,FOLLOW_SALIENCE_in_salience466); if (failed) return d;
i=(Token)input.LT(1);
- match(input,INT,FOLLOW_INT_in_salience660); if (failed) return d;
+ match(input,INT,FOLLOW_INT_in_salience470); if (failed) return d;
if ( backtracking==0 ) {
d = new AttributeDescr( "salience", i.getText() );
@@ -930,72 +796,72 @@
// $ANTLR start ce
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:443:1: ce[ConditionalElementDescr in_ce, Set declarations] : ( and_ce[in_ce, declarations] | or_ce[in_ce, declarations] | not_ce[in_ce, declarations] | exists_ce[in_ce, declarations] | eval_ce[in_ce, declarations] | normal_pattern[in_ce, declarations] | bound_pattern[in_ce, declarations] ) ;
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:397:1: ce[ConditionalElementDescr in_ce, Set declarations] : ( and_ce[in_ce, declarations] | or_ce[in_ce, declarations] | not_ce[in_ce, declarations] | exists_ce[in_ce, declarations] | eval_ce[in_ce, declarations] | normal_pattern[in_ce, declarations] | bound_pattern[in_ce, declarations] ) ;
public final void ce(ConditionalElementDescr in_ce, Set declarations) throws RecognitionException {
try {
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:444:2: ( ( and_ce[in_ce, declarations] | or_ce[in_ce, declarations] | not_ce[in_ce, declarations] | exists_ce[in_ce, declarations] | eval_ce[in_ce, declarations] | normal_pattern[in_ce, declarations] | bound_pattern[in_ce, declarations] ) )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:444:4: ( and_ce[in_ce, declarations] | or_ce[in_ce, declarations] | not_ce[in_ce, declarations] | exists_ce[in_ce, declarations] | eval_ce[in_ce, declarations] | normal_pattern[in_ce, declarations] | bound_pattern[in_ce, declarations] )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:398:2: ( ( and_ce[in_ce, declarations] | or_ce[in_ce, declarations] | not_ce[in_ce, declarations] | exists_ce[in_ce, declarations] | eval_ce[in_ce, declarations] | normal_pattern[in_ce, declarations] | bound_pattern[in_ce, declarations] ) )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:398:4: ( and_ce[in_ce, declarations] | or_ce[in_ce, declarations] | not_ce[in_ce, declarations] | exists_ce[in_ce, declarations] | eval_ce[in_ce, declarations] | normal_pattern[in_ce, declarations] | bound_pattern[in_ce, declarations] )
{
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:444:4: ( and_ce[in_ce, declarations] | or_ce[in_ce, declarations] | not_ce[in_ce, declarations] | exists_ce[in_ce, declarations] | eval_ce[in_ce, declarations] | normal_pattern[in_ce, declarations] | bound_pattern[in_ce, declarations] )
- int alt8=7;
- int LA8_0 = input.LA(1);
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:398:4: ( and_ce[in_ce, declarations] | or_ce[in_ce, declarations] | not_ce[in_ce, declarations] | exists_ce[in_ce, declarations] | eval_ce[in_ce, declarations] | normal_pattern[in_ce, declarations] | bound_pattern[in_ce, declarations] )
+ int alt7=7;
+ int LA7_0 = input.LA(1);
- if ( (LA8_0==LEFT_PAREN) ) {
+ if ( (LA7_0==LEFT_PAREN) ) {
switch ( input.LA(2) ) {
+ case NAME:
+ {
+ alt7=6;
+ }
+ break;
case AND:
{
- alt8=1;
+ alt7=1;
}
break;
case TEST:
{
- alt8=5;
+ alt7=5;
}
break;
case EXISTS:
{
- alt8=4;
+ alt7=4;
}
break;
case NOT:
{
- alt8=3;
+ alt7=3;
}
break;
case OR:
{
- alt8=2;
+ alt7=2;
}
break;
- case NAME:
- {
- alt8=6;
- }
- break;
default:
if (backtracking>0) {failed=true; return ;}
NoViableAltException nvae =
- new NoViableAltException("444:4: ( and_ce[in_ce, declarations] | or_ce[in_ce, declarations] | not_ce[in_ce, declarations] | exists_ce[in_ce, declarations] | eval_ce[in_ce, declarations] | normal_pattern[in_ce, declarations] | bound_pattern[in_ce, declarations] )", 8, 1, input);
+ new NoViableAltException("398:4: ( and_ce[in_ce, declarations] | or_ce[in_ce, declarations] | not_ce[in_ce, declarations] | exists_ce[in_ce, declarations] | eval_ce[in_ce, declarations] | normal_pattern[in_ce, declarations] | bound_pattern[in_ce, declarations] )", 7, 1, input);
throw nvae;
}
}
- else if ( (LA8_0==VAR) ) {
- alt8=7;
+ else if ( (LA7_0==VAR) ) {
+ alt7=7;
}
else {
if (backtracking>0) {failed=true; return ;}
NoViableAltException nvae =
- new NoViableAltException("444:4: ( and_ce[in_ce, declarations] | or_ce[in_ce, declarations] | not_ce[in_ce, declarations] | exists_ce[in_ce, declarations] | eval_ce[in_ce, declarations] | normal_pattern[in_ce, declarations] | bound_pattern[in_ce, declarations] )", 8, 0, input);
+ new NoViableAltException("398:4: ( and_ce[in_ce, declarations] | or_ce[in_ce, declarations] | not_ce[in_ce, declarations] | exists_ce[in_ce, declarations] | eval_ce[in_ce, declarations] | normal_pattern[in_ce, declarations] | bound_pattern[in_ce, declarations] )", 7, 0, input);
throw nvae;
}
- switch (alt8) {
+ switch (alt7) {
case 1 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:444:8: and_ce[in_ce, declarations]
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:398:8: and_ce[in_ce, declarations]
{
- pushFollow(FOLLOW_and_ce_in_ce686);
+ pushFollow(FOLLOW_and_ce_in_ce496);
and_ce(in_ce, declarations);
_fsp--;
if (failed) return ;
@@ -1003,9 +869,9 @@
}
break;
case 2 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:445:7: or_ce[in_ce, declarations]
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:399:7: or_ce[in_ce, declarations]
{
- pushFollow(FOLLOW_or_ce_in_ce696);
+ pushFollow(FOLLOW_or_ce_in_ce506);
or_ce(in_ce, declarations);
_fsp--;
if (failed) return ;
@@ -1013,9 +879,9 @@
}
break;
case 3 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:446:7: not_ce[in_ce, declarations]
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:400:7: not_ce[in_ce, declarations]
{
- pushFollow(FOLLOW_not_ce_in_ce705);
+ pushFollow(FOLLOW_not_ce_in_ce515);
not_ce(in_ce, declarations);
_fsp--;
if (failed) return ;
@@ -1023,9 +889,9 @@
}
break;
case 4 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:447:7: exists_ce[in_ce, declarations]
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:401:7: exists_ce[in_ce, declarations]
{
- pushFollow(FOLLOW_exists_ce_in_ce714);
+ pushFollow(FOLLOW_exists_ce_in_ce524);
exists_ce(in_ce, declarations);
_fsp--;
if (failed) return ;
@@ -1033,9 +899,9 @@
}
break;
case 5 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:448:8: eval_ce[in_ce, declarations]
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:402:8: eval_ce[in_ce, declarations]
{
- pushFollow(FOLLOW_eval_ce_in_ce728);
+ pushFollow(FOLLOW_eval_ce_in_ce538);
eval_ce(in_ce, declarations);
_fsp--;
if (failed) return ;
@@ -1043,9 +909,9 @@
}
break;
case 6 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:449:7: normal_pattern[in_ce, declarations]
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:403:7: normal_pattern[in_ce, declarations]
{
- pushFollow(FOLLOW_normal_pattern_in_ce742);
+ pushFollow(FOLLOW_normal_pattern_in_ce552);
normal_pattern(in_ce, declarations);
_fsp--;
if (failed) return ;
@@ -1053,9 +919,9 @@
}
break;
case 7 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:450:7: bound_pattern[in_ce, declarations]
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:404:7: bound_pattern[in_ce, declarations]
{
- pushFollow(FOLLOW_bound_pattern_in_ce751);
+ pushFollow(FOLLOW_bound_pattern_in_ce561);
bound_pattern(in_ce, declarations);
_fsp--;
if (failed) return ;
@@ -1081,40 +947,40 @@
// $ANTLR start and_ce
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:454:1: and_ce[ConditionalElementDescr in_ce, Set declarations] : LEFT_PAREN AND ( ce[andDescr, declarations] )+ RIGHT_PAREN ;
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:408:1: and_ce[ConditionalElementDescr in_ce, Set declarations] : LEFT_PAREN AND ( ce[andDescr, declarations] )+ RIGHT_PAREN ;
public final void and_ce(ConditionalElementDescr in_ce, Set declarations) throws RecognitionException {
AndDescr andDescr= null;
try {
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:458:2: ( LEFT_PAREN AND ( ce[andDescr, declarations] )+ RIGHT_PAREN )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:458:4: LEFT_PAREN AND ( ce[andDescr, declarations] )+ RIGHT_PAREN
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:412:2: ( LEFT_PAREN AND ( ce[andDescr, declarations] )+ RIGHT_PAREN )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:412:4: LEFT_PAREN AND ( ce[andDescr, declarations] )+ RIGHT_PAREN
{
- match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_and_ce778); if (failed) return ;
- match(input,AND,FOLLOW_AND_in_and_ce783); if (failed) return ;
+ match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_and_ce588); if (failed) return ;
+ match(input,AND,FOLLOW_AND_in_and_ce593); if (failed) return ;
if ( backtracking==0 ) {
andDescr = new AndDescr();
in_ce.addDescr( andDescr );
}
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:463:3: ( ce[andDescr, declarations] )+
- int cnt9=0;
- loop9:
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:417:3: ( ce[andDescr, declarations] )+
+ int cnt8=0;
+ loop8:
do {
- int alt9=2;
- int LA9_0 = input.LA(1);
+ int alt8=2;
+ int LA8_0 = input.LA(1);
- if ( (LA9_0==LEFT_PAREN||LA9_0==VAR) ) {
- alt9=1;
+ if ( (LA8_0==LEFT_PAREN||LA8_0==VAR) ) {
+ alt8=1;
}
- switch (alt9) {
+ switch (alt8) {
case 1 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:463:3: ce[andDescr, declarations]
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:417:3: ce[andDescr, declarations]
{
- pushFollow(FOLLOW_ce_in_and_ce789);
+ pushFollow(FOLLOW_ce_in_and_ce599);
ce(andDescr, declarations);
_fsp--;
if (failed) return ;
@@ -1123,16 +989,16 @@
break;
default :
- if ( cnt9 >= 1 ) break loop9;
+ if ( cnt8 >= 1 ) break loop8;
if (backtracking>0) {failed=true; return ;}
EarlyExitException eee =
- new EarlyExitException(9, input);
+ new EarlyExitException(8, input);
throw eee;
}
- cnt9++;
+ cnt8++;
} while (true);
- match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_and_ce798); if (failed) return ;
+ match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_and_ce608); if (failed) return ;
}
@@ -1149,40 +1015,40 @@
// $ANTLR start or_ce
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:467:1: or_ce[ConditionalElementDescr in_ce, Set declarations] : LEFT_PAREN OR ( ce[orDescr, declarations] )+ RIGHT_PAREN ;
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:421:1: or_ce[ConditionalElementDescr in_ce, Set declarations] : LEFT_PAREN OR ( ce[orDescr, declarations] )+ RIGHT_PAREN ;
public final void or_ce(ConditionalElementDescr in_ce, Set declarations) throws RecognitionException {
OrDescr orDescr= null;
try {
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:471:2: ( LEFT_PAREN OR ( ce[orDescr, declarations] )+ RIGHT_PAREN )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:471:4: LEFT_PAREN OR ( ce[orDescr, declarations] )+ RIGHT_PAREN
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:425:2: ( LEFT_PAREN OR ( ce[orDescr, declarations] )+ RIGHT_PAREN )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:425:4: LEFT_PAREN OR ( ce[orDescr, declarations] )+ RIGHT_PAREN
{
- match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_or_ce826); if (failed) return ;
- match(input,OR,FOLLOW_OR_in_or_ce831); if (failed) return ;
+ match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_or_ce636); if (failed) return ;
+ match(input,OR,FOLLOW_OR_in_or_ce641); if (failed) return ;
if ( backtracking==0 ) {
orDescr = new OrDescr();
in_ce.addDescr( orDescr );
}
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:476:3: ( ce[orDescr, declarations] )+
- int cnt10=0;
- loop10:
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:430:3: ( ce[orDescr, declarations] )+
+ int cnt9=0;
+ loop9:
do {
- int alt10=2;
- int LA10_0 = input.LA(1);
+ int alt9=2;
+ int LA9_0 = input.LA(1);
- if ( (LA10_0==LEFT_PAREN||LA10_0==VAR) ) {
- alt10=1;
+ if ( (LA9_0==LEFT_PAREN||LA9_0==VAR) ) {
+ alt9=1;
}
- switch (alt10) {
+ switch (alt9) {
case 1 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:476:3: ce[orDescr, declarations]
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:430:3: ce[orDescr, declarations]
{
- pushFollow(FOLLOW_ce_in_or_ce837);
+ pushFollow(FOLLOW_ce_in_or_ce647);
ce(orDescr, declarations);
_fsp--;
if (failed) return ;
@@ -1191,16 +1057,16 @@
break;
default :
- if ( cnt10 >= 1 ) break loop10;
+ if ( cnt9 >= 1 ) break loop9;
if (backtracking>0) {failed=true; return ;}
EarlyExitException eee =
- new EarlyExitException(10, input);
+ new EarlyExitException(9, input);
throw eee;
}
- cnt10++;
+ cnt9++;
} while (true);
- match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_or_ce846); if (failed) return ;
+ match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_or_ce656); if (failed) return ;
}
@@ -1217,28 +1083,28 @@
// $ANTLR start not_ce
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:480:1: not_ce[ConditionalElementDescr in_ce, Set declarations] : LEFT_PAREN NOT ce[notDescr, declarations] RIGHT_PAREN ;
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:434:1: not_ce[ConditionalElementDescr in_ce, Set declarations] : LEFT_PAREN NOT ce[notDescr, declarations] RIGHT_PAREN ;
public final void not_ce(ConditionalElementDescr in_ce, Set declarations) throws RecognitionException {
NotDescr notDescr= null;
try {
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:484:2: ( LEFT_PAREN NOT ce[notDescr, declarations] RIGHT_PAREN )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:484:4: LEFT_PAREN NOT ce[notDescr, declarations] RIGHT_PAREN
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:438:2: ( LEFT_PAREN NOT ce[notDescr, declarations] RIGHT_PAREN )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:438:4: LEFT_PAREN NOT ce[notDescr, declarations] RIGHT_PAREN
{
- match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_not_ce874); if (failed) return ;
- match(input,NOT,FOLLOW_NOT_in_not_ce879); if (failed) return ;
+ match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_not_ce684); if (failed) return ;
+ match(input,NOT,FOLLOW_NOT_in_not_ce689); if (failed) return ;
if ( backtracking==0 ) {
notDescr = new NotDescr();
in_ce.addDescr( notDescr );
}
- pushFollow(FOLLOW_ce_in_not_ce885);
+ pushFollow(FOLLOW_ce_in_not_ce695);
ce(notDescr, declarations);
_fsp--;
if (failed) return ;
- match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_not_ce893); if (failed) return ;
+ match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_not_ce703); if (failed) return ;
}
@@ -1255,28 +1121,28 @@
// $ANTLR start exists_ce
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:493:1: exists_ce[ConditionalElementDescr in_ce, Set declarations] : LEFT_PAREN EXISTS ce[existsDescr, declarations] RIGHT_PAREN ;
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:447:1: exists_ce[ConditionalElementDescr in_ce, Set declarations] : LEFT_PAREN EXISTS ce[existsDescr, declarations] RIGHT_PAREN ;
public final void exists_ce(ConditionalElementDescr in_ce, Set declarations) throws RecognitionException {
ExistsDescr existsDescr= null;
try {
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:497:2: ( LEFT_PAREN EXISTS ce[existsDescr, declarations] RIGHT_PAREN )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:497:4: LEFT_PAREN EXISTS ce[existsDescr, declarations] RIGHT_PAREN
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:451:2: ( LEFT_PAREN EXISTS ce[existsDescr, declarations] RIGHT_PAREN )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:451:4: LEFT_PAREN EXISTS ce[existsDescr, declarations] RIGHT_PAREN
{
- match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_exists_ce922); if (failed) return ;
- match(input,EXISTS,FOLLOW_EXISTS_in_exists_ce927); if (failed) return ;
+ match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_exists_ce732); if (failed) return ;
+ match(input,EXISTS,FOLLOW_EXISTS_in_exists_ce737); if (failed) return ;
if ( backtracking==0 ) {
existsDescr = new ExistsDescr();
in_ce.addDescr( existsDescr );
}
- pushFollow(FOLLOW_ce_in_exists_ce933);
+ pushFollow(FOLLOW_ce_in_exists_ce743);
ce(existsDescr, declarations);
_fsp--;
if (failed) return ;
- match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_exists_ce941); if (failed) return ;
+ match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_exists_ce751); if (failed) return ;
}
@@ -1293,25 +1159,25 @@
// $ANTLR start eval_ce
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:506:1: eval_ce[ConditionalElementDescr in_ce, Set declarations] : LEFT_PAREN TEST t= lisp_form RIGHT_PAREN ;
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:460:1: eval_ce[ConditionalElementDescr in_ce, Set declarations] : LEFT_PAREN TEST t= lisp_form RIGHT_PAREN ;
public final void eval_ce(ConditionalElementDescr in_ce, Set declarations) throws RecognitionException {
LispForm t = null;
try {
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:507:2: ( LEFT_PAREN TEST t= lisp_form RIGHT_PAREN )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:507:4: LEFT_PAREN TEST t= lisp_form RIGHT_PAREN
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:461:2: ( LEFT_PAREN TEST t= lisp_form RIGHT_PAREN )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:461:4: LEFT_PAREN TEST t= lisp_form RIGHT_PAREN
{
- match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_eval_ce960); if (failed) return ;
- match(input,TEST,FOLLOW_TEST_in_eval_ce965); if (failed) return ;
- pushFollow(FOLLOW_lisp_form_in_eval_ce972);
+ match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_eval_ce770); if (failed) return ;
+ match(input,TEST,FOLLOW_TEST_in_eval_ce775); if (failed) return ;
+ pushFollow(FOLLOW_lisp_form_in_eval_ce782);
t=lisp_form();
_fsp--;
if (failed) return ;
if ( backtracking==0 ) {
EvalDescr evalDescr = new EvalDescr(); evalDescr.setContent( t ); in_ce.addDescr( evalDescr );
}
- match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_eval_ce982); if (failed) return ;
+ match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_eval_ce792); if (failed) return ;
}
@@ -1328,7 +1194,7 @@
// $ANTLR start normal_pattern
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:513:1: normal_pattern[ConditionalElementDescr in_ce, Set declarations] : LEFT_PAREN name= NAME ( field_constriant[top, declarations] )* RIGHT_PAREN ;
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:467:1: normal_pattern[ConditionalElementDescr in_ce, Set declarations] : LEFT_PAREN name= NAME ( field_constriant[top, declarations] )* RIGHT_PAREN ;
public final void normal_pattern(ConditionalElementDescr in_ce, Set declarations) throws RecognitionException {
Token name=null;
@@ -1337,12 +1203,12 @@
ConditionalElementDescr top = null;
try {
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:518:2: ( LEFT_PAREN name= NAME ( field_constriant[top, declarations] )* RIGHT_PAREN )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:518:4: LEFT_PAREN name= NAME ( field_constriant[top, declarations] )* RIGHT_PAREN
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:472:2: ( LEFT_PAREN name= NAME ( field_constriant[top, declarations] )* RIGHT_PAREN )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:472:4: LEFT_PAREN name= NAME ( field_constriant[top, declarations] )* RIGHT_PAREN
{
- match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_normal_pattern1010); if (failed) return ;
+ match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_normal_pattern820); if (failed) return ;
name=(Token)input.LT(1);
- match(input,NAME,FOLLOW_NAME_in_normal_pattern1017); if (failed) return ;
+ match(input,NAME,FOLLOW_NAME_in_normal_pattern827); if (failed) return ;
if ( backtracking==0 ) {
pattern = new PatternDescr(name.getText());
@@ -1351,22 +1217,22 @@
}
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:525:3: ( field_constriant[top, declarations] )*
- loop11:
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:479:3: ( field_constriant[top, declarations] )*
+ loop10:
do {
- int alt11=2;
- int LA11_0 = input.LA(1);
+ int alt10=2;
+ int LA10_0 = input.LA(1);
- if ( (LA11_0==LEFT_PAREN) ) {
- alt11=1;
+ if ( (LA10_0==LEFT_PAREN) ) {
+ alt10=1;
}
- switch (alt11) {
+ switch (alt10) {
case 1 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:525:3: field_constriant[top, declarations]
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:479:3: field_constriant[top, declarations]
{
- pushFollow(FOLLOW_field_constriant_in_normal_pattern1023);
+ pushFollow(FOLLOW_field_constriant_in_normal_pattern833);
field_constriant(top, declarations);
_fsp--;
if (failed) return ;
@@ -1375,11 +1241,11 @@
break;
default :
- break loop11;
+ break loop10;
}
} while (true);
- match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_normal_pattern1033); if (failed) return ;
+ match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_normal_pattern843); if (failed) return ;
}
@@ -1396,7 +1262,7 @@
// $ANTLR start bound_pattern
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:531:1: bound_pattern[ConditionalElementDescr in_ce, Set declarations] : var= VAR ASSIGN_OP LEFT_PAREN name= NAME ( field_constriant[top, declarations] )* RIGHT_PAREN ;
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:485:1: bound_pattern[ConditionalElementDescr in_ce, Set declarations] : var= VAR ASSIGN_OP LEFT_PAREN name= NAME ( field_constriant[top, declarations] )* RIGHT_PAREN ;
public final void bound_pattern(ConditionalElementDescr in_ce, Set declarations) throws RecognitionException {
Token var=null;
Token name=null;
@@ -1407,20 +1273,20 @@
ConditionalElementDescr top = null;
try {
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:537:2: (var= VAR ASSIGN_OP LEFT_PAREN name= NAME ( field_constriant[top, declarations] )* RIGHT_PAREN )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:537:4: var= VAR ASSIGN_OP LEFT_PAREN name= NAME ( field_constriant[top, declarations] )* RIGHT_PAREN
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:491:2: (var= VAR ASSIGN_OP LEFT_PAREN name= NAME ( field_constriant[top, declarations] )* RIGHT_PAREN )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:491:4: var= VAR ASSIGN_OP LEFT_PAREN name= NAME ( field_constriant[top, declarations] )* RIGHT_PAREN
{
var=(Token)input.LT(1);
- match(input,VAR,FOLLOW_VAR_in_bound_pattern1061); if (failed) return ;
+ match(input,VAR,FOLLOW_VAR_in_bound_pattern871); if (failed) return ;
if ( backtracking==0 ) {
identifier = var.getText();
}
- match(input,ASSIGN_OP,FOLLOW_ASSIGN_OP_in_bound_pattern1067); if (failed) return ;
- match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_bound_pattern1069); if (failed) return ;
+ match(input,ASSIGN_OP,FOLLOW_ASSIGN_OP_in_bound_pattern877); if (failed) return ;
+ match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_bound_pattern879); if (failed) return ;
name=(Token)input.LT(1);
- match(input,NAME,FOLLOW_NAME_in_bound_pattern1073); if (failed) return ;
+ match(input,NAME,FOLLOW_NAME_in_bound_pattern883); if (failed) return ;
if ( backtracking==0 ) {
pattern = new PatternDescr(name.getText());
@@ -1429,22 +1295,22 @@
top = pattern.getConstraint();
}
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:547:3: ( field_constriant[top, declarations] )*
- loop12:
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:501:3: ( field_constriant[top, declarations] )*
+ loop11:
do {
- int alt12=2;
- int LA12_0 = input.LA(1);
+ int alt11=2;
+ int LA11_0 = input.LA(1);
- if ( (LA12_0==LEFT_PAREN) ) {
- alt12=1;
+ if ( (LA11_0==LEFT_PAREN) ) {
+ alt11=1;
}
- switch (alt12) {
+ switch (alt11) {
case 1 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:547:3: field_constriant[top, declarations]
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:501:3: field_constriant[top, declarations]
{
- pushFollow(FOLLOW_field_constriant_in_bound_pattern1082);
+ pushFollow(FOLLOW_field_constriant_in_bound_pattern892);
field_constriant(top, declarations);
_fsp--;
if (failed) return ;
@@ -1453,11 +1319,11 @@
break;
default :
- break loop12;
+ break loop11;
}
} while (true);
- match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_bound_pattern1089); if (failed) return ;
+ match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_bound_pattern899); if (failed) return ;
}
@@ -1474,7 +1340,7 @@
// $ANTLR start field_constriant
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:551:1: field_constriant[ConditionalElementDescr base, Set declarations] : LEFT_PAREN f= NAME or_restr_connective[top, base, fc, declarations] RIGHT_PAREN ;
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:505:1: field_constriant[ConditionalElementDescr base, Set declarations] : LEFT_PAREN f= NAME or_restr_connective[top, base, fc, declarations] RIGHT_PAREN ;
public final void field_constriant(ConditionalElementDescr base, Set declarations) throws RecognitionException {
Token f=null;
@@ -1486,12 +1352,12 @@
String op = "==";
try {
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:559:2: ( LEFT_PAREN f= NAME or_restr_connective[top, base, fc, declarations] RIGHT_PAREN )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:560:3: LEFT_PAREN f= NAME or_restr_connective[top, base, fc, declarations] RIGHT_PAREN
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:513:2: ( LEFT_PAREN f= NAME or_restr_connective[top, base, fc, declarations] RIGHT_PAREN )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:514:3: LEFT_PAREN f= NAME or_restr_connective[top, base, fc, declarations] RIGHT_PAREN
{
- match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_field_constriant1120); if (failed) return ;
+ match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_field_constriant930); if (failed) return ;
f=(Token)input.LT(1);
- match(input,NAME,FOLLOW_NAME_in_field_constriant1124); if (failed) return ;
+ match(input,NAME,FOLLOW_NAME_in_field_constriant934); if (failed) return ;
if ( backtracking==0 ) {
fc = new FieldConstraintDescr(f.getText());
@@ -1501,14 +1367,14 @@
top = fc.getRestriction();
}
- pushFollow(FOLLOW_or_restr_connective_in_field_constriant1139);
+ pushFollow(FOLLOW_or_restr_connective_in_field_constriant949);
or_restr_connective(top, base, fc, declarations);
_fsp--;
if (failed) return ;
if ( backtracking==0 ) {
if ( top.getRestrictions().size() != 0 ) base.addDescr( fc );
}
- match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_field_constriant1149); if (failed) return ;
+ match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_field_constriant959); if (failed) return ;
}
@@ -1525,41 +1391,41 @@
// $ANTLR start or_restr_connective
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:588:1: or_restr_connective[ RestrictionConnectiveDescr rcBase, ConditionalElementDescr ceBase, FieldConstraintDescr fcBase, Set declarations ] options {backtrack=true; } : and_restr_connective[or, ceBase, fcBase, declarations] ( options {backtrack=true; } : PIPE and_restr_connective[or, ceBase, fcBase, declarations] )* ;
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:542:1: or_restr_connective[ RestrictionConnectiveDescr rcBase, ConditionalElementDescr ceBase, FieldConstraintDescr fcBase, Set declarations ] options {backtrack=true; } : and_restr_connective[or, ceBase, fcBase, declarations] ( options {backtrack=true; } : PIPE and_restr_connective[or, ceBase, fcBase, declarations] )* ;
public final void or_restr_connective(RestrictionConnectiveDescr rcBase, ConditionalElementDescr ceBase, FieldConstraintDescr fcBase, Set declarations) throws RecognitionException {
RestrictionConnectiveDescr or = new RestrictionConnectiveDescr(RestrictionConnectiveDescr.OR);
try {
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:595:2: ( and_restr_connective[or, ceBase, fcBase, declarations] ( options {backtrack=true; } : PIPE and_restr_connective[or, ceBase, fcBase, declarations] )* )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:596:3: and_restr_connective[or, ceBase, fcBase, declarations] ( options {backtrack=true; } : PIPE and_restr_connective[or, ceBase, fcBase, declarations] )*
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:549:2: ( and_restr_connective[or, ceBase, fcBase, declarations] ( options {backtrack=true; } : PIPE and_restr_connective[or, ceBase, fcBase, declarations] )* )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:550:3: and_restr_connective[or, ceBase, fcBase, declarations] ( options {backtrack=true; } : PIPE and_restr_connective[or, ceBase, fcBase, declarations] )*
{
- pushFollow(FOLLOW_and_restr_connective_in_or_restr_connective1188);
+ pushFollow(FOLLOW_and_restr_connective_in_or_restr_connective998);
and_restr_connective(or, ceBase, fcBase, declarations);
_fsp--;
if (failed) return ;
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:597:3: ( options {backtrack=true; } : PIPE and_restr_connective[or, ceBase, fcBase, declarations] )*
- loop13:
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:551:3: ( options {backtrack=true; } : PIPE and_restr_connective[or, ceBase, fcBase, declarations] )*
+ loop12:
do {
- int alt13=2;
- int LA13_0 = input.LA(1);
+ int alt12=2;
+ int LA12_0 = input.LA(1);
- if ( (LA13_0==PIPE) ) {
- alt13=1;
+ if ( (LA12_0==PIPE) ) {
+ alt12=1;
}
- switch (alt13) {
+ switch (alt12) {
case 1 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:599:6: PIPE and_restr_connective[or, ceBase, fcBase, declarations]
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:553:6: PIPE and_restr_connective[or, ceBase, fcBase, declarations]
{
- match(input,PIPE,FOLLOW_PIPE_in_or_restr_connective1212); if (failed) return ;
+ match(input,PIPE,FOLLOW_PIPE_in_or_restr_connective1022); if (failed) return ;
if ( backtracking==0 ) {
location.setType(Location.LOCATION_LHS_INSIDE_CONDITION_OPERATOR);
}
- pushFollow(FOLLOW_and_restr_connective_in_or_restr_connective1222);
+ pushFollow(FOLLOW_and_restr_connective_in_or_restr_connective1032);
and_restr_connective(or, ceBase, fcBase, declarations);
_fsp--;
if (failed) return ;
@@ -1568,7 +1434,7 @@
break;
default :
- break loop13;
+ break loop12;
}
} while (true);
@@ -1595,36 +1461,36 @@
// $ANTLR start and_restr_connective
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:614:1: and_restr_connective[ RestrictionConnectiveDescr rcBase, ConditionalElementDescr ceBase, FieldConstraintDescr fcBase, Set declarations ] : restriction[and, ceBase, fcBase, declarations] ( AMPERSAND restriction[and, ceBase, fcBase, declarations] )* ;
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:568:1: and_restr_connective[ RestrictionConnectiveDescr rcBase, ConditionalElementDescr ceBase, FieldConstraintDescr fcBase, Set declarations ] : restriction[and, ceBase, fcBase, declarations] ( AMPERSAND restriction[and, ceBase, fcBase, declarations] )* ;
public final void and_restr_connective(RestrictionConnectiveDescr rcBase, ConditionalElementDescr ceBase, FieldConstraintDescr fcBase, Set declarations) throws RecognitionException {
RestrictionConnectiveDescr and = new RestrictionConnectiveDescr(RestrictionConnectiveDescr.AND);
try {
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:618:2: ( restriction[and, ceBase, fcBase, declarations] ( AMPERSAND restriction[and, ceBase, fcBase, declarations] )* )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:619:3: restriction[and, ceBase, fcBase, declarations] ( AMPERSAND restriction[and, ceBase, fcBase, declarations] )*
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:572:2: ( restriction[and, ceBase, fcBase, declarations] ( AMPERSAND restriction[and, ceBase, fcBase, declarations] )* )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:573:3: restriction[and, ceBase, fcBase, declarations] ( AMPERSAND restriction[and, ceBase, fcBase, declarations] )*
{
- pushFollow(FOLLOW_restriction_in_and_restr_connective1254);
+ pushFollow(FOLLOW_restriction_in_and_restr_connective1064);
restriction(and, ceBase, fcBase, declarations);
_fsp--;
if (failed) return ;
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:620:3: ( AMPERSAND restriction[and, ceBase, fcBase, declarations] )*
- loop14:
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:574:3: ( AMPERSAND restriction[and, ceBase, fcBase, declarations] )*
+ loop13:
do {
- int alt14=2;
- int LA14_0 = input.LA(1);
+ int alt13=2;
+ int LA13_0 = input.LA(1);
- if ( (LA14_0==AMPERSAND) ) {
- alt14=1;
+ if ( (LA13_0==AMPERSAND) ) {
+ alt13=1;
}
- switch (alt14) {
+ switch (alt13) {
case 1 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:620:5: AMPERSAND restriction[and, ceBase, fcBase, declarations]
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:574:5: AMPERSAND restriction[and, ceBase, fcBase, declarations]
{
- match(input,AMPERSAND,FOLLOW_AMPERSAND_in_and_restr_connective1262); if (failed) return ;
- pushFollow(FOLLOW_restriction_in_and_restr_connective1264);
+ match(input,AMPERSAND,FOLLOW_AMPERSAND_in_and_restr_connective1072); if (failed) return ;
+ pushFollow(FOLLOW_restriction_in_and_restr_connective1074);
restriction(and, ceBase, fcBase, declarations);
_fsp--;
if (failed) return ;
@@ -1633,7 +1499,7 @@
break;
default :
- break loop14;
+ break loop13;
}
} while (true);
@@ -1660,7 +1526,7 @@
// $ANTLR start restriction
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:639:1: restriction[RestrictionConnectiveDescr rc, ConditionalElementDescr base, FieldConstraintDescr fcBase, Set declarations ] : ( TILDE )? ( predicate_constraint[rc, op, base] | return_value_restriction[op, rc] | variable_restriction[op, rc, base, fcBase, declarations] | lc= literal_restriction ) ;
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:593:1: restriction[RestrictionConnectiveDescr rc, ConditionalElementDescr base, FieldConstraintDescr fcBase, Set declarations ] : ( TILDE )? ( predicate_constraint[rc, op, base] | return_value_restriction[op, rc] | variable_restriction[op, rc, base, fcBase, declarations] | lc= literal_restriction ) ;
public final void restriction(RestrictionConnectiveDescr rc, ConditionalElementDescr base, FieldConstraintDescr fcBase, Set declarations) throws RecognitionException {
String lc = null;
@@ -1669,21 +1535,21 @@
String op = "==";
try {
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:643:2: ( ( TILDE )? ( predicate_constraint[rc, op, base] | return_value_restriction[op, rc] | variable_restriction[op, rc, base, fcBase, declarations] | lc= literal_restriction ) )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:643:4: ( TILDE )? ( predicate_constraint[rc, op, base] | return_value_restriction[op, rc] | variable_restriction[op, rc, base, fcBase, declarations] | lc= literal_restriction )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:597:2: ( ( TILDE )? ( predicate_constraint[rc, op, base] | return_value_restriction[op, rc] | variable_restriction[op, rc, base, fcBase, declarations] | lc= literal_restriction ) )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:597:4: ( TILDE )? ( predicate_constraint[rc, op, base] | return_value_restriction[op, rc] | variable_restriction[op, rc, base, fcBase, declarations] | lc= literal_restriction )
{
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:643:4: ( TILDE )?
- int alt15=2;
- int LA15_0 = input.LA(1);
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:597:4: ( TILDE )?
+ int alt14=2;
+ int LA14_0 = input.LA(1);
- if ( (LA15_0==TILDE) ) {
- alt15=1;
+ if ( (LA14_0==TILDE) ) {
+ alt14=1;
}
- switch (alt15) {
+ switch (alt14) {
case 1 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:643:5: TILDE
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:597:5: TILDE
{
- match(input,TILDE,FOLLOW_TILDE_in_restriction1297); if (failed) return ;
+ match(input,TILDE,FOLLOW_TILDE_in_restriction1107); if (failed) return ;
if ( backtracking==0 ) {
op = "!=";
}
@@ -1693,22 +1559,22 @@
}
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:644:3: ( predicate_constraint[rc, op, base] | return_value_restriction[op, rc] | variable_restriction[op, rc, base, fcBase, declarations] | lc= literal_restriction )
- int alt16=4;
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:598:3: ( predicate_constraint[rc, op, base] | return_value_restriction[op, rc] | variable_restriction[op, rc, base, fcBase, declarations] | lc= literal_restriction )
+ int alt15=4;
switch ( input.LA(1) ) {
case COLON:
{
- alt16=1;
+ alt15=1;
}
break;
case EQUALS:
{
- alt16=2;
+ alt15=2;
}
break;
case VAR:
{
- alt16=3;
+ alt15=3;
}
break;
case NAME:
@@ -1718,22 +1584,22 @@
case BOOL:
case NULL:
{
- alt16=4;
+ alt15=4;
}
break;
default:
if (backtracking>0) {failed=true; return ;}
NoViableAltException nvae =
- new NoViableAltException("644:3: ( predicate_constraint[rc, op, base] | return_value_restriction[op, rc] | variable_restriction[op, rc, base, fcBase, declarations] | lc= literal_restriction )", 16, 0, input);
+ new NoViableAltException("598:3: ( predicate_constraint[rc, op, base] | return_value_restriction[op, rc] | variable_restriction[op, rc, base, fcBase, declarations] | lc= literal_restriction )", 15, 0, input);
throw nvae;
}
- switch (alt16) {
+ switch (alt15) {
case 1 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:644:5: predicate_constraint[rc, op, base]
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:598:5: predicate_constraint[rc, op, base]
{
- pushFollow(FOLLOW_predicate_constraint_in_restriction1313);
+ pushFollow(FOLLOW_predicate_constraint_in_restriction1123);
predicate_constraint(rc, op, base);
_fsp--;
if (failed) return ;
@@ -1741,9 +1607,9 @@
}
break;
case 2 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:645:7: return_value_restriction[op, rc]
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:599:7: return_value_restriction[op, rc]
{
- pushFollow(FOLLOW_return_value_restriction_in_restriction1329);
+ pushFollow(FOLLOW_return_value_restriction_in_restriction1139);
return_value_restriction(op, rc);
_fsp--;
if (failed) return ;
@@ -1751,9 +1617,9 @@
}
break;
case 3 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:646:7: variable_restriction[op, rc, base, fcBase, declarations]
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:600:7: variable_restriction[op, rc, base, fcBase, declarations]
{
- pushFollow(FOLLOW_variable_restriction_in_restriction1338);
+ pushFollow(FOLLOW_variable_restriction_in_restriction1148);
variable_restriction(op, rc, base, fcBase, declarations);
_fsp--;
if (failed) return ;
@@ -1761,9 +1627,9 @@
}
break;
case 4 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:647:8: lc= literal_restriction
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:601:8: lc= literal_restriction
{
- pushFollow(FOLLOW_literal_restriction_in_restriction1350);
+ pushFollow(FOLLOW_literal_restriction_in_restriction1160);
lc=literal_restriction();
_fsp--;
if (failed) return ;
@@ -1795,17 +1661,17 @@
// $ANTLR start predicate_constraint
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:654:1: predicate_constraint[RestrictionConnectiveDescr rc, String op, ConditionalElementDescr base] : COLON t= lisp_form ;
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:608:1: predicate_constraint[RestrictionConnectiveDescr rc, String op, ConditionalElementDescr base] : COLON t= lisp_form ;
public final void predicate_constraint(RestrictionConnectiveDescr rc, String op, ConditionalElementDescr base) throws RecognitionException {
LispForm t = null;
try {
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:655:2: ( COLON t= lisp_form )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:655:4: COLON t= lisp_form
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:609:2: ( COLON t= lisp_form )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:609:4: COLON t= lisp_form
{
- match(input,COLON,FOLLOW_COLON_in_predicate_constraint1383); if (failed) return ;
- pushFollow(FOLLOW_lisp_form_in_predicate_constraint1389);
+ match(input,COLON,FOLLOW_COLON_in_predicate_constraint1193); if (failed) return ;
+ pushFollow(FOLLOW_lisp_form_in_predicate_constraint1199);
t=lisp_form();
_fsp--;
if (failed) return ;
@@ -1828,17 +1694,17 @@
// $ANTLR start return_value_restriction
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:661:1: return_value_restriction[String op, RestrictionConnectiveDescr rc] : EQUALS t= lisp_form ;
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:615:1: return_value_restriction[String op, RestrictionConnectiveDescr rc] : EQUALS t= lisp_form ;
public final void return_value_restriction(String op, RestrictionConnectiveDescr rc) throws RecognitionException {
LispForm t = null;
try {
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:662:2: ( EQUALS t= lisp_form )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:662:4: EQUALS t= lisp_form
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:616:2: ( EQUALS t= lisp_form )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:616:4: EQUALS t= lisp_form
{
- match(input,EQUALS,FOLLOW_EQUALS_in_return_value_restriction1408); if (failed) return ;
- pushFollow(FOLLOW_lisp_form_in_return_value_restriction1415);
+ match(input,EQUALS,FOLLOW_EQUALS_in_return_value_restriction1218); if (failed) return ;
+ pushFollow(FOLLOW_lisp_form_in_return_value_restriction1225);
t=lisp_form();
_fsp--;
if (failed) return ;
@@ -1861,17 +1727,17 @@
// $ANTLR start variable_restriction
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:667:1: variable_restriction[String op, RestrictionConnectiveDescr rc, ConditionalElementDescr ceBase, FieldConstraintDescr fcBase, Set declarations ] : VAR ;
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:621:1: variable_restriction[String op, RestrictionConnectiveDescr rc, ConditionalElementDescr ceBase, FieldConstraintDescr fcBase, Set declarations ] : VAR ;
public final void variable_restriction(String op, RestrictionConnectiveDescr rc, ConditionalElementDescr ceBase, FieldConstraintDescr fcBase, Set declarations) throws RecognitionException {
Token VAR1=null;
String identifier = null;
try {
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:669:2: ( VAR )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:669:4: VAR
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:623:2: ( VAR )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:623:4: VAR
{
VAR1=(Token)input.LT(1);
- match(input,VAR,FOLLOW_VAR_in_variable_restriction1443); if (failed) return ;
+ match(input,VAR,FOLLOW_VAR_in_variable_restriction1253); if (failed) return ;
if ( backtracking==0 ) {
identifier = VAR1.getText().replace( '?', '$');
@@ -1902,7 +1768,7 @@
// $ANTLR start literal_restriction
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:684:1: literal_restriction returns [String text] : t= literal ;
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:638:1: literal_restriction returns [String text] : t= literal ;
public final String literal_restriction() throws RecognitionException {
String text = null;
@@ -1913,10 +1779,10 @@
text = null;
try {
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:688:2: (t= literal )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:689:6: t= literal
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:642:2: (t= literal )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:643:6: t= literal
{
- pushFollow(FOLLOW_literal_in_literal_restriction1476);
+ pushFollow(FOLLOW_literal_in_literal_restriction1286);
t=literal();
_fsp--;
if (failed) return text;
@@ -1941,7 +1807,7 @@
// $ANTLR start lisp_form
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:706:1: lisp_form returns [LispForm lispForm] : LEFT_PAREN (t= NAME | t= VAR ) (a= lisp_atom | l= lisp_form )* RIGHT_PAREN ;
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:660:1: lisp_form returns [LispForm lispForm] : LEFT_PAREN (t= NAME | t= VAR ) (a= lisp_atom | l= lisp_form )* RIGHT_PAREN ;
public final LispForm lisp_form() throws RecognitionException {
LispForm lispForm = null;
@@ -1956,33 +1822,33 @@
lispForm = null;
try {
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:711:2: ( LEFT_PAREN (t= NAME | t= VAR ) (a= lisp_atom | l= lisp_form )* RIGHT_PAREN )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:711:4: LEFT_PAREN (t= NAME | t= VAR ) (a= lisp_atom | l= lisp_form )* RIGHT_PAREN
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:665:2: ( LEFT_PAREN (t= NAME | t= VAR ) (a= lisp_atom | l= lisp_form )* RIGHT_PAREN )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:665:4: LEFT_PAREN (t= NAME | t= VAR ) (a= lisp_atom | l= lisp_form )* RIGHT_PAREN
{
- match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_lisp_form1504); if (failed) return lispForm;
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:713:3: (t= NAME | t= VAR )
- int alt17=2;
- int LA17_0 = input.LA(1);
+ match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_lisp_form1314); if (failed) return lispForm;
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:667:3: (t= NAME | t= VAR )
+ int alt16=2;
+ int LA16_0 = input.LA(1);
- if ( (LA17_0==NAME) ) {
- alt17=1;
+ if ( (LA16_0==NAME) ) {
+ alt16=1;
}
- else if ( (LA17_0==VAR) ) {
- alt17=2;
+ else if ( (LA16_0==VAR) ) {
+ alt16=2;
}
else {
if (backtracking>0) {failed=true; return lispForm;}
NoViableAltException nvae =
- new NoViableAltException("713:3: (t= NAME | t= VAR )", 17, 0, input);
+ new NoViableAltException("667:3: (t= NAME | t= VAR )", 16, 0, input);
throw nvae;
}
- switch (alt17) {
+ switch (alt16) {
case 1 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:714:7: t= NAME
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:668:7: t= NAME
{
t=(Token)input.LT(1);
- match(input,NAME,FOLLOW_NAME_in_lisp_form1521); if (failed) return lispForm;
+ match(input,NAME,FOLLOW_NAME_in_lisp_form1331); if (failed) return lispForm;
if ( backtracking==0 ) {
list.add( new SymbolLispAtom( t.getText() ) );
}
@@ -1990,10 +1856,10 @@
}
break;
case 2 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:716:7: t= VAR
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:670:7: t= VAR
{
t=(Token)input.LT(1);
- match(input,VAR,FOLLOW_VAR_in_lisp_form1541); if (failed) return lispForm;
+ match(input,VAR,FOLLOW_VAR_in_lisp_form1351); if (failed) return lispForm;
if ( backtracking==0 ) {
list.add( new VariableLispAtom( t.getText() ) );
}
@@ -2003,25 +1869,25 @@
}
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:718:3: (a= lisp_atom | l= lisp_form )*
- loop18:
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:672:3: (a= lisp_atom | l= lisp_form )*
+ loop17:
do {
- int alt18=3;
- int LA18_0 = input.LA(1);
+ int alt17=3;
+ int LA17_0 = input.LA(1);
- if ( (LA18_0==NAME||LA18_0==STRING||LA18_0==INT||LA18_0==VAR||(LA18_0>=FLOAT && LA18_0<=NULL)) ) {
- alt18=1;
+ if ( (LA17_0==NAME||LA17_0==STRING||LA17_0==INT||LA17_0==VAR||(LA17_0>=FLOAT && LA17_0<=NULL)) ) {
+ alt17=1;
}
- else if ( (LA18_0==LEFT_PAREN) ) {
- alt18=2;
+ else if ( (LA17_0==LEFT_PAREN) ) {
+ alt17=2;
}
- switch (alt18) {
+ switch (alt17) {
case 1 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:718:6: a= lisp_atom
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:672:6: a= lisp_atom
{
- pushFollow(FOLLOW_lisp_atom_in_lisp_form1564);
+ pushFollow(FOLLOW_lisp_atom_in_lisp_form1374);
a=lisp_atom();
_fsp--;
if (failed) return lispForm;
@@ -2032,9 +1898,9 @@
}
break;
case 2 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:719:6: l= lisp_form
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:673:6: l= lisp_form
{
- pushFollow(FOLLOW_lisp_form_in_lisp_form1575);
+ pushFollow(FOLLOW_lisp_form_in_lisp_form1385);
l=lisp_form();
_fsp--;
if (failed) return lispForm;
@@ -2046,11 +1912,11 @@
break;
default :
- break loop18;
+ break loop17;
}
} while (true);
- match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_lisp_form1602); if (failed) return lispForm;
+ match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_lisp_form1412); if (failed) return lispForm;
if ( backtracking==0 ) {
lispForm = new LispForm( ( SExpression[] ) list.toArray( new SExpression[ list.size () ] ) );
}
@@ -2070,7 +1936,7 @@
// $ANTLR start lisp_atom
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:725:1: lisp_atom returns [SExpression sExpression] : (t= VAR | t= STRING | t= FLOAT | t= INT | t= BOOL | t= NULL | t= NAME ) ;
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:679:1: lisp_atom returns [SExpression sExpression] : (t= VAR | t= STRING | t= FLOAT | t= INT | t= BOOL | t= NULL | t= NAME ) ;
public final SExpression lisp_atom() throws RecognitionException {
SExpression sExpression = null;
@@ -2080,61 +1946,61 @@
sExpression = null;
try {
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:729:2: ( (t= VAR | t= STRING | t= FLOAT | t= INT | t= BOOL | t= NULL | t= NAME ) )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:730:3: (t= VAR | t= STRING | t= FLOAT | t= INT | t= BOOL | t= NULL | t= NAME )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:683:2: ( (t= VAR | t= STRING | t= FLOAT | t= INT | t= BOOL | t= NULL | t= NAME ) )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:684:3: (t= VAR | t= STRING | t= FLOAT | t= INT | t= BOOL | t= NULL | t= NAME )
{
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:730:3: (t= VAR | t= STRING | t= FLOAT | t= INT | t= BOOL | t= NULL | t= NAME )
- int alt19=7;
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:684:3: (t= VAR | t= STRING | t= FLOAT | t= INT | t= BOOL | t= NULL | t= NAME )
+ int alt18=7;
switch ( input.LA(1) ) {
case VAR:
{
- alt19=1;
+ alt18=1;
}
break;
case STRING:
{
- alt19=2;
+ alt18=2;
}
break;
case FLOAT:
{
- alt19=3;
+ alt18=3;
}
break;
case INT:
{
- alt19=4;
+ alt18=4;
}
break;
case BOOL:
{
- alt19=5;
+ alt18=5;
}
break;
case NULL:
{
- alt19=6;
+ alt18=6;
}
break;
case NAME:
{
- alt19=7;
+ alt18=7;
}
break;
default:
if (backtracking>0) {failed=true; return sExpression;}
NoViableAltException nvae =
- new NoViableAltException("730:3: (t= VAR | t= STRING | t= FLOAT | t= INT | t= BOOL | t= NULL | t= NAME )", 19, 0, input);
+ new NoViableAltException("684:3: (t= VAR | t= STRING | t= FLOAT | t= INT | t= BOOL | t= NULL | t= NAME )", 18, 0, input);
throw nvae;
}
- switch (alt19) {
+ switch (alt18) {
case 1 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:731:6: t= VAR
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:685:6: t= VAR
{
t=(Token)input.LT(1);
- match(input,VAR,FOLLOW_VAR_in_lisp_atom1646); if (failed) return sExpression;
+ match(input,VAR,FOLLOW_VAR_in_lisp_atom1456); if (failed) return sExpression;
if ( backtracking==0 ) {
sExpression = new VariableLispAtom( t.getText() );
}
@@ -2142,10 +2008,10 @@
}
break;
case 2 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:732:6: t= STRING
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:686:6: t= STRING
{
t=(Token)input.LT(1);
- match(input,STRING,FOLLOW_STRING_in_lisp_atom1658); if (failed) return sExpression;
+ match(input,STRING,FOLLOW_STRING_in_lisp_atom1468); if (failed) return sExpression;
if ( backtracking==0 ) {
sExpression = new StringLispAtom( getString( t ) );
}
@@ -2153,10 +2019,10 @@
}
break;
case 3 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:733:6: t= FLOAT
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:687:6: t= FLOAT
{
t=(Token)input.LT(1);
- match(input,FLOAT,FOLLOW_FLOAT_in_lisp_atom1680); if (failed) return sExpression;
+ match(input,FLOAT,FOLLOW_FLOAT_in_lisp_atom1490); if (failed) return sExpression;
if ( backtracking==0 ) {
sExpression = new FloatLispAtom( t.getText() );
}
@@ -2164,10 +2030,10 @@
}
break;
case 4 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:734:6: t= INT
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:688:6: t= INT
{
t=(Token)input.LT(1);
- match(input,INT,FOLLOW_INT_in_lisp_atom1692); if (failed) return sExpression;
+ match(input,INT,FOLLOW_INT_in_lisp_atom1502); if (failed) return sExpression;
if ( backtracking==0 ) {
sExpression = new IntLispAtom( t.getText() );
}
@@ -2175,10 +2041,10 @@
}
break;
case 5 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:735:7: t= BOOL
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:689:7: t= BOOL
{
t=(Token)input.LT(1);
- match(input,BOOL,FOLLOW_BOOL_in_lisp_atom1705); if (failed) return sExpression;
+ match(input,BOOL,FOLLOW_BOOL_in_lisp_atom1515); if (failed) return sExpression;
if ( backtracking==0 ) {
sExpression = new BoolLispAtom( t.getText() );
}
@@ -2186,10 +2052,10 @@
}
break;
case 6 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:736:7: t= NULL
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:690:7: t= NULL
{
t=(Token)input.LT(1);
- match(input,NULL,FOLLOW_NULL_in_lisp_atom1721); if (failed) return sExpression;
+ match(input,NULL,FOLLOW_NULL_in_lisp_atom1531); if (failed) return sExpression;
if ( backtracking==0 ) {
sExpression = new NullLispAtom( null );
}
@@ -2197,10 +2063,10 @@
}
break;
case 7 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:737:14: t= NAME
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:691:14: t= NAME
{
t=(Token)input.LT(1);
- match(input,NAME,FOLLOW_NAME_in_lisp_atom1747); if (failed) return sExpression;
+ match(input,NAME,FOLLOW_NAME_in_lisp_atom1557); if (failed) return sExpression;
if ( backtracking==0 ) {
sExpression = new SymbolLispAtom( "\"" +t.getText() + "\"");
}
@@ -2225,8 +2091,88 @@
// $ANTLR end lisp_atom
+ // $ANTLR start deftemplate
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:697:1: deftemplate returns [TypeDeclarationDescr typeDescr] : loc= LEFT_PAREN DEFTEMPLATE deftemplateName= NAME documentation= STRING LEFT_PAREN SLOT slotName= NAME LEFT_PAREN 'type' slotType= NAME RIGHT_PAREN RIGHT_PAREN RIGHT_PAREN ;
+ public final TypeDeclarationDescr deftemplate() throws RecognitionException {
+ TypeDeclarationDescr typeDescr = null;
+
+ Token loc=null;
+ Token deftemplateName=null;
+ Token documentation=null;
+ Token slotName=null;
+ Token slotType=null;
+
+ try {
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:698:5: (loc= LEFT_PAREN DEFTEMPLATE deftemplateName= NAME documentation= STRING LEFT_PAREN SLOT slotName= NAME LEFT_PAREN 'type' slotType= NAME RIGHT_PAREN RIGHT_PAREN RIGHT_PAREN )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:699:5: loc= LEFT_PAREN DEFTEMPLATE deftemplateName= NAME documentation= STRING LEFT_PAREN SLOT slotName= NAME LEFT_PAREN 'type' slotType= NAME RIGHT_PAREN RIGHT_PAREN RIGHT_PAREN
+ {
+ loc=(Token)input.LT(1);
+ match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_deftemplate1598); if (failed) return typeDescr;
+ match(input,DEFTEMPLATE,FOLLOW_DEFTEMPLATE_in_deftemplate1605); if (failed) return typeDescr;
+ deftemplateName=(Token)input.LT(1);
+ match(input,NAME,FOLLOW_NAME_in_deftemplate1609); if (failed) return typeDescr;
+ if ( backtracking==0 ) {
+
+ debug( "start rule: " + deftemplateName.getText() );
+ String templateStr = deftemplateName.getText();
+
+ String mod = null;
+ if ( templateStr.indexOf("::") >= 0 ) {
+ mod = templateStr.substring(0, templateStr.indexOf("::"));
+ templateStr = templateStr.substring(templateStr.indexOf("::")+2);
+ }
+
+ typeDescr = new TypeDeclarationDescr( templateStr );
+ if( mod != null ) {
+ typeDescr.setNamespace( mod );
+ }
+
+ typeDescr.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+ typeDescr.setStartCharacter( ((CommonToken)loc).getStartIndex() );
+
+
+
+ }
+ documentation=(Token)input.LT(1);
+ match(input,STRING,FOLLOW_STRING_in_deftemplate1620); if (failed) return typeDescr;
+ if ( backtracking==0 ) {
+
+ // do nothing here for now
+
+ }
+ match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_deftemplate1634); if (failed) return typeDescr;
+ match(input,SLOT,FOLLOW_SLOT_in_deftemplate1646); if (failed) return typeDescr;
+ slotName=(Token)input.LT(1);
+ match(input,NAME,FOLLOW_NAME_in_deftemplate1650); if (failed) return typeDescr;
+ match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_deftemplate1660); if (failed) return typeDescr;
+ match(input,48,FOLLOW_48_in_deftemplate1676); if (failed) return typeDescr;
+ slotType=(Token)input.LT(1);
+ match(input,NAME,FOLLOW_NAME_in_deftemplate1680); if (failed) return typeDescr;
+ if ( backtracking==0 ) {
+
+ typeDescr.addField( new TypeFieldDescr(slotName.getText(), new PatternDescr( slotType.getText() ) ) );
+
+ }
+ match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_deftemplate1700); if (failed) return typeDescr;
+ match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_deftemplate1707); if (failed) return typeDescr;
+ match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_deftemplate1720); if (failed) return typeDescr;
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return typeDescr;
+ }
+ // $ANTLR end deftemplate
+
+
// $ANTLR start literal
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:742:1: literal returns [String text] : (t= STRING | t= NAME | t= INT | t= FLOAT | t= BOOL | t= NULL ) ;
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:739:1: literal returns [String text] : (t= STRING | t= NAME | t= INT | t= FLOAT | t= BOOL | t= NULL ) ;
public final String literal() throws RecognitionException {
String text = null;
@@ -2236,56 +2182,56 @@
text = null;
try {
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:746:2: ( (t= STRING | t= NAME | t= INT | t= FLOAT | t= BOOL | t= NULL ) )
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:746:4: (t= STRING | t= NAME | t= INT | t= FLOAT | t= BOOL | t= NULL )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:743:2: ( (t= STRING | t= NAME | t= INT | t= FLOAT | t= BOOL | t= NULL ) )
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:743:4: (t= STRING | t= NAME | t= INT | t= FLOAT | t= BOOL | t= NULL )
{
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:746:4: (t= STRING | t= NAME | t= INT | t= FLOAT | t= BOOL | t= NULL )
- int alt20=6;
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:743:4: (t= STRING | t= NAME | t= INT | t= FLOAT | t= BOOL | t= NULL )
+ int alt19=6;
switch ( input.LA(1) ) {
case STRING:
{
- alt20=1;
+ alt19=1;
}
break;
case NAME:
{
- alt20=2;
+ alt19=2;
}
break;
case INT:
{
- alt20=3;
+ alt19=3;
}
break;
case FLOAT:
{
- alt20=4;
+ alt19=4;
}
break;
case BOOL:
{
- alt20=5;
+ alt19=5;
}
break;
case NULL:
{
- alt20=6;
+ alt19=6;
}
break;
default:
if (backtracking>0) {failed=true; return text;}
NoViableAltException nvae =
- new NoViableAltException("746:4: (t= STRING | t= NAME | t= INT | t= FLOAT | t= BOOL | t= NULL )", 20, 0, input);
+ new NoViableAltException("743:4: (t= STRING | t= NAME | t= INT | t= FLOAT | t= BOOL | t= NULL )", 19, 0, input);
throw nvae;
}
- switch (alt20) {
+ switch (alt19) {
case 1 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:746:8: t= STRING
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:743:8: t= STRING
{
t=(Token)input.LT(1);
- match(input,STRING,FOLLOW_STRING_in_literal1791); if (failed) return text;
+ match(input,STRING,FOLLOW_STRING_in_literal1756); if (failed) return text;
if ( backtracking==0 ) {
text = getString( t );
}
@@ -2293,10 +2239,10 @@
}
break;
case 2 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:747:7: t= NAME
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:744:7: t= NAME
{
t=(Token)input.LT(1);
- match(input,NAME,FOLLOW_NAME_in_literal1804); if (failed) return text;
+ match(input,NAME,FOLLOW_NAME_in_literal1769); if (failed) return text;
if ( backtracking==0 ) {
text = t.getText();
}
@@ -2304,10 +2250,10 @@
}
break;
case 3 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:748:7: t= INT
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:745:7: t= INT
{
t=(Token)input.LT(1);
- match(input,INT,FOLLOW_INT_in_literal1820); if (failed) return text;
+ match(input,INT,FOLLOW_INT_in_literal1785); if (failed) return text;
if ( backtracking==0 ) {
text = t.getText();
}
@@ -2315,10 +2261,10 @@
}
break;
case 4 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:749:7: t= FLOAT
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:746:7: t= FLOAT
{
t=(Token)input.LT(1);
- match(input,FLOAT,FOLLOW_FLOAT_in_literal1835); if (failed) return text;
+ match(input,FLOAT,FOLLOW_FLOAT_in_literal1800); if (failed) return text;
if ( backtracking==0 ) {
text = t.getText();
}
@@ -2326,10 +2272,10 @@
}
break;
case 5 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:750:7: t= BOOL
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:747:7: t= BOOL
{
t=(Token)input.LT(1);
- match(input,BOOL,FOLLOW_BOOL_in_literal1848); if (failed) return text;
+ match(input,BOOL,FOLLOW_BOOL_in_literal1813); if (failed) return text;
if ( backtracking==0 ) {
text = t.getText();
}
@@ -2337,10 +2283,10 @@
}
break;
case 6 :
- // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:751:7: t= NULL
+ // C:\\dev\\drools\\trunk6\\drools-clips\\src\\main\\resources\\org\\drools\\cips\\Clips.g:748:7: t= NULL
{
t=(Token)input.LT(1);
- match(input,NULL,FOLLOW_NULL_in_literal1862); if (failed) return text;
+ match(input,NULL,FOLLOW_NULL_in_literal1827); if (failed) return text;
if ( backtracking==0 ) {
text = null;
}
@@ -2372,124 +2318,123 @@
public static final BitSet FOLLOW_deftemplate_in_eval84 = new BitSet(new long[]{0x0000000000000012L});
public static final BitSet FOLLOW_defrule_in_eval100 = new BitSet(new long[]{0x0000000000000012L});
public static final BitSet FOLLOW_lisp_form_in_eval112 = new BitSet(new long[]{0x0000000000000012L});
- public static final BitSet FOLLOW_LEFT_PAREN_in_importDescr140 = new BitSet(new long[]{0x0000800000000000L});
- public static final BitSet FOLLOW_47_in_importDescr142 = new BitSet(new long[]{0x0000000000000020L});
+ public static final BitSet FOLLOW_LEFT_PAREN_in_importDescr140 = new BitSet(new long[]{0x0000400000000000L});
+ public static final BitSet FOLLOW_46_in_importDescr142 = new BitSet(new long[]{0x0000000000000020L});
public static final BitSet FOLLOW_NAME_in_importDescr146 = new BitSet(new long[]{0x0000000000000040L});
public static final BitSet FOLLOW_RIGHT_PAREN_in_importDescr150 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_LEFT_PAREN_in_deftemplate185 = new BitSet(new long[]{0x0000000000000080L});
- public static final BitSet FOLLOW_DEFTEMPLATE_in_deftemplate192 = new BitSet(new long[]{0x0000000000000020L});
- public static final BitSet FOLLOW_NAME_in_deftemplate196 = new BitSet(new long[]{0x0000000000000100L});
- public static final BitSet FOLLOW_STRING_in_deftemplate207 = new BitSet(new long[]{0x0000000000000050L});
- public static final BitSet FOLLOW_deftemplate_slot_in_deftemplate220 = new BitSet(new long[]{0x0000000000000050L});
- public static final BitSet FOLLOW_RIGHT_PAREN_in_deftemplate228 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_LEFT_PAREN_in_deftemplate_slot267 = new BitSet(new long[]{0x0000000000000200L});
- public static final BitSet FOLLOW_SLOT_in_deftemplate_slot279 = new BitSet(new long[]{0x0000000000000020L});
- public static final BitSet FOLLOW_NAME_in_deftemplate_slot283 = new BitSet(new long[]{0x0000000000000010L});
- public static final BitSet FOLLOW_LEFT_PAREN_in_deftemplate_slot293 = new BitSet(new long[]{0x0000000000000400L});
- public static final BitSet FOLLOW_TYPE_in_deftemplate_slot309 = new BitSet(new long[]{0x0000000000000020L});
- public static final BitSet FOLLOW_NAME_in_deftemplate_slot313 = new BitSet(new long[]{0x0000000000000040L});
- public static final BitSet FOLLOW_RIGHT_PAREN_in_deftemplate_slot333 = new BitSet(new long[]{0x0000000000000040L});
- public static final BitSet FOLLOW_RIGHT_PAREN_in_deftemplate_slot340 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_LEFT_PAREN_in_deffunction375 = new BitSet(new long[]{0x0000000000000800L});
- public static final BitSet FOLLOW_DEFFUNCTION_in_deffunction385 = new BitSet(new long[]{0x0000000038104120L});
- public static final BitSet FOLLOW_lisp_atom_in_deffunction395 = new BitSet(new long[]{0x0000000000000010L});
- public static final BitSet FOLLOW_lisp_form_in_deffunction405 = new BitSet(new long[]{0x0000000000000010L});
- public static final BitSet FOLLOW_lisp_form_in_deffunction414 = new BitSet(new long[]{0x0000000000000050L});
- public static final BitSet FOLLOW_RIGHT_PAREN_in_deffunction436 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_LEFT_PAREN_in_defrule473 = new BitSet(new long[]{0x0000000000001000L});
- public static final BitSet FOLLOW_DEFRULE_in_defrule481 = new BitSet(new long[]{0x0000000000000020L});
- public static final BitSet FOLLOW_NAME_in_defrule485 = new BitSet(new long[]{0x0000000000000100L});
- public static final BitSet FOLLOW_STRING_in_defrule497 = new BitSet(new long[]{0x0001000000100010L});
- public static final BitSet FOLLOW_ruleAttribute_in_defrule503 = new BitSet(new long[]{0x0001000000100010L});
- public static final BitSet FOLLOW_ce_in_defrule511 = new BitSet(new long[]{0x0001000000100010L});
- public static final BitSet FOLLOW_48_in_defrule520 = new BitSet(new long[]{0x0000000000000050L});
- public static final BitSet FOLLOW_rule_consequence_in_defrule529 = new BitSet(new long[]{0x0000000000000040L});
- public static final BitSet FOLLOW_RIGHT_PAREN_in_defrule537 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_lisp_form_in_rule_consequence569 = new BitSet(new long[]{0x0000000000000012L});
- public static final BitSet FOLLOW_LEFT_PAREN_in_ruleAttribute602 = new BitSet(new long[]{0x0000000100000000L});
- public static final BitSet FOLLOW_DECLARE_in_ruleAttribute604 = new BitSet(new long[]{0x0000000000000050L});
- public static final BitSet FOLLOW_LEFT_PAREN_in_ruleAttribute611 = new BitSet(new long[]{0x0000000000002000L});
- public static final BitSet FOLLOW_salience_in_ruleAttribute615 = new BitSet(new long[]{0x0000000000000040L});
- public static final BitSet FOLLOW_RIGHT_PAREN_in_ruleAttribute619 = new BitSet(new long[]{0x0000000000000040L});
- public static final BitSet FOLLOW_RIGHT_PAREN_in_ruleAttribute626 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_SALIENCE_in_salience656 = new BitSet(new long[]{0x0000000000004000L});
- public static final BitSet FOLLOW_INT_in_salience660 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_and_ce_in_ce686 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_or_ce_in_ce696 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_not_ce_in_ce705 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_exists_ce_in_ce714 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_eval_ce_in_ce728 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_normal_pattern_in_ce742 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_bound_pattern_in_ce751 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_LEFT_PAREN_in_and_ce778 = new BitSet(new long[]{0x0000000000008000L});
- public static final BitSet FOLLOW_AND_in_and_ce783 = new BitSet(new long[]{0x0000000000100010L});
- public static final BitSet FOLLOW_ce_in_and_ce789 = new BitSet(new long[]{0x0000000000100050L});
- public static final BitSet FOLLOW_RIGHT_PAREN_in_and_ce798 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_LEFT_PAREN_in_or_ce826 = new BitSet(new long[]{0x0000000000010000L});
- public static final BitSet FOLLOW_OR_in_or_ce831 = new BitSet(new long[]{0x0000000000100010L});
- public static final BitSet FOLLOW_ce_in_or_ce837 = new BitSet(new long[]{0x0000000000100050L});
- public static final BitSet FOLLOW_RIGHT_PAREN_in_or_ce846 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_LEFT_PAREN_in_not_ce874 = new BitSet(new long[]{0x0000000000020000L});
- public static final BitSet FOLLOW_NOT_in_not_ce879 = new BitSet(new long[]{0x0000000000100010L});
- public static final BitSet FOLLOW_ce_in_not_ce885 = new BitSet(new long[]{0x0000000000000040L});
- public static final BitSet FOLLOW_RIGHT_PAREN_in_not_ce893 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_LEFT_PAREN_in_exists_ce922 = new BitSet(new long[]{0x0000000000040000L});
- public static final BitSet FOLLOW_EXISTS_in_exists_ce927 = new BitSet(new long[]{0x0000000000100010L});
- public static final BitSet FOLLOW_ce_in_exists_ce933 = new BitSet(new long[]{0x0000000000000040L});
- public static final BitSet FOLLOW_RIGHT_PAREN_in_exists_ce941 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_LEFT_PAREN_in_eval_ce960 = new BitSet(new long[]{0x0000000000080000L});
- public static final BitSet FOLLOW_TEST_in_eval_ce965 = new BitSet(new long[]{0x0000000000000010L});
- public static final BitSet FOLLOW_lisp_form_in_eval_ce972 = new BitSet(new long[]{0x0000000000000040L});
- public static final BitSet FOLLOW_RIGHT_PAREN_in_eval_ce982 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_LEFT_PAREN_in_normal_pattern1010 = new BitSet(new long[]{0x0000000000000020L});
- public static final BitSet FOLLOW_NAME_in_normal_pattern1017 = new BitSet(new long[]{0x0000000000000050L});
- public static final BitSet FOLLOW_field_constriant_in_normal_pattern1023 = new BitSet(new long[]{0x0000000000000050L});
- public static final BitSet FOLLOW_RIGHT_PAREN_in_normal_pattern1033 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_VAR_in_bound_pattern1061 = new BitSet(new long[]{0x0000000000200000L});
- public static final BitSet FOLLOW_ASSIGN_OP_in_bound_pattern1067 = new BitSet(new long[]{0x0000000000000010L});
- public static final BitSet FOLLOW_LEFT_PAREN_in_bound_pattern1069 = new BitSet(new long[]{0x0000000000000020L});
- public static final BitSet FOLLOW_NAME_in_bound_pattern1073 = new BitSet(new long[]{0x0000000000000050L});
- public static final BitSet FOLLOW_field_constriant_in_bound_pattern1082 = new BitSet(new long[]{0x0000000000000050L});
- public static final BitSet FOLLOW_RIGHT_PAREN_in_bound_pattern1089 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_LEFT_PAREN_in_field_constriant1120 = new BitSet(new long[]{0x0000000000000020L});
- public static final BitSet FOLLOW_NAME_in_field_constriant1124 = new BitSet(new long[]{0x000000003F104120L});
- public static final BitSet FOLLOW_or_restr_connective_in_field_constriant1139 = new BitSet(new long[]{0x0000000000000040L});
- public static final BitSet FOLLOW_RIGHT_PAREN_in_field_constriant1149 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_and_restr_connective_in_or_restr_connective1188 = new BitSet(new long[]{0x0000000000400002L});
- public static final BitSet FOLLOW_PIPE_in_or_restr_connective1212 = new BitSet(new long[]{0x000000003F104120L});
- public static final BitSet FOLLOW_and_restr_connective_in_or_restr_connective1222 = new BitSet(new long[]{0x0000000000400002L});
- public static final BitSet FOLLOW_restriction_in_and_restr_connective1254 = new BitSet(new long[]{0x0000000000800002L});
- public static final BitSet FOLLOW_AMPERSAND_in_and_restr_connective1262 = new BitSet(new long[]{0x000000003F104120L});
- public static final BitSet FOLLOW_restriction_in_and_restr_connective1264 = new BitSet(new long[]{0x0000000000800002L});
- public static final BitSet FOLLOW_TILDE_in_restriction1297 = new BitSet(new long[]{0x000000003E104120L});
- public static final BitSet FOLLOW_predicate_constraint_in_restriction1313 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_return_value_restriction_in_restriction1329 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_variable_restriction_in_restriction1338 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_literal_restriction_in_restriction1350 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_COLON_in_predicate_constraint1383 = new BitSet(new long[]{0x0000000000000010L});
- public static final BitSet FOLLOW_lisp_form_in_predicate_constraint1389 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_EQUALS_in_return_value_restriction1408 = new BitSet(new long[]{0x0000000000000010L});
- public static final BitSet FOLLOW_lisp_form_in_return_value_restriction1415 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_VAR_in_variable_restriction1443 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_literal_in_literal_restriction1476 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_LEFT_PAREN_in_lisp_form1504 = new BitSet(new long[]{0x0000000000100020L});
- public static final BitSet FOLLOW_NAME_in_lisp_form1521 = new BitSet(new long[]{0x0000000038104170L});
- public static final BitSet FOLLOW_VAR_in_lisp_form1541 = new BitSet(new long[]{0x0000000038104170L});
- public static final BitSet FOLLOW_lisp_atom_in_lisp_form1564 = new BitSet(new long[]{0x0000000038104170L});
- public static final BitSet FOLLOW_lisp_form_in_lisp_form1575 = new BitSet(new long[]{0x0000000038104170L});
- public static final BitSet FOLLOW_RIGHT_PAREN_in_lisp_form1602 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_VAR_in_lisp_atom1646 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_STRING_in_lisp_atom1658 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_FLOAT_in_lisp_atom1680 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_INT_in_lisp_atom1692 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_BOOL_in_lisp_atom1705 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_NULL_in_lisp_atom1721 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_NAME_in_lisp_atom1747 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_STRING_in_literal1791 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_NAME_in_literal1804 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_INT_in_literal1820 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_FLOAT_in_literal1835 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_BOOL_in_literal1848 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_NULL_in_literal1862 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_LEFT_PAREN_in_deffunction185 = new BitSet(new long[]{0x0000000000000080L});
+ public static final BitSet FOLLOW_DEFFUNCTION_in_deffunction195 = new BitSet(new long[]{0x0000000007020A20L});
+ public static final BitSet FOLLOW_lisp_atom_in_deffunction205 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_lisp_form_in_deffunction215 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_lisp_form_in_deffunction224 = new BitSet(new long[]{0x0000000000000050L});
+ public static final BitSet FOLLOW_RIGHT_PAREN_in_deffunction246 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_LEFT_PAREN_in_defrule283 = new BitSet(new long[]{0x0000000000000100L});
+ public static final BitSet FOLLOW_DEFRULE_in_defrule291 = new BitSet(new long[]{0x0000000000000020L});
+ public static final BitSet FOLLOW_NAME_in_defrule295 = new BitSet(new long[]{0x0000000000000200L});
+ public static final BitSet FOLLOW_STRING_in_defrule307 = new BitSet(new long[]{0x0000800000020010L});
+ public static final BitSet FOLLOW_ruleAttribute_in_defrule313 = new BitSet(new long[]{0x0000800000020010L});
+ public static final BitSet FOLLOW_ce_in_defrule321 = new BitSet(new long[]{0x0000800000020010L});
+ public static final BitSet FOLLOW_47_in_defrule330 = new BitSet(new long[]{0x0000000000000050L});
+ public static final BitSet FOLLOW_rule_consequence_in_defrule339 = new BitSet(new long[]{0x0000000000000040L});
+ public static final BitSet FOLLOW_RIGHT_PAREN_in_defrule347 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_lisp_form_in_rule_consequence379 = new BitSet(new long[]{0x0000000000000012L});
+ public static final BitSet FOLLOW_LEFT_PAREN_in_ruleAttribute412 = new BitSet(new long[]{0x0000000080000000L});
+ public static final BitSet FOLLOW_DECLARE_in_ruleAttribute414 = new BitSet(new long[]{0x0000000000000050L});
+ public static final BitSet FOLLOW_LEFT_PAREN_in_ruleAttribute421 = new BitSet(new long[]{0x0000000000000400L});
+ public static final BitSet FOLLOW_salience_in_ruleAttribute425 = new BitSet(new long[]{0x0000000000000040L});
+ public static final BitSet FOLLOW_RIGHT_PAREN_in_ruleAttribute429 = new BitSet(new long[]{0x0000000000000040L});
+ public static final BitSet FOLLOW_RIGHT_PAREN_in_ruleAttribute436 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_SALIENCE_in_salience466 = new BitSet(new long[]{0x0000000000000800L});
+ public static final BitSet FOLLOW_INT_in_salience470 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_and_ce_in_ce496 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_or_ce_in_ce506 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_not_ce_in_ce515 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_exists_ce_in_ce524 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_eval_ce_in_ce538 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_normal_pattern_in_ce552 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_bound_pattern_in_ce561 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_LEFT_PAREN_in_and_ce588 = new BitSet(new long[]{0x0000000000001000L});
+ public static final BitSet FOLLOW_AND_in_and_ce593 = new BitSet(new long[]{0x0000000000020010L});
+ public static final BitSet FOLLOW_ce_in_and_ce599 = new BitSet(new long[]{0x0000000000020050L});
+ public static final BitSet FOLLOW_RIGHT_PAREN_in_and_ce608 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_LEFT_PAREN_in_or_ce636 = new BitSet(new long[]{0x0000000000002000L});
+ public static final BitSet FOLLOW_OR_in_or_ce641 = new BitSet(new long[]{0x0000000000020010L});
+ public static final BitSet FOLLOW_ce_in_or_ce647 = new BitSet(new long[]{0x0000000000020050L});
+ public static final BitSet FOLLOW_RIGHT_PAREN_in_or_ce656 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_LEFT_PAREN_in_not_ce684 = new BitSet(new long[]{0x0000000000004000L});
+ public static final BitSet FOLLOW_NOT_in_not_ce689 = new BitSet(new long[]{0x0000000000020010L});
+ public static final BitSet FOLLOW_ce_in_not_ce695 = new BitSet(new long[]{0x0000000000000040L});
+ public static final BitSet FOLLOW_RIGHT_PAREN_in_not_ce703 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_LEFT_PAREN_in_exists_ce732 = new BitSet(new long[]{0x0000000000008000L});
+ public static final BitSet FOLLOW_EXISTS_in_exists_ce737 = new BitSet(new long[]{0x0000000000020010L});
+ public static final BitSet FOLLOW_ce_in_exists_ce743 = new BitSet(new long[]{0x0000000000000040L});
+ public static final BitSet FOLLOW_RIGHT_PAREN_in_exists_ce751 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_LEFT_PAREN_in_eval_ce770 = new BitSet(new long[]{0x0000000000010000L});
+ public static final BitSet FOLLOW_TEST_in_eval_ce775 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_lisp_form_in_eval_ce782 = new BitSet(new long[]{0x0000000000000040L});
+ public static final BitSet FOLLOW_RIGHT_PAREN_in_eval_ce792 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_LEFT_PAREN_in_normal_pattern820 = new BitSet(new long[]{0x0000000000000020L});
+ public static final BitSet FOLLOW_NAME_in_normal_pattern827 = new BitSet(new long[]{0x0000000000000050L});
+ public static final BitSet FOLLOW_field_constriant_in_normal_pattern833 = new BitSet(new long[]{0x0000000000000050L});
+ public static final BitSet FOLLOW_RIGHT_PAREN_in_normal_pattern843 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_VAR_in_bound_pattern871 = new BitSet(new long[]{0x0000000000040000L});
+ public static final BitSet FOLLOW_ASSIGN_OP_in_bound_pattern877 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_LEFT_PAREN_in_bound_pattern879 = new BitSet(new long[]{0x0000000000000020L});
+ public static final BitSet FOLLOW_NAME_in_bound_pattern883 = new BitSet(new long[]{0x0000000000000050L});
+ public static final BitSet FOLLOW_field_constriant_in_bound_pattern892 = new BitSet(new long[]{0x0000000000000050L});
+ public static final BitSet FOLLOW_RIGHT_PAREN_in_bound_pattern899 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_LEFT_PAREN_in_field_constriant930 = new BitSet(new long[]{0x0000000000000020L});
+ public static final BitSet FOLLOW_NAME_in_field_constriant934 = new BitSet(new long[]{0x0000000007E20A20L});
+ public static final BitSet FOLLOW_or_restr_connective_in_field_constriant949 = new BitSet(new long[]{0x0000000000000040L});
+ public static final BitSet FOLLOW_RIGHT_PAREN_in_field_constriant959 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_and_restr_connective_in_or_restr_connective998 = new BitSet(new long[]{0x0000000000080002L});
+ public static final BitSet FOLLOW_PIPE_in_or_restr_connective1022 = new BitSet(new long[]{0x0000000007E20A20L});
+ public static final BitSet FOLLOW_and_restr_connective_in_or_restr_connective1032 = new BitSet(new long[]{0x0000000000080002L});
+ public static final BitSet FOLLOW_restriction_in_and_restr_connective1064 = new BitSet(new long[]{0x0000000000100002L});
+ public static final BitSet FOLLOW_AMPERSAND_in_and_restr_connective1072 = new BitSet(new long[]{0x0000000007E20A20L});
+ public static final BitSet FOLLOW_restriction_in_and_restr_connective1074 = new BitSet(new long[]{0x0000000000100002L});
+ public static final BitSet FOLLOW_TILDE_in_restriction1107 = new BitSet(new long[]{0x0000000007C20A20L});
+ public static final BitSet FOLLOW_predicate_constraint_in_restriction1123 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_return_value_restriction_in_restriction1139 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_variable_restriction_in_restriction1148 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_literal_restriction_in_restriction1160 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_COLON_in_predicate_constraint1193 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_lisp_form_in_predicate_constraint1199 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_EQUALS_in_return_value_restriction1218 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_lisp_form_in_return_value_restriction1225 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_VAR_in_variable_restriction1253 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_literal_in_literal_restriction1286 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_LEFT_PAREN_in_lisp_form1314 = new BitSet(new long[]{0x0000000000020020L});
+ public static final BitSet FOLLOW_NAME_in_lisp_form1331 = new BitSet(new long[]{0x0000000007020A70L});
+ public static final BitSet FOLLOW_VAR_in_lisp_form1351 = new BitSet(new long[]{0x0000000007020A70L});
+ public static final BitSet FOLLOW_lisp_atom_in_lisp_form1374 = new BitSet(new long[]{0x0000000007020A70L});
+ public static final BitSet FOLLOW_lisp_form_in_lisp_form1385 = new BitSet(new long[]{0x0000000007020A70L});
+ public static final BitSet FOLLOW_RIGHT_PAREN_in_lisp_form1412 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_VAR_in_lisp_atom1456 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_STRING_in_lisp_atom1468 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_FLOAT_in_lisp_atom1490 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_INT_in_lisp_atom1502 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_BOOL_in_lisp_atom1515 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_NULL_in_lisp_atom1531 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_NAME_in_lisp_atom1557 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_LEFT_PAREN_in_deftemplate1598 = new BitSet(new long[]{0x0000000008000000L});
+ public static final BitSet FOLLOW_DEFTEMPLATE_in_deftemplate1605 = new BitSet(new long[]{0x0000000000000020L});
+ public static final BitSet FOLLOW_NAME_in_deftemplate1609 = new BitSet(new long[]{0x0000000000000200L});
+ public static final BitSet FOLLOW_STRING_in_deftemplate1620 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_LEFT_PAREN_in_deftemplate1634 = new BitSet(new long[]{0x0000000010000000L});
+ public static final BitSet FOLLOW_SLOT_in_deftemplate1646 = new BitSet(new long[]{0x0000000000000020L});
+ public static final BitSet FOLLOW_NAME_in_deftemplate1650 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_LEFT_PAREN_in_deftemplate1660 = new BitSet(new long[]{0x0001000000000000L});
+ public static final BitSet FOLLOW_48_in_deftemplate1676 = new BitSet(new long[]{0x0000000000000020L});
+ public static final BitSet FOLLOW_NAME_in_deftemplate1680 = new BitSet(new long[]{0x0000000000000040L});
+ public static final BitSet FOLLOW_RIGHT_PAREN_in_deftemplate1700 = new BitSet(new long[]{0x0000000000000040L});
+ public static final BitSet FOLLOW_RIGHT_PAREN_in_deftemplate1707 = new BitSet(new long[]{0x0000000000000040L});
+ public static final BitSet FOLLOW_RIGHT_PAREN_in_deftemplate1720 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_STRING_in_literal1756 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_NAME_in_literal1769 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_INT_in_literal1785 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_FLOAT_in_literal1800 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_BOOL_in_literal1813 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_NULL_in_literal1827 = new BitSet(new long[]{0x0000000000000002L});
}
\ No newline at end of file
Modified: labs/jbossrules/trunk/drools-clips/src/main/resources/org/drools/cips/Clips.g
===================================================================
--- labs/jbossrules/trunk/drools-clips/src/main/resources/org/drools/cips/Clips.g 2008-06-24 00:50:01 UTC (rev 20712)
+++ labs/jbossrules/trunk/drools-clips/src/main/resources/org/drools/cips/Clips.g 2008-06-24 01:25:42 UTC (rev 20713)
@@ -292,52 +292,6 @@
;
*/
-deftemplate returns[TypeDeclarationDescr typeDescr]
- :
- loc=LEFT_PAREN
- DEFTEMPLATE deftemplateName=NAME {
- debug( "start rule: " + deftemplateName.getText() );
- String templateStr = deftemplateName.getText();
-
- String mod = null;
- if ( templateStr.indexOf("::") >= 0 ) {
- mod = templateStr.substring(0, templateStr.indexOf("::"));
- templateStr = templateStr.substring(templateStr.indexOf("::")+2);
- }
-
- typeDescr = new TypeDeclarationDescr( templateStr );
- if( mod != null ) {
- typeDescr.setNamespace( mod );
- }
-
- typeDescr.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
- typeDescr.setStartCharacter( ((CommonToken)loc).getStartIndex() );
-
-
- }
- documentation=STRING {
- // do nothing here for now
- }
-
- deftemplate_slot[typeDescr]*
- RIGHT_PAREN
- ;
-
-deftemplate_slot[TypeDeclarationDescr typeDescr]
- @init {
- }
- :
- LEFT_PAREN
-
- SLOT slotName=NAME
- LEFT_PAREN
- TYPE slotType=NAME {
- typeDescr.addField( new TypeFieldDescr(slotName.getText(), new PatternDescr( slotType.getText() ) ) );
- }
- RIGHT_PAREN
- RIGHT_PAREN
- ;
-
deffunction returns[FunctionDescr functionDescr]
@init {
List content = null;
@@ -739,6 +693,49 @@
)
;
+
+deftemplate returns[TypeDeclarationDescr typeDescr]
+ :
+ loc=LEFT_PAREN
+ DEFTEMPLATE deftemplateName=NAME {
+ debug( "start rule: " + deftemplateName.getText() );
+ String templateStr = deftemplateName.getText();
+
+ String mod = null;
+ if ( templateStr.indexOf("::") >= 0 ) {
+ mod = templateStr.substring(0, templateStr.indexOf("::"));
+ templateStr = templateStr.substring(templateStr.indexOf("::")+2);
+ }
+
+ typeDescr = new TypeDeclarationDescr( templateStr );
+ if( mod != null ) {
+ typeDescr.setNamespace( mod );
+ }
+
+ typeDescr.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+ typeDescr.setStartCharacter( ((CommonToken)loc).getStartIndex() );
+
+
+ }
+ documentation=STRING {
+ // do nothing here for now
+ }
+
+ LEFT_PAREN
+
+ SLOT slotName=NAME
+ LEFT_PAREN
+ 'type' slotType=NAME {
+ typeDescr.addField( new TypeFieldDescr(slotName.getText(), new PatternDescr( slotType.getText() ) ) );
+ }
+ RIGHT_PAREN
+ RIGHT_PAREN
+
+// deftemplate_slot[typeDescr]*
+ RIGHT_PAREN
+ ;
+
+
literal returns [String text]
@init {
text = null;
@@ -762,7 +759,7 @@
DEFTEMPLATE : 'deftemplate';
-TYPE : 'qwerty';
+
SLOT : 'slot';
DEFRULE : 'defrule';
DEFFUNCTION : 'deffunction';
@@ -771,7 +768,6 @@
NOT : 'not';
EXISTS : 'exists';
TEST : 'test';
-
NULL : 'null';
DECLARE : 'declare';
More information about the jboss-svn-commits
mailing list