[jboss-svn-commits] JBL Code SVN: r7928 - in labs/jbossrules/trunk/drools-compiler/src: main/java/org/drools/compiler main/java/org/drools/lang main/java/org/drools/lang/descr main/resources/org/drools/lang test/java/org/drools test/java/org/drools/integrationtests test/java/org/drools/lang test/resources/org/drools/lang
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Wed Nov 29 06:49:01 EST 2006
Author: tirelli
Date: 2006-11-29 06:48:37 -0500 (Wed, 29 Nov 2006)
New Revision: 7928
Added:
labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/compiler/SwitchingCommonTokenStream.java
labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/lang/DRLLexer.java
labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/lang/DRLParser.java
labs/jbossrules/trunk/drools-compiler/src/main/resources/org/drools/lang/DRL.g
Removed:
labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/lang/RuleParserLexer.java
Modified:
labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/compiler/DrlParser.java
labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/lang/descr/LiteralRestrictionDescr.java
labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/IndexedNumber.java
labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/integrationtests/IntegrationCases.java
labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/lang/RuleParserTest.java
labs/jbossrules/trunk/drools-compiler/src/test/resources/org/drools/lang/column_partial.drl
labs/jbossrules/trunk/drools-compiler/src/test/resources/org/drools/lang/empty_rule.drl
labs/jbossrules/trunk/drools-compiler/src/test/resources/org/drools/lang/eol_funny_business.drl
labs/jbossrules/trunk/drools-compiler/src/test/resources/org/drools/lang/invalid_syntax.drl
labs/jbossrules/trunk/drools-compiler/src/test/resources/org/drools/lang/restrictions_test.drl
labs/jbossrules/trunk/drools-compiler/src/test/resources/org/drools/lang/rule_names_number_prefix.drl
labs/jbossrules/trunk/drools-compiler/src/test/resources/org/drools/lang/statement_ordering_1.drl
Log:
JBRULES-519: merging grammar into 3.1m1 branch
Modified: labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/compiler/DrlParser.java
===================================================================
--- labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/compiler/DrlParser.java 2006-11-29 11:43:42 UTC (rev 7927)
+++ labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/compiler/DrlParser.java 2006-11-29 11:48:37 UTC (rev 7928)
@@ -25,8 +25,8 @@
import org.antlr.runtime.ANTLRStringStream;
import org.antlr.runtime.CommonTokenStream;
import org.antlr.runtime.RecognitionException;
-import org.drools.lang.RuleParser;
-import org.drools.lang.RuleParserLexer;
+import org.drools.lang.DRLLexer;
+import org.drools.lang.DRLParser;
import org.drools.lang.descr.PackageDescr;
import org.drools.lang.dsl.DefaultExpanderResolver;
@@ -44,13 +44,13 @@
/** Parse a rule from text */
public PackageDescr parse(final String text) throws DroolsParserException {
- final RuleParser parser = getParser( text );
+ final DRLParser parser = getParser( text );
compile( parser );
return parser.getPackageDescr();
}
- private void compile(final RuleParser parser) throws DroolsParserException {
+ private void compile(final DRLParser parser) throws DroolsParserException {
try {
parser.compilation_unit();
@@ -61,7 +61,7 @@
}
/** Convert the antlr exceptions to drools parser exceptions */
- private void makeErrorList(final RuleParser parser) {
+ private void makeErrorList(final DRLParser parser) {
for ( final Iterator iter = parser.getErrors().iterator(); iter.hasNext(); ) {
final RecognitionException recogErr = (RecognitionException) iter.next();
final ParserError err = new ParserError( parser.createErrorMessage( recogErr ),
@@ -74,8 +74,8 @@
/**
* @return An instance of a RuleParser should you need one (most folks will not).
*/
- private RuleParser getParser(final String text) {
- return new RuleParser( new CommonTokenStream( new RuleParserLexer( new ANTLRStringStream( text ) ) ) );
+ private DRLParser getParser(final String text) {
+ return new DRLParser( new SwitchingCommonTokenStream( new DRLLexer( new ANTLRStringStream( text ) ) ) );
}
/** Parse and build a rule package from a DRL source */
@@ -107,7 +107,7 @@
public PackageDescr parse(final String source,
final Reader dsl) throws DroolsParserException {
final DefaultExpanderResolver resolver = new DefaultExpanderResolver( dsl );
- final RuleParser parser = getParser( source );
+ final DRLParser parser = getParser( source );
parser.setExpanderResolver( resolver );
compile( parser );
return parser.getPackageDescr();
Added: labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/compiler/SwitchingCommonTokenStream.java
===================================================================
--- labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/compiler/SwitchingCommonTokenStream.java 2006-11-29 11:43:42 UTC (rev 7927)
+++ labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/compiler/SwitchingCommonTokenStream.java 2006-11-29 11:48:37 UTC (rev 7928)
@@ -0,0 +1,88 @@
+/*
+ * Copyright 2006 JBoss Inc
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.drools.compiler;
+
+import org.antlr.runtime.CommonTokenStream;
+import org.antlr.runtime.Token;
+import org.antlr.runtime.TokenSource;
+
+/**
+ * This is a specialized version of CommonTokenStream that allows
+ * the parser to switch tokens between channels on the fly.
+ *
+ * @author <mailto:tirelli at post.com>Edson Tirelli</mailto>
+ */
+public class SwitchingCommonTokenStream extends CommonTokenStream {
+
+ public SwitchingCommonTokenStream() {
+ super();
+ }
+
+ public SwitchingCommonTokenStream(TokenSource tokenSource) {
+ super(tokenSource);
+ }
+
+ public SwitchingCommonTokenStream(TokenSource tokenSource, int channel) {
+ super(tokenSource, channel);
+ }
+
+
+ /**
+ * @inheritdoc
+ */
+ protected int skipOffTokenChannels(int i) {
+ int n = tokens.size();
+ while ( i<n ) {
+ Token t = ((Token)tokens.get(i));
+ // is there a channel override for token type?
+ if ( channelOverrideMap!=null ) {
+ Integer channelI = (Integer) channelOverrideMap.get(new Integer(t.getType()));
+ if ( channelI!=null ) {
+ t.setChannel(channelI.intValue());
+ }
+ }
+ if( t.getChannel() == channel ) {
+ break;
+ }
+ i++;
+ }
+ return i;
+
+ }
+
+ /**
+ * @inheritdoc
+ */
+ protected int skipOffTokenChannelsReverse(int i) {
+ while ( i>=0 ) {
+ Token t = ((Token)tokens.get(i));
+ // is there a channel override for token type?
+ if ( channelOverrideMap!=null ) {
+ Integer channelI = (Integer) channelOverrideMap.get(new Integer(t.getType()));
+ if ( channelI!=null ) {
+ t.setChannel(channelI.intValue());
+ }
+ }
+ if( t.getChannel() == channel ) {
+ break;
+ }
+ i--;
+ }
+ return i;
+ }
+
+}
Property changes on: labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/compiler/SwitchingCommonTokenStream.java
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:keywords
+ id author date revision
Name: svn:eol-style
+ native
Added: labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/lang/DRLLexer.java
===================================================================
--- labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/lang/DRLLexer.java 2006-11-29 11:43:42 UTC (rev 7927)
+++ labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/lang/DRLLexer.java 2006-11-29 11:48:37 UTC (rev 7928)
@@ -0,0 +1,4057 @@
+// $ANTLR 3.0b5 D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g 2006-11-29 09:26:14
+
+ package org.drools.lang;
+
+
+import org.antlr.runtime.*;
+import java.util.Stack;
+import java.util.List;
+import java.util.ArrayList;
+import java.util.Map;
+import java.util.HashMap;
+public class DRLLexer extends Lexer {
+ public static final int T29=29;
+ public static final int HexDigit=14;
+ public static final int CURLY_CHUNK=5;
+ public static final int T36=36;
+ public static final int T58=58;
+ public static final int T70=70;
+ public static final int FLOAT=10;
+ public static final int T74=74;
+ public static final int T35=35;
+ public static final int NO_CURLY=19;
+ public static final int T61=61;
+ public static final int T45=45;
+ public static final int T34=34;
+ public static final int T64=64;
+ public static final int T25=25;
+ public static final int T37=37;
+ public static final int EscapeSequence=13;
+ public static final int INT=7;
+ public static final int T26=26;
+ public static final int IGNORE=24;
+ public static final int T32=32;
+ public static final int T51=51;
+ public static final int SH_STYLE_SINGLE_LINE_COMMENT=17;
+ public static final int T46=46;
+ public static final int T38=38;
+ public static final int T41=41;
+ public static final int T69=69;
+ public static final int T39=39;
+ public static final int NO_PAREN=22;
+ public static final int ID=4;
+ public static final int T62=62;
+ public static final int T44=44;
+ public static final int T55=55;
+ public static final int LEFT_PAREN=20;
+ public static final int BOOL=8;
+ public static final int T73=73;
+ public static final int T68=68;
+ public static final int T33=33;
+ public static final int T50=50;
+ public static final int WS=12;
+ public static final int STRING=9;
+ public static final int T43=43;
+ public static final int T28=28;
+ public static final int T42=42;
+ public static final int T66=66;
+ public static final int T40=40;
+ public static final int T71=71;
+ public static final int T63=63;
+ public static final int T57=57;
+ public static final int T72=72;
+ public static final int T65=65;
+ public static final int T56=56;
+ public static final int T76=76;
+ public static final int UnicodeEscape=15;
+ public static final int T75=75;
+ public static final int T59=59;
+ public static final int T48=48;
+ public static final int T54=54;
+ public static final int EOF=-1;
+ public static final int T67=67;
+ public static final int T47=47;
+ public static final int RHS=6;
+ public static final int EOL=11;
+ public static final int Tokens=77;
+ public static final int T53=53;
+ public static final int T60=60;
+ public static final int T31=31;
+ public static final int OctalEscape=16;
+ public static final int MULTI_LINE_COMMENT=23;
+ public static final int T49=49;
+ public static final int T27=27;
+ public static final int T52=52;
+ public static final int RIGHT_PAREN=21;
+ public static final int T30=30;
+ public static final int C_STYLE_SINGLE_LINE_COMMENT=18;
+ public DRLLexer() {;}
+ public DRLLexer(CharStream input) {
+ super(input);
+ ruleMemo = new HashMap[75+1];
+ }
+ public String getGrammarFileName() { return "D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g"; }
+
+ // $ANTLR start T25
+ public void mT25() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = T25;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:6:7: ( ';' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:6:7: ';'
+ {
+ match(';'); if (failed) return ;
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end T25
+
+ // $ANTLR start T26
+ public void mT26() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = T26;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:7:7: ( 'package' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:7:7: 'package'
+ {
+ match("package"); if (failed) return ;
+
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end T26
+
+ // $ANTLR start T27
+ public void mT27() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = T27;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:8:7: ( 'import' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:8:7: 'import'
+ {
+ match("import"); if (failed) return ;
+
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end T27
+
+ // $ANTLR start T28
+ public void mT28() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = T28;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:9:7: ( 'function' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:9:7: 'function'
+ {
+ match("function"); if (failed) return ;
+
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end T28
+
+ // $ANTLR start T29
+ public void mT29() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = T29;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:10:7: ( '.' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:10:7: '.'
+ {
+ match('.'); if (failed) return ;
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end T29
+
+ // $ANTLR start T30
+ public void mT30() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = T30;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:11:7: ( '.*' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:11:7: '.*'
+ {
+ match(".*"); if (failed) return ;
+
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end T30
+
+ // $ANTLR start T31
+ public void mT31() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = T31;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:12:7: ( 'global' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:12:7: 'global'
+ {
+ match("global"); if (failed) return ;
+
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end T31
+
+ // $ANTLR start T32
+ public void mT32() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = T32;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:13:7: ( ',' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:13:7: ','
+ {
+ match(','); if (failed) return ;
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end T32
+
+ // $ANTLR start T33
+ public void mT33() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = T33;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:14:7: ( 'query' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:14:7: 'query'
+ {
+ match("query"); if (failed) return ;
+
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end T33
+
+ // $ANTLR start T34
+ public void mT34() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = T34;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:15:7: ( 'end' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:15:7: 'end'
+ {
+ match("end"); if (failed) return ;
+
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end T34
+
+ // $ANTLR start T35
+ public void mT35() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = T35;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:16:7: ( 'template' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:16:7: 'template'
+ {
+ match("template"); if (failed) return ;
+
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end T35
+
+ // $ANTLR start T36
+ public void mT36() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = T36;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:17:7: ( 'rule' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:17:7: 'rule'
+ {
+ match("rule"); if (failed) return ;
+
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end T36
+
+ // $ANTLR start T37
+ public void mT37() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = T37;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:18:7: ( 'when' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:18:7: 'when'
+ {
+ match("when"); if (failed) return ;
+
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end T37
+
+ // $ANTLR start T38
+ public void mT38() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = T38;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:19:7: ( ':' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:19:7: ':'
+ {
+ match(':'); if (failed) return ;
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end T38
+
+ // $ANTLR start T39
+ public void mT39() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = T39;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:20:7: ( 'attributes' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:20:7: 'attributes'
+ {
+ match("attributes"); if (failed) return ;
+
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end T39
+
+ // $ANTLR start T40
+ public void mT40() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = T40;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:21:7: ( 'salience' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:21:7: 'salience'
+ {
+ match("salience"); if (failed) return ;
+
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end T40
+
+ // $ANTLR start T41
+ public void mT41() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = T41;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:22:7: ( 'no-loop' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:22:7: 'no-loop'
+ {
+ match("no-loop"); if (failed) return ;
+
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end T41
+
+ // $ANTLR start T42
+ public void mT42() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = T42;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:23:7: ( 'auto-focus' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:23:7: 'auto-focus'
+ {
+ match("auto-focus"); if (failed) return ;
+
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end T42
+
+ // $ANTLR start T43
+ public void mT43() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = T43;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:24:7: ( 'activation-group' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:24:7: 'activation-group'
+ {
+ match("activation-group"); if (failed) return ;
+
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end T43
+
+ // $ANTLR start T44
+ public void mT44() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = T44;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:25:7: ( 'agenda-group' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:25:7: 'agenda-group'
+ {
+ match("agenda-group"); if (failed) return ;
+
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end T44
+
+ // $ANTLR start T45
+ public void mT45() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = T45;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:26:7: ( 'duration' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:26:7: 'duration'
+ {
+ match("duration"); if (failed) return ;
+
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end T45
+
+ // $ANTLR start T46
+ public void mT46() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = T46;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:27:7: ( 'from' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:27:7: 'from'
+ {
+ match("from"); if (failed) return ;
+
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end T46
+
+ // $ANTLR start T47
+ public void mT47() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = T47;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:28:7: ( '[' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:28:7: '['
+ {
+ match('['); if (failed) return ;
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end T47
+
+ // $ANTLR start T48
+ public void mT48() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = T48;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:29:7: ( ']' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:29:7: ']'
+ {
+ match(']'); if (failed) return ;
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end T48
+
+ // $ANTLR start T49
+ public void mT49() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = T49;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:30:7: ( 'accumulate' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:30:7: 'accumulate'
+ {
+ match("accumulate"); if (failed) return ;
+
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end T49
+
+ // $ANTLR start T50
+ public void mT50() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = T50;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:31:7: ( 'init' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:31:7: 'init'
+ {
+ match("init"); if (failed) return ;
+
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end T50
+
+ // $ANTLR start T51
+ public void mT51() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = T51;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:32:7: ( 'action' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:32:7: 'action'
+ {
+ match("action"); if (failed) return ;
+
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end T51
+
+ // $ANTLR start T52
+ public void mT52() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = T52;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:33:7: ( 'result' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:33:7: 'result'
+ {
+ match("result"); if (failed) return ;
+
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end T52
+
+ // $ANTLR start T53
+ public void mT53() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = T53;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:34:7: ( 'collect' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:34:7: 'collect'
+ {
+ match("collect"); if (failed) return ;
+
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end T53
+
+ // $ANTLR start T54
+ public void mT54() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = T54;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:35:7: ( 'null' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:35:7: 'null'
+ {
+ match("null"); if (failed) return ;
+
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end T54
+
+ // $ANTLR start T55
+ public void mT55() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = T55;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:36:7: ( '=>' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:36:7: '=>'
+ {
+ match("=>"); if (failed) return ;
+
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end T55
+
+ // $ANTLR start T56
+ public void mT56() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = T56;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:37:7: ( '}' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:37:7: '}'
+ {
+ match('}'); if (failed) return ;
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end T56
+
+ // $ANTLR start T57
+ public void mT57() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = T57;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:38:7: ( 'or' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:38:7: 'or'
+ {
+ match("or"); if (failed) return ;
+
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end T57
+
+ // $ANTLR start T58
+ public void mT58() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = T58;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:39:7: ( '||' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:39:7: '||'
+ {
+ match("||"); if (failed) return ;
+
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end T58
+
+ // $ANTLR start T59
+ public void mT59() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = T59;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:40:7: ( '&' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:40:7: '&'
+ {
+ match('&'); if (failed) return ;
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end T59
+
+ // $ANTLR start T60
+ public void mT60() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = T60;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:41:7: ( '|' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:41:7: '|'
+ {
+ match('|'); if (failed) return ;
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end T60
+
+ // $ANTLR start T61
+ public void mT61() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = T61;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:42:7: ( '==' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:42:7: '=='
+ {
+ match("=="); if (failed) return ;
+
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end T61
+
+ // $ANTLR start T62
+ public void mT62() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = T62;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:43:7: ( '>' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:43:7: '>'
+ {
+ match('>'); if (failed) return ;
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end T62
+
+ // $ANTLR start T63
+ public void mT63() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = T63;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:44:7: ( '>=' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:44:7: '>='
+ {
+ match(">="); if (failed) return ;
+
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end T63
+
+ // $ANTLR start T64
+ public void mT64() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = T64;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:45:7: ( '<' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:45:7: '<'
+ {
+ match('<'); if (failed) return ;
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end T64
+
+ // $ANTLR start T65
+ public void mT65() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = T65;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:46:7: ( '<=' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:46:7: '<='
+ {
+ match("<="); if (failed) return ;
+
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end T65
+
+ // $ANTLR start T66
+ public void mT66() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = T66;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:47:7: ( '!=' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:47:7: '!='
+ {
+ match("!="); if (failed) return ;
+
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end T66
+
+ // $ANTLR start T67
+ public void mT67() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = T67;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:48:7: ( 'contains' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:48:7: 'contains'
+ {
+ match("contains"); if (failed) return ;
+
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end T67
+
+ // $ANTLR start T68
+ public void mT68() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = T68;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:49:7: ( 'matches' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:49:7: 'matches'
+ {
+ match("matches"); if (failed) return ;
+
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end T68
+
+ // $ANTLR start T69
+ public void mT69() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = T69;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:50:7: ( 'excludes' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:50:7: 'excludes'
+ {
+ match("excludes"); if (failed) return ;
+
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end T69
+
+ // $ANTLR start T70
+ public void mT70() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = T70;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:51:7: ( '->' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:51:7: '->'
+ {
+ match("->"); if (failed) return ;
+
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end T70
+
+ // $ANTLR start T71
+ public void mT71() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = T71;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:52:7: ( 'and' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:52:7: 'and'
+ {
+ match("and"); if (failed) return ;
+
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end T71
+
+ // $ANTLR start T72
+ public void mT72() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = T72;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:53:7: ( '&&' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:53:7: '&&'
+ {
+ match("&&"); if (failed) return ;
+
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end T72
+
+ // $ANTLR start T73
+ public void mT73() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = T73;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:54:7: ( 'exists' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:54:7: 'exists'
+ {
+ match("exists"); if (failed) return ;
+
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end T73
+
+ // $ANTLR start T74
+ public void mT74() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = T74;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:55:7: ( 'not' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:55:7: 'not'
+ {
+ match("not"); if (failed) return ;
+
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end T74
+
+ // $ANTLR start T75
+ public void mT75() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = T75;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:56:7: ( 'eval' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:56:7: 'eval'
+ {
+ match("eval"); if (failed) return ;
+
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end T75
+
+ // $ANTLR start T76
+ public void mT76() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = T76;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:57:7: ( 'use' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:57:7: 'use'
+ {
+ match("use"); if (failed) return ;
+
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end T76
+
+ // $ANTLR start RHS
+ public void mRHS() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = RHS;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1234:6: ( 'then' ( options {greedy=false; } : . )* ('\\n'|'\\r') ( (' '|'\\t'|'\\f'))* 'end' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1234:6: 'then' ( options {greedy=false; } : . )* ('\\n'|'\\r') ( (' '|'\\t'|'\\f'))* 'end'
+ {
+ match("then"); if (failed) return ;
+
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1234:13: ( options {greedy=false; } : . )*
+ loop1:
+ do {
+ int alt1=2;
+ alt1 = dfa1.predict(input);
+ switch (alt1) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1234:39: .
+ {
+ matchAny(); if (failed) return ;
+
+ }
+ break;
+
+ default :
+ break loop1;
+ }
+ } while (true);
+
+ if ( input.LA(1)=='\n'||input.LA(1)=='\r' ) {
+ input.consume();
+ failed=false;
+ }
+ else {
+ if (backtracking>0) {failed=true; return ;}
+ MismatchedSetException mse =
+ new MismatchedSetException(null,input);
+ recover(mse); throw mse;
+ }
+
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1234:55: ( (' '|'\\t'|'\\f'))*
+ loop2:
+ do {
+ int alt2=2;
+ int LA2_0 = input.LA(1);
+ if ( (LA2_0=='\t'||LA2_0=='\f'||LA2_0==' ') ) {
+ alt2=1;
+ }
+
+
+ switch (alt2) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1234:56: (' '|'\\t'|'\\f')
+ {
+ if ( input.LA(1)=='\t'||input.LA(1)=='\f'||input.LA(1)==' ' ) {
+ input.consume();
+ failed=false;
+ }
+ else {
+ if (backtracking>0) {failed=true; return ;}
+ MismatchedSetException mse =
+ new MismatchedSetException(null,input);
+ recover(mse); throw mse;
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop2;
+ }
+ } while (true);
+
+ match("end"); if (failed) return ;
+
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end RHS
+
+ // $ANTLR start WS
+ public void mWS() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = WS;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1237:17: ( ( ' ' | '\\t' | '\\f' | EOL ) )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1237:17: ( ' ' | '\\t' | '\\f' | EOL )
+ {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1237:17: ( ' ' | '\\t' | '\\f' | EOL )
+ int alt3=4;
+ switch ( input.LA(1) ) {
+ case ' ':
+ alt3=1;
+ break;
+ case '\t':
+ alt3=2;
+ break;
+ case '\f':
+ alt3=3;
+ break;
+ case '\n':
+ case '\r':
+ alt3=4;
+ break;
+ default:
+ if (backtracking>0) {failed=true; return ;}
+ NoViableAltException nvae =
+ new NoViableAltException("1237:17: ( ' ' | '\\t' | '\\f' | EOL )", 3, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt3) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1237:19: ' '
+ {
+ match(' '); if (failed) return ;
+
+ }
+ break;
+ case 2 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1238:19: '\\t'
+ {
+ match('\t'); if (failed) return ;
+
+ }
+ break;
+ case 3 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1239:19: '\\f'
+ {
+ match('\f'); if (failed) return ;
+
+ }
+ break;
+ case 4 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1240:19: EOL
+ {
+ mEOL(); if (failed) return ;
+
+ }
+ break;
+
+ }
+
+ if ( backtracking==0 ) {
+ _channel=HIDDEN;
+ }
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end WS
+
+ // $ANTLR start EOL
+ public void mEOL() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1247:6: ( ( ( '\\r\\n' )=> '\\r\\n' | '\\r' | '\\n' ) )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1247:6: ( ( '\\r\\n' )=> '\\r\\n' | '\\r' | '\\n' )
+ {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1247:6: ( ( '\\r\\n' )=> '\\r\\n' | '\\r' | '\\n' )
+ int alt4=3;
+ int LA4_0 = input.LA(1);
+ if ( (LA4_0=='\r') ) {
+ int LA4_1 = input.LA(2);
+ if ( (LA4_1=='\n') ) {
+ alt4=1;
+ }
+ else {
+ alt4=2;}
+ }
+ else if ( (LA4_0=='\n') ) {
+ alt4=3;
+ }
+ else {
+ if (backtracking>0) {failed=true; return ;}
+ NoViableAltException nvae =
+ new NoViableAltException("1247:6: ( ( '\\r\\n' )=> '\\r\\n' | '\\r' | '\\n' )", 4, 0, input);
+
+ throw nvae;
+ }
+ switch (alt4) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1247:14: ( '\\r\\n' )=> '\\r\\n'
+ {
+ match("\r\n"); if (failed) return ;
+
+
+ }
+ break;
+ case 2 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1248:25: '\\r'
+ {
+ match('\r'); if (failed) return ;
+
+ }
+ break;
+ case 3 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1249:25: '\\n'
+ {
+ match('\n'); if (failed) return ;
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end EOL
+
+ // $ANTLR start INT
+ public void mINT() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = INT;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1254:4: ( ( '-' )? ( '0' .. '9' )+ )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1254:4: ( '-' )? ( '0' .. '9' )+
+ {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1254:4: ( '-' )?
+ int alt5=2;
+ int LA5_0 = input.LA(1);
+ if ( (LA5_0=='-') ) {
+ alt5=1;
+ }
+ switch (alt5) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1254:5: '-'
+ {
+ match('-'); if (failed) return ;
+
+ }
+ break;
+
+ }
+
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1254:10: ( '0' .. '9' )+
+ int cnt6=0;
+ loop6:
+ do {
+ int alt6=2;
+ int LA6_0 = input.LA(1);
+ if ( ((LA6_0>='0' && LA6_0<='9')) ) {
+ alt6=1;
+ }
+
+
+ switch (alt6) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1254:11: '0' .. '9'
+ {
+ matchRange('0','9'); if (failed) return ;
+
+ }
+ break;
+
+ default :
+ if ( cnt6 >= 1 ) break loop6;
+ if (backtracking>0) {failed=true; return ;}
+ EarlyExitException eee =
+ new EarlyExitException(6, input);
+ throw eee;
+ }
+ cnt6++;
+ } while (true);
+
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end INT
+
+ // $ANTLR start FLOAT
+ public void mFLOAT() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = FLOAT;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1258:4: ( ( '-' )? ( '0' .. '9' )+ '.' ( '0' .. '9' )+ )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1258:4: ( '-' )? ( '0' .. '9' )+ '.' ( '0' .. '9' )+
+ {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1258:4: ( '-' )?
+ int alt7=2;
+ int LA7_0 = input.LA(1);
+ if ( (LA7_0=='-') ) {
+ alt7=1;
+ }
+ switch (alt7) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1258:5: '-'
+ {
+ match('-'); if (failed) return ;
+
+ }
+ break;
+
+ }
+
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1258:10: ( '0' .. '9' )+
+ int cnt8=0;
+ loop8:
+ do {
+ int alt8=2;
+ int LA8_0 = input.LA(1);
+ if ( ((LA8_0>='0' && LA8_0<='9')) ) {
+ alt8=1;
+ }
+
+
+ switch (alt8) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1258:11: '0' .. '9'
+ {
+ matchRange('0','9'); if (failed) return ;
+
+ }
+ break;
+
+ default :
+ if ( cnt8 >= 1 ) break loop8;
+ if (backtracking>0) {failed=true; return ;}
+ EarlyExitException eee =
+ new EarlyExitException(8, input);
+ throw eee;
+ }
+ cnt8++;
+ } while (true);
+
+ match('.'); if (failed) return ;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1258:26: ( '0' .. '9' )+
+ int cnt9=0;
+ loop9:
+ do {
+ int alt9=2;
+ int LA9_0 = input.LA(1);
+ if ( ((LA9_0>='0' && LA9_0<='9')) ) {
+ alt9=1;
+ }
+
+
+ switch (alt9) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1258:27: '0' .. '9'
+ {
+ matchRange('0','9'); if (failed) return ;
+
+ }
+ break;
+
+ default :
+ if ( cnt9 >= 1 ) break loop9;
+ if (backtracking>0) {failed=true; return ;}
+ EarlyExitException eee =
+ new EarlyExitException(9, input);
+ throw eee;
+ }
+ cnt9++;
+ } while (true);
+
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end FLOAT
+
+ // $ANTLR start STRING
+ public void mSTRING() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = STRING;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1262:8: ( ( '\"' ( EscapeSequence | ~ ('\\\\'|'\"'))* '\"' ) | ( '\\'' ( EscapeSequence | ~ ('\\\\'|'\\''))* '\\'' ) )
+ int alt12=2;
+ int LA12_0 = input.LA(1);
+ if ( (LA12_0=='\"') ) {
+ alt12=1;
+ }
+ else if ( (LA12_0=='\'') ) {
+ alt12=2;
+ }
+ else {
+ if (backtracking>0) {failed=true; return ;}
+ NoViableAltException nvae =
+ new NoViableAltException("1261:1: STRING : ( ( '\"' ( EscapeSequence | ~ ('\\\\'|'\"'))* '\"' ) | ( '\\'' ( EscapeSequence | ~ ('\\\\'|'\\''))* '\\'' ) );", 12, 0, input);
+
+ throw nvae;
+ }
+ switch (alt12) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1262:8: ( '\"' ( EscapeSequence | ~ ('\\\\'|'\"'))* '\"' )
+ {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1262:8: ( '\"' ( EscapeSequence | ~ ('\\\\'|'\"'))* '\"' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1262:9: '\"' ( EscapeSequence | ~ ('\\\\'|'\"'))* '\"'
+ {
+ match('\"'); if (failed) return ;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1262:13: ( EscapeSequence | ~ ('\\\\'|'\"'))*
+ loop10:
+ do {
+ int alt10=3;
+ int LA10_0 = input.LA(1);
+ if ( (LA10_0=='\\') ) {
+ alt10=1;
+ }
+ else if ( ((LA10_0>='\u0000' && LA10_0<='!')||(LA10_0>='#' && LA10_0<='[')||(LA10_0>=']' && LA10_0<='\uFFFE')) ) {
+ alt10=2;
+ }
+
+
+ switch (alt10) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1262:15: EscapeSequence
+ {
+ mEscapeSequence(); if (failed) return ;
+
+ }
+ break;
+ case 2 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1262:32: ~ ('\\\\'|'\"')
+ {
+ if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFE') ) {
+ input.consume();
+ failed=false;
+ }
+ else {
+ if (backtracking>0) {failed=true; return ;}
+ MismatchedSetException mse =
+ new MismatchedSetException(null,input);
+ recover(mse); throw mse;
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop10;
+ }
+ } while (true);
+
+ match('\"'); if (failed) return ;
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1263:8: ( '\\'' ( EscapeSequence | ~ ('\\\\'|'\\''))* '\\'' )
+ {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1263:8: ( '\\'' ( EscapeSequence | ~ ('\\\\'|'\\''))* '\\'' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1263:9: '\\'' ( EscapeSequence | ~ ('\\\\'|'\\''))* '\\''
+ {
+ match('\''); if (failed) return ;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1263:14: ( EscapeSequence | ~ ('\\\\'|'\\''))*
+ loop11:
+ do {
+ int alt11=3;
+ int LA11_0 = input.LA(1);
+ if ( (LA11_0=='\\') ) {
+ alt11=1;
+ }
+ else if ( ((LA11_0>='\u0000' && LA11_0<='&')||(LA11_0>='(' && LA11_0<='[')||(LA11_0>=']' && LA11_0<='\uFFFE')) ) {
+ alt11=2;
+ }
+
+
+ switch (alt11) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1263:16: EscapeSequence
+ {
+ mEscapeSequence(); if (failed) return ;
+
+ }
+ break;
+ case 2 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1263:33: ~ ('\\\\'|'\\'')
+ {
+ if ( (input.LA(1)>='\u0000' && input.LA(1)<='&')||(input.LA(1)>='(' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFE') ) {
+ input.consume();
+ failed=false;
+ }
+ else {
+ if (backtracking>0) {failed=true; return ;}
+ MismatchedSetException mse =
+ new MismatchedSetException(null,input);
+ recover(mse); throw mse;
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop11;
+ }
+ } while (true);
+
+ match('\''); if (failed) return ;
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end STRING
+
+ // $ANTLR start HexDigit
+ public void mHexDigit() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1267:12: ( ('0'..'9'|'a'..'f'|'A'..'F'))
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1267:12: ('0'..'9'|'a'..'f'|'A'..'F')
+ {
+ 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();
+ failed=false;
+ }
+ else {
+ if (backtracking>0) {failed=true; return ;}
+ MismatchedSetException mse =
+ new MismatchedSetException(null,input);
+ recover(mse); throw mse;
+ }
+
+
+ }
+
+ }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end HexDigit
+
+ // $ANTLR start EscapeSequence
+ public void mEscapeSequence() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1271:9: ( '\\\\' ('b'|'t'|'n'|'f'|'r'|'\\\"'|'\\''|'\\\\') | UnicodeEscape | OctalEscape )
+ int alt13=3;
+ int LA13_0 = input.LA(1);
+ if ( (LA13_0=='\\') ) {
+ switch ( input.LA(2) ) {
+ case 'u':
+ alt13=2;
+ break;
+ case '\"':
+ case '\'':
+ case '\\':
+ case 'b':
+ case 'f':
+ case 'n':
+ case 'r':
+ case 't':
+ alt13=1;
+ break;
+ case '0':
+ case '1':
+ case '2':
+ case '3':
+ case '4':
+ case '5':
+ case '6':
+ case '7':
+ alt13=3;
+ break;
+ default:
+ if (backtracking>0) {failed=true; return ;}
+ NoViableAltException nvae =
+ new NoViableAltException("1269:1: fragment EscapeSequence : ( '\\\\' ('b'|'t'|'n'|'f'|'r'|'\\\"'|'\\''|'\\\\') | UnicodeEscape | OctalEscape );", 13, 1, input);
+
+ throw nvae;
+ }
+
+ }
+ else {
+ if (backtracking>0) {failed=true; return ;}
+ NoViableAltException nvae =
+ new NoViableAltException("1269:1: fragment EscapeSequence : ( '\\\\' ('b'|'t'|'n'|'f'|'r'|'\\\"'|'\\''|'\\\\') | UnicodeEscape | OctalEscape );", 13, 0, input);
+
+ throw nvae;
+ }
+ switch (alt13) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1271:9: '\\\\' ('b'|'t'|'n'|'f'|'r'|'\\\"'|'\\''|'\\\\')
+ {
+ 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' ) {
+ input.consume();
+ failed=false;
+ }
+ else {
+ if (backtracking>0) {failed=true; return ;}
+ MismatchedSetException mse =
+ new MismatchedSetException(null,input);
+ recover(mse); throw mse;
+ }
+
+
+ }
+ break;
+ case 2 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1272:9: UnicodeEscape
+ {
+ mUnicodeEscape(); if (failed) return ;
+
+ }
+ break;
+ case 3 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1273:9: OctalEscape
+ {
+ mOctalEscape(); if (failed) return ;
+
+ }
+ break;
+
+ }
+ }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end EscapeSequence
+
+ // $ANTLR start OctalEscape
+ public void mOctalEscape() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1278:9: ( '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) )
+ int alt14=3;
+ int LA14_0 = input.LA(1);
+ if ( (LA14_0=='\\') ) {
+ int LA14_1 = input.LA(2);
+ if ( ((LA14_1>='0' && LA14_1<='3')) ) {
+ int LA14_2 = input.LA(3);
+ if ( ((LA14_2>='0' && LA14_2<='7')) ) {
+ int LA14_4 = input.LA(4);
+ if ( ((LA14_4>='0' && LA14_4<='7')) ) {
+ alt14=1;
+ }
+ else {
+ alt14=2;}
+ }
+ else {
+ alt14=3;}
+ }
+ else if ( ((LA14_1>='4' && LA14_1<='7')) ) {
+ int LA14_3 = input.LA(3);
+ if ( ((LA14_3>='0' && LA14_3<='7')) ) {
+ alt14=2;
+ }
+ else {
+ alt14=3;}
+ }
+ else {
+ if (backtracking>0) {failed=true; return ;}
+ NoViableAltException nvae =
+ new NoViableAltException("1276:1: fragment OctalEscape : ( '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) );", 14, 1, input);
+
+ throw nvae;
+ }
+ }
+ else {
+ if (backtracking>0) {failed=true; return ;}
+ NoViableAltException nvae =
+ new NoViableAltException("1276:1: fragment OctalEscape : ( '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) );", 14, 0, input);
+
+ throw nvae;
+ }
+ switch (alt14) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1278:9: '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' )
+ {
+ match('\\'); if (failed) return ;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1278:14: ( '0' .. '3' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1278:15: '0' .. '3'
+ {
+ matchRange('0','3'); if (failed) return ;
+
+ }
+
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1278:25: ( '0' .. '7' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1278:26: '0' .. '7'
+ {
+ matchRange('0','7'); if (failed) return ;
+
+ }
+
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1278:36: ( '0' .. '7' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1278:37: '0' .. '7'
+ {
+ matchRange('0','7'); if (failed) return ;
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1279:9: '\\\\' ( '0' .. '7' ) ( '0' .. '7' )
+ {
+ match('\\'); if (failed) return ;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1279:14: ( '0' .. '7' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1279:15: '0' .. '7'
+ {
+ matchRange('0','7'); if (failed) return ;
+
+ }
+
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1279:25: ( '0' .. '7' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1279:26: '0' .. '7'
+ {
+ matchRange('0','7'); if (failed) return ;
+
+ }
+
+
+ }
+ break;
+ case 3 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1280:9: '\\\\' ( '0' .. '7' )
+ {
+ match('\\'); if (failed) return ;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1280:14: ( '0' .. '7' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1280:15: '0' .. '7'
+ {
+ matchRange('0','7'); if (failed) return ;
+
+ }
+
+
+ }
+ break;
+
+ }
+ }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end OctalEscape
+
+ // $ANTLR start UnicodeEscape
+ public void mUnicodeEscape() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1285:9: ( '\\\\' 'u' HexDigit HexDigit HexDigit HexDigit )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1285:9: '\\\\' 'u' HexDigit HexDigit HexDigit HexDigit
+ {
+ match('\\'); if (failed) return ;
+ match('u'); if (failed) return ;
+ mHexDigit(); if (failed) return ;
+ mHexDigit(); if (failed) return ;
+ mHexDigit(); if (failed) return ;
+ mHexDigit(); if (failed) return ;
+
+ }
+
+ }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end UnicodeEscape
+
+ // $ANTLR start BOOL
+ public void mBOOL() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = BOOL;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1289:4: ( ( 'true' | 'false' ) )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1289:4: ( 'true' | 'false' )
+ {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1289:4: ( 'true' | 'false' )
+ int alt15=2;
+ int LA15_0 = input.LA(1);
+ if ( (LA15_0=='t') ) {
+ alt15=1;
+ }
+ else if ( (LA15_0=='f') ) {
+ alt15=2;
+ }
+ else {
+ if (backtracking>0) {failed=true; return ;}
+ NoViableAltException nvae =
+ new NoViableAltException("1289:4: ( 'true' | 'false' )", 15, 0, input);
+
+ throw nvae;
+ }
+ switch (alt15) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1289:5: 'true'
+ {
+ match("true"); if (failed) return ;
+
+
+ }
+ break;
+ case 2 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1289:12: 'false'
+ {
+ match("false"); if (failed) return ;
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end BOOL
+
+ // $ANTLR start ID
+ public void mID() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = ID;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1293:4: ( ('a'..'z'|'A'..'Z'|'_'|'$'|'\\u00c0'..'\\u00ff') ( ('a'..'z'|'A'..'Z'|'_'|'0'..'9'|'\\u00c0'..'\\u00ff'))* )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1293:4: ('a'..'z'|'A'..'Z'|'_'|'$'|'\\u00c0'..'\\u00ff') ( ('a'..'z'|'A'..'Z'|'_'|'0'..'9'|'\\u00c0'..'\\u00ff'))*
+ {
+ if ( input.LA(1)=='$'||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z')||(input.LA(1)>='\u00C0' && input.LA(1)<='\u00FF') ) {
+ input.consume();
+ failed=false;
+ }
+ else {
+ if (backtracking>0) {failed=true; return ;}
+ MismatchedSetException mse =
+ new MismatchedSetException(null,input);
+ recover(mse); throw mse;
+ }
+
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1293:52: ( ('a'..'z'|'A'..'Z'|'_'|'0'..'9'|'\\u00c0'..'\\u00ff'))*
+ loop16:
+ do {
+ int alt16=2;
+ int LA16_0 = input.LA(1);
+ if ( ((LA16_0>='0' && LA16_0<='9')||(LA16_0>='A' && LA16_0<='Z')||LA16_0=='_'||(LA16_0>='a' && LA16_0<='z')||(LA16_0>='\u00C0' && LA16_0<='\u00FF')) ) {
+ alt16=1;
+ }
+
+
+ switch (alt16) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1293:53: ('a'..'z'|'A'..'Z'|'_'|'0'..'9'|'\\u00c0'..'\\u00ff')
+ {
+ if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z')||(input.LA(1)>='\u00C0' && input.LA(1)<='\u00FF') ) {
+ input.consume();
+ failed=false;
+ }
+ else {
+ if (backtracking>0) {failed=true; return ;}
+ MismatchedSetException mse =
+ new MismatchedSetException(null,input);
+ recover(mse); throw mse;
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop16;
+ }
+ } while (true);
+
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end ID
+
+ // $ANTLR start SH_STYLE_SINGLE_LINE_COMMENT
+ public void mSH_STYLE_SINGLE_LINE_COMMENT() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = SH_STYLE_SINGLE_LINE_COMMENT;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1298:4: ( '#' ( options {greedy=false; } : . )* EOL )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1298:4: '#' ( options {greedy=false; } : . )* EOL
+ {
+ match('#'); if (failed) return ;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1298:8: ( options {greedy=false; } : . )*
+ loop17:
+ do {
+ int alt17=2;
+ int LA17_0 = input.LA(1);
+ if ( (LA17_0=='\r') ) {
+ alt17=2;
+ }
+ else if ( (LA17_0=='\n') ) {
+ alt17=2;
+ }
+ else if ( ((LA17_0>='\u0000' && LA17_0<='\t')||(LA17_0>='\u000B' && LA17_0<='\f')||(LA17_0>='\u000E' && LA17_0<='\uFFFE')) ) {
+ alt17=1;
+ }
+
+
+ switch (alt17) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1298:35: .
+ {
+ matchAny(); if (failed) return ;
+
+ }
+ break;
+
+ default :
+ break loop17;
+ }
+ } while (true);
+
+ mEOL(); if (failed) return ;
+ if ( backtracking==0 ) {
+ _channel=HIDDEN;
+ }
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end SH_STYLE_SINGLE_LINE_COMMENT
+
+ // $ANTLR start C_STYLE_SINGLE_LINE_COMMENT
+ public void mC_STYLE_SINGLE_LINE_COMMENT() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = C_STYLE_SINGLE_LINE_COMMENT;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1304:4: ( '//' ( options {greedy=false; } : . )* EOL )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1304:4: '//' ( options {greedy=false; } : . )* EOL
+ {
+ match("//"); if (failed) return ;
+
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1304:9: ( options {greedy=false; } : . )*
+ loop18:
+ do {
+ int alt18=2;
+ int LA18_0 = input.LA(1);
+ if ( (LA18_0=='\r') ) {
+ alt18=2;
+ }
+ else if ( (LA18_0=='\n') ) {
+ alt18=2;
+ }
+ else if ( ((LA18_0>='\u0000' && LA18_0<='\t')||(LA18_0>='\u000B' && LA18_0<='\f')||(LA18_0>='\u000E' && LA18_0<='\uFFFE')) ) {
+ alt18=1;
+ }
+
+
+ switch (alt18) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1304:36: .
+ {
+ matchAny(); if (failed) return ;
+
+ }
+ break;
+
+ default :
+ break loop18;
+ }
+ } while (true);
+
+ mEOL(); if (failed) return ;
+ if ( backtracking==0 ) {
+ _channel=HIDDEN;
+ }
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end C_STYLE_SINGLE_LINE_COMMENT
+
+ // $ANTLR start CURLY_CHUNK
+ public void mCURLY_CHUNK() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = CURLY_CHUNK;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1311:2: ( '{' ( CURLY_CHUNK | NO_CURLY )* '}' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1311:2: '{' ( CURLY_CHUNK | NO_CURLY )* '}'
+ {
+ match('{'); if (failed) return ;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1311:6: ( CURLY_CHUNK | NO_CURLY )*
+ loop19:
+ do {
+ int alt19=3;
+ int LA19_0 = input.LA(1);
+ if ( (LA19_0=='{') ) {
+ alt19=1;
+ }
+ else if ( ((LA19_0>='\u0000' && LA19_0<='z')||LA19_0=='|'||(LA19_0>='~' && LA19_0<='\uFFFE')) ) {
+ alt19=2;
+ }
+
+
+ switch (alt19) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1311:8: CURLY_CHUNK
+ {
+ mCURLY_CHUNK(); if (failed) return ;
+
+ }
+ break;
+ case 2 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1311:22: NO_CURLY
+ {
+ mNO_CURLY(); if (failed) return ;
+
+ }
+ break;
+
+ default :
+ break loop19;
+ }
+ } while (true);
+
+ match('}'); if (failed) return ;
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end CURLY_CHUNK
+
+ // $ANTLR start LEFT_PAREN
+ public void mLEFT_PAREN() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = LEFT_PAREN;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1315:11: ( '(' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1315:11: '('
+ {
+ match('('); if (failed) return ;
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end LEFT_PAREN
+
+ // $ANTLR start RIGHT_PAREN
+ public void mRIGHT_PAREN() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = RIGHT_PAREN;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1319:11: ( ')' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1319:11: ')'
+ {
+ match(')'); if (failed) return ;
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end RIGHT_PAREN
+
+ // $ANTLR start NO_PAREN
+ public void mNO_PAREN() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1324:4: (~ ('('|')'))
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1324:4: ~ ('('|')')
+ {
+ if ( (input.LA(1)>='\u0000' && input.LA(1)<='\'')||(input.LA(1)>='*' && input.LA(1)<='\uFFFE') ) {
+ input.consume();
+ failed=false;
+ }
+ else {
+ if (backtracking>0) {failed=true; return ;}
+ MismatchedSetException mse =
+ new MismatchedSetException(null,input);
+ recover(mse); throw mse;
+ }
+
+
+ }
+
+ }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end NO_PAREN
+
+ // $ANTLR start NO_CURLY
+ public void mNO_CURLY() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1329:4: (~ ('{'|'}'))
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1329:4: ~ ('{'|'}')
+ {
+ if ( (input.LA(1)>='\u0000' && input.LA(1)<='z')||input.LA(1)=='|'||(input.LA(1)>='~' && input.LA(1)<='\uFFFE') ) {
+ input.consume();
+ failed=false;
+ }
+ else {
+ if (backtracking>0) {failed=true; return ;}
+ MismatchedSetException mse =
+ new MismatchedSetException(null,input);
+ recover(mse); throw mse;
+ }
+
+
+ }
+
+ }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end NO_CURLY
+
+ // $ANTLR start MULTI_LINE_COMMENT
+ public void mMULTI_LINE_COMMENT() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = MULTI_LINE_COMMENT;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1333:4: ( '/*' ( options {greedy=false; } : . )* '*/' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1333:4: '/*' ( options {greedy=false; } : . )* '*/'
+ {
+ match("/*"); if (failed) return ;
+
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1333:9: ( options {greedy=false; } : . )*
+ loop20:
+ do {
+ int alt20=2;
+ int LA20_0 = input.LA(1);
+ if ( (LA20_0=='*') ) {
+ int LA20_1 = input.LA(2);
+ if ( (LA20_1=='/') ) {
+ alt20=2;
+ }
+ else if ( ((LA20_1>='\u0000' && LA20_1<='.')||(LA20_1>='0' && LA20_1<='\uFFFE')) ) {
+ alt20=1;
+ }
+
+
+ }
+ else if ( ((LA20_0>='\u0000' && LA20_0<=')')||(LA20_0>='+' && LA20_0<='\uFFFE')) ) {
+ alt20=1;
+ }
+
+
+ switch (alt20) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1333:35: .
+ {
+ matchAny(); if (failed) return ;
+
+ }
+ break;
+
+ default :
+ break loop20;
+ }
+ } while (true);
+
+ match("*/"); if (failed) return ;
+
+ if ( backtracking==0 ) {
+ _channel=HIDDEN;
+ }
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end MULTI_LINE_COMMENT
+
+ // $ANTLR start IGNORE
+ public void mIGNORE() throws RecognitionException {
+ try {
+ ruleNestingLevel++;
+ int _type = IGNORE;
+ int _start = getCharIndex();
+ int _line = getLine();
+ int _charPosition = getCharPositionInLine();
+ int _channel = Token.DEFAULT_CHANNEL;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1338:11: ( . )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1338:11: .
+ {
+ matchAny(); if (failed) return ;
+
+ }
+
+
+ if ( backtracking==0 ) {
+
+ if ( token==null && ruleNestingLevel==1 ) {
+ emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
+ }
+
+
+ } }
+ finally {
+ ruleNestingLevel--;
+ }
+ }
+ // $ANTLR end IGNORE
+
+ public void mTokens() throws RecognitionException {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:10: ( T25 | T26 | T27 | T28 | T29 | T30 | T31 | T32 | T33 | T34 | T35 | T36 | T37 | T38 | T39 | T40 | T41 | T42 | T43 | T44 | T45 | T46 | T47 | T48 | T49 | T50 | T51 | T52 | T53 | T54 | T55 | T56 | T57 | T58 | T59 | T60 | T61 | T62 | T63 | T64 | T65 | T66 | T67 | T68 | T69 | T70 | T71 | T72 | T73 | T74 | T75 | T76 | RHS | WS | INT | FLOAT | STRING | BOOL | ID | SH_STYLE_SINGLE_LINE_COMMENT | C_STYLE_SINGLE_LINE_COMMENT | CURLY_CHUNK | LEFT_PAREN | RIGHT_PAREN | MULTI_LINE_COMMENT | IGNORE )
+ int alt21=66;
+ alt21 = dfa21.predict(input);
+ switch (alt21) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:10: T25
+ {
+ mT25(); if (failed) return ;
+
+ }
+ break;
+ case 2 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:14: T26
+ {
+ mT26(); if (failed) return ;
+
+ }
+ break;
+ case 3 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:18: T27
+ {
+ mT27(); if (failed) return ;
+
+ }
+ break;
+ case 4 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:22: T28
+ {
+ mT28(); if (failed) return ;
+
+ }
+ break;
+ case 5 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:26: T29
+ {
+ mT29(); if (failed) return ;
+
+ }
+ break;
+ case 6 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:30: T30
+ {
+ mT30(); if (failed) return ;
+
+ }
+ break;
+ case 7 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:34: T31
+ {
+ mT31(); if (failed) return ;
+
+ }
+ break;
+ case 8 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:38: T32
+ {
+ mT32(); if (failed) return ;
+
+ }
+ break;
+ case 9 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:42: T33
+ {
+ mT33(); if (failed) return ;
+
+ }
+ break;
+ case 10 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:46: T34
+ {
+ mT34(); if (failed) return ;
+
+ }
+ break;
+ case 11 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:50: T35
+ {
+ mT35(); if (failed) return ;
+
+ }
+ break;
+ case 12 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:54: T36
+ {
+ mT36(); if (failed) return ;
+
+ }
+ break;
+ case 13 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:58: T37
+ {
+ mT37(); if (failed) return ;
+
+ }
+ break;
+ case 14 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:62: T38
+ {
+ mT38(); if (failed) return ;
+
+ }
+ break;
+ case 15 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:66: T39
+ {
+ mT39(); if (failed) return ;
+
+ }
+ break;
+ case 16 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:70: T40
+ {
+ mT40(); if (failed) return ;
+
+ }
+ break;
+ case 17 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:74: T41
+ {
+ mT41(); if (failed) return ;
+
+ }
+ break;
+ case 18 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:78: T42
+ {
+ mT42(); if (failed) return ;
+
+ }
+ break;
+ case 19 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:82: T43
+ {
+ mT43(); if (failed) return ;
+
+ }
+ break;
+ case 20 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:86: T44
+ {
+ mT44(); if (failed) return ;
+
+ }
+ break;
+ case 21 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:90: T45
+ {
+ mT45(); if (failed) return ;
+
+ }
+ break;
+ case 22 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:94: T46
+ {
+ mT46(); if (failed) return ;
+
+ }
+ break;
+ case 23 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:98: T47
+ {
+ mT47(); if (failed) return ;
+
+ }
+ break;
+ case 24 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:102: T48
+ {
+ mT48(); if (failed) return ;
+
+ }
+ break;
+ case 25 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:106: T49
+ {
+ mT49(); if (failed) return ;
+
+ }
+ break;
+ case 26 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:110: T50
+ {
+ mT50(); if (failed) return ;
+
+ }
+ break;
+ case 27 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:114: T51
+ {
+ mT51(); if (failed) return ;
+
+ }
+ break;
+ case 28 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:118: T52
+ {
+ mT52(); if (failed) return ;
+
+ }
+ break;
+ case 29 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:122: T53
+ {
+ mT53(); if (failed) return ;
+
+ }
+ break;
+ case 30 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:126: T54
+ {
+ mT54(); if (failed) return ;
+
+ }
+ break;
+ case 31 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:130: T55
+ {
+ mT55(); if (failed) return ;
+
+ }
+ break;
+ case 32 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:134: T56
+ {
+ mT56(); if (failed) return ;
+
+ }
+ break;
+ case 33 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:138: T57
+ {
+ mT57(); if (failed) return ;
+
+ }
+ break;
+ case 34 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:142: T58
+ {
+ mT58(); if (failed) return ;
+
+ }
+ break;
+ case 35 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:146: T59
+ {
+ mT59(); if (failed) return ;
+
+ }
+ break;
+ case 36 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:150: T60
+ {
+ mT60(); if (failed) return ;
+
+ }
+ break;
+ case 37 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:154: T61
+ {
+ mT61(); if (failed) return ;
+
+ }
+ break;
+ case 38 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:158: T62
+ {
+ mT62(); if (failed) return ;
+
+ }
+ break;
+ case 39 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:162: T63
+ {
+ mT63(); if (failed) return ;
+
+ }
+ break;
+ case 40 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:166: T64
+ {
+ mT64(); if (failed) return ;
+
+ }
+ break;
+ case 41 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:170: T65
+ {
+ mT65(); if (failed) return ;
+
+ }
+ break;
+ case 42 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:174: T66
+ {
+ mT66(); if (failed) return ;
+
+ }
+ break;
+ case 43 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:178: T67
+ {
+ mT67(); if (failed) return ;
+
+ }
+ break;
+ case 44 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:182: T68
+ {
+ mT68(); if (failed) return ;
+
+ }
+ break;
+ case 45 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:186: T69
+ {
+ mT69(); if (failed) return ;
+
+ }
+ break;
+ case 46 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:190: T70
+ {
+ mT70(); if (failed) return ;
+
+ }
+ break;
+ case 47 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:194: T71
+ {
+ mT71(); if (failed) return ;
+
+ }
+ break;
+ case 48 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:198: T72
+ {
+ mT72(); if (failed) return ;
+
+ }
+ break;
+ case 49 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:202: T73
+ {
+ mT73(); if (failed) return ;
+
+ }
+ break;
+ case 50 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:206: T74
+ {
+ mT74(); if (failed) return ;
+
+ }
+ break;
+ case 51 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:210: T75
+ {
+ mT75(); if (failed) return ;
+
+ }
+ break;
+ case 52 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:214: T76
+ {
+ mT76(); if (failed) return ;
+
+ }
+ break;
+ case 53 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:218: RHS
+ {
+ mRHS(); if (failed) return ;
+
+ }
+ break;
+ case 54 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:222: WS
+ {
+ mWS(); if (failed) return ;
+
+ }
+ break;
+ case 55 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:225: INT
+ {
+ mINT(); if (failed) return ;
+
+ }
+ break;
+ case 56 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:229: FLOAT
+ {
+ mFLOAT(); if (failed) return ;
+
+ }
+ break;
+ case 57 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:235: STRING
+ {
+ mSTRING(); if (failed) return ;
+
+ }
+ break;
+ case 58 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:242: BOOL
+ {
+ mBOOL(); if (failed) return ;
+
+ }
+ break;
+ case 59 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:247: ID
+ {
+ mID(); if (failed) return ;
+
+ }
+ break;
+ case 60 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:250: SH_STYLE_SINGLE_LINE_COMMENT
+ {
+ mSH_STYLE_SINGLE_LINE_COMMENT(); if (failed) return ;
+
+ }
+ break;
+ case 61 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:279: C_STYLE_SINGLE_LINE_COMMENT
+ {
+ mC_STYLE_SINGLE_LINE_COMMENT(); if (failed) return ;
+
+ }
+ break;
+ case 62 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:307: CURLY_CHUNK
+ {
+ mCURLY_CHUNK(); if (failed) return ;
+
+ }
+ break;
+ case 63 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:319: LEFT_PAREN
+ {
+ mLEFT_PAREN(); if (failed) return ;
+
+ }
+ break;
+ case 64 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:330: RIGHT_PAREN
+ {
+ mRIGHT_PAREN(); if (failed) return ;
+
+ }
+ break;
+ case 65 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:342: MULTI_LINE_COMMENT
+ {
+ mMULTI_LINE_COMMENT(); if (failed) return ;
+
+ }
+ break;
+ case 66 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:361: IGNORE
+ {
+ mIGNORE(); if (failed) return ;
+
+ }
+ break;
+
+ }
+
+ }
+
+
+ protected DFA1 dfa1 = new DFA1(this);
+ protected DFA21 dfa21 = new DFA21(this);
+ public static final String DFA1_eotS =
+ "\7\uffff";
+ public static final String DFA1_eofS =
+ "\7\uffff";
+ public static final String DFA1_minS =
+ "\2\0\1\uffff\3\0\1\uffff";
+ public static final String DFA1_maxS =
+ "\2\ufffe\1\uffff\3\ufffe\1\uffff";
+ public static final String DFA1_acceptS =
+ "\2\uffff\1\1\3\uffff\1\2";
+ public static final String DFA1_specialS =
+ "\7\uffff}>";
+ public static final String[] DFA1_transition = {
+ "\12\2\1\1\2\2\1\1\ufff1\2",
+ "\11\2\1\3\2\2\1\3\23\2\1\3\104\2\1\4\uff99\2",
+ "",
+ "\11\2\1\3\2\2\1\3\23\2\1\3\104\2\1\4\uff99\2",
+ "\156\2\1\5\uff90\2",
+ "\144\2\1\6\uff9a\2",
+ ""
+ };
+
+ class DFA1 extends DFA {
+ public DFA1(BaseRecognizer recognizer) {
+ this.recognizer = recognizer;
+ this.decisionNumber = 1;
+ this.eot = DFA.unpackEncodedString(DFA1_eotS);
+ this.eof = DFA.unpackEncodedString(DFA1_eofS);
+ this.min = DFA.unpackEncodedStringToUnsignedChars(DFA1_minS);
+ this.max = DFA.unpackEncodedStringToUnsignedChars(DFA1_maxS);
+ this.accept = DFA.unpackEncodedString(DFA1_acceptS);
+ this.special = DFA.unpackEncodedString(DFA1_specialS);
+ int numStates = DFA1_transition.length;
+ this.transition = new short[numStates][];
+ for (int i=0; i<numStates; i++) {
+ transition[i] = DFA.unpackEncodedString(DFA1_transition[i]);
+ }
+ }
+ public String getDescription() {
+ return "()* loopback of 1234:13: ( options {greedy=false; } : . )*";
+ }
+ }
+ public static final String DFA21_eotS =
+ "\2\uffff\3\61\1\70\1\61\1\uffff\5\61\1\uffff\4\61\2\uffff\1\61\1"+
+ "\56\1\uffff\1\61\1\127\1\131\1\133\1\135\1\56\1\61\1\56\1\61\5\uffff"+
+ "\1\145\2\56\1\uffff\3\56\4\uffff\1\61\1\uffff\5\61\2\uffff\1\61"+
+ "\1\uffff\12\61\1\uffff\11\61\2\uffff\1\61\3\uffff\1\u008c\11\uffff"+
+ "\1\61\1\uffff\1\145\1\61\12\uffff\10\61\1\u0097\14\61\1\u00a4\3"+
+ "\61\1\uffff\1\u00a8\4\61\1\uffff\1\61\1\u00ae\2\61\1\u00b1\2\61"+
+ "\1\u00b4\2\61\1\uffff\2\61\1\u00b9\1\u00ba\2\61\1\u00be\1\61\1\u00c0"+
+ "\3\61\1\uffff\3\61\1\uffff\1\u00c8\4\61\1\uffff\2\61\1\uffff\1\u00ba"+
+ "\1\61\1\uffff\1\61\1\u00d1\2\61\3\uffff\2\61\1\uffff\1\61\1\uffff"+
+ "\5\61\1\uffff\1\61\1\uffff\5\61\1\u00e1\1\61\1\u00e3\1\uffff\1\61"+
+ "\1\u00e5\1\61\1\u00e7\2\61\1\u00ea\7\61\1\u00f2\1\uffff\1\61\1\uffff"+
+ "\1\61\1\uffff\1\61\2\uffff\1\61\1\uffff\4\61\1\u00fb\1\61\1\u00fd"+
+ "\1\uffff\1\u00fe\1\u00ff\1\u0100\3\61\1\u0104\1\u0105\1\uffff\1"+
+ "\u0106\4\uffff\3\61\3\uffff\1\61\1\u010b\1\u010c\3\uffff";
+ public static final String DFA21_eofS =
+ "\u010d\uffff";
+ public static final String DFA21_minS =
+ "\1\0\1\uffff\1\141\1\155\1\141\1\52\1\154\1\uffff\1\165\1\156\2"+
+ "\145\1\150\1\uffff\1\143\1\141\1\157\1\165\2\uffff\1\157\1\75\1"+
+ "\uffff\1\162\1\174\1\46\3\75\1\141\1\60\1\163\5\uffff\1\56\2\0\1"+
+ "\uffff\1\0\1\52\1\0\4\uffff\1\143\1\uffff\1\160\1\151\1\154\1\156"+
+ "\1\157\2\uffff\1\157\1\uffff\1\145\1\144\1\143\1\141\1\165\1\145"+
+ "\1\155\1\154\1\163\1\145\1\uffff\1\145\1\143\1\144\2\164\1\154\1"+
+ "\55\1\154\1\162\2\uffff\1\154\3\uffff\1\60\11\uffff\1\164\1\uffff"+
+ "\1\56\1\145\12\uffff\1\153\1\157\1\164\1\163\1\143\1\155\1\142\1"+
+ "\162\1\60\1\154\1\163\1\154\1\145\1\156\1\160\1\145\1\165\2\156"+
+ "\1\151\1\165\1\60\1\162\1\157\1\151\1\uffff\1\60\1\154\1\141\1\154"+
+ "\1\164\1\uffff\1\143\1\60\1\141\1\162\1\60\1\145\1\164\1\60\1\141"+
+ "\1\171\1\uffff\1\165\1\164\2\60\1\0\1\154\1\60\1\154\1\60\1\144"+
+ "\1\157\1\155\1\uffff\1\151\1\55\1\145\1\uffff\1\60\1\164\1\145\1"+
+ "\141\1\150\1\uffff\1\147\1\164\1\uffff\1\60\1\151\1\uffff\1\154"+
+ "\1\60\1\144\1\163\3\uffff\1\0\1\141\1\uffff\1\164\1\uffff\2\141"+
+ "\1\156\1\165\1\142\1\uffff\1\156\1\uffff\1\151\1\143\1\151\2\145"+
+ "\1\60\1\157\1\60\1\uffff\1\145\1\60\1\164\1\60\1\55\1\164\1\60\1"+
+ "\154\1\165\1\143\1\157\1\164\1\156\1\163\1\60\1\uffff\1\156\1\uffff"+
+ "\1\163\1\uffff\1\145\2\uffff\1\151\1\uffff\1\141\1\164\1\145\1\156"+
+ "\1\60\1\163\1\60\1\uffff\3\60\1\157\1\164\1\145\2\60\1\uffff\1\60"+
+ "\4\uffff\1\156\1\145\1\163\3\uffff\1\55\2\60\3\uffff";
+ public static final String DFA21_maxS =
+ "\1\ufffe\1\uffff\1\141\1\156\1\165\1\52\1\154\1\uffff\1\165\1\170"+
+ "\1\162\1\165\1\150\1\uffff\1\165\1\141\2\165\2\uffff\1\157\1\76"+
+ "\1\uffff\1\162\1\174\1\46\3\75\1\141\1\76\1\163\5\uffff\1\71\2\ufffe"+
+ "\1\uffff\1\ufffe\1\57\1\ufffe\4\uffff\1\143\1\uffff\1\160\1\151"+
+ "\1\154\1\156\1\157\2\uffff\1\157\1\uffff\1\145\1\144\1\151\1\141"+
+ "\1\165\1\145\1\155\1\154\1\163\1\145\1\uffff\1\145\1\164\1\144\2"+
+ "\164\1\154\1\164\1\154\1\162\2\uffff\1\156\3\uffff\1\u00ff\11\uffff"+
+ "\1\164\1\uffff\1\71\1\145\12\uffff\1\153\1\157\1\164\1\163\1\143"+
+ "\1\155\1\142\1\162\1\u00ff\1\154\1\163\1\154\1\145\1\156\1\160\1"+
+ "\145\1\165\2\156\1\151\1\165\1\u00ff\1\162\1\157\1\151\1\uffff\1"+
+ "\u00ff\1\154\1\141\1\154\1\164\1\uffff\1\143\1\u00ff\1\141\1\162"+
+ "\1\u00ff\1\145\1\164\1\u00ff\1\141\1\171\1\uffff\1\165\1\164\2\u00ff"+
+ "\1\ufffe\1\154\1\u00ff\1\154\1\u00ff\1\144\1\166\1\155\1\uffff\1"+
+ "\151\1\55\1\145\1\uffff\1\u00ff\1\164\1\145\1\141\1\150\1\uffff"+
+ "\1\147\1\164\1\uffff\1\u00ff\1\151\1\uffff\1\154\1\u00ff\1\144\1"+
+ "\163\3\uffff\1\ufffe\1\141\1\uffff\1\164\1\uffff\2\141\1\156\1\165"+
+ "\1\142\1\uffff\1\156\1\uffff\1\151\1\143\1\151\2\145\1\u00ff\1\157"+
+ "\1\u00ff\1\uffff\1\145\1\u00ff\1\164\1\u00ff\1\55\1\164\1\u00ff"+
+ "\1\154\1\165\1\143\1\157\1\164\1\156\1\163\1\u00ff\1\uffff\1\156"+
+ "\1\uffff\1\163\1\uffff\1\145\2\uffff\1\151\1\uffff\1\141\1\164\1"+
+ "\145\1\156\1\u00ff\1\163\1\u00ff\1\uffff\3\u00ff\1\157\1\164\1\145"+
+ "\2\u00ff\1\uffff\1\u00ff\4\uffff\1\156\1\145\1\163\3\uffff\1\55"+
+ "\2\u00ff\3\uffff";
+ public static final String DFA21_acceptS =
+ "\1\uffff\1\1\5\uffff\1\10\5\uffff\1\16\4\uffff\1\27\1\30\2\uffff"+
+ "\1\40\11\uffff\5\66\3\uffff\1\73\3\uffff\1\77\1\100\1\102\1\1\1"+
+ "\uffff\1\73\5\uffff\1\6\1\5\1\uffff\1\10\12\uffff\1\16\11\uffff"+
+ "\1\27\1\30\1\uffff\1\37\1\45\1\40\1\uffff\1\42\1\44\1\60\1\43\1"+
+ "\47\1\46\1\51\1\50\1\52\1\uffff\1\56\2\uffff\1\66\1\70\1\67\1\71"+
+ "\1\74\1\101\1\75\1\76\1\77\1\100\31\uffff\1\21\5\uffff\1\41\12\uffff"+
+ "\1\12\14\uffff\1\57\3\uffff\1\62\5\uffff\1\64\2\uffff\1\32\2\uffff"+
+ "\1\26\4\uffff\1\63\1\72\1\65\2\uffff\1\14\1\uffff\1\15\5\uffff\1"+
+ "\22\1\uffff\1\36\10\uffff\1\11\17\uffff\1\3\1\uffff\1\7\1\uffff"+
+ "\1\61\1\uffff\1\34\1\24\1\uffff\1\33\7\uffff\1\2\10\uffff\1\35\1"+
+ "\uffff\1\54\1\4\1\55\1\13\3\uffff\1\20\1\25\1\53\3\uffff\1\23\1"+
+ "\31\1\17";
+ public static final String DFA21_specialS =
+ "\u010d\uffff}>";
+ public static final String[] DFA21_transition = {
+ "\11\56\1\41\1\44\1\56\1\42\1\43\22\56\1\40\1\34\1\46\1\51\1\50\1"+
+ "\56\1\31\1\47\1\54\1\55\2\56\1\7\1\36\1\5\1\52\12\45\1\15\1\1\1"+
+ "\33\1\25\1\32\2\56\32\50\1\22\1\56\1\23\1\56\1\50\1\56\1\16\1\50"+
+ "\1\24\1\21\1\11\1\4\1\6\1\50\1\3\3\50\1\35\1\20\1\27\1\2\1\10\1"+
+ "\13\1\17\1\12\1\37\1\50\1\14\3\50\1\53\1\30\1\26\102\56\100\50\ufeff"+
+ "\56",
+ "",
+ "\1\60",
+ "\1\62\1\63",
+ "\1\64\20\uffff\1\66\2\uffff\1\65",
+ "\1\67",
+ "\1\71",
+ "",
+ "\1\73",
+ "\1\74\7\uffff\1\76\1\uffff\1\75",
+ "\1\101\2\uffff\1\100\11\uffff\1\77",
+ "\1\103\17\uffff\1\102",
+ "\1\104",
+ "",
+ "\1\107\3\uffff\1\106\6\uffff\1\110\5\uffff\1\111\1\112",
+ "\1\113",
+ "\1\114\5\uffff\1\115",
+ "\1\116",
+ "",
+ "",
+ "\1\121",
+ "\1\123\1\122",
+ "",
+ "\1\125",
+ "\1\126",
+ "\1\130",
+ "\1\132",
+ "\1\134",
+ "\1\136",
+ "\1\137",
+ "\12\141\4\uffff\1\140",
+ "\1\142",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "\1\144\1\uffff\12\141",
+ "\uffff\146",
+ "\uffff\146",
+ "",
+ "\uffff\147",
+ "\1\150\4\uffff\1\151",
+ "\uffff\152",
+ "",
+ "",
+ "",
+ "",
+ "\1\155",
+ "",
+ "\1\156",
+ "\1\157",
+ "\1\160",
+ "\1\161",
+ "\1\162",
+ "",
+ "",
+ "\1\163",
+ "",
+ "\1\164",
+ "\1\165",
+ "\1\166\5\uffff\1\167",
+ "\1\170",
+ "\1\171",
+ "\1\172",
+ "\1\173",
+ "\1\174",
+ "\1\175",
+ "\1\176",
+ "",
+ "\1\177",
+ "\1\u0081\20\uffff\1\u0080",
+ "\1\u0082",
+ "\1\u0083",
+ "\1\u0084",
+ "\1\u0085",
+ "\1\u0086\106\uffff\1\u0087",
+ "\1\u0088",
+ "\1\u0089",
+ "",
+ "",
+ "\1\u008a\1\uffff\1\u008b",
+ "",
+ "",
+ "",
+ "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "\1\u008d",
+ "",
+ "\1\144\1\uffff\12\141",
+ "\1\u008e",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "\1\u008f",
+ "\1\u0090",
+ "\1\u0091",
+ "\1\u0092",
+ "\1\u0093",
+ "\1\u0094",
+ "\1\u0095",
+ "\1\u0096",
+ "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
+ "\1\u0098",
+ "\1\u0099",
+ "\1\u009a",
+ "\1\u009b",
+ "\1\u009c",
+ "\1\u009d",
+ "\1\u009e",
+ "\1\u009f",
+ "\1\u00a0",
+ "\1\u00a1",
+ "\1\u00a2",
+ "\1\u00a3",
+ "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
+ "\1\u00a5",
+ "\1\u00a6",
+ "\1\u00a7",
+ "",
+ "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
+ "\1\u00a9",
+ "\1\u00aa",
+ "\1\u00ab",
+ "\1\u00ac",
+ "",
+ "\1\u00ad",
+ "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
+ "\1\u00af",
+ "\1\u00b0",
+ "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
+ "\1\u00b2",
+ "\1\u00b3",
+ "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
+ "\1\u00b5",
+ "\1\u00b6",
+ "",
+ "\1\u00b7",
+ "\1\u00b8",
+ "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
+ "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
+ "\60\u00bb\12\u00bc\7\u00bb\32\u00bc\4\u00bb\1\u00bc\1\u00bb\32\u00bc"+
+ "\105\u00bb\100\u00bc\ufeff\u00bb",
+ "\1\u00bd",
+ "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
+ "\1\u00bf",
+ "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
+ "\1\u00c1",
+ "\1\u00c3\6\uffff\1\u00c2",
+ "\1\u00c4",
+ "",
+ "\1\u00c5",
+ "\1\u00c6",
+ "\1\u00c7",
+ "",
+ "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
+ "\1\u00c9",
+ "\1\u00ca",
+ "\1\u00cb",
+ "\1\u00cc",
+ "",
+ "\1\u00cd",
+ "\1\u00ce",
+ "",
+ "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
+ "\1\u00cf",
+ "",
+ "\1\u00d0",
+ "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
+ "\1\u00d2",
+ "\1\u00d3",
+ "",
+ "",
+ "",
+ "\60\u00bb\12\u00bc\7\u00bb\32\u00bc\4\u00bb\1\u00bc\1\u00bb\32\u00bc"+
+ "\105\u00bb\100\u00bc\ufeff\u00bb",
+ "\1\u00d4",
+ "",
+ "\1\u00d5",
+ "",
+ "\1\u00d6",
+ "\1\u00d7",
+ "\1\u00d8",
+ "\1\u00d9",
+ "\1\u00da",
+ "",
+ "\1\u00db",
+ "",
+ "\1\u00dc",
+ "\1\u00dd",
+ "\1\u00de",
+ "\1\u00df",
+ "\1\u00e0",
+ "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
+ "\1\u00e2",
+ "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
+ "",
+ "\1\u00e4",
+ "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
+ "\1\u00e6",
+ "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
+ "\1\u00e8",
+ "\1\u00e9",
+ "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
+ "\1\u00eb",
+ "\1\u00ec",
+ "\1\u00ed",
+ "\1\u00ee",
+ "\1\u00ef",
+ "\1\u00f0",
+ "\1\u00f1",
+ "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
+ "",
+ "\1\u00f3",
+ "",
+ "\1\u00f4",
+ "",
+ "\1\u00f5",
+ "",
+ "",
+ "\1\u00f6",
+ "",
+ "\1\u00f7",
+ "\1\u00f8",
+ "\1\u00f9",
+ "\1\u00fa",
+ "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
+ "\1\u00fc",
+ "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
+ "",
+ "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
+ "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
+ "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
+ "\1\u0101",
+ "\1\u0102",
+ "\1\u0103",
+ "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
+ "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
+ "",
+ "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
+ "",
+ "",
+ "",
+ "",
+ "\1\u0107",
+ "\1\u0108",
+ "\1\u0109",
+ "",
+ "",
+ "",
+ "\1\u010a",
+ "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
+ "\12\61\7\uffff\32\61\4\uffff\1\61\1\uffff\32\61\105\uffff\100\61",
+ "",
+ "",
+ ""
+ };
+
+ class DFA21 extends DFA {
+ public DFA21(BaseRecognizer recognizer) {
+ this.recognizer = recognizer;
+ this.decisionNumber = 21;
+ this.eot = DFA.unpackEncodedString(DFA21_eotS);
+ this.eof = DFA.unpackEncodedString(DFA21_eofS);
+ this.min = DFA.unpackEncodedStringToUnsignedChars(DFA21_minS);
+ this.max = DFA.unpackEncodedStringToUnsignedChars(DFA21_maxS);
+ this.accept = DFA.unpackEncodedString(DFA21_acceptS);
+ this.special = DFA.unpackEncodedString(DFA21_specialS);
+ int numStates = DFA21_transition.length;
+ this.transition = new short[numStates][];
+ for (int i=0; i<numStates; i++) {
+ transition[i] = DFA.unpackEncodedString(DFA21_transition[i]);
+ }
+ }
+ public String getDescription() {
+ return "1:1: Tokens : ( T25 | T26 | T27 | T28 | T29 | T30 | T31 | T32 | T33 | T34 | T35 | T36 | T37 | T38 | T39 | T40 | T41 | T42 | T43 | T44 | T45 | T46 | T47 | T48 | T49 | T50 | T51 | T52 | T53 | T54 | T55 | T56 | T57 | T58 | T59 | T60 | T61 | T62 | T63 | T64 | T65 | T66 | T67 | T68 | T69 | T70 | T71 | T72 | T73 | T74 | T75 | T76 | RHS | WS | INT | FLOAT | STRING | BOOL | ID | SH_STYLE_SINGLE_LINE_COMMENT | C_STYLE_SINGLE_LINE_COMMENT | CURLY_CHUNK | LEFT_PAREN | RIGHT_PAREN | MULTI_LINE_COMMENT | IGNORE );";
+ }
+ }
+
+
+}
Property changes on: labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/lang/DRLLexer.java
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:keywords
+ id author date revision
Added: labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/lang/DRLParser.java
===================================================================
--- labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/lang/DRLParser.java 2006-11-29 11:43:42 UTC (rev 7927)
+++ labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/lang/DRLParser.java 2006-11-29 11:48:37 UTC (rev 7928)
@@ -0,0 +1,5136 @@
+// $ANTLR 3.0b5 D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g 2006-11-29 09:26:13
+
+ package org.drools.lang;
+ import java.util.List;
+ import java.util.ArrayList;
+ import java.util.Iterator;
+ import java.util.Map;
+ import java.util.HashMap;
+ import java.util.StringTokenizer;
+ import org.drools.lang.descr.*;
+ import org.drools.compiler.SwitchingCommonTokenStream;
+
+
+import org.antlr.runtime.*;
+import java.util.Stack;
+import java.util.List;
+import java.util.ArrayList;
+
+public class DRLParser extends Parser {
+ public static final String[] tokenNames = new String[] {
+ "<invalid>", "<EOR>", "<DOWN>", "<UP>", "ID", "CURLY_CHUNK", "RHS", "INT", "BOOL", "STRING", "FLOAT", "EOL", "WS", "EscapeSequence", "HexDigit", "UnicodeEscape", "OctalEscape", "SH_STYLE_SINGLE_LINE_COMMENT", "C_STYLE_SINGLE_LINE_COMMENT", "NO_CURLY", "LEFT_PAREN", "RIGHT_PAREN", "NO_PAREN", "MULTI_LINE_COMMENT", "IGNORE", "';'", "'package'", "'import'", "'function'", "'.'", "'.*'", "'global'", "','", "'query'", "'end'", "'template'", "'rule'", "'when'", "':'", "'attributes'", "'salience'", "'no-loop'", "'auto-focus'", "'activation-group'", "'agenda-group'", "'duration'", "'from'", "'['", "']'", "'accumulate'", "'init'", "'action'", "'result'", "'collect'", "'null'", "'=>'", "'}'", "'or'", "'||'", "'&'", "'|'", "'=='", "'>'", "'>='", "'<'", "'<='", "'!='", "'contains'", "'matches'", "'excludes'", "'->'", "'and'", "'&&'", "'exists'", "'not'", "'eval'", "'use'"
+ };
+ public static final int LEFT_PAREN=20;
+ public static final int BOOL=8;
+ public static final int HexDigit=14;
+ public static final int CURLY_CHUNK=5;
+ public static final int WS=12;
+ public static final int STRING=9;
+ public static final int FLOAT=10;
+ public static final int NO_CURLY=19;
+ public static final int UnicodeEscape=15;
+ public static final int EscapeSequence=13;
+ public static final int INT=7;
+ public static final int EOF=-1;
+ public static final int IGNORE=24;
+ public static final int RHS=6;
+ public static final int EOL=11;
+ public static final int OctalEscape=16;
+ public static final int SH_STYLE_SINGLE_LINE_COMMENT=17;
+ public static final int MULTI_LINE_COMMENT=23;
+ public static final int RIGHT_PAREN=21;
+ public static final int NO_PAREN=22;
+ public static final int ID=4;
+ public static final int C_STYLE_SINGLE_LINE_COMMENT=18;
+
+ public DRLParser(TokenStream input) {
+ super(input);
+ }
+
+
+ public String[] getTokenNames() { return tokenNames; }
+ public String getGrammarFileName() { return "D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g"; }
+
+
+ private ExpanderResolver expanderResolver;
+ private Expander expander;
+ private boolean expanderDebug = false;
+ private PackageDescr packageDescr;
+ private List errors = new ArrayList();
+ private String source = "unknown";
+ private int lineOffset = 0;
+ private DescrFactory factory = new DescrFactory();
+ private boolean parserDebug = false;
+
+ public void setParserDebug(boolean parserDebug) {
+ this.parserDebug = parserDebug;
+ }
+
+ public void debug(String message) {
+ if ( parserDebug )
+ System.err.println( "drl parser: " + message );
+ }
+
+ public void setSource(String source) {
+ this.source = source;
+ }
+ public DescrFactory getFactory() {
+ return factory;
+ }
+
+ /**
+ * This may be set to enable debuggin of DSLs/expanders.
+ * If set to true, expander stuff will be sent to the Std out.
+ */
+ public void setExpanderDebug(boolean status) {
+ expanderDebug = status;
+ }
+ public String getSource() {
+ return this.source;
+ }
+
+ public PackageDescr getPackageDescr() {
+ return packageDescr;
+ }
+
+ private int offset(int line) {
+ return line + lineOffset;
+ }
+
+ /**
+ * This will set the offset to record when reparsing. Normally is zero of course
+ */
+ public void setLineOffset(int i) {
+ this.lineOffset = i;
+ }
+
+ public void setExpanderResolver(ExpanderResolver expanderResolver) {
+ this.expanderResolver = expanderResolver;
+ }
+
+ public ExpanderResolver getExpanderResolver() {
+ return expanderResolver;
+ }
+
+ /** Expand the LHS */
+ private String runWhenExpander(String text, int line) throws RecognitionException {
+ String expanded = text.trim();
+ if (expanded.startsWith(">")) {
+ expanded = expanded.substring(1); //escape !!
+ } else {
+ try {
+ expanded = expander.expand( "when", text );
+ } catch (Exception e) {
+ this.errors.add(new ExpanderException("Unable to expand: " + text + ". Due to " + e.getMessage(), line));
+ return "";
+ }
+ }
+ if (expanderDebug) {
+ System.out.println("Expanding LHS: " + text + " ----> " + expanded + " --> from line: " + line);
+ }
+ return expanded;
+
+ }
+
+ /** This will apply a list of constraints to an LHS block */
+ private String applyConstraints(List constraints, String block) {
+ //apply the constraints as a comma seperated list inside the previous block
+ //the block will end in something like "foo()" and the constraint patterns will be put in the ()
+ if (constraints == null) {
+ return block;
+ }
+ StringBuffer list = new StringBuffer();
+ for (Iterator iter = constraints.iterator(); iter.hasNext();) {
+ String con = (String) iter.next();
+ list.append("\n\t\t");
+ list.append(con);
+ if (iter.hasNext()) {
+ list.append(",");
+ }
+ }
+ if (block.endsWith("()")) {
+ return block.substring(0, block.length() - 2) + "(" + list.toString() + ")";
+ } else {
+ return block + "(" + list.toString() + ")";
+ }
+ }
+
+ /** Reparse the results of the expansion */
+ private void reparseLhs(String text, AndDescr descrs) throws RecognitionException {
+ CharStream charStream = new ANTLRStringStream( text );
+ DRLLexer lexer = new DRLLexer( charStream );
+ TokenStream tokenStream = new CommonTokenStream( lexer );
+ DRLParser parser = new DRLParser( tokenStream );
+ parser.setLineOffset( descrs.getLine() );
+ parser.normal_lhs_block(descrs);
+
+ if (parser.hasErrors()) {
+ this.errors.addAll(parser.getErrors());
+ }
+ if (expanderDebug) {
+ System.out.println("Reparsing LHS: " + text + " --> successful:" + !parser.hasErrors());
+ }
+
+ }
+
+ /** Expand a line on the RHS */
+ private String runThenExpander(String text, int startLine) {
+ //System.err.println( "expand THEN [" + text + "]" );
+ StringTokenizer lines = new StringTokenizer( text, "\n\r" );
+
+ StringBuffer expanded = new StringBuffer();
+
+ String eol = System.getProperty( "line.separator" );
+
+ while ( lines.hasMoreTokens() ) {
+ startLine++;
+ String line = lines.nextToken();
+ line = line.trim();
+ if ( line.length() > 0 ) {
+ if ( line.startsWith( ">" ) ) {
+ expanded.append( line.substring( 1 ) );
+ expanded.append( eol );
+ } else {
+ try {
+ expanded.append( expander.expand( "then", line ) );
+ expanded.append( eol );
+ } catch (Exception e) {
+ this.errors.add(new ExpanderException("Unable to expand: " + line + ". Due to " + e.getMessage(), startLine));
+ }
+ }
+ }
+ }
+
+ if (expanderDebug) {
+ System.out.println("Expanding RHS: " + text + " ----> " + expanded.toString() + " --> from line starting: " + startLine);
+ }
+
+ return expanded.toString();
+ }
+
+
+
+ private String getString(Token token) {
+ String orig = token.getText();
+ return orig.substring( 1, orig.length() -1 );
+ }
+
+ public void reportError(RecognitionException ex) {
+ // if we've already reported an error and have not matched a token
+ // yet successfully, don't report any errors.
+ if ( errorRecovery ) {
+ return;
+ }
+ errorRecovery = true;
+
+ ex.line = offset(ex.line); //add the offset if there is one
+ errors.add( ex );
+ }
+
+ /** return the raw RecognitionException errors */
+ public List getErrors() {
+ return errors;
+ }
+
+ /** Return a list of pretty strings summarising the errors */
+ public List getErrorMessages() {
+ List messages = new ArrayList();
+ for ( Iterator errorIter = errors.iterator() ; errorIter.hasNext() ; ) {
+ messages.add( createErrorMessage( (RecognitionException) errorIter.next() ) );
+ }
+ return messages;
+ }
+
+ /** return true if any parser errors were accumulated */
+ public boolean hasErrors() {
+ return ! errors.isEmpty();
+ }
+
+ /** This will take a RecognitionException, and create a sensible error message out of it */
+ public String createErrorMessage(RecognitionException e)
+ {
+ StringBuffer message = new StringBuffer();
+ message.append( source + ":"+e.line+":"+e.charPositionInLine+" ");
+ if ( e instanceof MismatchedTokenException ) {
+ MismatchedTokenException mte = (MismatchedTokenException)e;
+ message.append("mismatched token: "+
+ e.token+
+ "; expecting type "+
+ tokenNames[mte.expecting]);
+ }
+ else if ( e instanceof MismatchedTreeNodeException ) {
+ MismatchedTreeNodeException mtne = (MismatchedTreeNodeException)e;
+ message.append("mismatched tree node: "+
+ mtne.foundNode+
+ "; expecting type "+
+ tokenNames[mtne.expecting]);
+ }
+ else if ( e instanceof NoViableAltException ) {
+ NoViableAltException nvae = (NoViableAltException)e;
+ message.append( "Unexpected token '" + e.token.getText() + "'" );
+ /*
+ message.append("decision=<<"+nvae.grammarDecisionDescription+">>"+
+ " state "+nvae.stateNumber+
+ " (decision="+nvae.decisionNumber+
+ ") no viable alt; token="+
+ e.token);
+ */
+ }
+ else if ( e instanceof EarlyExitException ) {
+ EarlyExitException eee = (EarlyExitException)e;
+ message.append("required (...)+ loop (decision="+
+ eee.decisionNumber+
+ ") did not match anything; token="+
+ e.token);
+ }
+ else if ( e instanceof MismatchedSetException ) {
+ MismatchedSetException mse = (MismatchedSetException)e;
+ message.append("mismatched token '"+
+ e.token+
+ "' expecting set "+mse.expecting);
+ }
+ else if ( e instanceof MismatchedNotSetException ) {
+ MismatchedNotSetException mse = (MismatchedNotSetException)e;
+ message.append("mismatched token '"+
+ e.token+
+ "' expecting set "+mse.expecting);
+ }
+ else if ( e instanceof FailedPredicateException ) {
+ FailedPredicateException fpe = (FailedPredicateException)e;
+ message.append("rule "+fpe.ruleName+" failed predicate: {"+
+ fpe.predicateText+"}?");
+ } else if (e instanceof GeneralParseException) {
+ message.append(" " + e.getMessage());
+ }
+ return message.toString();
+ }
+
+ void checkTrailingSemicolon(String text, int line) {
+ if (text.trim().endsWith( ";" ) ) {
+ this.errors.add( new GeneralParseException( "Trailing semi-colon not allowed", offset(line) ) );
+ }
+ }
+
+
+
+
+ // $ANTLR start opt_semicolon
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:281:1: opt_semicolon : ( ';' )? ;
+ public void opt_semicolon() throws RecognitionException {
+ try {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:282:4: ( ( ';' )? )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:282:4: ( ';' )?
+ {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:282:4: ( ';' )?
+ int alt1=2;
+ int LA1_0 = input.LA(1);
+ if ( (LA1_0==25) ) {
+ alt1=1;
+ }
+ switch (alt1) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:282:4: ';'
+ {
+ match(input,25,FOLLOW_25_in_opt_semicolon39);
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end opt_semicolon
+
+
+ // $ANTLR start compilation_unit
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:285:1: compilation_unit : prolog ( statement )* ;
+ public void compilation_unit() throws RecognitionException {
+ try {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:286:4: ( prolog ( statement )* )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:286:4: prolog ( statement )*
+ {
+ pushFollow(FOLLOW_prolog_in_compilation_unit51);
+ prolog();
+ _fsp--;
+
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:287:3: ( statement )*
+ loop2:
+ do {
+ int alt2=2;
+ int LA2_0 = input.LA(1);
+ if ( ((LA2_0>=27 && LA2_0<=28)||LA2_0==31||LA2_0==33||(LA2_0>=35 && LA2_0<=36)) ) {
+ alt2=1;
+ }
+
+
+ switch (alt2) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:287:5: statement
+ {
+ pushFollow(FOLLOW_statement_in_compilation_unit58);
+ statement();
+ _fsp--;
+
+
+ }
+ break;
+
+ default :
+ break loop2;
+ }
+ } while (true);
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end compilation_unit
+
+
+ // $ANTLR start prolog
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:290:1: prolog : (name= package_statement )? ;
+ public void prolog() throws RecognitionException {
+ String name = null;
+
+
+
+ String packageName = "";
+
+ try {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:294:4: ( (name= package_statement )? )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:294:4: (name= package_statement )?
+ {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:294:4: (name= package_statement )?
+ int alt3=2;
+ int LA3_0 = input.LA(1);
+ if ( (LA3_0==26) ) {
+ alt3=1;
+ }
+ switch (alt3) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:294:6: name= package_statement
+ {
+ pushFollow(FOLLOW_package_statement_in_prolog83);
+ name=package_statement();
+ _fsp--;
+
+ packageName = name;
+
+ }
+ break;
+
+ }
+
+
+ this.packageDescr = new PackageDescr( name );
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end prolog
+
+
+ // $ANTLR start statement
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:300:1: statement : ( import_statement | function_import_statement | global | function | t= template | r= rule | q= query ) ;
+ public void statement() throws RecognitionException {
+ FactTemplateDescr t = null;
+
+ RuleDescr r = null;
+
+ QueryDescr q = null;
+
+
+ try {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:302:2: ( ( import_statement | function_import_statement | global | function | t= template | r= rule | q= query ) )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:302:2: ( import_statement | function_import_statement | global | function | t= template | r= rule | q= query )
+ {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:302:2: ( import_statement | function_import_statement | global | function | t= template | r= rule | q= query )
+ int alt4=7;
+ switch ( input.LA(1) ) {
+ case 27:
+ int LA4_1 = input.LA(2);
+ if ( (LA4_1==28) ) {
+ alt4=2;
+ }
+ else if ( (LA4_1==ID) ) {
+ alt4=1;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("302:2: ( import_statement | function_import_statement | global | function | t= template | r= rule | q= query )", 4, 1, input);
+
+ throw nvae;
+ }
+ break;
+ case 31:
+ alt4=3;
+ break;
+ case 28:
+ alt4=4;
+ break;
+ case 35:
+ alt4=5;
+ break;
+ case 36:
+ alt4=6;
+ break;
+ case 33:
+ alt4=7;
+ break;
+ default:
+ NoViableAltException nvae =
+ new NoViableAltException("302:2: ( import_statement | function_import_statement | global | function | t= template | r= rule | q= query )", 4, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt4) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:302:4: import_statement
+ {
+ pushFollow(FOLLOW_import_statement_in_statement107);
+ import_statement();
+ _fsp--;
+
+
+ }
+ break;
+ case 2 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:303:10: function_import_statement
+ {
+ pushFollow(FOLLOW_function_import_statement_in_statement118);
+ function_import_statement();
+ _fsp--;
+
+
+ }
+ break;
+ case 3 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:304:4: global
+ {
+ pushFollow(FOLLOW_global_in_statement123);
+ global();
+ _fsp--;
+
+
+ }
+ break;
+ case 4 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:305:4: function
+ {
+ pushFollow(FOLLOW_function_in_statement128);
+ function();
+ _fsp--;
+
+
+ }
+ break;
+ case 5 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:306:10: t= template
+ {
+ pushFollow(FOLLOW_template_in_statement141);
+ t=template();
+ _fsp--;
+
+ this.packageDescr.addFactTemplate( t );
+
+ }
+ break;
+ case 6 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:307:4: r= rule
+ {
+ pushFollow(FOLLOW_rule_in_statement150);
+ r=rule();
+ _fsp--;
+
+ this.packageDescr.addRule( r );
+
+ }
+ break;
+ case 7 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:308:4: q= query
+ {
+ pushFollow(FOLLOW_query_in_statement160);
+ q=query();
+ _fsp--;
+
+ this.packageDescr.addRule( q );
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end statement
+
+
+ // $ANTLR start package_statement
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:312:1: package_statement returns [String packageName] : 'package' name= dotted_name opt_semicolon ;
+ public String package_statement() throws RecognitionException {
+ String packageName = null;
+
+ String name = null;
+
+
+
+ packageName = null;
+
+ try {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:317:3: ( 'package' name= dotted_name opt_semicolon )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:317:3: 'package' name= dotted_name opt_semicolon
+ {
+ match(input,26,FOLLOW_26_in_package_statement188);
+ pushFollow(FOLLOW_dotted_name_in_package_statement192);
+ name=dotted_name();
+ _fsp--;
+
+ pushFollow(FOLLOW_opt_semicolon_in_package_statement194);
+ opt_semicolon();
+ _fsp--;
+
+
+ packageName = name;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return packageName;
+ }
+ // $ANTLR end package_statement
+
+
+ // $ANTLR start import_statement
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:324:1: import_statement : 'import' name= import_name opt_semicolon ;
+ public void import_statement() throws RecognitionException {
+ String name = null;
+
+
+ try {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:325:4: ( 'import' name= import_name opt_semicolon )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:325:4: 'import' name= import_name opt_semicolon
+ {
+ match(input,27,FOLLOW_27_in_import_statement211);
+ pushFollow(FOLLOW_import_name_in_import_statement215);
+ name=import_name();
+ _fsp--;
+
+ pushFollow(FOLLOW_opt_semicolon_in_import_statement217);
+ opt_semicolon();
+ _fsp--;
+
+
+ if (packageDescr != null)
+ packageDescr.addImport( name );
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end import_statement
+
+
+ // $ANTLR start function_import_statement
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:332:1: function_import_statement : 'import' 'function' name= import_name opt_semicolon ;
+ public void function_import_statement() throws RecognitionException {
+ String name = null;
+
+
+ try {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:333:4: ( 'import' 'function' name= import_name opt_semicolon )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:333:4: 'import' 'function' name= import_name opt_semicolon
+ {
+ match(input,27,FOLLOW_27_in_function_import_statement233);
+ match(input,28,FOLLOW_28_in_function_import_statement235);
+ pushFollow(FOLLOW_import_name_in_function_import_statement239);
+ name=import_name();
+ _fsp--;
+
+ pushFollow(FOLLOW_opt_semicolon_in_function_import_statement241);
+ opt_semicolon();
+ _fsp--;
+
+
+ if (packageDescr != null)
+ packageDescr.addFunctionImport( name );
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end function_import_statement
+
+
+ // $ANTLR start import_name
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:341:1: import_name returns [String name] : id= ID ( '.' id= ID )* (star= '.*' )? ;
+ public String import_name() throws RecognitionException {
+ String name = null;
+
+ Token id=null;
+ Token star=null;
+
+
+ name = null;
+
+ try {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:346:3: (id= ID ( '.' id= ID )* (star= '.*' )? )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:346:3: id= ID ( '.' id= ID )* (star= '.*' )?
+ {
+ id=(Token)input.LT(1);
+ match(input,ID,FOLLOW_ID_in_import_name273);
+ name=id.getText();
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:346:32: ( '.' id= ID )*
+ loop5:
+ do {
+ int alt5=2;
+ int LA5_0 = input.LA(1);
+ if ( (LA5_0==29) ) {
+ alt5=1;
+ }
+
+
+ switch (alt5) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:346:34: '.' id= ID
+ {
+ match(input,29,FOLLOW_29_in_import_name279);
+ id=(Token)input.LT(1);
+ match(input,ID,FOLLOW_ID_in_import_name283);
+ name = name + "." + id.getText();
+
+ }
+ break;
+
+ default :
+ break loop5;
+ }
+ } while (true);
+
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:346:85: (star= '.*' )?
+ int alt6=2;
+ int LA6_0 = input.LA(1);
+ if ( (LA6_0==30) ) {
+ alt6=1;
+ }
+ switch (alt6) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:346:86: star= '.*'
+ {
+ star=(Token)input.LT(1);
+ match(input,30,FOLLOW_30_in_import_name293);
+ name = name + star.getText();
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return name;
+ }
+ // $ANTLR end import_name
+
+
+ // $ANTLR start global
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:350:1: global : 'global' type= dotted_name id= ID opt_semicolon ;
+ public void global() throws RecognitionException {
+ Token id=null;
+ String type = null;
+
+
+
+
+ try {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:354:3: ( 'global' type= dotted_name id= ID opt_semicolon )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:354:3: 'global' type= dotted_name id= ID opt_semicolon
+ {
+ match(input,31,FOLLOW_31_in_global317);
+ pushFollow(FOLLOW_dotted_name_in_global321);
+ type=dotted_name();
+ _fsp--;
+
+ id=(Token)input.LT(1);
+ match(input,ID,FOLLOW_ID_in_global325);
+ pushFollow(FOLLOW_opt_semicolon_in_global327);
+ opt_semicolon();
+ _fsp--;
+
+
+ packageDescr.addGlobal( id.getText(), type );
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end global
+
+
+ // $ANTLR start function
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:361:1: function : loc= 'function' (retType= dotted_name )? name= ID '(' ( (paramType= dotted_name )? paramName= argument ( ',' (paramType= dotted_name )? paramName= argument )* )? ')' body= CURLY_CHUNK ;
+ public void function() throws RecognitionException {
+ Token loc=null;
+ Token name=null;
+ Token body=null;
+ String retType = null;
+
+ String paramType = null;
+
+ String paramName = null;
+
+
+
+ FunctionDescr f = null;
+
+ try {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:366:3: (loc= 'function' (retType= dotted_name )? name= ID '(' ( (paramType= dotted_name )? paramName= argument ( ',' (paramType= dotted_name )? paramName= argument )* )? ')' body= CURLY_CHUNK )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:366:3: loc= 'function' (retType= dotted_name )? name= ID '(' ( (paramType= dotted_name )? paramName= argument ( ',' (paramType= dotted_name )? paramName= argument )* )? ')' body= CURLY_CHUNK
+ {
+ loc=(Token)input.LT(1);
+ match(input,28,FOLLOW_28_in_function354);
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:366:18: (retType= dotted_name )?
+ int alt7=2;
+ int LA7_0 = input.LA(1);
+ if ( (LA7_0==ID) ) {
+ int LA7_1 = input.LA(2);
+ if ( (LA7_1==ID||LA7_1==29||LA7_1==47) ) {
+ alt7=1;
+ }
+ }
+ switch (alt7) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:366:19: retType= dotted_name
+ {
+ pushFollow(FOLLOW_dotted_name_in_function359);
+ retType=dotted_name();
+ _fsp--;
+
+
+ }
+ break;
+
+ }
+
+ name=(Token)input.LT(1);
+ match(input,ID,FOLLOW_ID_in_function365);
+
+ //System.err.println( "function :: " + name.getText() );
+ f = new FunctionDescr( name.getText(), retType );
+ f.setLocation(offset(loc.getLine()), loc.getCharPositionInLine());
+
+ match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_function374);
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:373:4: ( (paramType= dotted_name )? paramName= argument ( ',' (paramType= dotted_name )? paramName= argument )* )?
+ int alt11=2;
+ int LA11_0 = input.LA(1);
+ if ( (LA11_0==ID) ) {
+ alt11=1;
+ }
+ switch (alt11) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:373:6: (paramType= dotted_name )? paramName= argument ( ',' (paramType= dotted_name )? paramName= argument )*
+ {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:373:6: (paramType= dotted_name )?
+ int alt8=2;
+ alt8 = dfa8.predict(input);
+ switch (alt8) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:373:7: paramType= dotted_name
+ {
+ pushFollow(FOLLOW_dotted_name_in_function384);
+ paramType=dotted_name();
+ _fsp--;
+
+
+ }
+ break;
+
+ }
+
+ pushFollow(FOLLOW_argument_in_function390);
+ paramName=argument();
+ _fsp--;
+
+
+ f.addParameter( paramType, paramName );
+
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:377:5: ( ',' (paramType= dotted_name )? paramName= argument )*
+ loop10:
+ do {
+ int alt10=2;
+ int LA10_0 = input.LA(1);
+ if ( (LA10_0==32) ) {
+ alt10=1;
+ }
+
+
+ switch (alt10) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:377:7: ',' (paramType= dotted_name )? paramName= argument
+ {
+ match(input,32,FOLLOW_32_in_function404);
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:377:11: (paramType= dotted_name )?
+ int alt9=2;
+ alt9 = dfa9.predict(input);
+ switch (alt9) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:377:12: paramType= dotted_name
+ {
+ pushFollow(FOLLOW_dotted_name_in_function409);
+ paramType=dotted_name();
+ _fsp--;
+
+
+ }
+ break;
+
+ }
+
+ pushFollow(FOLLOW_argument_in_function415);
+ paramName=argument();
+ _fsp--;
+
+
+ f.addParameter( paramType, paramName );
+
+
+ }
+ break;
+
+ default :
+ break loop10;
+ }
+ } while (true);
+
+
+ }
+ break;
+
+ }
+
+ match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_function439);
+ body=(Token)input.LT(1);
+ match(input,CURLY_CHUNK,FOLLOW_CURLY_CHUNK_in_function445);
+
+ //strip out '{','}'
+ String bodys = body.getText();
+ bodys = bodys.substring(1,bodys.length()-1);
+ f.setText( bodys );
+
+ packageDescr.addFunction( f );
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end function
+
+
+ // $ANTLR start query
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:397:1: query returns [QueryDescr query] : loc= 'query' queryName= word ( normal_lhs_block[lhs] ) 'end' ;
+ public QueryDescr query() throws RecognitionException {
+ QueryDescr query = null;
+
+ Token loc=null;
+ String queryName = null;
+
+
+
+ query = null;
+
+ try {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:402:3: (loc= 'query' queryName= word ( normal_lhs_block[lhs] ) 'end' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:402:3: loc= 'query' queryName= word ( normal_lhs_block[lhs] ) 'end'
+ {
+ loc=(Token)input.LT(1);
+ match(input,33,FOLLOW_33_in_query476);
+ pushFollow(FOLLOW_word_in_query480);
+ queryName=word();
+ _fsp--;
+
+
+ query = new QueryDescr( queryName, null );
+ query.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+ AndDescr lhs = new AndDescr(); query.setLhs( lhs );
+ lhs.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:409:3: ( normal_lhs_block[lhs] )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:411:4: normal_lhs_block[lhs]
+ {
+ pushFollow(FOLLOW_normal_lhs_block_in_query494);
+ normal_lhs_block(lhs);
+ _fsp--;
+
+
+ }
+
+ match(input,34,FOLLOW_34_in_query509);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return query;
+ }
+ // $ANTLR end query
+
+
+ // $ANTLR start template
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:418:1: template returns [FactTemplateDescr template] : loc= 'template' templateName= ID opt_semicolon (slot= template_slot )+ 'end' opt_semicolon ;
+ public FactTemplateDescr template() throws RecognitionException {
+ FactTemplateDescr template = null;
+
+ Token loc=null;
+ Token templateName=null;
+ FieldTemplateDescr slot = null;
+
+
+
+ template = null;
+
+ try {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:423:3: (loc= 'template' templateName= ID opt_semicolon (slot= template_slot )+ 'end' opt_semicolon )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:423:3: loc= 'template' templateName= ID opt_semicolon (slot= template_slot )+ 'end' opt_semicolon
+ {
+ loc=(Token)input.LT(1);
+ match(input,35,FOLLOW_35_in_template535);
+ templateName=(Token)input.LT(1);
+ match(input,ID,FOLLOW_ID_in_template539);
+ pushFollow(FOLLOW_opt_semicolon_in_template541);
+ opt_semicolon();
+ _fsp--;
+
+
+ template = new FactTemplateDescr(templateName.getText());
+ template.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:428:3: (slot= template_slot )+
+ int cnt12=0;
+ loop12:
+ do {
+ int alt12=2;
+ int LA12_0 = input.LA(1);
+ if ( (LA12_0==ID) ) {
+ alt12=1;
+ }
+
+
+ switch (alt12) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:429:4: slot= template_slot
+ {
+ pushFollow(FOLLOW_template_slot_in_template556);
+ slot=template_slot();
+ _fsp--;
+
+
+ template.addFieldTemplate(slot);
+
+
+ }
+ break;
+
+ default :
+ if ( cnt12 >= 1 ) break loop12;
+ EarlyExitException eee =
+ new EarlyExitException(12, input);
+ throw eee;
+ }
+ cnt12++;
+ } while (true);
+
+ match(input,34,FOLLOW_34_in_template571);
+ pushFollow(FOLLOW_opt_semicolon_in_template573);
+ opt_semicolon();
+ _fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return template;
+ }
+ // $ANTLR end template
+
+
+ // $ANTLR start template_slot
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:437:1: template_slot returns [FieldTemplateDescr field] : fieldType= dotted_name name= ID opt_semicolon ;
+ public FieldTemplateDescr template_slot() throws RecognitionException {
+ FieldTemplateDescr field = null;
+
+ Token name=null;
+ String fieldType = null;
+
+
+
+ field = null;
+
+ try {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:443:4: (fieldType= dotted_name name= ID opt_semicolon )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:443:4: fieldType= dotted_name name= ID opt_semicolon
+ {
+ pushFollow(FOLLOW_dotted_name_in_template_slot605);
+ fieldType=dotted_name();
+ _fsp--;
+
+ name=(Token)input.LT(1);
+ match(input,ID,FOLLOW_ID_in_template_slot609);
+ pushFollow(FOLLOW_opt_semicolon_in_template_slot611);
+ opt_semicolon();
+ _fsp--;
+
+
+
+
+ field = new FieldTemplateDescr(name.getText(), fieldType);
+ field.setLocation( offset(name.getLine()), name.getCharPositionInLine() );
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return field;
+ }
+ // $ANTLR end template_slot
+
+
+ // $ANTLR start rule
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:452:1: rule returns [RuleDescr rule] : loc= 'rule' ruleName= word rule_attributes[rule] (loc= 'when' ( ':' )? ( normal_lhs_block[lhs] ) )? rhs= RHS ;
+ public RuleDescr rule() throws RecognitionException {
+ RuleDescr rule = null;
+
+ Token loc=null;
+ Token rhs=null;
+ String ruleName = null;
+
+
+
+ rule = null;
+ String consequence = "";
+
+ try {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:458:3: (loc= 'rule' ruleName= word rule_attributes[rule] (loc= 'when' ( ':' )? ( normal_lhs_block[lhs] ) )? rhs= RHS )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:458:3: loc= 'rule' ruleName= word rule_attributes[rule] (loc= 'when' ( ':' )? ( normal_lhs_block[lhs] ) )? rhs= RHS
+ {
+ loc=(Token)input.LT(1);
+ match(input,36,FOLLOW_36_in_rule642);
+ pushFollow(FOLLOW_word_in_rule646);
+ ruleName=word();
+ _fsp--;
+
+
+ debug( "start rule: " + ruleName );
+ rule = new RuleDescr( ruleName, null );
+ rule.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+
+ pushFollow(FOLLOW_rule_attributes_in_rule655);
+ rule_attributes(rule);
+ _fsp--;
+
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:465:3: (loc= 'when' ( ':' )? ( normal_lhs_block[lhs] ) )?
+ int alt14=2;
+ int LA14_0 = input.LA(1);
+ if ( (LA14_0==37) ) {
+ alt14=1;
+ }
+ switch (alt14) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:465:5: loc= 'when' ( ':' )? ( normal_lhs_block[lhs] )
+ {
+ loc=(Token)input.LT(1);
+ match(input,37,FOLLOW_37_in_rule664);
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:465:16: ( ':' )?
+ int alt13=2;
+ int LA13_0 = input.LA(1);
+ if ( (LA13_0==38) ) {
+ alt13=1;
+ }
+ switch (alt13) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:465:16: ':'
+ {
+ match(input,38,FOLLOW_38_in_rule666);
+
+ }
+ break;
+
+ }
+
+
+ AndDescr lhs = new AndDescr(); rule.setLhs( lhs );
+ lhs.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:470:4: ( normal_lhs_block[lhs] )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:472:5: normal_lhs_block[lhs]
+ {
+ pushFollow(FOLLOW_normal_lhs_block_in_rule684);
+ normal_lhs_block(lhs);
+ _fsp--;
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ rhs=(Token)input.LT(1);
+ match(input,RHS,FOLLOW_RHS_in_rule707);
+
+ consequence = rhs.getText();
+ //strip out "then", "end"
+ consequence = consequence.substring(4,consequence.length()-3);
+
+ if ( expander != null ) {
+ String expanded = runThenExpander( consequence, offset(rhs.getLine()) );
+ rule.setConsequence( expanded );
+ } else {
+ rule.setConsequence( consequence );
+ }
+ rule.setConsequenceLocation(offset(rhs.getLine()), rhs.getCharPositionInLine());
+ debug( "end rule: " + ruleName );
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return rule;
+ }
+ // $ANTLR end rule
+
+
+ // $ANTLR start rule_attributes
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:495:1: rule_attributes[RuleDescr rule] : ( 'attributes' ':' )? ( ( ',' )? a= rule_attribute )* ;
+ public void rule_attributes(RuleDescr rule) throws RecognitionException {
+ AttributeDescr a = null;
+
+
+ try {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:497:4: ( ( 'attributes' ':' )? ( ( ',' )? a= rule_attribute )* )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:497:4: ( 'attributes' ':' )? ( ( ',' )? a= rule_attribute )*
+ {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:497:4: ( 'attributes' ':' )?
+ int alt15=2;
+ int LA15_0 = input.LA(1);
+ if ( (LA15_0==39) ) {
+ alt15=1;
+ }
+ switch (alt15) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:497:5: 'attributes' ':'
+ {
+ match(input,39,FOLLOW_39_in_rule_attributes732);
+ match(input,38,FOLLOW_38_in_rule_attributes734);
+
+ }
+ break;
+
+ }
+
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:498:4: ( ( ',' )? a= rule_attribute )*
+ loop17:
+ do {
+ int alt17=2;
+ int LA17_0 = input.LA(1);
+ if ( (LA17_0==32||(LA17_0>=40 && LA17_0<=45)) ) {
+ alt17=1;
+ }
+
+
+ switch (alt17) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:498:6: ( ',' )? a= rule_attribute
+ {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:498:6: ( ',' )?
+ int alt16=2;
+ int LA16_0 = input.LA(1);
+ if ( (LA16_0==32) ) {
+ alt16=1;
+ }
+ switch (alt16) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:498:6: ','
+ {
+ match(input,32,FOLLOW_32_in_rule_attributes743);
+
+ }
+ break;
+
+ }
+
+ pushFollow(FOLLOW_rule_attribute_in_rule_attributes748);
+ a=rule_attribute();
+ _fsp--;
+
+
+ rule.addAttribute( a );
+
+
+ }
+ break;
+
+ default :
+ break loop17;
+ }
+ } while (true);
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end rule_attributes
+
+
+ // $ANTLR start rule_attribute
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:507:1: rule_attribute returns [AttributeDescr d] : (a= salience | a= no_loop | a= agenda_group | a= duration | a= activation_group | a= auto_focus );
+ public AttributeDescr rule_attribute() throws RecognitionException {
+ AttributeDescr d = null;
+
+ AttributeDescr a = null;
+
+
+
+ d = null;
+
+ try {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:512:4: (a= salience | a= no_loop | a= agenda_group | a= duration | a= activation_group | a= auto_focus )
+ int alt18=6;
+ switch ( input.LA(1) ) {
+ case 40:
+ alt18=1;
+ break;
+ case 41:
+ alt18=2;
+ break;
+ case 44:
+ alt18=3;
+ break;
+ case 45:
+ alt18=4;
+ break;
+ case 43:
+ alt18=5;
+ break;
+ case 42:
+ alt18=6;
+ break;
+ default:
+ NoViableAltException nvae =
+ new NoViableAltException("507:1: rule_attribute returns [AttributeDescr d] : (a= salience | a= no_loop | a= agenda_group | a= duration | a= activation_group | a= auto_focus );", 18, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt18) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:512:4: a= salience
+ {
+ pushFollow(FOLLOW_salience_in_rule_attribute789);
+ a=salience();
+ _fsp--;
+
+ d = a;
+
+ }
+ break;
+ case 2 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:513:5: a= no_loop
+ {
+ pushFollow(FOLLOW_no_loop_in_rule_attribute799);
+ a=no_loop();
+ _fsp--;
+
+ d = a;
+
+ }
+ break;
+ case 3 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:514:5: a= agenda_group
+ {
+ pushFollow(FOLLOW_agenda_group_in_rule_attribute810);
+ a=agenda_group();
+ _fsp--;
+
+ d = a;
+
+ }
+ break;
+ case 4 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:515:5: a= duration
+ {
+ pushFollow(FOLLOW_duration_in_rule_attribute823);
+ a=duration();
+ _fsp--;
+
+ d = a;
+
+ }
+ break;
+ case 5 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:516:5: a= activation_group
+ {
+ pushFollow(FOLLOW_activation_group_in_rule_attribute837);
+ a=activation_group();
+ _fsp--;
+
+ d = a;
+
+ }
+ break;
+ case 6 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:517:5: a= auto_focus
+ {
+ pushFollow(FOLLOW_auto_focus_in_rule_attribute848);
+ a=auto_focus();
+ _fsp--;
+
+ d = a;
+
+ }
+ break;
+
+ }
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return d;
+ }
+ // $ANTLR end rule_attribute
+
+
+ // $ANTLR start salience
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:522:1: salience returns [AttributeDescr d ] : loc= 'salience' i= INT opt_semicolon ;
+ public AttributeDescr salience() throws RecognitionException {
+ AttributeDescr d = null;
+
+ Token loc=null;
+ Token i=null;
+
+
+ d = null;
+
+ try {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:527:3: (loc= 'salience' i= INT opt_semicolon )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:527:3: loc= 'salience' i= INT opt_semicolon
+ {
+ loc=(Token)input.LT(1);
+ match(input,40,FOLLOW_40_in_salience882);
+ i=(Token)input.LT(1);
+ match(input,INT,FOLLOW_INT_in_salience886);
+ pushFollow(FOLLOW_opt_semicolon_in_salience888);
+ opt_semicolon();
+ _fsp--;
+
+
+ d = new AttributeDescr( "salience", i.getText() );
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return d;
+ }
+ // $ANTLR end salience
+
+
+ // $ANTLR start no_loop
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:534:1: no_loop returns [AttributeDescr d] : ( (loc= 'no-loop' opt_semicolon ) | (loc= 'no-loop' t= BOOL opt_semicolon ) );
+ public AttributeDescr no_loop() throws RecognitionException {
+ AttributeDescr d = null;
+
+ Token loc=null;
+ Token t=null;
+
+
+ d = null;
+
+ try {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:539:3: ( (loc= 'no-loop' opt_semicolon ) | (loc= 'no-loop' t= BOOL opt_semicolon ) )
+ int alt19=2;
+ int LA19_0 = input.LA(1);
+ if ( (LA19_0==41) ) {
+ int LA19_1 = input.LA(2);
+ if ( (LA19_1==BOOL) ) {
+ alt19=2;
+ }
+ else if ( (LA19_1==RHS||LA19_1==25||LA19_1==32||LA19_1==37||(LA19_1>=40 && LA19_1<=45)) ) {
+ alt19=1;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("534:1: no_loop returns [AttributeDescr d] : ( (loc= 'no-loop' opt_semicolon ) | (loc= 'no-loop' t= BOOL opt_semicolon ) );", 19, 1, input);
+
+ throw nvae;
+ }
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("534:1: no_loop returns [AttributeDescr d] : ( (loc= 'no-loop' opt_semicolon ) | (loc= 'no-loop' t= BOOL opt_semicolon ) );", 19, 0, input);
+
+ throw nvae;
+ }
+ switch (alt19) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:539:3: (loc= 'no-loop' opt_semicolon )
+ {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:539:3: (loc= 'no-loop' opt_semicolon )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:540:4: loc= 'no-loop' opt_semicolon
+ {
+ loc=(Token)input.LT(1);
+ match(input,41,FOLLOW_41_in_no_loop923);
+ pushFollow(FOLLOW_opt_semicolon_in_no_loop925);
+ opt_semicolon();
+ _fsp--;
+
+
+ d = new AttributeDescr( "no-loop", "true" );
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:547:3: (loc= 'no-loop' t= BOOL opt_semicolon )
+ {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:547:3: (loc= 'no-loop' t= BOOL opt_semicolon )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:548:4: loc= 'no-loop' t= BOOL opt_semicolon
+ {
+ loc=(Token)input.LT(1);
+ match(input,41,FOLLOW_41_in_no_loop950);
+ t=(Token)input.LT(1);
+ match(input,BOOL,FOLLOW_BOOL_in_no_loop954);
+ pushFollow(FOLLOW_opt_semicolon_in_no_loop956);
+ opt_semicolon();
+ _fsp--;
+
+
+ d = new AttributeDescr( "no-loop", t.getText() );
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+
+
+ }
+
+
+ }
+ break;
+
+ }
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return d;
+ }
+ // $ANTLR end no_loop
+
+
+ // $ANTLR start auto_focus
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:558:1: auto_focus returns [AttributeDescr d] : ( (loc= 'auto-focus' opt_semicolon ) | (loc= 'auto-focus' t= BOOL opt_semicolon ) );
+ public AttributeDescr auto_focus() throws RecognitionException {
+ AttributeDescr d = null;
+
+ Token loc=null;
+ Token t=null;
+
+
+ d = null;
+
+ try {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:563:3: ( (loc= 'auto-focus' opt_semicolon ) | (loc= 'auto-focus' t= BOOL opt_semicolon ) )
+ int alt20=2;
+ int LA20_0 = input.LA(1);
+ if ( (LA20_0==42) ) {
+ int LA20_1 = input.LA(2);
+ if ( (LA20_1==BOOL) ) {
+ alt20=2;
+ }
+ else if ( (LA20_1==RHS||LA20_1==25||LA20_1==32||LA20_1==37||(LA20_1>=40 && LA20_1<=45)) ) {
+ alt20=1;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("558:1: auto_focus returns [AttributeDescr d] : ( (loc= 'auto-focus' opt_semicolon ) | (loc= 'auto-focus' t= BOOL opt_semicolon ) );", 20, 1, input);
+
+ throw nvae;
+ }
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("558:1: auto_focus returns [AttributeDescr d] : ( (loc= 'auto-focus' opt_semicolon ) | (loc= 'auto-focus' t= BOOL opt_semicolon ) );", 20, 0, input);
+
+ throw nvae;
+ }
+ switch (alt20) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:563:3: (loc= 'auto-focus' opt_semicolon )
+ {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:563:3: (loc= 'auto-focus' opt_semicolon )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:564:4: loc= 'auto-focus' opt_semicolon
+ {
+ loc=(Token)input.LT(1);
+ match(input,42,FOLLOW_42_in_auto_focus1002);
+ pushFollow(FOLLOW_opt_semicolon_in_auto_focus1004);
+ opt_semicolon();
+ _fsp--;
+
+
+ d = new AttributeDescr( "auto-focus", "true" );
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:571:3: (loc= 'auto-focus' t= BOOL opt_semicolon )
+ {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:571:3: (loc= 'auto-focus' t= BOOL opt_semicolon )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:572:4: loc= 'auto-focus' t= BOOL opt_semicolon
+ {
+ loc=(Token)input.LT(1);
+ match(input,42,FOLLOW_42_in_auto_focus1029);
+ t=(Token)input.LT(1);
+ match(input,BOOL,FOLLOW_BOOL_in_auto_focus1033);
+ pushFollow(FOLLOW_opt_semicolon_in_auto_focus1035);
+ opt_semicolon();
+ _fsp--;
+
+
+ d = new AttributeDescr( "auto-focus", t.getText() );
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+
+
+ }
+
+
+ }
+ break;
+
+ }
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return d;
+ }
+ // $ANTLR end auto_focus
+
+
+ // $ANTLR start activation_group
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:582:1: activation_group returns [AttributeDescr d] : loc= 'activation-group' name= STRING opt_semicolon ;
+ public AttributeDescr activation_group() throws RecognitionException {
+ AttributeDescr d = null;
+
+ Token loc=null;
+ Token name=null;
+
+
+ d = null;
+
+ try {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:587:3: (loc= 'activation-group' name= STRING opt_semicolon )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:587:3: loc= 'activation-group' name= STRING opt_semicolon
+ {
+ loc=(Token)input.LT(1);
+ match(input,43,FOLLOW_43_in_activation_group1077);
+ name=(Token)input.LT(1);
+ match(input,STRING,FOLLOW_STRING_in_activation_group1081);
+ pushFollow(FOLLOW_opt_semicolon_in_activation_group1083);
+ opt_semicolon();
+ _fsp--;
+
+
+ d = new AttributeDescr( "activation-group", getString( name ) );
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return d;
+ }
+ // $ANTLR end activation_group
+
+
+ // $ANTLR start agenda_group
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:594:1: agenda_group returns [AttributeDescr d] : loc= 'agenda-group' name= STRING opt_semicolon ;
+ public AttributeDescr agenda_group() throws RecognitionException {
+ AttributeDescr d = null;
+
+ Token loc=null;
+ Token name=null;
+
+
+ d = null;
+
+ try {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:599:3: (loc= 'agenda-group' name= STRING opt_semicolon )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:599:3: loc= 'agenda-group' name= STRING opt_semicolon
+ {
+ loc=(Token)input.LT(1);
+ match(input,44,FOLLOW_44_in_agenda_group1112);
+ name=(Token)input.LT(1);
+ match(input,STRING,FOLLOW_STRING_in_agenda_group1116);
+ pushFollow(FOLLOW_opt_semicolon_in_agenda_group1118);
+ opt_semicolon();
+ _fsp--;
+
+
+ d = new AttributeDescr( "agenda-group", getString( name ) );
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return d;
+ }
+ // $ANTLR end agenda_group
+
+
+ // $ANTLR start duration
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:607:1: duration returns [AttributeDescr d] : loc= 'duration' i= INT ;
+ public AttributeDescr duration() throws RecognitionException {
+ AttributeDescr d = null;
+
+ Token loc=null;
+ Token i=null;
+
+
+ d = null;
+
+ try {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:612:3: (loc= 'duration' i= INT )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:612:3: loc= 'duration' i= INT
+ {
+ loc=(Token)input.LT(1);
+ match(input,45,FOLLOW_45_in_duration1150);
+ i=(Token)input.LT(1);
+ match(input,INT,FOLLOW_INT_in_duration1154);
+
+ d = new AttributeDescr( "duration", i.getText() );
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return d;
+ }
+ // $ANTLR end duration
+
+
+ // $ANTLR start normal_lhs_block
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:620:1: normal_lhs_block[AndDescr descrs] : (d= lhs )* ;
+ public void normal_lhs_block(AndDescr descrs) throws RecognitionException {
+ BaseDescr d = null;
+
+
+ try {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:622:3: ( (d= lhs )* )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:622:3: (d= lhs )*
+ {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:622:3: (d= lhs )*
+ loop21:
+ do {
+ int alt21=2;
+ int LA21_0 = input.LA(1);
+ if ( (LA21_0==ID||LA21_0==LEFT_PAREN||(LA21_0>=73 && LA21_0<=75)) ) {
+ alt21=1;
+ }
+
+
+ switch (alt21) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:622:5: d= lhs
+ {
+ pushFollow(FOLLOW_lhs_in_normal_lhs_block1180);
+ d=lhs();
+ _fsp--;
+
+ descrs.addDescr( d );
+
+ }
+ break;
+
+ default :
+ break loop21;
+ }
+ } while (true);
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end normal_lhs_block
+
+
+ // $ANTLR start lhs
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:676:1: lhs returns [BaseDescr d] : l= lhs_or ;
+ public BaseDescr lhs() throws RecognitionException {
+ BaseDescr d = null;
+
+ BaseDescr l = null;
+
+
+
+ d=null;
+
+ try {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:680:4: (l= lhs_or )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:680:4: l= lhs_or
+ {
+ pushFollow(FOLLOW_lhs_or_in_lhs1218);
+ l=lhs_or();
+ _fsp--;
+
+ d = l;
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return d;
+ }
+ // $ANTLR end lhs
+
+
+ // $ANTLR start lhs_column
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:684:1: lhs_column returns [BaseDescr d] : (f= fact_binding | f= fact );
+ public BaseDescr lhs_column() throws RecognitionException {
+ BaseDescr d = null;
+
+ BaseDescr f = null;
+
+
+
+ d=null;
+
+ try {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:688:4: (f= fact_binding | f= fact )
+ int alt22=2;
+ int LA22_0 = input.LA(1);
+ if ( (LA22_0==ID) ) {
+ int LA22_1 = input.LA(2);
+ if ( (LA22_1==38) ) {
+ alt22=1;
+ }
+ else if ( (LA22_1==LEFT_PAREN||LA22_1==29||LA22_1==47) ) {
+ alt22=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("684:1: lhs_column returns [BaseDescr d] : (f= fact_binding | f= fact );", 22, 1, input);
+
+ throw nvae;
+ }
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("684:1: lhs_column returns [BaseDescr d] : (f= fact_binding | f= fact );", 22, 0, input);
+
+ throw nvae;
+ }
+ switch (alt22) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:688:4: f= fact_binding
+ {
+ pushFollow(FOLLOW_fact_binding_in_lhs_column1246);
+ f=fact_binding();
+ _fsp--;
+
+ d = f;
+
+ }
+ break;
+ case 2 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:689:4: f= fact
+ {
+ pushFollow(FOLLOW_fact_in_lhs_column1255);
+ f=fact();
+ _fsp--;
+
+ d = f;
+
+ }
+ break;
+
+ }
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return d;
+ }
+ // $ANTLR end lhs_column
+
+
+ // $ANTLR start from_statement
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:692:1: from_statement returns [FromDescr d] : 'from' ds= from_source ;
+ public FromDescr from_statement() throws RecognitionException {
+ FromDescr d = null;
+
+ DeclarativeInvokerDescr ds = null;
+
+
+
+ d=factory.createFrom();
+
+ try {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:697:4: ( 'from' ds= from_source )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:697:4: 'from' ds= from_source
+ {
+ match(input,46,FOLLOW_46_in_from_statement1283);
+ pushFollow(FOLLOW_from_source_in_from_statement1287);
+ ds=from_source();
+ _fsp--;
+
+
+ d.setDataSource(ds);
+
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return d;
+ }
+ // $ANTLR end from_statement
+
+
+ // $ANTLR start from_source
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:707:1: from_source returns [DeclarativeInvokerDescr ds] : ( (var= ID '.' field= ID ( '[' arg= argument_value ']' )? ) | (var= ID '.' method= ID '(' args= argument_list ')' ) | (functionName= ID '(' args= argument_list ')' ) );
+ public DeclarativeInvokerDescr from_source() throws RecognitionException {
+ DeclarativeInvokerDescr ds = null;
+
+ Token var=null;
+ Token field=null;
+ Token method=null;
+ Token functionName=null;
+ ArgumentValueDescr arg = null;
+
+ ArrayList args = null;
+
+
+
+ ds = null;
+
+ try {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:712:3: ( (var= ID '.' field= ID ( '[' arg= argument_value ']' )? ) | (var= ID '.' method= ID '(' args= argument_list ')' ) | (functionName= ID '(' args= argument_list ')' ) )
+ int alt24=3;
+ int LA24_0 = input.LA(1);
+ if ( (LA24_0==ID) ) {
+ int LA24_1 = input.LA(2);
+ if ( (LA24_1==LEFT_PAREN) ) {
+ alt24=3;
+ }
+ else if ( (LA24_1==29) ) {
+ int LA24_3 = input.LA(3);
+ if ( (LA24_3==ID) ) {
+ int LA24_4 = input.LA(4);
+ if ( (LA24_4==LEFT_PAREN) ) {
+ switch ( input.LA(5) ) {
+ case CURLY_CHUNK:
+ case INT:
+ case BOOL:
+ case STRING:
+ case FLOAT:
+ case RIGHT_PAREN:
+ case 47:
+ case 54:
+ alt24=2;
+ break;
+ case ID:
+ int LA24_8 = input.LA(6);
+ if ( (LA24_8==LEFT_PAREN||LA24_8==29||LA24_8==38||LA24_8==47) ) {
+ alt24=1;
+ }
+ else if ( (LA24_8==RIGHT_PAREN||LA24_8==32) ) {
+ alt24=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("707:1: from_source returns [DeclarativeInvokerDescr ds] : ( (var= ID '.' field= ID ( '[' arg= argument_value ']' )? ) | (var= ID '.' method= ID '(' args= argument_list ')' ) | (functionName= ID '(' args= argument_list ')' ) );", 24, 8, input);
+
+ throw nvae;
+ }
+ break;
+ case LEFT_PAREN:
+ case 73:
+ case 74:
+ case 75:
+ alt24=1;
+ break;
+ default:
+ NoViableAltException nvae =
+ new NoViableAltException("707:1: from_source returns [DeclarativeInvokerDescr ds] : ( (var= ID '.' field= ID ( '[' arg= argument_value ']' )? ) | (var= ID '.' method= ID '(' args= argument_list ')' ) | (functionName= ID '(' args= argument_list ')' ) );", 24, 5, input);
+
+ throw nvae;
+ }
+
+ }
+ else if ( (LA24_4==ID||LA24_4==RHS||LA24_4==RIGHT_PAREN||LA24_4==25||LA24_4==34||LA24_4==47||(LA24_4>=57 && LA24_4<=58)||(LA24_4>=71 && LA24_4<=75)) ) {
+ alt24=1;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("707:1: from_source returns [DeclarativeInvokerDescr ds] : ( (var= ID '.' field= ID ( '[' arg= argument_value ']' )? ) | (var= ID '.' method= ID '(' args= argument_list ')' ) | (functionName= ID '(' args= argument_list ')' ) );", 24, 4, input);
+
+ throw nvae;
+ }
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("707:1: from_source returns [DeclarativeInvokerDescr ds] : ( (var= ID '.' field= ID ( '[' arg= argument_value ']' )? ) | (var= ID '.' method= ID '(' args= argument_list ')' ) | (functionName= ID '(' args= argument_list ')' ) );", 24, 3, input);
+
+ throw nvae;
+ }
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("707:1: from_source returns [DeclarativeInvokerDescr ds] : ( (var= ID '.' field= ID ( '[' arg= argument_value ']' )? ) | (var= ID '.' method= ID '(' args= argument_list ')' ) | (functionName= ID '(' args= argument_list ')' ) );", 24, 1, input);
+
+ throw nvae;
+ }
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("707:1: from_source returns [DeclarativeInvokerDescr ds] : ( (var= ID '.' field= ID ( '[' arg= argument_value ']' )? ) | (var= ID '.' method= ID '(' args= argument_list ')' ) | (functionName= ID '(' args= argument_list ')' ) );", 24, 0, input);
+
+ throw nvae;
+ }
+ switch (alt24) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:712:3: (var= ID '.' field= ID ( '[' arg= argument_value ']' )? )
+ {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:712:3: (var= ID '.' field= ID ( '[' arg= argument_value ']' )? )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:712:4: var= ID '.' field= ID ( '[' arg= argument_value ']' )?
+ {
+ var=(Token)input.LT(1);
+ match(input,ID,FOLLOW_ID_in_from_source1331);
+ match(input,29,FOLLOW_29_in_from_source1333);
+ field=(Token)input.LT(1);
+ match(input,ID,FOLLOW_ID_in_from_source1337);
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:712:25: ( '[' arg= argument_value ']' )?
+ int alt23=2;
+ int LA23_0 = input.LA(1);
+ if ( (LA23_0==47) ) {
+ alt23=1;
+ }
+ switch (alt23) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:712:26: '[' arg= argument_value ']'
+ {
+ match(input,47,FOLLOW_47_in_from_source1341);
+ pushFollow(FOLLOW_argument_value_in_from_source1345);
+ arg=argument_value();
+ _fsp--;
+
+ match(input,48,FOLLOW_48_in_from_source1347);
+
+ }
+ break;
+
+ }
+
+
+ FieldAccessDescr fa;
+ if ( arg == null ) {
+ fa = new FieldAccessDescr(var.getText(), field.getText());
+ } else {
+ fa = new FieldAccessDescr(var.getText(), field.getText(), arg);
+ }
+ fa.setLocation( offset(var.getLine()), var.getCharPositionInLine() );
+ ds = fa;
+
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:727:3: (var= ID '.' method= ID '(' args= argument_list ')' )
+ {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:727:3: (var= ID '.' method= ID '(' args= argument_list ')' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:727:4: var= ID '.' method= ID '(' args= argument_list ')'
+ {
+ var=(Token)input.LT(1);
+ match(input,ID,FOLLOW_ID_in_from_source1376);
+ match(input,29,FOLLOW_29_in_from_source1378);
+ method=(Token)input.LT(1);
+ match(input,ID,FOLLOW_ID_in_from_source1382);
+ match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_from_source1384);
+ pushFollow(FOLLOW_argument_list_in_from_source1388);
+ args=argument_list();
+ _fsp--;
+
+ match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_from_source1390);
+
+ MethodAccessDescr ma = new MethodAccessDescr(var.getText(), method.getText());
+ ma.setLocation( offset(var.getLine()), var.getCharPositionInLine() );
+ ma.setArguments(args);
+ ds = ma;
+
+
+ }
+
+
+ }
+ break;
+ case 3 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:736:3: (functionName= ID '(' args= argument_list ')' )
+ {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:736:3: (functionName= ID '(' args= argument_list ')' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:736:4: functionName= ID '(' args= argument_list ')'
+ {
+ functionName=(Token)input.LT(1);
+ match(input,ID,FOLLOW_ID_in_from_source1412);
+ match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_from_source1414);
+ pushFollow(FOLLOW_argument_list_in_from_source1418);
+ args=argument_list();
+ _fsp--;
+
+ match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_from_source1420);
+
+ FunctionCallDescr fc = new FunctionCallDescr(functionName.getText());
+ fc.setLocation( offset(functionName.getLine()), functionName.getCharPositionInLine() );
+ fc.setArguments(args);
+ ds = fc;
+
+
+ }
+
+
+ }
+ break;
+
+ }
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ds;
+ }
+ // $ANTLR end from_source
+
+
+ // $ANTLR start accumulate_statement
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:749:1: accumulate_statement returns [AccumulateDescr d] : loc= 'from' 'accumulate' '(' column= lhs_column ',' 'init' text= paren_chunk ',' 'action' text= paren_chunk ',' 'result' text= paren_chunk ')' ;
+ public AccumulateDescr accumulate_statement() throws RecognitionException {
+ AccumulateDescr d = null;
+
+ Token loc=null;
+ BaseDescr column = null;
+
+ String text = null;
+
+
+
+ d = factory.createAccumulate();
+
+ try {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:754:10: (loc= 'from' 'accumulate' '(' column= lhs_column ',' 'init' text= paren_chunk ',' 'action' text= paren_chunk ',' 'result' text= paren_chunk ')' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:754:10: loc= 'from' 'accumulate' '(' column= lhs_column ',' 'init' text= paren_chunk ',' 'action' text= paren_chunk ',' 'result' text= paren_chunk ')'
+ {
+ loc=(Token)input.LT(1);
+ match(input,46,FOLLOW_46_in_accumulate_statement1469);
+ match(input,49,FOLLOW_49_in_accumulate_statement1471);
+
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+
+ match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_accumulate_statement1481);
+ pushFollow(FOLLOW_lhs_column_in_accumulate_statement1485);
+ column=lhs_column();
+ _fsp--;
+
+ match(input,32,FOLLOW_32_in_accumulate_statement1487);
+
+ d.setSourceColumn( (ColumnDescr)column );
+
+ match(input,50,FOLLOW_50_in_accumulate_statement1496);
+ pushFollow(FOLLOW_paren_chunk_in_accumulate_statement1500);
+ text=paren_chunk();
+ _fsp--;
+
+ match(input,32,FOLLOW_32_in_accumulate_statement1502);
+
+ d.setInitCode( text.substring(1, text.length()-1) );
+
+ match(input,51,FOLLOW_51_in_accumulate_statement1511);
+ pushFollow(FOLLOW_paren_chunk_in_accumulate_statement1515);
+ text=paren_chunk();
+ _fsp--;
+
+ match(input,32,FOLLOW_32_in_accumulate_statement1517);
+
+ d.setActionCode( text.substring(1, text.length()-1) );
+
+ match(input,52,FOLLOW_52_in_accumulate_statement1526);
+ pushFollow(FOLLOW_paren_chunk_in_accumulate_statement1530);
+ text=paren_chunk();
+ _fsp--;
+
+ match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_accumulate_statement1532);
+
+ d.setResultCode( text.substring(1, text.length()-1) );
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return d;
+ }
+ // $ANTLR end accumulate_statement
+
+
+ // $ANTLR start collect_statement
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:776:1: collect_statement returns [CollectDescr d] : loc= 'from' 'collect' '(' column= lhs_column ')' ;
+ public CollectDescr collect_statement() throws RecognitionException {
+ CollectDescr d = null;
+
+ Token loc=null;
+ BaseDescr column = null;
+
+
+
+ d = factory.createCollect();
+
+ try {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:781:10: (loc= 'from' 'collect' '(' column= lhs_column ')' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:781:10: loc= 'from' 'collect' '(' column= lhs_column ')'
+ {
+ loc=(Token)input.LT(1);
+ match(input,46,FOLLOW_46_in_collect_statement1575);
+ match(input,53,FOLLOW_53_in_collect_statement1577);
+
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+
+ match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_collect_statement1587);
+ pushFollow(FOLLOW_lhs_column_in_collect_statement1591);
+ column=lhs_column();
+ _fsp--;
+
+ match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_collect_statement1593);
+
+ d.setSourceColumn( (ColumnDescr)column );
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return d;
+ }
+ // $ANTLR end collect_statement
+
+
+ // $ANTLR start argument_list
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:791:1: argument_list returns [ArrayList args] : (param= argument_value ( ',' param= argument_value )* )? ;
+ public ArrayList argument_list() throws RecognitionException {
+ ArrayList args = null;
+
+ ArgumentValueDescr param = null;
+
+
+
+ args = new ArrayList();
+
+ try {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:796:3: ( (param= argument_value ( ',' param= argument_value )* )? )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:796:3: (param= argument_value ( ',' param= argument_value )* )?
+ {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:796:3: (param= argument_value ( ',' param= argument_value )* )?
+ int alt26=2;
+ int LA26_0 = input.LA(1);
+ if ( ((LA26_0>=ID && LA26_0<=CURLY_CHUNK)||(LA26_0>=INT && LA26_0<=FLOAT)||LA26_0==47||LA26_0==54) ) {
+ alt26=1;
+ }
+ switch (alt26) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:796:4: param= argument_value ( ',' param= argument_value )*
+ {
+ pushFollow(FOLLOW_argument_value_in_argument_list1626);
+ param=argument_value();
+ _fsp--;
+
+
+ if (param != null) {
+ args.add(param);
+ }
+
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:802:3: ( ',' param= argument_value )*
+ loop25:
+ do {
+ int alt25=2;
+ int LA25_0 = input.LA(1);
+ if ( (LA25_0==32) ) {
+ alt25=1;
+ }
+
+
+ switch (alt25) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:803:4: ',' param= argument_value
+ {
+ match(input,32,FOLLOW_32_in_argument_list1642);
+ pushFollow(FOLLOW_argument_value_in_argument_list1646);
+ param=argument_value();
+ _fsp--;
+
+
+ if (param != null) {
+ args.add(param);
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop25;
+ }
+ } while (true);
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return args;
+ }
+ // $ANTLR end argument_list
+
+
+ // $ANTLR start argument_value
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:812:1: argument_value returns [ArgumentValueDescr value] : (t= STRING | t= INT | t= FLOAT | t= BOOL | t= ID | t= 'null' | m= inline_map | a= inline_array ) ;
+ public ArgumentValueDescr argument_value() throws RecognitionException {
+ ArgumentValueDescr value = null;
+
+ Token t=null;
+ ArgumentValueDescr.MapDescr m = null;
+
+ List a = null;
+
+
+
+ value = null;
+ String text = null;
+
+ try {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:817:4: ( (t= STRING | t= INT | t= FLOAT | t= BOOL | t= ID | t= 'null' | m= inline_map | a= inline_array ) )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:817:4: (t= STRING | t= INT | t= FLOAT | t= BOOL | t= ID | t= 'null' | m= inline_map | a= inline_array )
+ {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:817:4: (t= STRING | t= INT | t= FLOAT | t= BOOL | t= ID | t= 'null' | m= inline_map | a= inline_array )
+ int alt27=8;
+ switch ( input.LA(1) ) {
+ case STRING:
+ alt27=1;
+ break;
+ case INT:
+ alt27=2;
+ break;
+ case FLOAT:
+ alt27=3;
+ break;
+ case BOOL:
+ alt27=4;
+ break;
+ case ID:
+ alt27=5;
+ break;
+ case 54:
+ alt27=6;
+ break;
+ case CURLY_CHUNK:
+ alt27=7;
+ break;
+ case 47:
+ alt27=8;
+ break;
+ default:
+ NoViableAltException nvae =
+ new NoViableAltException("817:4: (t= STRING | t= INT | t= FLOAT | t= BOOL | t= ID | t= 'null' | m= inline_map | a= inline_array )", 27, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt27) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:817:6: t= STRING
+ {
+ t=(Token)input.LT(1);
+ match(input,STRING,FOLLOW_STRING_in_argument_value1686);
+ text = getString( t ); value=new ArgumentValueDescr(ArgumentValueDescr.STRING, text);
+
+ }
+ break;
+ case 2 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:818:5: t= INT
+ {
+ t=(Token)input.LT(1);
+ match(input,INT,FOLLOW_INT_in_argument_value1697);
+ text = t.getText(); value=new ArgumentValueDescr(ArgumentValueDescr.INTEGRAL, text);
+
+ }
+ break;
+ case 3 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:819:5: t= FLOAT
+ {
+ t=(Token)input.LT(1);
+ match(input,FLOAT,FOLLOW_FLOAT_in_argument_value1710);
+ text = t.getText(); value=new ArgumentValueDescr(ArgumentValueDescr.DECIMAL, text);
+
+ }
+ break;
+ case 4 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:820:5: t= BOOL
+ {
+ t=(Token)input.LT(1);
+ match(input,BOOL,FOLLOW_BOOL_in_argument_value1721);
+ text = t.getText(); value=new ArgumentValueDescr(ArgumentValueDescr.BOOLEAN, text);
+
+ }
+ break;
+ case 5 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:821:5: t= ID
+ {
+ t=(Token)input.LT(1);
+ match(input,ID,FOLLOW_ID_in_argument_value1733);
+ text = t.getText(); value=new ArgumentValueDescr(ArgumentValueDescr.VARIABLE, text);
+
+ }
+ break;
+ case 6 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:822:5: t= 'null'
+ {
+ t=(Token)input.LT(1);
+ match(input,54,FOLLOW_54_in_argument_value1744);
+ text = "null"; value=new ArgumentValueDescr(ArgumentValueDescr.NULL, text);
+
+ }
+ break;
+ case 7 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:823:11: m= inline_map
+ {
+ pushFollow(FOLLOW_inline_map_in_argument_value1761);
+ m=inline_map();
+ _fsp--;
+
+ value=new ArgumentValueDescr(ArgumentValueDescr.MAP, m.getKeyValuePairs() );
+
+ }
+ break;
+ case 8 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:824:11: a= inline_array
+ {
+ pushFollow(FOLLOW_inline_array_in_argument_value1777);
+ a=inline_array();
+ _fsp--;
+
+ value = new ArgumentValueDescr(ArgumentValueDescr.LIST, a );
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return value;
+ }
+ // $ANTLR end argument_value
+
+
+ // $ANTLR start inline_map
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:828:1: inline_map returns [ArgumentValueDescr.MapDescr mapDescr] : '{' (key= argument_value '=>' value= argument_value ) ( ( EOL )? ',' ( EOL )? key= argument_value '=>' value= argument_value )* '}' ;
+ public ArgumentValueDescr.MapDescr inline_map() throws RecognitionException {
+ ArgumentValueDescr.MapDescr mapDescr = null;
+
+ ArgumentValueDescr key = null;
+
+ ArgumentValueDescr value = null;
+
+
+
+ mapDescr = new ArgumentValueDescr.MapDescr();
+
+ try {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:832:8: ( '{' (key= argument_value '=>' value= argument_value ) ( ( EOL )? ',' ( EOL )? key= argument_value '=>' value= argument_value )* '}' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:832:8: '{' (key= argument_value '=>' value= argument_value ) ( ( EOL )? ',' ( EOL )? key= argument_value '=>' value= argument_value )* '}'
+ {
+ match(input,CURLY_CHUNK,FOLLOW_CURLY_CHUNK_in_inline_map1817);
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:833:12: (key= argument_value '=>' value= argument_value )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:833:14: key= argument_value '=>' value= argument_value
+ {
+ pushFollow(FOLLOW_argument_value_in_inline_map1835);
+ key=argument_value();
+ _fsp--;
+
+ match(input,55,FOLLOW_55_in_inline_map1837);
+ pushFollow(FOLLOW_argument_value_in_inline_map1841);
+ value=argument_value();
+ _fsp--;
+
+
+ if ( key != null ) {
+ mapDescr.add( new ArgumentValueDescr.KeyValuePairDescr( key, value ) );
+ }
+
+
+ }
+
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:840:12: ( ( EOL )? ',' ( EOL )? key= argument_value '=>' value= argument_value )*
+ loop30:
+ do {
+ int alt30=2;
+ int LA30_0 = input.LA(1);
+ if ( (LA30_0==EOL||LA30_0==32) ) {
+ alt30=1;
+ }
+
+
+ switch (alt30) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:840:14: ( EOL )? ',' ( EOL )? key= argument_value '=>' value= argument_value
+ {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:840:14: ( EOL )?
+ int alt28=2;
+ int LA28_0 = input.LA(1);
+ if ( (LA28_0==EOL) ) {
+ alt28=1;
+ }
+ switch (alt28) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:840:15: EOL
+ {
+ match(input,EOL,FOLLOW_EOL_in_inline_map1884);
+
+ }
+ break;
+
+ }
+
+ match(input,32,FOLLOW_32_in_inline_map1888);
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:840:25: ( EOL )?
+ int alt29=2;
+ int LA29_0 = input.LA(1);
+ if ( (LA29_0==EOL) ) {
+ alt29=1;
+ }
+ switch (alt29) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:840:26: EOL
+ {
+ match(input,EOL,FOLLOW_EOL_in_inline_map1891);
+
+ }
+ break;
+
+ }
+
+ pushFollow(FOLLOW_argument_value_in_inline_map1897);
+ key=argument_value();
+ _fsp--;
+
+ match(input,55,FOLLOW_55_in_inline_map1899);
+ pushFollow(FOLLOW_argument_value_in_inline_map1903);
+ value=argument_value();
+ _fsp--;
+
+
+ if ( key != null ) {
+ mapDescr.add( new ArgumentValueDescr.KeyValuePairDescr( key, value ) );
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop30;
+ }
+ } while (true);
+
+ match(input,56,FOLLOW_56_in_inline_map1939);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return mapDescr;
+ }
+ // $ANTLR end inline_map
+
+
+ // $ANTLR start inline_array
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:849:1: inline_array returns [List list] : '[' arg= argument_value ( ( EOL )? ',' ( EOL )? arg= argument_value )* ']' ;
+ public List inline_array() throws RecognitionException {
+ List list = null;
+
+ ArgumentValueDescr arg = null;
+
+
+
+ list = new ArrayList();
+
+ try {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:854:5: ( '[' arg= argument_value ( ( EOL )? ',' ( EOL )? arg= argument_value )* ']' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:854:5: '[' arg= argument_value ( ( EOL )? ',' ( EOL )? arg= argument_value )* ']'
+ {
+ match(input,47,FOLLOW_47_in_inline_array1983);
+ pushFollow(FOLLOW_argument_value_in_inline_array1987);
+ arg=argument_value();
+ _fsp--;
+
+ list.add(arg);
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:856:8: ( ( EOL )? ',' ( EOL )? arg= argument_value )*
+ loop33:
+ do {
+ int alt33=2;
+ int LA33_0 = input.LA(1);
+ if ( (LA33_0==EOL||LA33_0==32) ) {
+ alt33=1;
+ }
+
+
+ switch (alt33) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:856:10: ( EOL )? ',' ( EOL )? arg= argument_value
+ {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:856:10: ( EOL )?
+ int alt31=2;
+ int LA31_0 = input.LA(1);
+ if ( (LA31_0==EOL) ) {
+ alt31=1;
+ }
+ switch (alt31) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:856:10: EOL
+ {
+ match(input,EOL,FOLLOW_EOL_in_inline_array2005);
+
+ }
+ break;
+
+ }
+
+ match(input,32,FOLLOW_32_in_inline_array2008);
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:856:19: ( EOL )?
+ int alt32=2;
+ int LA32_0 = input.LA(1);
+ if ( (LA32_0==EOL) ) {
+ alt32=1;
+ }
+ switch (alt32) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:856:19: EOL
+ {
+ match(input,EOL,FOLLOW_EOL_in_inline_array2010);
+
+ }
+ break;
+
+ }
+
+ pushFollow(FOLLOW_argument_value_in_inline_array2015);
+ arg=argument_value();
+ _fsp--;
+
+ list.add(arg);
+
+ }
+ break;
+
+ default :
+ break loop33;
+ }
+ } while (true);
+
+ match(input,48,FOLLOW_48_in_inline_array2028);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return list;
+ }
+ // $ANTLR end inline_array
+
+
+ // $ANTLR start fact_binding
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:862:1: fact_binding returns [BaseDescr d] : id= ID ':' fe= fact_expression[id.getText()] ;
+ public BaseDescr fact_binding() throws RecognitionException {
+ BaseDescr d = null;
+
+ Token id=null;
+ BaseDescr fe = null;
+
+
+
+ d=null;
+ boolean multi=false;
+
+ try {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:868:4: (id= ID ':' fe= fact_expression[id.getText()] )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:868:4: id= ID ':' fe= fact_expression[id.getText()]
+ {
+ id=(Token)input.LT(1);
+ match(input,ID,FOLLOW_ID_in_fact_binding2072);
+ match(input,38,FOLLOW_38_in_fact_binding2082);
+ pushFollow(FOLLOW_fact_expression_in_fact_binding2086);
+ fe=fact_expression(id.getText());
+ _fsp--;
+
+
+ d=fe;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return d;
+ }
+ // $ANTLR end fact_binding
+
+
+ // $ANTLR start fact_expression
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:876:2: fact_expression[String id] returns [BaseDescr pd] : ( '(' fe= fact_expression_in_paren[id] ')' | f= fact );
+ public BaseDescr fact_expression(String id) throws RecognitionException {
+ BaseDescr pd = null;
+
+ BaseDescr fe = null;
+
+ BaseDescr f = null;
+
+
+
+ pd = null;
+ boolean multi = false;
+
+ try {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:881:5: ( '(' fe= fact_expression_in_paren[id] ')' | f= fact )
+ int alt34=2;
+ int LA34_0 = input.LA(1);
+ if ( (LA34_0==LEFT_PAREN) ) {
+ alt34=1;
+ }
+ else if ( (LA34_0==ID) ) {
+ alt34=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("876:2: fact_expression[String id] returns [BaseDescr pd] : ( '(' fe= fact_expression_in_paren[id] ')' | f= fact );", 34, 0, input);
+
+ throw nvae;
+ }
+ switch (alt34) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:881:5: '(' fe= fact_expression_in_paren[id] ')'
+ {
+ match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_fact_expression2118);
+ pushFollow(FOLLOW_fact_expression_in_paren_in_fact_expression2122);
+ fe=fact_expression_in_paren(id);
+ _fsp--;
+
+ match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_fact_expression2125);
+ pd=fe;
+
+ }
+ break;
+ case 2 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:882:6: f= fact
+ {
+ pushFollow(FOLLOW_fact_in_fact_expression2136);
+ f=fact();
+ _fsp--;
+
+
+ ((ColumnDescr)f).setIdentifier( id );
+ pd = f;
+
+
+ }
+ break;
+
+ }
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return pd;
+ }
+ // $ANTLR end fact_expression
+
+
+ // $ANTLR start fact_expression_in_paren
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:890:2: fact_expression_in_paren[String id] returns [BaseDescr pd] : ( '(' fe= fact_expression_in_paren[id] ')' | f= fact ( ('or'|'||')f= fact )* );
+ public BaseDescr fact_expression_in_paren(String id) throws RecognitionException {
+ BaseDescr pd = null;
+
+ BaseDescr fe = null;
+
+ BaseDescr f = null;
+
+
+
+ pd = null;
+ boolean multi = false;
+
+ try {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:895:5: ( '(' fe= fact_expression_in_paren[id] ')' | f= fact ( ('or'|'||')f= fact )* )
+ int alt36=2;
+ int LA36_0 = input.LA(1);
+ if ( (LA36_0==LEFT_PAREN) ) {
+ alt36=1;
+ }
+ else if ( (LA36_0==ID) ) {
+ alt36=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("890:2: fact_expression_in_paren[String id] returns [BaseDescr pd] : ( '(' fe= fact_expression_in_paren[id] ')' | f= fact ( ('or'|'||')f= fact )* );", 36, 0, input);
+
+ throw nvae;
+ }
+ switch (alt36) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:895:5: '(' fe= fact_expression_in_paren[id] ')'
+ {
+ match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_fact_expression_in_paren2167);
+ pushFollow(FOLLOW_fact_expression_in_paren_in_fact_expression_in_paren2171);
+ fe=fact_expression_in_paren(id);
+ _fsp--;
+
+ match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_fact_expression_in_paren2173);
+ pd=fe;
+
+ }
+ break;
+ case 2 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:896:6: f= fact ( ('or'|'||')f= fact )*
+ {
+ pushFollow(FOLLOW_fact_in_fact_expression_in_paren2184);
+ f=fact();
+ _fsp--;
+
+
+ ((ColumnDescr)f).setIdentifier( id );
+ pd = f;
+
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:901:4: ( ('or'|'||')f= fact )*
+ loop35:
+ do {
+ int alt35=2;
+ int LA35_0 = input.LA(1);
+ if ( ((LA35_0>=57 && LA35_0<=58)) ) {
+ alt35=1;
+ }
+
+
+ switch (alt35) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:901:6: ('or'|'||')f= fact
+ {
+ if ( (input.LA(1)>=57 && input.LA(1)<=58) ) {
+ input.consume();
+ errorRecovery=false;
+ }
+ else {
+ MismatchedSetException mse =
+ new MismatchedSetException(null,input);
+ recoverFromMismatchedSet(input,mse,FOLLOW_set_in_fact_expression_in_paren2197); throw mse;
+ }
+
+ if ( ! multi ) {
+ BaseDescr first = pd;
+ pd = new OrDescr();
+ ((OrDescr)pd).addDescr( first );
+ multi=true;
+ }
+
+ pushFollow(FOLLOW_fact_in_fact_expression_in_paren2214);
+ f=fact();
+ _fsp--;
+
+
+ ((ColumnDescr)f).setIdentifier( id );
+ ((OrDescr)pd).addDescr( f );
+
+
+ }
+ break;
+
+ default :
+ break loop35;
+ }
+ } while (true);
+
+
+ }
+ break;
+
+ }
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return pd;
+ }
+ // $ANTLR end fact_expression_in_paren
+
+
+ // $ANTLR start fact
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:917:1: fact returns [BaseDescr d] : id= dotted_name loc= '(' (c= constraints )? endLoc= ')' ;
+ public BaseDescr fact() throws RecognitionException {
+ BaseDescr d = null;
+
+ Token loc=null;
+ Token endLoc=null;
+ String id = null;
+
+ List c = null;
+
+
+
+ d=null;
+
+ try {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:921:5: (id= dotted_name loc= '(' (c= constraints )? endLoc= ')' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:921:5: id= dotted_name loc= '(' (c= constraints )? endLoc= ')'
+ {
+ pushFollow(FOLLOW_dotted_name_in_fact2253);
+ id=dotted_name();
+ _fsp--;
+
+
+ d = new ColumnDescr( id );
+
+ loc=(Token)input.LT(1);
+ match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_fact2266);
+
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:927:7: (c= constraints )?
+ int alt37=2;
+ int LA37_0 = input.LA(1);
+ if ( (LA37_0==ID) ) {
+ alt37=1;
+ }
+ switch (alt37) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:927:9: c= constraints
+ {
+ pushFollow(FOLLOW_constraints_in_fact2274);
+ c=constraints();
+ _fsp--;
+
+
+ for ( Iterator cIter = c.iterator() ; cIter.hasNext() ; ) {
+ ((ColumnDescr)d).addDescr( (BaseDescr) cIter.next() );
+ }
+
+
+ }
+ break;
+
+ }
+
+ endLoc=(Token)input.LT(1);
+ match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_fact2295);
+
+ d.setEndLocation( offset(endLoc.getLine()), endLoc.getCharPositionInLine() );
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return d;
+ }
+ // $ANTLR end fact
+
+
+ // $ANTLR start constraints
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:941:1: constraints returns [List constraints] : ( constraint[constraints] | predicate[constraints] ) ( ',' ( constraint[constraints] | predicate[constraints] ) )* ;
+ public List constraints() throws RecognitionException {
+ List constraints = null;
+
+
+ constraints = new ArrayList();
+
+ try {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:945:4: ( ( constraint[constraints] | predicate[constraints] ) ( ',' ( constraint[constraints] | predicate[constraints] ) )* )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:945:4: ( constraint[constraints] | predicate[constraints] ) ( ',' ( constraint[constraints] | predicate[constraints] ) )*
+ {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:945:4: ( constraint[constraints] | predicate[constraints] )
+ int alt38=2;
+ int LA38_0 = input.LA(1);
+ if ( (LA38_0==ID) ) {
+ int LA38_1 = input.LA(2);
+ if ( (LA38_1==38) ) {
+ int LA38_2 = input.LA(3);
+ if ( (LA38_2==ID) ) {
+ int LA38_4 = input.LA(4);
+ if ( (LA38_4==70) ) {
+ alt38=2;
+ }
+ else if ( (LA38_4==RIGHT_PAREN||LA38_4==32||(LA38_4>=61 && LA38_4<=69)) ) {
+ alt38=1;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("945:4: ( constraint[constraints] | predicate[constraints] )", 38, 4, input);
+
+ throw nvae;
+ }
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("945:4: ( constraint[constraints] | predicate[constraints] )", 38, 2, input);
+
+ throw nvae;
+ }
+ }
+ else if ( (LA38_1==RIGHT_PAREN||LA38_1==32||(LA38_1>=61 && LA38_1<=69)) ) {
+ alt38=1;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("945:4: ( constraint[constraints] | predicate[constraints] )", 38, 1, input);
+
+ throw nvae;
+ }
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("945:4: ( constraint[constraints] | predicate[constraints] )", 38, 0, input);
+
+ throw nvae;
+ }
+ switch (alt38) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:945:5: constraint[constraints]
+ {
+ pushFollow(FOLLOW_constraint_in_constraints2328);
+ constraint(constraints);
+ _fsp--;
+
+
+ }
+ break;
+ case 2 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:945:29: predicate[constraints]
+ {
+ pushFollow(FOLLOW_predicate_in_constraints2331);
+ predicate(constraints);
+ _fsp--;
+
+
+ }
+ break;
+
+ }
+
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:946:3: ( ',' ( constraint[constraints] | predicate[constraints] ) )*
+ loop40:
+ do {
+ int alt40=2;
+ int LA40_0 = input.LA(1);
+ if ( (LA40_0==32) ) {
+ alt40=1;
+ }
+
+
+ switch (alt40) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:946:5: ',' ( constraint[constraints] | predicate[constraints] )
+ {
+ match(input,32,FOLLOW_32_in_constraints2339);
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:946:9: ( constraint[constraints] | predicate[constraints] )
+ int alt39=2;
+ int LA39_0 = input.LA(1);
+ if ( (LA39_0==ID) ) {
+ int LA39_1 = input.LA(2);
+ if ( (LA39_1==38) ) {
+ int LA39_2 = input.LA(3);
+ if ( (LA39_2==ID) ) {
+ int LA39_4 = input.LA(4);
+ if ( (LA39_4==70) ) {
+ alt39=2;
+ }
+ else if ( (LA39_4==RIGHT_PAREN||LA39_4==32||(LA39_4>=61 && LA39_4<=69)) ) {
+ alt39=1;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("946:9: ( constraint[constraints] | predicate[constraints] )", 39, 4, input);
+
+ throw nvae;
+ }
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("946:9: ( constraint[constraints] | predicate[constraints] )", 39, 2, input);
+
+ throw nvae;
+ }
+ }
+ else if ( (LA39_1==RIGHT_PAREN||LA39_1==32||(LA39_1>=61 && LA39_1<=69)) ) {
+ alt39=1;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("946:9: ( constraint[constraints] | predicate[constraints] )", 39, 1, input);
+
+ throw nvae;
+ }
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("946:9: ( constraint[constraints] | predicate[constraints] )", 39, 0, input);
+
+ throw nvae;
+ }
+ switch (alt39) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:946:10: constraint[constraints]
+ {
+ pushFollow(FOLLOW_constraint_in_constraints2342);
+ constraint(constraints);
+ _fsp--;
+
+
+ }
+ break;
+ case 2 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:946:34: predicate[constraints]
+ {
+ pushFollow(FOLLOW_predicate_in_constraints2345);
+ predicate(constraints);
+ _fsp--;
+
+
+ }
+ break;
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop40;
+ }
+ } while (true);
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return constraints;
+ }
+ // $ANTLR end constraints
+
+
+ // $ANTLR start constraint
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:949:1: constraint[List constraints] : (fb= ID ':' )? f= ID (rd= constraint_expression (con= ('&'|'|')rd= constraint_expression )* )? ;
+ public void constraint(List constraints) throws RecognitionException {
+ Token fb=null;
+ Token f=null;
+ Token con=null;
+ RestrictionDescr rd = null;
+
+
+
+ BaseDescr d = null;
+ FieldConstraintDescr fc = null;
+
+ try {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:955:3: ( (fb= ID ':' )? f= ID (rd= constraint_expression (con= ('&'|'|')rd= constraint_expression )* )? )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:955:3: (fb= ID ':' )? f= ID (rd= constraint_expression (con= ('&'|'|')rd= constraint_expression )* )?
+ {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:955:3: (fb= ID ':' )?
+ int alt41=2;
+ int LA41_0 = input.LA(1);
+ if ( (LA41_0==ID) ) {
+ int LA41_1 = input.LA(2);
+ if ( (LA41_1==38) ) {
+ alt41=1;
+ }
+ }
+ switch (alt41) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:955:5: fb= ID ':'
+ {
+ fb=(Token)input.LT(1);
+ match(input,ID,FOLLOW_ID_in_constraint2374);
+ match(input,38,FOLLOW_38_in_constraint2376);
+
+ }
+ break;
+
+ }
+
+ f=(Token)input.LT(1);
+ match(input,ID,FOLLOW_ID_in_constraint2386);
+
+ if ( fb != null ) {
+ d = new FieldBindingDescr( f.getText(), fb.getText() );
+ d.setLocation( offset(f.getLine()), f.getCharPositionInLine() );
+ constraints.add( d );
+ }
+ fc = new FieldConstraintDescr(f.getText());
+ fc.setLocation( offset(f.getLine()), f.getCharPositionInLine() );
+
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:966:3: (rd= constraint_expression (con= ('&'|'|')rd= constraint_expression )* )?
+ int alt43=2;
+ int LA43_0 = input.LA(1);
+ if ( ((LA43_0>=61 && LA43_0<=69)) ) {
+ alt43=1;
+ }
+ switch (alt43) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:967:4: rd= constraint_expression (con= ('&'|'|')rd= constraint_expression )*
+ {
+ pushFollow(FOLLOW_constraint_expression_in_constraint2402);
+ rd=constraint_expression();
+ _fsp--;
+
+
+ fc.addRestriction(rd);
+ constraints.add(fc);
+
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:972:4: (con= ('&'|'|')rd= constraint_expression )*
+ loop42:
+ do {
+ int alt42=2;
+ int LA42_0 = input.LA(1);
+ if ( ((LA42_0>=59 && LA42_0<=60)) ) {
+ alt42=1;
+ }
+
+
+ switch (alt42) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:973:5: con= ('&'|'|')rd= constraint_expression
+ {
+ con=(Token)input.LT(1);
+ if ( (input.LA(1)>=59 && input.LA(1)<=60) ) {
+ input.consume();
+ errorRecovery=false;
+ }
+ else {
+ MismatchedSetException mse =
+ new MismatchedSetException(null,input);
+ recoverFromMismatchedSet(input,mse,FOLLOW_set_in_constraint2421); throw mse;
+ }
+
+
+ if (con.getText().equals("&") ) {
+ fc.addRestriction(new RestrictionConnectiveDescr(RestrictionConnectiveDescr.AND));
+ } else {
+ fc.addRestriction(new RestrictionConnectiveDescr(RestrictionConnectiveDescr.OR));
+ }
+
+ pushFollow(FOLLOW_constraint_expression_in_constraint2438);
+ rd=constraint_expression();
+ _fsp--;
+
+
+ fc.addRestriction(rd);
+
+
+ }
+ break;
+
+ default :
+ break loop42;
+ }
+ } while (true);
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end constraint
+
+
+ // $ANTLR start constraint_expression
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:989:1: constraint_expression returns [RestrictionDescr rd] : op= ('=='|'>'|'>='|'<'|'<='|'!='|'contains'|'matches'|'excludes') (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) ;
+ public RestrictionDescr constraint_expression() throws RecognitionException {
+ RestrictionDescr rd = null;
+
+ Token op=null;
+ Token bvc=null;
+ String lc = null;
+
+ String rvc = null;
+
+
+ try {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:991:3: (op= ('=='|'>'|'>='|'<'|'<='|'!='|'contains'|'matches'|'excludes') (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:991:3: op= ('=='|'>'|'>='|'<'|'<='|'!='|'contains'|'matches'|'excludes') (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint )
+ {
+ op=(Token)input.LT(1);
+ if ( (input.LA(1)>=61 && input.LA(1)<=69) ) {
+ input.consume();
+ errorRecovery=false;
+ }
+ else {
+ MismatchedSetException mse =
+ new MismatchedSetException(null,input);
+ recoverFromMismatchedSet(input,mse,FOLLOW_set_in_constraint_expression2490); throw mse;
+ }
+
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1001:3: (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint )
+ int alt44=4;
+ switch ( input.LA(1) ) {
+ case ID:
+ int LA44_1 = input.LA(2);
+ if ( (LA44_1==29) ) {
+ alt44=2;
+ }
+ else if ( (LA44_1==RIGHT_PAREN||LA44_1==32||(LA44_1>=59 && LA44_1<=60)) ) {
+ alt44=1;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("1001:3: (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint )", 44, 1, input);
+
+ throw nvae;
+ }
+ break;
+ case INT:
+ case BOOL:
+ case STRING:
+ case FLOAT:
+ case 54:
+ alt44=3;
+ break;
+ case LEFT_PAREN:
+ alt44=4;
+ break;
+ default:
+ NoViableAltException nvae =
+ new NoViableAltException("1001:3: (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint )", 44, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt44) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1001:5: bvc= ID
+ {
+ bvc=(Token)input.LT(1);
+ match(input,ID,FOLLOW_ID_in_constraint_expression2557);
+
+ rd = new VariableRestrictionDescr(op.getText(), bvc.getText());
+
+
+ }
+ break;
+ case 2 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1006:4: lc= enum_constraint
+ {
+ pushFollow(FOLLOW_enum_constraint_in_constraint_expression2573);
+ lc=enum_constraint();
+ _fsp--;
+
+
+ rd = new LiteralRestrictionDescr(op.getText(), lc, true);
+
+
+ }
+ break;
+ case 3 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1011:4: lc= literal_constraint
+ {
+ pushFollow(FOLLOW_literal_constraint_in_constraint_expression2596);
+ lc=literal_constraint();
+ _fsp--;
+
+
+ rd = new LiteralRestrictionDescr(op.getText(), lc);
+
+
+ }
+ break;
+ case 4 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1015:5: rvc= retval_constraint
+ {
+ pushFollow(FOLLOW_retval_constraint_in_constraint_expression2610);
+ rvc=retval_constraint();
+ _fsp--;
+
+
+ rd = new ReturnValueRestrictionDescr(op.getText(), rvc);
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return rd;
+ }
+ // $ANTLR end constraint_expression
+
+
+ // $ANTLR start literal_constraint
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1022:1: literal_constraint returns [String text] : (t= STRING | t= INT | t= FLOAT | t= BOOL | t= 'null' ) ;
+ public String literal_constraint() throws RecognitionException {
+ String text = null;
+
+ Token t=null;
+
+
+ text = null;
+
+ try {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1026:4: ( (t= STRING | t= INT | t= FLOAT | t= BOOL | t= 'null' ) )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1026:4: (t= STRING | t= INT | t= FLOAT | t= BOOL | t= 'null' )
+ {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1026:4: (t= STRING | t= INT | t= FLOAT | t= BOOL | t= 'null' )
+ int alt45=5;
+ switch ( input.LA(1) ) {
+ case STRING:
+ alt45=1;
+ break;
+ case INT:
+ alt45=2;
+ break;
+ case FLOAT:
+ alt45=3;
+ break;
+ case BOOL:
+ alt45=4;
+ break;
+ case 54:
+ alt45=5;
+ break;
+ default:
+ NoViableAltException nvae =
+ new NoViableAltException("1026:4: (t= STRING | t= INT | t= FLOAT | t= BOOL | t= 'null' )", 45, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt45) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1026:6: t= STRING
+ {
+ t=(Token)input.LT(1);
+ match(input,STRING,FOLLOW_STRING_in_literal_constraint2649);
+ text = getString( t );
+
+ }
+ break;
+ case 2 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1027:5: t= INT
+ {
+ t=(Token)input.LT(1);
+ match(input,INT,FOLLOW_INT_in_literal_constraint2660);
+ text = t.getText();
+
+ }
+ break;
+ case 3 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1028:5: t= FLOAT
+ {
+ t=(Token)input.LT(1);
+ match(input,FLOAT,FOLLOW_FLOAT_in_literal_constraint2673);
+ text = t.getText();
+
+ }
+ break;
+ case 4 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1029:5: t= BOOL
+ {
+ t=(Token)input.LT(1);
+ match(input,BOOL,FOLLOW_BOOL_in_literal_constraint2684);
+ text = t.getText();
+
+ }
+ break;
+ case 5 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1030:5: t= 'null'
+ {
+ t=(Token)input.LT(1);
+ match(input,54,FOLLOW_54_in_literal_constraint2696);
+ text = null;
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return text;
+ }
+ // $ANTLR end literal_constraint
+
+
+ // $ANTLR start enum_constraint
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1034:1: enum_constraint returns [String text] : (cls= ID '.' en= ID ) ;
+ public String enum_constraint() throws RecognitionException {
+ String text = null;
+
+ Token cls=null;
+ Token en=null;
+
+
+ text = null;
+
+ try {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1038:4: ( (cls= ID '.' en= ID ) )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1038:4: (cls= ID '.' en= ID )
+ {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1038:4: (cls= ID '.' en= ID )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1038:5: cls= ID '.' en= ID
+ {
+ cls=(Token)input.LT(1);
+ match(input,ID,FOLLOW_ID_in_enum_constraint2727);
+ match(input,29,FOLLOW_29_in_enum_constraint2729);
+ en=(Token)input.LT(1);
+ match(input,ID,FOLLOW_ID_in_enum_constraint2733);
+
+ }
+
+ text = cls.getText() + "." + en.getText();
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return text;
+ }
+ // $ANTLR end enum_constraint
+
+
+ // $ANTLR start predicate
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1042:1: predicate[List constraints] : decl= ID ':' field= ID '->' text= paren_chunk ;
+ public void predicate(List constraints) throws RecognitionException {
+ Token decl=null;
+ Token field=null;
+ String text = null;
+
+
+ try {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1044:3: (decl= ID ':' field= ID '->' text= paren_chunk )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1044:3: decl= ID ':' field= ID '->' text= paren_chunk
+ {
+ decl=(Token)input.LT(1);
+ match(input,ID,FOLLOW_ID_in_predicate2755);
+ match(input,38,FOLLOW_38_in_predicate2757);
+ field=(Token)input.LT(1);
+ match(input,ID,FOLLOW_ID_in_predicate2761);
+ match(input,70,FOLLOW_70_in_predicate2763);
+ pushFollow(FOLLOW_paren_chunk_in_predicate2767);
+ text=paren_chunk();
+ _fsp--;
+
+
+ String body = text.substring(1, text.length()-1);
+ PredicateDescr d = new PredicateDescr(field.getText(), decl.getText(), body );
+ constraints.add( d );
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end predicate
+
+
+ // $ANTLR start paren_chunk
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1052:1: paren_chunk returns [String text] : loc= '(' ')' ;
+ public String paren_chunk() throws RecognitionException {
+ String text = null;
+
+ Token loc=null;
+
+ try {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1054:10: (loc= '(' ')' )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1054:10: loc= '(' ')'
+ {
+
+ ((CommonTokenStream)input).setTokenTypeChannel(WS, Token.DEFAULT_CHANNEL);
+
+ loc=(Token)input.LT(1);
+ match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_paren_chunk2801);
+
+ int parenCounter = 1;
+ StringBuffer buf = new StringBuffer();
+ buf.append(loc.getText());
+
+ do {
+ Token nextToken = input.LT(1);
+ buf.append( nextToken.getText() );
+
+ int nextTokenId = nextToken.getType();
+ if( nextTokenId == RIGHT_PAREN ) {
+ parenCounter--;
+ } else if( nextTokenId == LEFT_PAREN ) {
+ parenCounter++;
+ }
+ if( parenCounter == 0 ) {
+ break;
+ }
+ input.consume();
+ } while( true );
+ text = buf.toString();
+ ((CommonTokenStream)input).setTokenTypeChannel(WS, Token.HIDDEN_CHANNEL);
+
+ match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_paren_chunk2824);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return text;
+ }
+ // $ANTLR end paren_chunk
+
+
+ // $ANTLR start retval_constraint
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1084:1: retval_constraint returns [String text] : c= paren_chunk ;
+ public String retval_constraint() throws RecognitionException {
+ String text = null;
+
+ String c = null;
+
+
+
+ text = null;
+
+ try {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1089:3: (c= paren_chunk )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1089:3: c= paren_chunk
+ {
+ pushFollow(FOLLOW_paren_chunk_in_retval_constraint2851);
+ c=paren_chunk();
+ _fsp--;
+
+ text = c.substring(1, c.length()-1);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return text;
+ }
+ // $ANTLR end retval_constraint
+
+
+ // $ANTLR start lhs_or
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1097:1: lhs_or returns [BaseDescr d] : left= lhs_and ( ('or'|'||')right= lhs_and )* ;
+ public BaseDescr lhs_or() throws RecognitionException {
+ BaseDescr d = null;
+
+ BaseDescr left = null;
+
+ BaseDescr right = null;
+
+
+
+ d = null;
+
+ try {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1102:3: (left= lhs_and ( ('or'|'||')right= lhs_and )* )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1102:3: left= lhs_and ( ('or'|'||')right= lhs_and )*
+ {
+ OrDescr or = null;
+ pushFollow(FOLLOW_lhs_and_in_lhs_or2888);
+ left=lhs_and();
+ _fsp--;
+
+ d = left;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1104:3: ( ('or'|'||')right= lhs_and )*
+ loop46:
+ do {
+ int alt46=2;
+ int LA46_0 = input.LA(1);
+ if ( ((LA46_0>=57 && LA46_0<=58)) ) {
+ alt46=1;
+ }
+
+
+ switch (alt46) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1104:5: ('or'|'||')right= lhs_and
+ {
+ if ( (input.LA(1)>=57 && input.LA(1)<=58) ) {
+ input.consume();
+ errorRecovery=false;
+ }
+ else {
+ MismatchedSetException mse =
+ new MismatchedSetException(null,input);
+ recoverFromMismatchedSet(input,mse,FOLLOW_set_in_lhs_or2897); throw mse;
+ }
+
+ pushFollow(FOLLOW_lhs_and_in_lhs_or2907);
+ right=lhs_and();
+ _fsp--;
+
+
+ if ( or == null ) {
+ or = new OrDescr();
+ or.addDescr( left );
+ d = or;
+ }
+
+ or.addDescr( right );
+
+
+ }
+ break;
+
+ default :
+ break loop46;
+ }
+ } while (true);
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return d;
+ }
+ // $ANTLR end lhs_or
+
+
+ // $ANTLR start lhs_and
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1118:1: lhs_and returns [BaseDescr d] : left= lhs_unary ( ('and'|'&&')right= lhs_unary )* ;
+ public BaseDescr lhs_and() throws RecognitionException {
+ BaseDescr d = null;
+
+ BaseDescr left = null;
+
+ BaseDescr right = null;
+
+
+
+ d = null;
+
+ try {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1123:3: (left= lhs_unary ( ('and'|'&&')right= lhs_unary )* )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1123:3: left= lhs_unary ( ('and'|'&&')right= lhs_unary )*
+ {
+ AndDescr and = null;
+ pushFollow(FOLLOW_lhs_unary_in_lhs_and2947);
+ left=lhs_unary();
+ _fsp--;
+
+ d = left;
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1125:3: ( ('and'|'&&')right= lhs_unary )*
+ loop47:
+ do {
+ int alt47=2;
+ int LA47_0 = input.LA(1);
+ if ( ((LA47_0>=71 && LA47_0<=72)) ) {
+ alt47=1;
+ }
+
+
+ switch (alt47) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1125:5: ('and'|'&&')right= lhs_unary
+ {
+ if ( (input.LA(1)>=71 && input.LA(1)<=72) ) {
+ input.consume();
+ errorRecovery=false;
+ }
+ else {
+ MismatchedSetException mse =
+ new MismatchedSetException(null,input);
+ recoverFromMismatchedSet(input,mse,FOLLOW_set_in_lhs_and2956); throw mse;
+ }
+
+ pushFollow(FOLLOW_lhs_unary_in_lhs_and2966);
+ right=lhs_unary();
+ _fsp--;
+
+
+ if ( and == null ) {
+ and = new AndDescr();
+ and.addDescr( left );
+ d = and;
+ }
+
+ and.addDescr( right );
+
+
+ }
+ break;
+
+ default :
+ break loop47;
+ }
+ } while (true);
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return d;
+ }
+ // $ANTLR end lhs_and
+
+
+ // $ANTLR start lhs_unary
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1139:1: lhs_unary returns [BaseDescr d] : (u= lhs_exist | u= lhs_not | u= lhs_eval | u= lhs_column ( (fm= from_statement ) | (ac= accumulate_statement ) | (cs= collect_statement ) )? | '(' u= lhs ')' ) opt_semicolon ;
+ public BaseDescr lhs_unary() throws RecognitionException {
+ BaseDescr d = null;
+
+ BaseDescr u = null;
+
+ FromDescr fm = null;
+
+ AccumulateDescr ac = null;
+
+ CollectDescr cs = null;
+
+
+
+ d = null;
+
+ try {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1143:4: ( (u= lhs_exist | u= lhs_not | u= lhs_eval | u= lhs_column ( (fm= from_statement ) | (ac= accumulate_statement ) | (cs= collect_statement ) )? | '(' u= lhs ')' ) opt_semicolon )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1143:4: (u= lhs_exist | u= lhs_not | u= lhs_eval | u= lhs_column ( (fm= from_statement ) | (ac= accumulate_statement ) | (cs= collect_statement ) )? | '(' u= lhs ')' ) opt_semicolon
+ {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1143:4: (u= lhs_exist | u= lhs_not | u= lhs_eval | u= lhs_column ( (fm= from_statement ) | (ac= accumulate_statement ) | (cs= collect_statement ) )? | '(' u= lhs ')' )
+ int alt49=5;
+ switch ( input.LA(1) ) {
+ case 73:
+ alt49=1;
+ break;
+ case 74:
+ alt49=2;
+ break;
+ case 75:
+ alt49=3;
+ break;
+ case ID:
+ alt49=4;
+ break;
+ case LEFT_PAREN:
+ alt49=5;
+ break;
+ default:
+ NoViableAltException nvae =
+ new NoViableAltException("1143:4: (u= lhs_exist | u= lhs_not | u= lhs_eval | u= lhs_column ( (fm= from_statement ) | (ac= accumulate_statement ) | (cs= collect_statement ) )? | '(' u= lhs ')' )", 49, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt49) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1143:6: u= lhs_exist
+ {
+ pushFollow(FOLLOW_lhs_exist_in_lhs_unary3003);
+ u=lhs_exist();
+ _fsp--;
+
+
+ }
+ break;
+ case 2 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1144:5: u= lhs_not
+ {
+ pushFollow(FOLLOW_lhs_not_in_lhs_unary3011);
+ u=lhs_not();
+ _fsp--;
+
+
+ }
+ break;
+ case 3 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1145:5: u= lhs_eval
+ {
+ pushFollow(FOLLOW_lhs_eval_in_lhs_unary3019);
+ u=lhs_eval();
+ _fsp--;
+
+
+ }
+ break;
+ case 4 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1146:5: u= lhs_column ( (fm= from_statement ) | (ac= accumulate_statement ) | (cs= collect_statement ) )?
+ {
+ pushFollow(FOLLOW_lhs_column_in_lhs_unary3027);
+ u=lhs_column();
+ _fsp--;
+
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1146:18: ( (fm= from_statement ) | (ac= accumulate_statement ) | (cs= collect_statement ) )?
+ int alt48=4;
+ int LA48_0 = input.LA(1);
+ if ( (LA48_0==46) ) {
+ switch ( input.LA(2) ) {
+ case 49:
+ alt48=2;
+ break;
+ case 53:
+ alt48=3;
+ break;
+ case ID:
+ alt48=1;
+ break;
+ }
+
+ }
+ switch (alt48) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1147:14: (fm= from_statement )
+ {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1147:14: (fm= from_statement )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1147:15: fm= from_statement
+ {
+ pushFollow(FOLLOW_from_statement_in_lhs_unary3047);
+ fm=from_statement();
+ _fsp--;
+
+ fm.setColumn((ColumnDescr) u); u=fm;
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1148:14: (ac= accumulate_statement )
+ {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1148:14: (ac= accumulate_statement )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1148:15: ac= accumulate_statement
+ {
+ pushFollow(FOLLOW_accumulate_statement_in_lhs_unary3069);
+ ac=accumulate_statement();
+ _fsp--;
+
+ ac.setResultColumn((ColumnDescr) u); u=ac;
+
+ }
+
+
+ }
+ break;
+ case 3 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1149:14: (cs= collect_statement )
+ {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1149:14: (cs= collect_statement )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1149:15: cs= collect_statement
+ {
+ pushFollow(FOLLOW_collect_statement_in_lhs_unary3090);
+ cs=collect_statement();
+ _fsp--;
+
+ cs.setResultColumn((ColumnDescr) u); u=cs;
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+ break;
+ case 5 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1151:5: '(' u= lhs ')'
+ {
+ match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_lhs_unary3113);
+ pushFollow(FOLLOW_lhs_in_lhs_unary3117);
+ u=lhs();
+ _fsp--;
+
+ match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_lhs_unary3119);
+
+ }
+ break;
+
+ }
+
+ d = u;
+ pushFollow(FOLLOW_opt_semicolon_in_lhs_unary3129);
+ opt_semicolon();
+ _fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return d;
+ }
+ // $ANTLR end lhs_unary
+
+
+ // $ANTLR start lhs_exist
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1156:1: lhs_exist returns [BaseDescr d] : loc= 'exists' ( '(' column= lhs_column ')' | column= lhs_column ) ;
+ public BaseDescr lhs_exist() throws RecognitionException {
+ BaseDescr d = null;
+
+ Token loc=null;
+ BaseDescr column = null;
+
+
+
+ d = null;
+
+ try {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1160:4: (loc= 'exists' ( '(' column= lhs_column ')' | column= lhs_column ) )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1160:4: loc= 'exists' ( '(' column= lhs_column ')' | column= lhs_column )
+ {
+ loc=(Token)input.LT(1);
+ match(input,73,FOLLOW_73_in_lhs_exist3153);
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1160:17: ( '(' column= lhs_column ')' | column= lhs_column )
+ int alt50=2;
+ int LA50_0 = input.LA(1);
+ if ( (LA50_0==LEFT_PAREN) ) {
+ alt50=1;
+ }
+ else if ( (LA50_0==ID) ) {
+ alt50=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("1160:17: ( '(' column= lhs_column ')' | column= lhs_column )", 50, 0, input);
+
+ throw nvae;
+ }
+ switch (alt50) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1160:18: '(' column= lhs_column ')'
+ {
+ match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_lhs_exist3156);
+ pushFollow(FOLLOW_lhs_column_in_lhs_exist3160);
+ column=lhs_column();
+ _fsp--;
+
+ match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_lhs_exist3162);
+
+ }
+ break;
+ case 2 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1160:46: column= lhs_column
+ {
+ pushFollow(FOLLOW_lhs_column_in_lhs_exist3168);
+ column=lhs_column();
+ _fsp--;
+
+
+ }
+ break;
+
+ }
+
+
+ d = new ExistsDescr( (ColumnDescr) column );
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return d;
+ }
+ // $ANTLR end lhs_exist
+
+
+ // $ANTLR start lhs_not
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1167:1: lhs_not returns [NotDescr d] : loc= 'not' ( '(' column= lhs_column ')' | column= lhs_column ) ;
+ public NotDescr lhs_not() throws RecognitionException {
+ NotDescr d = null;
+
+ Token loc=null;
+ BaseDescr column = null;
+
+
+
+ d = null;
+
+ try {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1171:4: (loc= 'not' ( '(' column= lhs_column ')' | column= lhs_column ) )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1171:4: loc= 'not' ( '(' column= lhs_column ')' | column= lhs_column )
+ {
+ loc=(Token)input.LT(1);
+ match(input,74,FOLLOW_74_in_lhs_not3198);
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1171:14: ( '(' column= lhs_column ')' | column= lhs_column )
+ int alt51=2;
+ int LA51_0 = input.LA(1);
+ if ( (LA51_0==LEFT_PAREN) ) {
+ alt51=1;
+ }
+ else if ( (LA51_0==ID) ) {
+ alt51=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("1171:14: ( '(' column= lhs_column ')' | column= lhs_column )", 51, 0, input);
+
+ throw nvae;
+ }
+ switch (alt51) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1171:15: '(' column= lhs_column ')'
+ {
+ match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_lhs_not3201);
+ pushFollow(FOLLOW_lhs_column_in_lhs_not3205);
+ column=lhs_column();
+ _fsp--;
+
+ match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_lhs_not3208);
+
+ }
+ break;
+ case 2 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1171:44: column= lhs_column
+ {
+ pushFollow(FOLLOW_lhs_column_in_lhs_not3214);
+ column=lhs_column();
+ _fsp--;
+
+
+ }
+ break;
+
+ }
+
+
+ d = new NotDescr( (ColumnDescr) column );
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return d;
+ }
+ // $ANTLR end lhs_not
+
+
+ // $ANTLR start lhs_eval
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1178:1: lhs_eval returns [BaseDescr d] : loc= 'eval' c= paren_chunk ;
+ public BaseDescr lhs_eval() throws RecognitionException {
+ BaseDescr d = null;
+
+ Token loc=null;
+ String c = null;
+
+
+
+ d = null;
+
+ try {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1182:4: (loc= 'eval' c= paren_chunk )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1182:4: loc= 'eval' c= paren_chunk
+ {
+ loc=(Token)input.LT(1);
+ match(input,75,FOLLOW_75_in_lhs_eval3242);
+ pushFollow(FOLLOW_paren_chunk_in_lhs_eval3246);
+ c=paren_chunk();
+ _fsp--;
+
+
+ String body = c.substring(1, c.length()-1);
+ checkTrailingSemicolon( body, offset(loc.getLine()) );
+ d = new EvalDescr( body );
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return d;
+ }
+ // $ANTLR end lhs_eval
+
+
+ // $ANTLR start dotted_name
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1190:1: dotted_name returns [String name] : id= ID ( '.' id= ID )* ( '[' ']' )* ;
+ public String dotted_name() throws RecognitionException {
+ String name = null;
+
+ Token id=null;
+
+
+ name = null;
+
+ try {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1195:3: (id= ID ( '.' id= ID )* ( '[' ']' )* )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1195:3: id= ID ( '.' id= ID )* ( '[' ']' )*
+ {
+ id=(Token)input.LT(1);
+ match(input,ID,FOLLOW_ID_in_dotted_name3277);
+ name=id.getText();
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1195:32: ( '.' id= ID )*
+ loop52:
+ do {
+ int alt52=2;
+ int LA52_0 = input.LA(1);
+ if ( (LA52_0==29) ) {
+ alt52=1;
+ }
+
+
+ switch (alt52) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1195:34: '.' id= ID
+ {
+ match(input,29,FOLLOW_29_in_dotted_name3283);
+ id=(Token)input.LT(1);
+ match(input,ID,FOLLOW_ID_in_dotted_name3287);
+ name = name + "." + id.getText();
+
+ }
+ break;
+
+ default :
+ break loop52;
+ }
+ } while (true);
+
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1195:85: ( '[' ']' )*
+ loop53:
+ do {
+ int alt53=2;
+ int LA53_0 = input.LA(1);
+ if ( (LA53_0==47) ) {
+ alt53=1;
+ }
+
+
+ switch (alt53) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1195:87: '[' ']'
+ {
+ match(input,47,FOLLOW_47_in_dotted_name3296);
+ match(input,48,FOLLOW_48_in_dotted_name3298);
+ name = name + "[]";
+
+ }
+ break;
+
+ default :
+ break loop53;
+ }
+ } while (true);
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return name;
+ }
+ // $ANTLR end dotted_name
+
+
+ // $ANTLR start argument
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1198:1: argument returns [String name] : id= ID ( '[' ']' )* ;
+ public String argument() throws RecognitionException {
+ String name = null;
+
+ Token id=null;
+
+
+ name = null;
+
+ try {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1203:3: (id= ID ( '[' ']' )* )
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1203:3: id= ID ( '[' ']' )*
+ {
+ id=(Token)input.LT(1);
+ match(input,ID,FOLLOW_ID_in_argument3328);
+ name=id.getText();
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1203:32: ( '[' ']' )*
+ loop54:
+ do {
+ int alt54=2;
+ int LA54_0 = input.LA(1);
+ if ( (LA54_0==47) ) {
+ alt54=1;
+ }
+
+
+ switch (alt54) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1203:34: '[' ']'
+ {
+ match(input,47,FOLLOW_47_in_argument3334);
+ match(input,48,FOLLOW_48_in_argument3336);
+ name = name + "[]";
+
+ }
+ break;
+
+ default :
+ break loop54;
+ }
+ } while (true);
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return name;
+ }
+ // $ANTLR end argument
+
+
+ // $ANTLR start word
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1207:1: word returns [String word] : (id= ID | 'import' | 'use' | 'rule' | 'query' | 'salience' | 'no-loop' | 'when' | 'then' | 'end' | str= STRING );
+ public String word() throws RecognitionException {
+ String word = null;
+
+ Token id=null;
+ Token str=null;
+
+
+ word = null;
+
+ try {
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1211:4: (id= ID | 'import' | 'use' | 'rule' | 'query' | 'salience' | 'no-loop' | 'when' | 'then' | 'end' | str= STRING )
+ int alt55=11;
+ switch ( input.LA(1) ) {
+ case ID:
+ alt55=1;
+ break;
+ case 27:
+ alt55=2;
+ break;
+ case 76:
+ alt55=3;
+ break;
+ case 36:
+ alt55=4;
+ break;
+ case 33:
+ alt55=5;
+ break;
+ case 40:
+ alt55=6;
+ break;
+ case 41:
+ alt55=7;
+ break;
+ case 37:
+ alt55=8;
+ break;
+ case RHS:
+ alt55=9;
+ break;
+ case 34:
+ alt55=10;
+ break;
+ case STRING:
+ alt55=11;
+ break;
+ default:
+ NoViableAltException nvae =
+ new NoViableAltException("1207:1: word returns [String word] : (id= ID | 'import' | 'use' | 'rule' | 'query' | 'salience' | 'no-loop' | 'when' | 'then' | 'end' | str= STRING );", 55, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt55) {
+ case 1 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1211:4: id= ID
+ {
+ id=(Token)input.LT(1);
+ match(input,ID,FOLLOW_ID_in_word3364);
+ word=id.getText();
+
+ }
+ break;
+ case 2 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1212:4: 'import'
+ {
+ match(input,27,FOLLOW_27_in_word3376);
+ word="import";
+
+ }
+ break;
+ case 3 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1213:4: 'use'
+ {
+ match(input,76,FOLLOW_76_in_word3385);
+ word="use";
+
+ }
+ break;
+ case 4 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1214:4: 'rule'
+ {
+ match(input,36,FOLLOW_36_in_word3397);
+ word="rule";
+
+ }
+ break;
+ case 5 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1215:4: 'query'
+ {
+ match(input,33,FOLLOW_33_in_word3408);
+ word="query";
+
+ }
+ break;
+ case 6 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1216:4: 'salience'
+ {
+ match(input,40,FOLLOW_40_in_word3418);
+ word="salience";
+
+ }
+ break;
+ case 7 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1217:5: 'no-loop'
+ {
+ match(input,41,FOLLOW_41_in_word3426);
+ word="no-loop";
+
+ }
+ break;
+ case 8 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1218:4: 'when'
+ {
+ match(input,37,FOLLOW_37_in_word3434);
+ word="when";
+
+ }
+ break;
+ case 9 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1219:4: 'then'
+ {
+ match(input,RHS,FOLLOW_RHS_in_word3445);
+ word="then";
+
+ }
+ break;
+ case 10 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1220:4: 'end'
+ {
+ match(input,34,FOLLOW_34_in_word3456);
+ word="end";
+
+ }
+ break;
+ case 11 :
+ // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1221:4: str= STRING
+ {
+ str=(Token)input.LT(1);
+ match(input,STRING,FOLLOW_STRING_in_word3470);
+ word=getString(str);
+
+ }
+ break;
+
+ }
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return word;
+ }
+ // $ANTLR end word
+
+
+ protected DFA8 dfa8 = new DFA8(this);
+ protected DFA9 dfa9 = new DFA9(this);
+ public static final String DFA8_eotS =
+ "\6\uffff";
+ public static final String DFA8_eofS =
+ "\6\uffff";
+ public static final String DFA8_minS =
+ "\2\4\1\uffff\1\60\1\uffff\1\4";
+ public static final String DFA8_maxS =
+ "\1\4\1\57\1\uffff\1\60\1\uffff\1\57";
+ public static final String DFA8_acceptS =
+ "\2\uffff\1\1\1\uffff\1\2\1\uffff";
+ public static final String DFA8_specialS =
+ "\6\uffff}>";
+ public static final String[] DFA8_transition = {
+ "\1\1",
+ "\1\2\20\uffff\1\4\7\uffff\1\2\2\uffff\1\4\16\uffff\1\3",
+ "",
+ "\1\5",
+ "",
+ "\1\2\20\uffff\1\4\12\uffff\1\4\16\uffff\1\3"
+ };
+
+ class DFA8 extends DFA {
+ public DFA8(BaseRecognizer recognizer) {
+ this.recognizer = recognizer;
+ this.decisionNumber = 8;
+ this.eot = DFA.unpackEncodedString(DFA8_eotS);
+ this.eof = DFA.unpackEncodedString(DFA8_eofS);
+ this.min = DFA.unpackEncodedStringToUnsignedChars(DFA8_minS);
+ this.max = DFA.unpackEncodedStringToUnsignedChars(DFA8_maxS);
+ this.accept = DFA.unpackEncodedString(DFA8_acceptS);
+ this.special = DFA.unpackEncodedString(DFA8_specialS);
+ int numStates = DFA8_transition.length;
+ this.transition = new short[numStates][];
+ for (int i=0; i<numStates; i++) {
+ transition[i] = DFA.unpackEncodedString(DFA8_transition[i]);
+ }
+ }
+ public String getDescription() {
+ return "373:6: (paramType= dotted_name )?";
+ }
+ }
+ public static final String DFA9_eotS =
+ "\6\uffff";
+ public static final String DFA9_eofS =
+ "\6\uffff";
+ public static final String DFA9_minS =
+ "\2\4\1\uffff\1\60\1\uffff\1\4";
+ public static final String DFA9_maxS =
+ "\1\4\1\57\1\uffff\1\60\1\uffff\1\57";
+ public static final String DFA9_acceptS =
+ "\2\uffff\1\1\1\uffff\1\2\1\uffff";
+ public static final String DFA9_specialS =
+ "\6\uffff}>";
+ public static final String[] DFA9_transition = {
+ "\1\1",
+ "\1\2\20\uffff\1\4\7\uffff\1\2\2\uffff\1\4\16\uffff\1\3",
+ "",
+ "\1\5",
+ "",
+ "\1\2\20\uffff\1\4\12\uffff\1\4\16\uffff\1\3"
+ };
+
+ class DFA9 extends DFA {
+ public DFA9(BaseRecognizer recognizer) {
+ this.recognizer = recognizer;
+ this.decisionNumber = 9;
+ this.eot = DFA.unpackEncodedString(DFA9_eotS);
+ this.eof = DFA.unpackEncodedString(DFA9_eofS);
+ this.min = DFA.unpackEncodedStringToUnsignedChars(DFA9_minS);
+ this.max = DFA.unpackEncodedStringToUnsignedChars(DFA9_maxS);
+ this.accept = DFA.unpackEncodedString(DFA9_acceptS);
+ this.special = DFA.unpackEncodedString(DFA9_specialS);
+ int numStates = DFA9_transition.length;
+ this.transition = new short[numStates][];
+ for (int i=0; i<numStates; i++) {
+ transition[i] = DFA.unpackEncodedString(DFA9_transition[i]);
+ }
+ }
+ public String getDescription() {
+ return "377:11: (paramType= dotted_name )?";
+ }
+ }
+
+
+ public static final BitSet FOLLOW_25_in_opt_semicolon39 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_prolog_in_compilation_unit51 = new BitSet(new long[]{0x0000001A98000002L});
+ public static final BitSet FOLLOW_statement_in_compilation_unit58 = new BitSet(new long[]{0x0000001A98000002L});
+ public static final BitSet FOLLOW_package_statement_in_prolog83 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_import_statement_in_statement107 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_function_import_statement_in_statement118 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_global_in_statement123 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_function_in_statement128 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_template_in_statement141 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule_in_statement150 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_query_in_statement160 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_26_in_package_statement188 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_dotted_name_in_package_statement192 = new BitSet(new long[]{0x0000000002000002L});
+ public static final BitSet FOLLOW_opt_semicolon_in_package_statement194 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_27_in_import_statement211 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_import_name_in_import_statement215 = new BitSet(new long[]{0x0000000002000002L});
+ public static final BitSet FOLLOW_opt_semicolon_in_import_statement217 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_27_in_function_import_statement233 = new BitSet(new long[]{0x0000000010000000L});
+ public static final BitSet FOLLOW_28_in_function_import_statement235 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_import_name_in_function_import_statement239 = new BitSet(new long[]{0x0000000002000002L});
+ public static final BitSet FOLLOW_opt_semicolon_in_function_import_statement241 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ID_in_import_name273 = new BitSet(new long[]{0x0000000060000002L});
+ public static final BitSet FOLLOW_29_in_import_name279 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_ID_in_import_name283 = new BitSet(new long[]{0x0000000060000002L});
+ public static final BitSet FOLLOW_30_in_import_name293 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_31_in_global317 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_dotted_name_in_global321 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_ID_in_global325 = new BitSet(new long[]{0x0000000002000002L});
+ public static final BitSet FOLLOW_opt_semicolon_in_global327 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_28_in_function354 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_dotted_name_in_function359 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_ID_in_function365 = new BitSet(new long[]{0x0000000000100000L});
+ public static final BitSet FOLLOW_LEFT_PAREN_in_function374 = new BitSet(new long[]{0x0000000000200010L});
+ public static final BitSet FOLLOW_dotted_name_in_function384 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_argument_in_function390 = new BitSet(new long[]{0x0000000100200000L});
+ public static final BitSet FOLLOW_32_in_function404 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_dotted_name_in_function409 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_argument_in_function415 = new BitSet(new long[]{0x0000000100200000L});
+ public static final BitSet FOLLOW_RIGHT_PAREN_in_function439 = new BitSet(new long[]{0x0000000000000020L});
+ public static final BitSet FOLLOW_CURLY_CHUNK_in_function445 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_33_in_query476 = new BitSet(new long[]{0x0000033608000250L,0x0000000000001000L});
+ public static final BitSet FOLLOW_word_in_query480 = new BitSet(new long[]{0x0000000400100010L,0x0000000000000E00L});
+ public static final BitSet FOLLOW_normal_lhs_block_in_query494 = new BitSet(new long[]{0x0000000400000000L});
+ public static final BitSet FOLLOW_34_in_query509 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_35_in_template535 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_ID_in_template539 = new BitSet(new long[]{0x0000000002000010L});
+ public static final BitSet FOLLOW_opt_semicolon_in_template541 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_template_slot_in_template556 = new BitSet(new long[]{0x0000000400000010L});
+ public static final BitSet FOLLOW_34_in_template571 = new BitSet(new long[]{0x0000000002000002L});
+ public static final BitSet FOLLOW_opt_semicolon_in_template573 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_dotted_name_in_template_slot605 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_ID_in_template_slot609 = new BitSet(new long[]{0x0000000002000002L});
+ public static final BitSet FOLLOW_opt_semicolon_in_template_slot611 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_36_in_rule642 = new BitSet(new long[]{0x0000033608000250L,0x0000000000001000L});
+ public static final BitSet FOLLOW_word_in_rule646 = new BitSet(new long[]{0x00003FA100000040L});
+ public static final BitSet FOLLOW_rule_attributes_in_rule655 = new BitSet(new long[]{0x0000002000000040L});
+ public static final BitSet FOLLOW_37_in_rule664 = new BitSet(new long[]{0x0000004000100050L,0x0000000000000E00L});
+ public static final BitSet FOLLOW_38_in_rule666 = new BitSet(new long[]{0x0000000000100050L,0x0000000000000E00L});
+ public static final BitSet FOLLOW_normal_lhs_block_in_rule684 = new BitSet(new long[]{0x0000000000000040L});
+ public static final BitSet FOLLOW_RHS_in_rule707 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_39_in_rule_attributes732 = new BitSet(new long[]{0x0000004000000000L});
+ public static final BitSet FOLLOW_38_in_rule_attributes734 = new BitSet(new long[]{0x00003F0100000002L});
+ public static final BitSet FOLLOW_32_in_rule_attributes743 = new BitSet(new long[]{0x00003F0000000000L});
+ public static final BitSet FOLLOW_rule_attribute_in_rule_attributes748 = new BitSet(new long[]{0x00003F0100000002L});
+ public static final BitSet FOLLOW_salience_in_rule_attribute789 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_no_loop_in_rule_attribute799 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_agenda_group_in_rule_attribute810 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_duration_in_rule_attribute823 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_activation_group_in_rule_attribute837 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_auto_focus_in_rule_attribute848 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_40_in_salience882 = new BitSet(new long[]{0x0000000000000080L});
+ public static final BitSet FOLLOW_INT_in_salience886 = new BitSet(new long[]{0x0000000002000002L});
+ public static final BitSet FOLLOW_opt_semicolon_in_salience888 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_41_in_no_loop923 = new BitSet(new long[]{0x0000000002000002L});
+ public static final BitSet FOLLOW_opt_semicolon_in_no_loop925 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_41_in_no_loop950 = new BitSet(new long[]{0x0000000000000100L});
+ public static final BitSet FOLLOW_BOOL_in_no_loop954 = new BitSet(new long[]{0x0000000002000002L});
+ public static final BitSet FOLLOW_opt_semicolon_in_no_loop956 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_42_in_auto_focus1002 = new BitSet(new long[]{0x0000000002000002L});
+ public static final BitSet FOLLOW_opt_semicolon_in_auto_focus1004 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_42_in_auto_focus1029 = new BitSet(new long[]{0x0000000000000100L});
+ public static final BitSet FOLLOW_BOOL_in_auto_focus1033 = new BitSet(new long[]{0x0000000002000002L});
+ public static final BitSet FOLLOW_opt_semicolon_in_auto_focus1035 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_43_in_activation_group1077 = new BitSet(new long[]{0x0000000000000200L});
+ public static final BitSet FOLLOW_STRING_in_activation_group1081 = new BitSet(new long[]{0x0000000002000002L});
+ public static final BitSet FOLLOW_opt_semicolon_in_activation_group1083 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_44_in_agenda_group1112 = new BitSet(new long[]{0x0000000000000200L});
+ public static final BitSet FOLLOW_STRING_in_agenda_group1116 = new BitSet(new long[]{0x0000000002000002L});
+ public static final BitSet FOLLOW_opt_semicolon_in_agenda_group1118 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_45_in_duration1150 = new BitSet(new long[]{0x0000000000000080L});
+ public static final BitSet FOLLOW_INT_in_duration1154 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_lhs_in_normal_lhs_block1180 = new BitSet(new long[]{0x0000000000100012L,0x0000000000000E00L});
+ public static final BitSet FOLLOW_lhs_or_in_lhs1218 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_fact_binding_in_lhs_column1246 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_fact_in_lhs_column1255 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_46_in_from_statement1283 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_from_source_in_from_statement1287 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ID_in_from_source1331 = new BitSet(new long[]{0x0000000020000000L});
+ public static final BitSet FOLLOW_29_in_from_source1333 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_ID_in_from_source1337 = new BitSet(new long[]{0x0000800000000002L});
+ public static final BitSet FOLLOW_47_in_from_source1341 = new BitSet(new long[]{0x00408000000007B0L});
+ public static final BitSet FOLLOW_argument_value_in_from_source1345 = new BitSet(new long[]{0x0001000000000000L});
+ public static final BitSet FOLLOW_48_in_from_source1347 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ID_in_from_source1376 = new BitSet(new long[]{0x0000000020000000L});
+ public static final BitSet FOLLOW_29_in_from_source1378 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_ID_in_from_source1382 = new BitSet(new long[]{0x0000000000100000L});
+ public static final BitSet FOLLOW_LEFT_PAREN_in_from_source1384 = new BitSet(new long[]{0x00408000002007B0L});
+ public static final BitSet FOLLOW_argument_list_in_from_source1388 = new BitSet(new long[]{0x0000000000200000L});
+ public static final BitSet FOLLOW_RIGHT_PAREN_in_from_source1390 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ID_in_from_source1412 = new BitSet(new long[]{0x0000000000100000L});
+ public static final BitSet FOLLOW_LEFT_PAREN_in_from_source1414 = new BitSet(new long[]{0x00408000002007B0L});
+ public static final BitSet FOLLOW_argument_list_in_from_source1418 = new BitSet(new long[]{0x0000000000200000L});
+ public static final BitSet FOLLOW_RIGHT_PAREN_in_from_source1420 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_46_in_accumulate_statement1469 = new BitSet(new long[]{0x0002000000000000L});
+ public static final BitSet FOLLOW_49_in_accumulate_statement1471 = new BitSet(new long[]{0x0000000000100000L});
+ public static final BitSet FOLLOW_LEFT_PAREN_in_accumulate_statement1481 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_lhs_column_in_accumulate_statement1485 = new BitSet(new long[]{0x0000000100000000L});
+ public static final BitSet FOLLOW_32_in_accumulate_statement1487 = new BitSet(new long[]{0x0004000000000000L});
+ public static final BitSet FOLLOW_50_in_accumulate_statement1496 = new BitSet(new long[]{0x0000000000100000L});
+ public static final BitSet FOLLOW_paren_chunk_in_accumulate_statement1500 = new BitSet(new long[]{0x0000000100000000L});
+ public static final BitSet FOLLOW_32_in_accumulate_statement1502 = new BitSet(new long[]{0x0008000000000000L});
+ public static final BitSet FOLLOW_51_in_accumulate_statement1511 = new BitSet(new long[]{0x0000000000100000L});
+ public static final BitSet FOLLOW_paren_chunk_in_accumulate_statement1515 = new BitSet(new long[]{0x0000000100000000L});
+ public static final BitSet FOLLOW_32_in_accumulate_statement1517 = new BitSet(new long[]{0x0010000000000000L});
+ public static final BitSet FOLLOW_52_in_accumulate_statement1526 = new BitSet(new long[]{0x0000000000100000L});
+ public static final BitSet FOLLOW_paren_chunk_in_accumulate_statement1530 = new BitSet(new long[]{0x0000000000200000L});
+ public static final BitSet FOLLOW_RIGHT_PAREN_in_accumulate_statement1532 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_46_in_collect_statement1575 = new BitSet(new long[]{0x0020000000000000L});
+ public static final BitSet FOLLOW_53_in_collect_statement1577 = new BitSet(new long[]{0x0000000000100000L});
+ public static final BitSet FOLLOW_LEFT_PAREN_in_collect_statement1587 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_lhs_column_in_collect_statement1591 = new BitSet(new long[]{0x0000000000200000L});
+ public static final BitSet FOLLOW_RIGHT_PAREN_in_collect_statement1593 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_argument_value_in_argument_list1626 = new BitSet(new long[]{0x0000000100000002L});
+ public static final BitSet FOLLOW_32_in_argument_list1642 = new BitSet(new long[]{0x00408000000007B0L});
+ public static final BitSet FOLLOW_argument_value_in_argument_list1646 = new BitSet(new long[]{0x0000000100000002L});
+ public static final BitSet FOLLOW_STRING_in_argument_value1686 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_INT_in_argument_value1697 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_FLOAT_in_argument_value1710 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_BOOL_in_argument_value1721 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ID_in_argument_value1733 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_54_in_argument_value1744 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_inline_map_in_argument_value1761 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_inline_array_in_argument_value1777 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_CURLY_CHUNK_in_inline_map1817 = new BitSet(new long[]{0x00408000000007B0L});
+ public static final BitSet FOLLOW_argument_value_in_inline_map1835 = new BitSet(new long[]{0x0080000000000000L});
+ public static final BitSet FOLLOW_55_in_inline_map1837 = new BitSet(new long[]{0x00408000000007B0L});
+ public static final BitSet FOLLOW_argument_value_in_inline_map1841 = new BitSet(new long[]{0x0100000100000800L});
+ public static final BitSet FOLLOW_EOL_in_inline_map1884 = new BitSet(new long[]{0x0000000100000000L});
+ public static final BitSet FOLLOW_32_in_inline_map1888 = new BitSet(new long[]{0x0040800000000FB0L});
+ public static final BitSet FOLLOW_EOL_in_inline_map1891 = new BitSet(new long[]{0x00408000000007B0L});
+ public static final BitSet FOLLOW_argument_value_in_inline_map1897 = new BitSet(new long[]{0x0080000000000000L});
+ public static final BitSet FOLLOW_55_in_inline_map1899 = new BitSet(new long[]{0x00408000000007B0L});
+ public static final BitSet FOLLOW_argument_value_in_inline_map1903 = new BitSet(new long[]{0x0100000100000800L});
+ public static final BitSet FOLLOW_56_in_inline_map1939 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_47_in_inline_array1983 = new BitSet(new long[]{0x00408000000007B0L});
+ public static final BitSet FOLLOW_argument_value_in_inline_array1987 = new BitSet(new long[]{0x0001000100000800L});
+ public static final BitSet FOLLOW_EOL_in_inline_array2005 = new BitSet(new long[]{0x0000000100000000L});
+ public static final BitSet FOLLOW_32_in_inline_array2008 = new BitSet(new long[]{0x0040800000000FB0L});
+ public static final BitSet FOLLOW_EOL_in_inline_array2010 = new BitSet(new long[]{0x00408000000007B0L});
+ public static final BitSet FOLLOW_argument_value_in_inline_array2015 = new BitSet(new long[]{0x0001000100000800L});
+ public static final BitSet FOLLOW_48_in_inline_array2028 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ID_in_fact_binding2072 = new BitSet(new long[]{0x0000004000000000L});
+ public static final BitSet FOLLOW_38_in_fact_binding2082 = new BitSet(new long[]{0x0000000000100010L});
+ public static final BitSet FOLLOW_fact_expression_in_fact_binding2086 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_LEFT_PAREN_in_fact_expression2118 = new BitSet(new long[]{0x0000000000100010L});
+ public static final BitSet FOLLOW_fact_expression_in_paren_in_fact_expression2122 = new BitSet(new long[]{0x0000000000200000L});
+ public static final BitSet FOLLOW_RIGHT_PAREN_in_fact_expression2125 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_fact_in_fact_expression2136 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_LEFT_PAREN_in_fact_expression_in_paren2167 = new BitSet(new long[]{0x0000000000100010L});
+ public static final BitSet FOLLOW_fact_expression_in_paren_in_fact_expression_in_paren2171 = new BitSet(new long[]{0x0000000000200000L});
+ public static final BitSet FOLLOW_RIGHT_PAREN_in_fact_expression_in_paren2173 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_fact_in_fact_expression_in_paren2184 = new BitSet(new long[]{0x0600000000000002L});
+ public static final BitSet FOLLOW_set_in_fact_expression_in_paren2197 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_fact_in_fact_expression_in_paren2214 = new BitSet(new long[]{0x0600000000000002L});
+ public static final BitSet FOLLOW_dotted_name_in_fact2253 = new BitSet(new long[]{0x0000000000100000L});
+ public static final BitSet FOLLOW_LEFT_PAREN_in_fact2266 = new BitSet(new long[]{0x0000000000200010L});
+ public static final BitSet FOLLOW_constraints_in_fact2274 = new BitSet(new long[]{0x0000000000200000L});
+ public static final BitSet FOLLOW_RIGHT_PAREN_in_fact2295 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_constraint_in_constraints2328 = new BitSet(new long[]{0x0000000100000002L});
+ public static final BitSet FOLLOW_predicate_in_constraints2331 = new BitSet(new long[]{0x0000000100000002L});
+ public static final BitSet FOLLOW_32_in_constraints2339 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_constraint_in_constraints2342 = new BitSet(new long[]{0x0000000100000002L});
+ public static final BitSet FOLLOW_predicate_in_constraints2345 = new BitSet(new long[]{0x0000000100000002L});
+ public static final BitSet FOLLOW_ID_in_constraint2374 = new BitSet(new long[]{0x0000004000000000L});
+ public static final BitSet FOLLOW_38_in_constraint2376 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_ID_in_constraint2386 = new BitSet(new long[]{0xE000000000000002L,0x000000000000003FL});
+ public static final BitSet FOLLOW_constraint_expression_in_constraint2402 = new BitSet(new long[]{0x1800000000000002L});
+ public static final BitSet FOLLOW_set_in_constraint2421 = new BitSet(new long[]{0xE000000000000000L,0x000000000000003FL});
+ public static final BitSet FOLLOW_constraint_expression_in_constraint2438 = new BitSet(new long[]{0x1800000000000002L});
+ public static final BitSet FOLLOW_set_in_constraint_expression2490 = new BitSet(new long[]{0x0040000000100790L});
+ public static final BitSet FOLLOW_ID_in_constraint_expression2557 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_enum_constraint_in_constraint_expression2573 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_literal_constraint_in_constraint_expression2596 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_retval_constraint_in_constraint_expression2610 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_STRING_in_literal_constraint2649 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_INT_in_literal_constraint2660 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_FLOAT_in_literal_constraint2673 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_BOOL_in_literal_constraint2684 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_54_in_literal_constraint2696 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ID_in_enum_constraint2727 = new BitSet(new long[]{0x0000000020000000L});
+ public static final BitSet FOLLOW_29_in_enum_constraint2729 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_ID_in_enum_constraint2733 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ID_in_predicate2755 = new BitSet(new long[]{0x0000004000000000L});
+ public static final BitSet FOLLOW_38_in_predicate2757 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_ID_in_predicate2761 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000040L});
+ public static final BitSet FOLLOW_70_in_predicate2763 = new BitSet(new long[]{0x0000000000100000L});
+ public static final BitSet FOLLOW_paren_chunk_in_predicate2767 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_LEFT_PAREN_in_paren_chunk2801 = new BitSet(new long[]{0x0000000000200000L});
+ public static final BitSet FOLLOW_RIGHT_PAREN_in_paren_chunk2824 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_paren_chunk_in_retval_constraint2851 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_lhs_and_in_lhs_or2888 = new BitSet(new long[]{0x0600000000000002L});
+ public static final BitSet FOLLOW_set_in_lhs_or2897 = new BitSet(new long[]{0x0000000000100010L,0x0000000000000E00L});
+ public static final BitSet FOLLOW_lhs_and_in_lhs_or2907 = new BitSet(new long[]{0x0600000000000002L});
+ public static final BitSet FOLLOW_lhs_unary_in_lhs_and2947 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000180L});
+ public static final BitSet FOLLOW_set_in_lhs_and2956 = new BitSet(new long[]{0x0000000000100010L,0x0000000000000E00L});
+ public static final BitSet FOLLOW_lhs_unary_in_lhs_and2966 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000180L});
+ public static final BitSet FOLLOW_lhs_exist_in_lhs_unary3003 = new BitSet(new long[]{0x0000000002000002L});
+ public static final BitSet FOLLOW_lhs_not_in_lhs_unary3011 = new BitSet(new long[]{0x0000000002000002L});
+ public static final BitSet FOLLOW_lhs_eval_in_lhs_unary3019 = new BitSet(new long[]{0x0000000002000002L});
+ public static final BitSet FOLLOW_lhs_column_in_lhs_unary3027 = new BitSet(new long[]{0x0000400002000002L});
+ public static final BitSet FOLLOW_from_statement_in_lhs_unary3047 = new BitSet(new long[]{0x0000000002000002L});
+ public static final BitSet FOLLOW_accumulate_statement_in_lhs_unary3069 = new BitSet(new long[]{0x0000000002000002L});
+ public static final BitSet FOLLOW_collect_statement_in_lhs_unary3090 = new BitSet(new long[]{0x0000000002000002L});
+ public static final BitSet FOLLOW_LEFT_PAREN_in_lhs_unary3113 = new BitSet(new long[]{0x0000000000100010L,0x0000000000000E00L});
+ public static final BitSet FOLLOW_lhs_in_lhs_unary3117 = new BitSet(new long[]{0x0000000000200000L});
+ public static final BitSet FOLLOW_RIGHT_PAREN_in_lhs_unary3119 = new BitSet(new long[]{0x0000000002000002L});
+ public static final BitSet FOLLOW_opt_semicolon_in_lhs_unary3129 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_73_in_lhs_exist3153 = new BitSet(new long[]{0x0000000000100010L});
+ public static final BitSet FOLLOW_LEFT_PAREN_in_lhs_exist3156 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_lhs_column_in_lhs_exist3160 = new BitSet(new long[]{0x0000000000200000L});
+ public static final BitSet FOLLOW_RIGHT_PAREN_in_lhs_exist3162 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_lhs_column_in_lhs_exist3168 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_74_in_lhs_not3198 = new BitSet(new long[]{0x0000000000100010L});
+ public static final BitSet FOLLOW_LEFT_PAREN_in_lhs_not3201 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_lhs_column_in_lhs_not3205 = new BitSet(new long[]{0x0000000000200000L});
+ public static final BitSet FOLLOW_RIGHT_PAREN_in_lhs_not3208 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_lhs_column_in_lhs_not3214 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_75_in_lhs_eval3242 = new BitSet(new long[]{0x0000000000100000L});
+ public static final BitSet FOLLOW_paren_chunk_in_lhs_eval3246 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ID_in_dotted_name3277 = new BitSet(new long[]{0x0000800020000002L});
+ public static final BitSet FOLLOW_29_in_dotted_name3283 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_ID_in_dotted_name3287 = new BitSet(new long[]{0x0000800020000002L});
+ public static final BitSet FOLLOW_47_in_dotted_name3296 = new BitSet(new long[]{0x0001000000000000L});
+ public static final BitSet FOLLOW_48_in_dotted_name3298 = new BitSet(new long[]{0x0000800000000002L});
+ public static final BitSet FOLLOW_ID_in_argument3328 = new BitSet(new long[]{0x0000800000000002L});
+ public static final BitSet FOLLOW_47_in_argument3334 = new BitSet(new long[]{0x0001000000000000L});
+ public static final BitSet FOLLOW_48_in_argument3336 = new BitSet(new long[]{0x0000800000000002L});
+ public static final BitSet FOLLOW_ID_in_word3364 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_27_in_word3376 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_76_in_word3385 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_36_in_word3397 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_33_in_word3408 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_40_in_word3418 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_41_in_word3426 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_37_in_word3434 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_RHS_in_word3445 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_34_in_word3456 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_STRING_in_word3470 = new BitSet(new long[]{0x0000000000000002L});
+
+}
Property changes on: labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/lang/DRLParser.java
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:keywords
+ id author date revision
Deleted: labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
===================================================================
--- labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/lang/RuleParser.java 2006-11-29 11:43:42 UTC (rev 7927)
+++ labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/lang/RuleParser.java 2006-11-29 11:48:37 UTC (rev 7928)
@@ -1,9849 +0,0 @@
-// $ANTLR 3.0ea8 /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g 2006-09-14 21:52:37
-
- package org.drools.lang;
- import java.util.List;
- import java.util.ArrayList;
- import java.util.Iterator;
- import java.util.Map;
- import java.util.HashMap;
- import java.util.StringTokenizer;
- import org.drools.lang.descr.*;
-
-
-import org.antlr.runtime.*;
-import java.util.Stack;
-import java.util.List;
-import java.util.ArrayList;
-
-public class RuleParser extends Parser {
- public static final String[] tokenNames = new String[] {
- "<invalid>", "<EOR>", "<DOWN>", "<UP>", "EOL", "ID", "INT", "BOOL", "STRING", "FLOAT", "MISC", "WS", "SH_STYLE_SINGLE_LINE_COMMENT", "C_STYLE_SINGLE_LINE_COMMENT", "MULTI_LINE_COMMENT", "\';\'", "\'package\'", "\'import\'", "\'function\'", "\'.\'", "\'.*\'", "\'expander\'", "\'global\'", "\'(\'", "\',\'", "\')\'", "\'{\'", "\'}\'", "\'query\'", "\'end\'", "\'template\'", "\'rule\'", "\'when\'", "\':\'", "\'then\'", "\'attributes\'", "\'salience\'", "\'no-loop\'", "\'auto-focus\'", "\'activation-group\'", "\'agenda-group\'", "\'duration\'", "\'from\'", "\'[\'", "\']\'", "\'accumulate\'", "\'init\'", "\'action\'", "\'result\'", "\'collect\'", "\'null\'", "\'=>\'", "\'or\'", "\'||\'", "\'&\'", "\'|\'", "\'->\'", "\'and\'", "\'&&\'", "\'exists\'", "\'not\'", "\'eval\'", "\'use\'", "\'==\'", "\'=\'", "\'>\'", "\'>=\'", "\'<\'", "\'<=\'", "\'!=\'", "\'contains\'", "\'matches\'", "\'excludes\'"
- };
- public static final int BOOL=7;
- public static final int INT=6;
- public static final int WS=11;
- public static final int EOF=-1;
- public static final int MISC=10;
- public static final int STRING=8;
- public static final int EOL=4;
- public static final int FLOAT=9;
- public static final int SH_STYLE_SINGLE_LINE_COMMENT=12;
- public static final int MULTI_LINE_COMMENT=14;
- public static final int C_STYLE_SINGLE_LINE_COMMENT=13;
- public static final int ID=5;
- public RuleParser(TokenStream input) {
- super(input);
- }
-
-
- public String[] getTokenNames() { return tokenNames; }
-
-
- private ExpanderResolver expanderResolver;
- private Expander expander;
- private boolean expanderDebug = false;
- private PackageDescr packageDescr;
- private List errors = new ArrayList();
- private String source = "unknown";
- private int lineOffset = 0;
- private DescrFactory factory = new DescrFactory();
-
-
- private boolean parserDebug = false;
-
- public void setParserDebug(boolean parserDebug) {
- this.parserDebug = parserDebug;
- }
-
- public void debug(String message) {
- if ( parserDebug )
- System.err.println( "drl parser: " + message );
- }
-
- public void setSource(String source) {
- this.source = source;
- }
-
- public DescrFactory getFactory() {
- return factory;
- }
-
- /**
- * This may be set to enable debuggin of DSLs/expanders.
- * If set to true, expander stuff will be sent to the Std out.
- */
- public void setExpanderDebug(boolean status) {
- expanderDebug = status;
- }
- public String getSource() {
- return this.source;
- }
-
- public PackageDescr getPackageDescr() {
- return packageDescr;
- }
-
- private int offset(int line) {
- return line + lineOffset;
- }
-
- /**
- * This will set the offset to record when reparsing. Normally is zero of course
- */
- public void setLineOffset(int i) {
- this.lineOffset = i;
- }
-
- public void setExpanderResolver(ExpanderResolver expanderResolver) {
- this.expanderResolver = expanderResolver;
- }
-
- public ExpanderResolver getExpanderResolver() {
- return expanderResolver;
- }
-
- /** Expand the LHS */
- private String runWhenExpander(String text, int line) throws RecognitionException {
- String expanded = text.trim();
- if (expanded.startsWith(">")) {
- expanded = expanded.substring(1); //escape !!
- } else {
- try {
- expanded = expander.expand( "when", text );
- } catch (Exception e) {
- this.errors.add(new ExpanderException("Unable to expand: " + text + ". Due to " + e.getMessage(), line));
- return "";
- }
- }
- if (expanderDebug) {
- System.out.println("Expanding LHS: " + text + " ----> " + expanded + " --> from line: " + line);
- }
- return expanded;
- }
-
- /** This will apply a list of constraints to an LHS block */
- private String applyConstraints(List constraints, String block) {
- //apply the constraints as a comma seperated list inside the previous block
- //the block will end in something like "foo()" and the constraint patterns will be put in the ()
- if (constraints == null) {
- return block;
- }
- StringBuffer list = new StringBuffer();
- for (Iterator iter = constraints.iterator(); iter.hasNext();) {
- String con = (String) iter.next();
- list.append("\n\t\t");
- list.append(con);
- if (iter.hasNext()) {
- list.append(",");
- }
- }
- if (block.endsWith("()")) {
- return block.substring(0, block.length() - 2) + "(" + list.toString() + ")";
- } else {
- return block + "(" + list.toString() + ")";
- }
- }
-
- /** Reparse the results of the expansion */
- private void reparseLhs(String text, AndDescr descrs) throws RecognitionException {
- CharStream charStream = new ANTLRStringStream( text + " \n then"); //need to then so it knows when to end... werd...
- RuleParserLexer lexer = new RuleParserLexer( charStream );
- TokenStream tokenStream = new CommonTokenStream( lexer );
- RuleParser parser = new RuleParser( tokenStream );
- parser.setLineOffset( descrs.getLine() );
- parser.normal_lhs_block(descrs);
-
- if (parser.hasErrors()) {
- this.errors.addAll(parser.getErrors());
- }
- if (expanderDebug) {
- System.out.println("Reparsing LHS: " + text + " --> successful:" + !parser.hasErrors());
- }
-
- }
-
- /** Expand a line on the RHS */
- private String runThenExpander(String text, int startLine) {
- //System.err.println( "expand THEN [" + text + "]" );
- StringTokenizer lines = new StringTokenizer( text, "\n\r" );
-
- StringBuffer expanded = new StringBuffer();
-
- String eol = System.getProperty( "line.separator" );
-
- while ( lines.hasMoreTokens() ) {
- startLine++;
- String line = lines.nextToken();
- line = line.trim();
- if ( line.length() > 0 ) {
- if ( line.startsWith( ">" ) ) {
- expanded.append( line.substring( 1 ) );
- expanded.append( eol );
- } else {
- try {
- expanded.append( expander.expand( "then", line ) );
- expanded.append( eol );
- } catch (Exception e) {
- this.errors.add(new ExpanderException("Unable to expand: " + line + ". Due to " + e.getMessage(), startLine));
- }
- }
- }
- }
-
- if (expanderDebug) {
- System.out.println("Expanding RHS: " + text + " ----> " + expanded.toString() + " --> from line starting: " + startLine);
- }
-
- return expanded.toString();
- }
-
-
-
- private String getString(Token token) {
- String orig = token.getText();
- return orig.substring( 1, orig.length() -1 );
- }
-
- public void reportError(RecognitionException ex) {
- // if we've already reported an error and have not matched a token
- // yet successfully, don't report any errors.
- if ( errorRecovery ) {
- return;
- }
- errorRecovery = true;
-
- ex.line = offset(ex.line); //add the offset if there is one
- errors.add( ex );
- }
-
- /** return the raw RecognitionException errors */
- public List getErrors() {
- return errors;
- }
-
- /** Return a list of pretty strings summarising the errors */
- public List getErrorMessages() {
- List messages = new ArrayList();
- for ( Iterator errorIter = errors.iterator() ; errorIter.hasNext() ; ) {
- messages.add( createErrorMessage( (RecognitionException) errorIter.next() ) );
- }
- return messages;
- }
-
- /** return true if any parser errors were accumulated */
- public boolean hasErrors() {
- return ! errors.isEmpty();
- }
-
- /** This will take a RecognitionException, and create a sensible error message out of it */
- public String createErrorMessage(RecognitionException e)
- {
- StringBuffer message = new StringBuffer();
- message.append( source + ":"+e.line+":"+e.charPositionInLine+" ");
- if ( e instanceof MismatchedTokenException ) {
- MismatchedTokenException mte = (MismatchedTokenException)e;
- message.append("mismatched token: "+
- e.token+
- "; expecting type "+
- tokenNames[mte.expecting]);
- }
- else if ( e instanceof MismatchedTreeNodeException ) {
- MismatchedTreeNodeException mtne = (MismatchedTreeNodeException)e;
- message.append("mismatched tree node: "+
- mtne.foundNode+
- "; expecting type "+
- tokenNames[mtne.expecting]);
- }
- else if ( e instanceof NoViableAltException ) {
- NoViableAltException nvae = (NoViableAltException)e;
- message.append( "Unexpected token '" + e.token.getText() + "'" );
- /*
- message.append("decision=<<"+nvae.grammarDecisionDescription+">>"+
- " state "+nvae.stateNumber+
- " (decision="+nvae.decisionNumber+
- ") no viable alt; token="+
- e.token);
- */
- }
- else if ( e instanceof EarlyExitException ) {
- EarlyExitException eee = (EarlyExitException)e;
- message.append("required (...)+ loop (decision="+
- eee.decisionNumber+
- ") did not match anything; token="+
- e.token);
- }
- else if ( e instanceof MismatchedSetException ) {
- MismatchedSetException mse = (MismatchedSetException)e;
- message.append("mismatched token '"+
- e.token+
- "' expecting set "+mse.expecting);
- }
- else if ( e instanceof MismatchedNotSetException ) {
- MismatchedNotSetException mse = (MismatchedNotSetException)e;
- message.append("mismatched token '"+
- e.token+
- "' expecting set "+mse.expecting);
- }
- else if ( e instanceof FailedPredicateException ) {
- FailedPredicateException fpe = (FailedPredicateException)e;
- message.append("rule "+fpe.ruleName+" failed predicate: {"+
- fpe.predicateText+"}?");
- } else if (e instanceof GeneralParseException) {
- message.append(" " + e.getMessage());
- }
- return message.toString();
- }
-
- void checkTrailingSemicolon(String text, int line) {
- if (text.trim().endsWith( ";" ) ) {
- this.errors.add( new GeneralParseException( "Trailing semi-colon not allowed", offset(line) ) );
- }
- }
-
- private String padConsequenceLine(int diff, String cons) {
- for(int i = 0; i < diff; i++) {
- cons = cons + '\n';
- }
- return cons;
- }
-
-
-
-
- // $ANTLR start opt_eol
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:289:1: opt_eol : ( (';'|EOL))* ;
- public void opt_eol() throws RecognitionException {
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:290:17: ( ( (';'|EOL))* )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:290:17: ( (';'|EOL))*
- {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:290:17: ( (';'|EOL))*
- loop1:
- do {
- int alt1=2;
- int LA1_0 = input.LA(1);
- if ( LA1_0==EOL ) {
- alt1=1;
- }
- else if ( LA1_0==15 ) {
- alt1=1;
- }
-
-
- switch (alt1) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:290:18: (';'|EOL)
- {
- if ( input.LA(1)==EOL||input.LA(1)==15 ) {
- input.consume();
- errorRecovery=false;
- }
- else {
- MismatchedSetException mse =
- new MismatchedSetException(null,input);
- recoverFromMismatchedSet(input,mse,FOLLOW_set_in_opt_eol41); throw mse;
- }
-
-
- }
- break;
-
- default :
- break loop1;
- }
- } while (true);
-
-
- }
-
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return ;
- }
- // $ANTLR end opt_eol
-
-
- // $ANTLR start compilation_unit
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:293:1: compilation_unit : opt_eol prolog (r= rule | q= query | t= template | extra_statement )* ;
- public void compilation_unit() throws RecognitionException {
- RuleDescr r = null;
-
- QueryDescr q = null;
-
- FactTemplateDescr t = null;
-
-
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:294:17: ( opt_eol prolog (r= rule | q= query | t= template | extra_statement )* )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:294:17: opt_eol prolog (r= rule | q= query | t= template | extra_statement )*
- {
- following.push(FOLLOW_opt_eol_in_compilation_unit57);
- opt_eol();
- following.pop();
-
- following.push(FOLLOW_prolog_in_compilation_unit61);
- prolog();
- following.pop();
-
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:296:17: (r= rule | q= query | t= template | extra_statement )*
- loop2:
- do {
- int alt2=5;
- alt2 = dfa2.predict(input);
- switch (alt2) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:296:25: r= rule
- {
- following.push(FOLLOW_rule_in_compilation_unit70);
- r=rule();
- following.pop();
-
- this.packageDescr.addRule( r );
-
- }
- break;
- case 2 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:297:25: q= query
- {
- following.push(FOLLOW_query_in_compilation_unit83);
- q=query();
- following.pop();
-
- this.packageDescr.addRule( q );
-
- }
- break;
- case 3 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:298:25: t= template
- {
- following.push(FOLLOW_template_in_compilation_unit93);
- t=template();
- following.pop();
-
- this.packageDescr.addFactTemplate ( t );
-
- }
- break;
- case 4 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:299:25: extra_statement
- {
- following.push(FOLLOW_extra_statement_in_compilation_unit101);
- extra_statement();
- following.pop();
-
-
- }
- break;
-
- default :
- break loop2;
- }
- } while (true);
-
-
- }
-
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return ;
- }
- // $ANTLR end compilation_unit
-
-
- // $ANTLR start prolog
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:303:1: prolog : opt_eol (name= package_statement )? ( extra_statement | expander )* opt_eol ;
- public void prolog() throws RecognitionException {
- String name = null;
-
-
-
- String packageName = "";
-
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:307:17: ( opt_eol (name= package_statement )? ( extra_statement | expander )* opt_eol )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:307:17: opt_eol (name= package_statement )? ( extra_statement | expander )* opt_eol
- {
- following.push(FOLLOW_opt_eol_in_prolog125);
- opt_eol();
- following.pop();
-
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:308:17: (name= package_statement )?
- int alt3=2;
- int LA3_0 = input.LA(1);
- if ( LA3_0==16 ) {
- alt3=1;
- }
- else if ( LA3_0==-1||LA3_0==EOL||LA3_0==15||(LA3_0>=17 && LA3_0<=18)||(LA3_0>=21 && LA3_0<=22)||LA3_0==28||(LA3_0>=30 && LA3_0<=31) ) {
- alt3=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("308:17: (name= package_statement )?", 3, 0, input);
-
- throw nvae;
- }
- switch (alt3) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:308:19: name= package_statement
- {
- following.push(FOLLOW_package_statement_in_prolog133);
- name=package_statement();
- following.pop();
-
- packageName = name;
-
- }
- break;
-
- }
-
-
- this.packageDescr = new PackageDescr( name );
-
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:312:17: ( extra_statement | expander )*
- loop4:
- do {
- int alt4=3;
- alt4 = dfa4.predict(input);
- switch (alt4) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:312:25: extra_statement
- {
- following.push(FOLLOW_extra_statement_in_prolog148);
- extra_statement();
- following.pop();
-
-
- }
- break;
- case 2 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:313:25: expander
- {
- following.push(FOLLOW_expander_in_prolog154);
- expander();
- following.pop();
-
-
- }
- break;
-
- default :
- break loop4;
- }
- } while (true);
-
- following.push(FOLLOW_opt_eol_in_prolog166);
- opt_eol();
- following.pop();
-
-
- }
-
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return ;
- }
- // $ANTLR end prolog
-
-
- // $ANTLR start package_statement
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:319:1: package_statement returns [String packageName] : 'package' opt_eol name= dotted_name ( ';' )? opt_eol ;
- public String package_statement() throws RecognitionException {
- String packageName;
- String name = null;
-
-
-
- packageName = null;
-
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:324:17: ( 'package' opt_eol name= dotted_name ( ';' )? opt_eol )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:324:17: 'package' opt_eol name= dotted_name ( ';' )? opt_eol
- {
- match(input,16,FOLLOW_16_in_package_statement190);
- following.push(FOLLOW_opt_eol_in_package_statement192);
- opt_eol();
- following.pop();
-
- following.push(FOLLOW_dotted_name_in_package_statement196);
- name=dotted_name();
- following.pop();
-
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:324:52: ( ';' )?
- int alt5=2;
- int LA5_0 = input.LA(1);
- if ( LA5_0==15 ) {
- alt5=1;
- }
- else if ( LA5_0==-1||LA5_0==EOL||(LA5_0>=17 && LA5_0<=18)||(LA5_0>=21 && LA5_0<=22)||LA5_0==28||(LA5_0>=30 && LA5_0<=31) ) {
- alt5=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("324:52: ( \';\' )?", 5, 0, input);
-
- throw nvae;
- }
- switch (alt5) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:324:52: ';'
- {
- match(input,15,FOLLOW_15_in_package_statement198);
-
- }
- break;
-
- }
-
- following.push(FOLLOW_opt_eol_in_package_statement201);
- opt_eol();
- following.pop();
-
-
- packageName = name;
-
-
- }
-
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return packageName;
- }
- // $ANTLR end package_statement
-
-
- // $ANTLR start import_statement
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:330:1: import_statement : 'import' opt_eol name= import_name ( ';' )? opt_eol ;
- public void import_statement() throws RecognitionException {
- String name = null;
-
-
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:331:17: ( 'import' opt_eol name= import_name ( ';' )? opt_eol )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:331:17: 'import' opt_eol name= import_name ( ';' )? opt_eol
- {
- match(input,17,FOLLOW_17_in_import_statement217);
- following.push(FOLLOW_opt_eol_in_import_statement219);
- opt_eol();
- following.pop();
-
- following.push(FOLLOW_import_name_in_import_statement223);
- name=import_name();
- following.pop();
-
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:331:51: ( ';' )?
- int alt6=2;
- int LA6_0 = input.LA(1);
- if ( LA6_0==15 ) {
- alt6=1;
- }
- else if ( LA6_0==-1||LA6_0==EOL||(LA6_0>=17 && LA6_0<=18)||(LA6_0>=21 && LA6_0<=22)||LA6_0==28||(LA6_0>=30 && LA6_0<=31) ) {
- alt6=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("331:51: ( \';\' )?", 6, 0, input);
-
- throw nvae;
- }
- switch (alt6) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:331:51: ';'
- {
- match(input,15,FOLLOW_15_in_import_statement225);
-
- }
- break;
-
- }
-
- following.push(FOLLOW_opt_eol_in_import_statement228);
- opt_eol();
- following.pop();
-
-
- if (packageDescr != null)
- packageDescr.addImport( name );
-
-
- }
-
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return ;
- }
- // $ANTLR end import_statement
-
-
- // $ANTLR start function_import_statement
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:338:1: function_import_statement : 'import' 'function' opt_eol name= import_name ( ';' )? opt_eol ;
- public void function_import_statement() throws RecognitionException {
- String name = null;
-
-
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:339:17: ( 'import' 'function' opt_eol name= import_name ( ';' )? opt_eol )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:339:17: 'import' 'function' opt_eol name= import_name ( ';' )? opt_eol
- {
- match(input,17,FOLLOW_17_in_function_import_statement244);
- match(input,18,FOLLOW_18_in_function_import_statement246);
- following.push(FOLLOW_opt_eol_in_function_import_statement248);
- opt_eol();
- following.pop();
-
- following.push(FOLLOW_import_name_in_function_import_statement252);
- name=import_name();
- following.pop();
-
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:339:62: ( ';' )?
- int alt7=2;
- int LA7_0 = input.LA(1);
- if ( LA7_0==15 ) {
- alt7=1;
- }
- else if ( LA7_0==-1||LA7_0==EOL||(LA7_0>=17 && LA7_0<=18)||(LA7_0>=21 && LA7_0<=22)||LA7_0==28||(LA7_0>=30 && LA7_0<=31) ) {
- alt7=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("339:62: ( \';\' )?", 7, 0, input);
-
- throw nvae;
- }
- switch (alt7) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:339:62: ';'
- {
- match(input,15,FOLLOW_15_in_function_import_statement254);
-
- }
- break;
-
- }
-
- following.push(FOLLOW_opt_eol_in_function_import_statement257);
- opt_eol();
- following.pop();
-
-
- if (packageDescr != null)
- packageDescr.addFunctionImport( name );
-
-
- }
-
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return ;
- }
- // $ANTLR end function_import_statement
-
-
- // $ANTLR start import_name
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:347:1: import_name returns [String name] : id= ID ( '.' id= ID )* (star= '.*' )? ;
- public String import_name() throws RecognitionException {
- String name;
- Token id=null;
- Token star=null;
-
-
- name = null;
-
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:352:17: (id= ID ( '.' id= ID )* (star= '.*' )? )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:352:17: id= ID ( '.' id= ID )* (star= '.*' )?
- {
- id=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_import_name289);
- name=id.getText();
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:352:46: ( '.' id= ID )*
- loop8:
- do {
- int alt8=2;
- int LA8_0 = input.LA(1);
- if ( LA8_0==19 ) {
- alt8=1;
- }
-
-
- switch (alt8) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:352:48: '.' id= ID
- {
- match(input,19,FOLLOW_19_in_import_name295);
- id=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_import_name299);
- name = name + "." + id.getText();
-
- }
- break;
-
- default :
- break loop8;
- }
- } while (true);
-
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:352:99: (star= '.*' )?
- int alt9=2;
- int LA9_0 = input.LA(1);
- if ( LA9_0==20 ) {
- alt9=1;
- }
- else if ( LA9_0==-1||LA9_0==EOL||LA9_0==15||(LA9_0>=17 && LA9_0<=18)||(LA9_0>=21 && LA9_0<=22)||LA9_0==28||(LA9_0>=30 && LA9_0<=31) ) {
- alt9=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("352:99: (star= \'.*\' )?", 9, 0, input);
-
- throw nvae;
- }
- switch (alt9) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:352:100: star= '.*'
- {
- star=(Token)input.LT(1);
- match(input,20,FOLLOW_20_in_import_name309);
- name = name + star.getText();
-
- }
- break;
-
- }
-
-
- }
-
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return name;
- }
- // $ANTLR end import_name
-
-
- // $ANTLR start expander
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:354:1: expander : 'expander' (name= dotted_name )? ( ';' )? opt_eol ;
- public void expander() throws RecognitionException {
- String name = null;
-
-
-
- String config=null;
-
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:358:17: ( 'expander' (name= dotted_name )? ( ';' )? opt_eol )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:358:17: 'expander' (name= dotted_name )? ( ';' )? opt_eol
- {
- match(input,21,FOLLOW_21_in_expander329);
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:358:28: (name= dotted_name )?
- int alt10=2;
- int LA10_0 = input.LA(1);
- if ( LA10_0==ID ) {
- alt10=1;
- }
- else if ( LA10_0==-1||LA10_0==EOL||LA10_0==15||(LA10_0>=17 && LA10_0<=18)||(LA10_0>=21 && LA10_0<=22)||LA10_0==28||(LA10_0>=30 && LA10_0<=31) ) {
- alt10=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("358:28: (name= dotted_name )?", 10, 0, input);
-
- throw nvae;
- }
- switch (alt10) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:358:29: name= dotted_name
- {
- following.push(FOLLOW_dotted_name_in_expander334);
- name=dotted_name();
- following.pop();
-
-
- }
- break;
-
- }
-
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:358:48: ( ';' )?
- int alt11=2;
- int LA11_0 = input.LA(1);
- if ( LA11_0==15 ) {
- alt11=1;
- }
- else if ( LA11_0==-1||LA11_0==EOL||(LA11_0>=17 && LA11_0<=18)||(LA11_0>=21 && LA11_0<=22)||LA11_0==28||(LA11_0>=30 && LA11_0<=31) ) {
- alt11=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("358:48: ( \';\' )?", 11, 0, input);
-
- throw nvae;
- }
- switch (alt11) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:358:48: ';'
- {
- match(input,15,FOLLOW_15_in_expander338);
-
- }
- break;
-
- }
-
- following.push(FOLLOW_opt_eol_in_expander341);
- opt_eol();
- following.pop();
-
-
- if (expanderResolver == null)
- throw new IllegalArgumentException("Unable to use expander. Make sure a expander or dsl config is being passed to the parser. [ExpanderResolver was not set].");
- if ( expander != null )
- throw new IllegalArgumentException( "Only one 'expander' statement per file is allowed" );
- expander = expanderResolver.get( name, config );
-
-
- }
-
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return ;
- }
- // $ANTLR end expander
-
-
- // $ANTLR start global
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:368:1: global : 'global' type= dotted_name id= ID ( ';' )? opt_eol ;
- public void global() throws RecognitionException {
- Token id=null;
- String type = null;
-
-
-
-
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:372:17: ( 'global' type= dotted_name id= ID ( ';' )? opt_eol )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:372:17: 'global' type= dotted_name id= ID ( ';' )? opt_eol
- {
- match(input,22,FOLLOW_22_in_global365);
- following.push(FOLLOW_dotted_name_in_global369);
- type=dotted_name();
- following.pop();
-
- id=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_global373);
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:372:49: ( ';' )?
- int alt12=2;
- int LA12_0 = input.LA(1);
- if ( LA12_0==15 ) {
- alt12=1;
- }
- else if ( LA12_0==-1||LA12_0==EOL||(LA12_0>=17 && LA12_0<=18)||(LA12_0>=21 && LA12_0<=22)||LA12_0==28||(LA12_0>=30 && LA12_0<=31) ) {
- alt12=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("372:49: ( \';\' )?", 12, 0, input);
-
- throw nvae;
- }
- switch (alt12) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:372:49: ';'
- {
- match(input,15,FOLLOW_15_in_global375);
-
- }
- break;
-
- }
-
- following.push(FOLLOW_opt_eol_in_global378);
- opt_eol();
- following.pop();
-
-
- packageDescr.addGlobal( id.getText(), type );
-
-
- }
-
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return ;
- }
- // $ANTLR end global
-
-
- // $ANTLR start function
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:378:1: function : loc= 'function' opt_eol (retType= dotted_name )? opt_eol name= ID opt_eol '(' opt_eol ( (paramType= dotted_name )? opt_eol paramName= argument_name opt_eol ( ',' opt_eol (paramType= dotted_name )? opt_eol paramName= argument_name opt_eol )* )? ')' opt_eol '{' body= curly_chunk '}' opt_eol ;
- public void function() throws RecognitionException {
- Token loc=null;
- Token name=null;
- String retType = null;
-
- String paramType = null;
-
- String paramName = null;
-
- String body = null;
-
-
-
- FunctionDescr f = null;
-
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:383:17: (loc= 'function' opt_eol (retType= dotted_name )? opt_eol name= ID opt_eol '(' opt_eol ( (paramType= dotted_name )? opt_eol paramName= argument_name opt_eol ( ',' opt_eol (paramType= dotted_name )? opt_eol paramName= argument_name opt_eol )* )? ')' opt_eol '{' body= curly_chunk '}' opt_eol )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:383:17: loc= 'function' opt_eol (retType= dotted_name )? opt_eol name= ID opt_eol '(' opt_eol ( (paramType= dotted_name )? opt_eol paramName= argument_name opt_eol ( ',' opt_eol (paramType= dotted_name )? opt_eol paramName= argument_name opt_eol )* )? ')' opt_eol '{' body= curly_chunk '}' opt_eol
- {
- loc=(Token)input.LT(1);
- match(input,18,FOLLOW_18_in_function404);
- following.push(FOLLOW_opt_eol_in_function406);
- opt_eol();
- following.pop();
-
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:383:40: (retType= dotted_name )?
- int alt13=2;
- alt13 = dfa13.predict(input);
- switch (alt13) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:383:41: retType= dotted_name
- {
- following.push(FOLLOW_dotted_name_in_function411);
- retType=dotted_name();
- following.pop();
-
-
- }
- break;
-
- }
-
- following.push(FOLLOW_opt_eol_in_function415);
- opt_eol();
- following.pop();
-
- name=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_function419);
- following.push(FOLLOW_opt_eol_in_function421);
- opt_eol();
- following.pop();
-
-
- //System.err.println( "function :: " + name.getText() );
- f = new FunctionDescr( name.getText(), retType );
- f.setLocation(offset(loc.getLine()), loc.getCharPositionInLine());
-
- match(input,23,FOLLOW_23_in_function430);
- following.push(FOLLOW_opt_eol_in_function432);
- opt_eol();
- following.pop();
-
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:390:25: ( (paramType= dotted_name )? opt_eol paramName= argument_name opt_eol ( ',' opt_eol (paramType= dotted_name )? opt_eol paramName= argument_name opt_eol )* )?
- int alt17=2;
- int LA17_0 = input.LA(1);
- if ( (LA17_0>=EOL && LA17_0<=ID)||LA17_0==15 ) {
- alt17=1;
- }
- else if ( LA17_0==25 ) {
- alt17=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("390:25: ( (paramType= dotted_name )? opt_eol paramName= argument_name opt_eol ( \',\' opt_eol (paramType= dotted_name )? opt_eol paramName= argument_name opt_eol )* )?", 17, 0, input);
-
- throw nvae;
- }
- switch (alt17) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:390:33: (paramType= dotted_name )? opt_eol paramName= argument_name opt_eol ( ',' opt_eol (paramType= dotted_name )? opt_eol paramName= argument_name opt_eol )*
- {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:390:33: (paramType= dotted_name )?
- int alt14=2;
- alt14 = dfa14.predict(input);
- switch (alt14) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:390:34: paramType= dotted_name
- {
- following.push(FOLLOW_dotted_name_in_function442);
- paramType=dotted_name();
- following.pop();
-
-
- }
- break;
-
- }
-
- following.push(FOLLOW_opt_eol_in_function446);
- opt_eol();
- following.pop();
-
- following.push(FOLLOW_argument_name_in_function450);
- paramName=argument_name();
- following.pop();
-
- following.push(FOLLOW_opt_eol_in_function452);
- opt_eol();
- following.pop();
-
-
- f.addParameter( paramType, paramName );
-
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:394:33: ( ',' opt_eol (paramType= dotted_name )? opt_eol paramName= argument_name opt_eol )*
- loop16:
- do {
- int alt16=2;
- int LA16_0 = input.LA(1);
- if ( LA16_0==24 ) {
- alt16=1;
- }
-
-
- switch (alt16) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:394:41: ',' opt_eol (paramType= dotted_name )? opt_eol paramName= argument_name opt_eol
- {
- match(input,24,FOLLOW_24_in_function466);
- following.push(FOLLOW_opt_eol_in_function468);
- opt_eol();
- following.pop();
-
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:394:53: (paramType= dotted_name )?
- int alt15=2;
- alt15 = dfa15.predict(input);
- switch (alt15) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:394:54: paramType= dotted_name
- {
- following.push(FOLLOW_dotted_name_in_function473);
- paramType=dotted_name();
- following.pop();
-
-
- }
- break;
-
- }
-
- following.push(FOLLOW_opt_eol_in_function477);
- opt_eol();
- following.pop();
-
- following.push(FOLLOW_argument_name_in_function481);
- paramName=argument_name();
- following.pop();
-
- following.push(FOLLOW_opt_eol_in_function483);
- opt_eol();
- following.pop();
-
-
- f.addParameter( paramType, paramName );
-
-
- }
- break;
-
- default :
- break loop16;
- }
- } while (true);
-
-
- }
- break;
-
- }
-
- match(input,25,FOLLOW_25_in_function508);
- following.push(FOLLOW_opt_eol_in_function512);
- opt_eol();
- following.pop();
-
- match(input,26,FOLLOW_26_in_function516);
- following.push(FOLLOW_curly_chunk_in_function523);
- body=curly_chunk();
- following.pop();
-
-
- f.setText( body );
-
- match(input,27,FOLLOW_27_in_function532);
-
- packageDescr.addFunction( f );
-
- following.push(FOLLOW_opt_eol_in_function540);
- opt_eol();
- following.pop();
-
-
- }
-
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return ;
- }
- // $ANTLR end function
-
-
- // $ANTLR start query
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:415:1: query returns [QueryDescr query] : opt_eol loc= 'query' queryName= word opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) 'end' opt_eol ;
- public QueryDescr query() throws RecognitionException {
- QueryDescr query;
- Token loc=null;
- String queryName = null;
-
-
-
- query = null;
-
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:420:17: ( opt_eol loc= 'query' queryName= word opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) 'end' opt_eol )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:420:17: opt_eol loc= 'query' queryName= word opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) 'end' opt_eol
- {
- following.push(FOLLOW_opt_eol_in_query564);
- opt_eol();
- following.pop();
-
- loc=(Token)input.LT(1);
- match(input,28,FOLLOW_28_in_query570);
- following.push(FOLLOW_word_in_query574);
- queryName=word();
- following.pop();
-
- following.push(FOLLOW_opt_eol_in_query576);
- opt_eol();
- following.pop();
-
-
- query = new QueryDescr( queryName, null );
- query.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
- AndDescr lhs = new AndDescr(); query.setLhs( lhs );
- lhs.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
-
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:428:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )
- int alt18=2;
- switch ( input.LA(1) ) {
- case 23:
- int LA18_1 = input.LA(2);
- if ( expander != null ) {
- alt18=1;
- }
- else if ( true ) {
- alt18=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("428:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 18, 1, input);
-
- throw nvae;
- }
- break;
- case EOL:
- int LA18_2 = input.LA(2);
- if ( expander != null ) {
- alt18=1;
- }
- else if ( true ) {
- alt18=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("428:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 18, 2, input);
-
- throw nvae;
- }
- break;
- case 29:
- int LA18_3 = input.LA(2);
- if ( expander != null ) {
- alt18=1;
- }
- else if ( true ) {
- alt18=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("428:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 18, 3, input);
-
- throw nvae;
- }
- break;
- case 59:
- int LA18_4 = input.LA(2);
- if ( expander != null ) {
- alt18=1;
- }
- else if ( true ) {
- alt18=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("428:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 18, 4, input);
-
- throw nvae;
- }
- break;
- case 60:
- int LA18_5 = input.LA(2);
- if ( expander != null ) {
- alt18=1;
- }
- else if ( true ) {
- alt18=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("428:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 18, 5, input);
-
- throw nvae;
- }
- break;
- case 61:
- int LA18_6 = input.LA(2);
- if ( expander != null ) {
- alt18=1;
- }
- else if ( true ) {
- alt18=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("428:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 18, 6, input);
-
- throw nvae;
- }
- break;
- case ID:
- int LA18_7 = input.LA(2);
- if ( expander != null ) {
- alt18=1;
- }
- else if ( true ) {
- alt18=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("428:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 18, 7, input);
-
- throw nvae;
- }
- break;
- case 15:
- int LA18_8 = input.LA(2);
- if ( expander != null ) {
- alt18=1;
- }
- else if ( true ) {
- alt18=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("428:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 18, 8, input);
-
- throw nvae;
- }
- break;
- case INT:
- case BOOL:
- case STRING:
- case FLOAT:
- case MISC:
- case WS:
- case SH_STYLE_SINGLE_LINE_COMMENT:
- case C_STYLE_SINGLE_LINE_COMMENT:
- case MULTI_LINE_COMMENT:
- case 16:
- case 17:
- case 18:
- case 19:
- case 20:
- case 21:
- case 22:
- case 24:
- case 25:
- case 26:
- case 27:
- case 28:
- case 30:
- case 31:
- case 32:
- case 33:
- case 34:
- case 35:
- case 36:
- case 37:
- case 38:
- case 39:
- case 40:
- case 41:
- case 42:
- case 43:
- case 44:
- case 45:
- case 46:
- case 47:
- case 48:
- case 49:
- case 50:
- case 51:
- case 52:
- case 53:
- case 54:
- case 55:
- case 56:
- case 57:
- case 58:
- case 62:
- case 63:
- case 64:
- case 65:
- case 66:
- case 67:
- case 68:
- case 69:
- case 70:
- case 71:
- case 72:
- alt18=1;
- break;
- default:
- NoViableAltException nvae =
- new NoViableAltException("428:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 18, 0, input);
-
- throw nvae;
- }
-
- switch (alt18) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:429:25: {...}? expander_lhs_block[lhs]
- {
- if ( !( expander != null ) ) {
- throw new FailedPredicateException(input, "query", " expander != null ");
- }
- following.push(FOLLOW_expander_lhs_block_in_query592);
- expander_lhs_block(lhs);
- following.pop();
-
-
- }
- break;
- case 2 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:430:27: normal_lhs_block[lhs]
- {
- following.push(FOLLOW_normal_lhs_block_in_query600);
- normal_lhs_block(lhs);
- following.pop();
-
-
- }
- break;
-
- }
-
- match(input,29,FOLLOW_29_in_query615);
- following.push(FOLLOW_opt_eol_in_query617);
- opt_eol();
- following.pop();
-
-
- }
-
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return query;
- }
- // $ANTLR end query
-
-
- // $ANTLR start template
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:436:1: template returns [FactTemplateDescr template] : opt_eol loc= 'template' templateName= ID EOL (slot= template_slot )+ 'end' EOL ;
- public FactTemplateDescr template() throws RecognitionException {
- FactTemplateDescr template;
- Token loc=null;
- Token templateName=null;
- FieldTemplateDescr slot = null;
-
-
-
- template = null;
-
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:441:17: ( opt_eol loc= 'template' templateName= ID EOL (slot= template_slot )+ 'end' EOL )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:441:17: opt_eol loc= 'template' templateName= ID EOL (slot= template_slot )+ 'end' EOL
- {
- following.push(FOLLOW_opt_eol_in_template641);
- opt_eol();
- following.pop();
-
- loc=(Token)input.LT(1);
- match(input,30,FOLLOW_30_in_template647);
- templateName=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_template651);
- match(input,EOL,FOLLOW_EOL_in_template653);
-
- template = new FactTemplateDescr(templateName.getText());
- template.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
-
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:447:17: (slot= template_slot )+
- int cnt19=0;
- loop19:
- do {
- int alt19=2;
- int LA19_0 = input.LA(1);
- if ( LA19_0==ID ) {
- alt19=1;
- }
-
-
- switch (alt19) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:448:25: slot= template_slot
- {
- following.push(FOLLOW_template_slot_in_template668);
- slot=template_slot();
- following.pop();
-
-
- template.addFieldTemplate(slot);
-
-
- }
- break;
-
- default :
- if ( cnt19 >= 1 ) break loop19;
- EarlyExitException eee =
- new EarlyExitException(19, input);
- throw eee;
- }
- cnt19++;
- } while (true);
-
- match(input,29,FOLLOW_29_in_template683);
- match(input,EOL,FOLLOW_EOL_in_template685);
-
- }
-
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return template;
- }
- // $ANTLR end template
-
-
- // $ANTLR start template_slot
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:456:1: template_slot returns [FieldTemplateDescr field] : fieldType= dotted_name name= ID (EOL|';');
- public FieldTemplateDescr template_slot() throws RecognitionException {
- FieldTemplateDescr field;
- Token name=null;
- String fieldType = null;
-
-
-
- field = null;
-
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:462:18: (fieldType= dotted_name name= ID (EOL|';'))
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:462:18: fieldType= dotted_name name= ID (EOL|';')
- {
- following.push(FOLLOW_dotted_name_in_template_slot717);
- fieldType=dotted_name();
- following.pop();
-
- name=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_template_slot721);
- if ( input.LA(1)==EOL||input.LA(1)==15 ) {
- input.consume();
- errorRecovery=false;
- }
- else {
- MismatchedSetException mse =
- new MismatchedSetException(null,input);
- recoverFromMismatchedSet(input,mse,FOLLOW_set_in_template_slot725); throw mse;
- }
-
-
-
-
- field = new FieldTemplateDescr(name.getText(), fieldType);
- field.setLocation( offset(name.getLine()), name.getCharPositionInLine() );
-
-
- }
-
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return field;
- }
- // $ANTLR end template_slot
-
-
- // $ANTLR start rule
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:471:1: rule returns [RuleDescr rule] : opt_eol loc= 'rule' ruleName= word opt_eol ( rule_attributes[rule] )? opt_eol ( (loc= 'when' ( ':' )? opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) )? ( opt_eol loc= 'then' ( ':' )? opt_eol ( options {greedy=false; } : any= . ( EOL )* )* )? )? 'end' opt_eol ;
- public RuleDescr rule() throws RecognitionException {
- RuleDescr rule;
- Token loc=null;
- Token any=null;
- String ruleName = null;
-
-
-
- rule = null;
- String consequence = "";
-
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:477:17: ( opt_eol loc= 'rule' ruleName= word opt_eol ( rule_attributes[rule] )? opt_eol ( (loc= 'when' ( ':' )? opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) )? ( opt_eol loc= 'then' ( ':' )? opt_eol ( options {greedy=false; } : any= . ( EOL )* )* )? )? 'end' opt_eol )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:477:17: opt_eol loc= 'rule' ruleName= word opt_eol ( rule_attributes[rule] )? opt_eol ( (loc= 'when' ( ':' )? opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) )? ( opt_eol loc= 'then' ( ':' )? opt_eol ( options {greedy=false; } : any= . ( EOL )* )* )? )? 'end' opt_eol
- {
- following.push(FOLLOW_opt_eol_in_rule760);
- opt_eol();
- following.pop();
-
- loc=(Token)input.LT(1);
- match(input,31,FOLLOW_31_in_rule766);
- following.push(FOLLOW_word_in_rule770);
- ruleName=word();
- following.pop();
-
- following.push(FOLLOW_opt_eol_in_rule772);
- opt_eol();
- following.pop();
-
-
- debug( "start rule: " + ruleName );
- rule = new RuleDescr( ruleName, null );
- rule.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
-
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:484:17: ( rule_attributes[rule] )?
- int alt20=2;
- switch ( input.LA(1) ) {
- case 33:
- case 35:
- alt20=1;
- break;
- case EOL:
- case 15:
- case 24:
- case 36:
- case 37:
- case 38:
- case 39:
- case 40:
- case 41:
- alt20=1;
- break;
- case 32:
- alt20=1;
- break;
- case 34:
- alt20=1;
- break;
- case 29:
- alt20=1;
- break;
- default:
- NoViableAltException nvae =
- new NoViableAltException("484:17: ( rule_attributes[rule] )?", 20, 0, input);
-
- throw nvae;
- }
-
- switch (alt20) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:484:25: rule_attributes[rule]
- {
- following.push(FOLLOW_rule_attributes_in_rule783);
- rule_attributes(rule);
- following.pop();
-
-
- }
- break;
-
- }
-
- following.push(FOLLOW_opt_eol_in_rule793);
- opt_eol();
- following.pop();
-
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:487:17: ( (loc= 'when' ( ':' )? opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) )? ( opt_eol loc= 'then' ( ':' )? opt_eol ( options {greedy=false; } : any= . ( EOL )* )* )? )?
- int alt28=2;
- int LA28_0 = input.LA(1);
- if ( LA28_0==EOL||LA28_0==15||LA28_0==32||LA28_0==34 ) {
- alt28=1;
- }
- else if ( LA28_0==29 ) {
- alt28=1;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("487:17: ( (loc= \'when\' ( \':\' )? opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) )? ( opt_eol loc= \'then\' ( \':\' )? opt_eol ( options {greedy=false; } : any= . ( EOL )* )* )? )?", 28, 0, input);
-
- throw nvae;
- }
- switch (alt28) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:487:18: (loc= 'when' ( ':' )? opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) )? ( opt_eol loc= 'then' ( ':' )? opt_eol ( options {greedy=false; } : any= . ( EOL )* )* )?
- {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:487:18: (loc= 'when' ( ':' )? opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) )?
- int alt23=2;
- int LA23_0 = input.LA(1);
- if ( LA23_0==32 ) {
- alt23=1;
- }
- else if ( LA23_0==EOL||LA23_0==15||LA23_0==29||LA23_0==34 ) {
- alt23=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("487:18: (loc= \'when\' ( \':\' )? opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) )?", 23, 0, input);
-
- throw nvae;
- }
- switch (alt23) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:487:25: loc= 'when' ( ':' )? opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )
- {
- loc=(Token)input.LT(1);
- match(input,32,FOLLOW_32_in_rule802);
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:487:36: ( ':' )?
- int alt21=2;
- int LA21_0 = input.LA(1);
- if ( LA21_0==33 ) {
- int LA21_1 = input.LA(2);
- if ( !( expander != null ) ) {
- alt21=1;
- }
- else if ( expander != null ) {
- alt21=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("487:36: ( \':\' )?", 21, 1, input);
-
- throw nvae;
- }
- }
- else if ( (LA21_0>=EOL && LA21_0<=32)||(LA21_0>=34 && LA21_0<=72) ) {
- alt21=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("487:36: ( \':\' )?", 21, 0, input);
-
- throw nvae;
- }
- switch (alt21) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:487:36: ':'
- {
- match(input,33,FOLLOW_33_in_rule804);
-
- }
- break;
-
- }
-
- following.push(FOLLOW_opt_eol_in_rule807);
- opt_eol();
- following.pop();
-
-
- AndDescr lhs = new AndDescr(); rule.setLhs( lhs );
- lhs.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
-
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:492:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )
- int alt22=2;
- switch ( input.LA(1) ) {
- case 23:
- int LA22_1 = input.LA(2);
- if ( expander != null ) {
- alt22=1;
- }
- else if ( true ) {
- alt22=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("492:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 22, 1, input);
-
- throw nvae;
- }
- break;
- case EOL:
- int LA22_2 = input.LA(2);
- if ( expander != null ) {
- alt22=1;
- }
- else if ( true ) {
- alt22=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("492:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 22, 2, input);
-
- throw nvae;
- }
- break;
- case 15:
- int LA22_3 = input.LA(2);
- if ( expander != null ) {
- alt22=1;
- }
- else if ( true ) {
- alt22=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("492:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 22, 3, input);
-
- throw nvae;
- }
- break;
- case 34:
- int LA22_4 = input.LA(2);
- if ( expander != null ) {
- alt22=1;
- }
- else if ( true ) {
- alt22=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("492:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 22, 4, input);
-
- throw nvae;
- }
- break;
- case 29:
- int LA22_5 = input.LA(2);
- if ( expander != null ) {
- alt22=1;
- }
- else if ( true ) {
- alt22=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("492:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 22, 5, input);
-
- throw nvae;
- }
- break;
- case 59:
- int LA22_6 = input.LA(2);
- if ( expander != null ) {
- alt22=1;
- }
- else if ( true ) {
- alt22=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("492:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 22, 6, input);
-
- throw nvae;
- }
- break;
- case 60:
- int LA22_7 = input.LA(2);
- if ( expander != null ) {
- alt22=1;
- }
- else if ( true ) {
- alt22=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("492:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 22, 7, input);
-
- throw nvae;
- }
- break;
- case 61:
- int LA22_8 = input.LA(2);
- if ( expander != null ) {
- alt22=1;
- }
- else if ( true ) {
- alt22=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("492:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 22, 8, input);
-
- throw nvae;
- }
- break;
- case ID:
- int LA22_9 = input.LA(2);
- if ( expander != null ) {
- alt22=1;
- }
- else if ( true ) {
- alt22=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("492:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 22, 9, input);
-
- throw nvae;
- }
- break;
- case INT:
- case BOOL:
- case STRING:
- case FLOAT:
- case MISC:
- case WS:
- case SH_STYLE_SINGLE_LINE_COMMENT:
- case C_STYLE_SINGLE_LINE_COMMENT:
- case MULTI_LINE_COMMENT:
- case 16:
- case 17:
- case 18:
- case 19:
- case 20:
- case 21:
- case 22:
- case 24:
- case 25:
- case 26:
- case 27:
- case 28:
- case 30:
- case 31:
- case 32:
- case 33:
- case 35:
- case 36:
- case 37:
- case 38:
- case 39:
- case 40:
- case 41:
- case 42:
- case 43:
- case 44:
- case 45:
- case 46:
- case 47:
- case 48:
- case 49:
- case 50:
- case 51:
- case 52:
- case 53:
- case 54:
- case 55:
- case 56:
- case 57:
- case 58:
- case 62:
- case 63:
- case 64:
- case 65:
- case 66:
- case 67:
- case 68:
- case 69:
- case 70:
- case 71:
- case 72:
- alt22=1;
- break;
- default:
- NoViableAltException nvae =
- new NoViableAltException("492:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 22, 0, input);
-
- throw nvae;
- }
-
- switch (alt22) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:493:33: {...}? expander_lhs_block[lhs]
- {
- if ( !( expander != null ) ) {
- throw new FailedPredicateException(input, "rule", " expander != null ");
- }
- following.push(FOLLOW_expander_lhs_block_in_rule825);
- expander_lhs_block(lhs);
- following.pop();
-
-
- }
- break;
- case 2 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:494:35: normal_lhs_block[lhs]
- {
- following.push(FOLLOW_normal_lhs_block_in_rule834);
- normal_lhs_block(lhs);
- following.pop();
-
-
- }
- break;
-
- }
-
-
- }
- break;
-
- }
-
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:498:17: ( opt_eol loc= 'then' ( ':' )? opt_eol ( options {greedy=false; } : any= . ( EOL )* )* )?
- int alt27=2;
- int LA27_0 = input.LA(1);
- if ( LA27_0==EOL||LA27_0==15||LA27_0==34 ) {
- alt27=1;
- }
- else if ( LA27_0==29 ) {
- alt27=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("498:17: ( opt_eol loc= \'then\' ( \':\' )? opt_eol ( options {greedy=false; } : any= . ( EOL )* )* )?", 27, 0, input);
-
- throw nvae;
- }
- switch (alt27) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:498:19: opt_eol loc= 'then' ( ':' )? opt_eol ( options {greedy=false; } : any= . ( EOL )* )*
- {
- following.push(FOLLOW_opt_eol_in_rule857);
- opt_eol();
- following.pop();
-
- loc=(Token)input.LT(1);
- match(input,34,FOLLOW_34_in_rule861);
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:498:38: ( ':' )?
- int alt24=2;
- int LA24_0 = input.LA(1);
- if ( LA24_0==33 ) {
- alt24=1;
- }
- else if ( (LA24_0>=EOL && LA24_0<=32)||(LA24_0>=34 && LA24_0<=72) ) {
- alt24=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("498:38: ( \':\' )?", 24, 0, input);
-
- throw nvae;
- }
- switch (alt24) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:498:38: ':'
- {
- match(input,33,FOLLOW_33_in_rule863);
-
- }
- break;
-
- }
-
- following.push(FOLLOW_opt_eol_in_rule867);
- opt_eol();
- following.pop();
-
- int prevLine = loc.getLine()+1;
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:500:25: ( options {greedy=false; } : any= . ( EOL )* )*
- loop26:
- do {
- int alt26=2;
- int LA26_0 = input.LA(1);
- if ( LA26_0==29 ) {
- alt26=2;
- }
- else if ( (LA26_0>=EOL && LA26_0<=28)||(LA26_0>=30 && LA26_0<=72) ) {
- alt26=1;
- }
-
-
- switch (alt26) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:500:52: any= . ( EOL )*
- {
- any=(Token)input.LT(1);
- matchAny(input);
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:500:58: ( EOL )*
- loop25:
- do {
- int alt25=2;
- int LA25_0 = input.LA(1);
- if ( LA25_0==EOL ) {
- alt25=1;
- }
-
-
- switch (alt25) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:500:59: EOL
- {
- match(input,EOL,FOLLOW_EOL_in_rule894);
-
- }
- break;
-
- default :
- break loop25;
- }
- } while (true);
-
-
- /*
- if (prevLine = 0) { prevLine = any.getLine() ;}
-
- int lineDif = any.getLine() - prevLine - 1;
- consequence = padConsequenceLines(lineDif, consequence);
- */
- int diff = any.getLine() - prevLine;
- consequence = padConsequenceLine(diff, consequence);
- consequence = consequence + " " + any.getText();
- prevLine = any.getLine();
-
-
- }
- break;
-
- default :
- break loop26;
- }
- } while (true);
-
-
- if ( expander != null ) {
- String expanded = runThenExpander( consequence, offset(loc.getLine()) );
- rule.setConsequence( expanded );
- } else {
- rule.setConsequence( consequence );
- }
- rule.setConsequenceLocation(offset(loc.getLine()), loc.getCharPositionInLine());
-
-
- }
- break;
-
- }
-
-
- }
- break;
-
- }
-
- match(input,29,FOLLOW_29_in_rule924);
- following.push(FOLLOW_opt_eol_in_rule926);
- opt_eol();
- following.pop();
-
-
- debug( "end rule: " + ruleName );
-
-
- }
-
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return rule;
- }
- // $ANTLR end rule
-
-
- // $ANTLR start extra_statement
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:530:1: extra_statement : ( import_statement | function_import_statement | global | function ) ;
- public void extra_statement() throws RecognitionException {
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:532:9: ( ( import_statement | function_import_statement | global | function ) )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:532:9: ( import_statement | function_import_statement | global | function )
- {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:532:9: ( import_statement | function_import_statement | global | function )
- int alt29=4;
- switch ( input.LA(1) ) {
- case 17:
- int LA29_1 = input.LA(2);
- if ( LA29_1==18 ) {
- alt29=2;
- }
- else if ( (LA29_1>=EOL && LA29_1<=ID)||LA29_1==15 ) {
- alt29=1;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("532:9: ( import_statement | function_import_statement | global | function )", 29, 1, input);
-
- throw nvae;
- }
- break;
- case 22:
- alt29=3;
- break;
- case 18:
- alt29=4;
- break;
- default:
- NoViableAltException nvae =
- new NoViableAltException("532:9: ( import_statement | function_import_statement | global | function )", 29, 0, input);
-
- throw nvae;
- }
-
- switch (alt29) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:532:17: import_statement
- {
- following.push(FOLLOW_import_statement_in_extra_statement946);
- import_statement();
- following.pop();
-
-
- }
- break;
- case 2 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:533:17: function_import_statement
- {
- following.push(FOLLOW_function_import_statement_in_extra_statement951);
- function_import_statement();
- following.pop();
-
-
- }
- break;
- case 3 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:534:17: global
- {
- following.push(FOLLOW_global_in_extra_statement956);
- global();
- following.pop();
-
-
- }
- break;
- case 4 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:535:17: function
- {
- following.push(FOLLOW_function_in_extra_statement961);
- function();
- following.pop();
-
-
- }
- break;
-
- }
-
-
- }
-
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return ;
- }
- // $ANTLR end extra_statement
-
-
- // $ANTLR start rule_attributes
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:539:1: rule_attributes[RuleDescr rule] : ( 'attributes' )? ( ':' )? opt_eol ( ( ',' )? a= rule_attribute opt_eol )* ;
- public void rule_attributes(RuleDescr rule) throws RecognitionException {
- AttributeDescr a = null;
-
-
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:541:25: ( ( 'attributes' )? ( ':' )? opt_eol ( ( ',' )? a= rule_attribute opt_eol )* )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:541:25: ( 'attributes' )? ( ':' )? opt_eol ( ( ',' )? a= rule_attribute opt_eol )*
- {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:541:25: ( 'attributes' )?
- int alt30=2;
- int LA30_0 = input.LA(1);
- if ( LA30_0==35 ) {
- alt30=1;
- }
- else if ( LA30_0==EOL||LA30_0==15||LA30_0==24||LA30_0==29||(LA30_0>=32 && LA30_0<=34)||(LA30_0>=36 && LA30_0<=41) ) {
- alt30=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("541:25: ( \'attributes\' )?", 30, 0, input);
-
- throw nvae;
- }
- switch (alt30) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:541:25: 'attributes'
- {
- match(input,35,FOLLOW_35_in_rule_attributes980);
-
- }
- break;
-
- }
-
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:541:39: ( ':' )?
- int alt31=2;
- int LA31_0 = input.LA(1);
- if ( LA31_0==33 ) {
- alt31=1;
- }
- else if ( LA31_0==EOL||LA31_0==15||LA31_0==24||LA31_0==29||LA31_0==32||LA31_0==34||(LA31_0>=36 && LA31_0<=41) ) {
- alt31=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("541:39: ( \':\' )?", 31, 0, input);
-
- throw nvae;
- }
- switch (alt31) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:541:39: ':'
- {
- match(input,33,FOLLOW_33_in_rule_attributes983);
-
- }
- break;
-
- }
-
- following.push(FOLLOW_opt_eol_in_rule_attributes986);
- opt_eol();
- following.pop();
-
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:542:25: ( ( ',' )? a= rule_attribute opt_eol )*
- loop33:
- do {
- int alt33=2;
- int LA33_0 = input.LA(1);
- if ( LA33_0==24||(LA33_0>=36 && LA33_0<=41) ) {
- alt33=1;
- }
-
-
- switch (alt33) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:542:33: ( ',' )? a= rule_attribute opt_eol
- {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:542:33: ( ',' )?
- int alt32=2;
- int LA32_0 = input.LA(1);
- if ( LA32_0==24 ) {
- alt32=1;
- }
- else if ( (LA32_0>=36 && LA32_0<=41) ) {
- alt32=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("542:33: ( \',\' )?", 32, 0, input);
-
- throw nvae;
- }
- switch (alt32) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:542:33: ','
- {
- match(input,24,FOLLOW_24_in_rule_attributes993);
-
- }
- break;
-
- }
-
- following.push(FOLLOW_rule_attribute_in_rule_attributes998);
- a=rule_attribute();
- following.pop();
-
- following.push(FOLLOW_opt_eol_in_rule_attributes1000);
- opt_eol();
- following.pop();
-
-
- rule.addAttribute( a );
-
-
- }
- break;
-
- default :
- break loop33;
- }
- } while (true);
-
-
- }
-
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return ;
- }
- // $ANTLR end rule_attributes
-
-
- // $ANTLR start rule_attribute
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:549:1: rule_attribute returns [AttributeDescr d] : (a= salience | a= no_loop | a= agenda_group | a= duration | a= activation_group | a= auto_focus );
- public AttributeDescr rule_attribute() throws RecognitionException {
- AttributeDescr d;
- AttributeDescr a = null;
-
-
-
- d = null;
-
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:554:25: (a= salience | a= no_loop | a= agenda_group | a= duration | a= activation_group | a= auto_focus )
- int alt34=6;
- switch ( input.LA(1) ) {
- case 36:
- alt34=1;
- break;
- case 37:
- alt34=2;
- break;
- case 40:
- alt34=3;
- break;
- case 41:
- alt34=4;
- break;
- case 39:
- alt34=5;
- break;
- case 38:
- alt34=6;
- break;
- default:
- NoViableAltException nvae =
- new NoViableAltException("549:1: rule_attribute returns [AttributeDescr d] : (a= salience | a= no_loop | a= agenda_group | a= duration | a= activation_group | a= auto_focus );", 34, 0, input);
-
- throw nvae;
- }
-
- switch (alt34) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:554:25: a= salience
- {
- following.push(FOLLOW_salience_in_rule_attribute1039);
- a=salience();
- following.pop();
-
- d = a;
-
- }
- break;
- case 2 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:555:25: a= no_loop
- {
- following.push(FOLLOW_no_loop_in_rule_attribute1049);
- a=no_loop();
- following.pop();
-
- d = a;
-
- }
- break;
- case 3 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:556:25: a= agenda_group
- {
- following.push(FOLLOW_agenda_group_in_rule_attribute1060);
- a=agenda_group();
- following.pop();
-
- d = a;
-
- }
- break;
- case 4 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:557:25: a= duration
- {
- following.push(FOLLOW_duration_in_rule_attribute1073);
- a=duration();
- following.pop();
-
- d = a;
-
- }
- break;
- case 5 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:558:25: a= activation_group
- {
- following.push(FOLLOW_activation_group_in_rule_attribute1087);
- a=activation_group();
- following.pop();
-
- d = a;
-
- }
- break;
- case 6 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:559:25: a= auto_focus
- {
- following.push(FOLLOW_auto_focus_in_rule_attribute1098);
- a=auto_focus();
- following.pop();
-
- d = a;
-
- }
- break;
-
- }
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return d;
- }
- // $ANTLR end rule_attribute
-
-
- // $ANTLR start salience
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:563:1: salience returns [AttributeDescr d ] : loc= 'salience' opt_eol i= INT ( ';' )? opt_eol ;
- public AttributeDescr salience() throws RecognitionException {
- AttributeDescr d;
- Token loc=null;
- Token i=null;
-
-
- d = null;
-
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:568:17: (loc= 'salience' opt_eol i= INT ( ';' )? opt_eol )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:568:17: loc= 'salience' opt_eol i= INT ( ';' )? opt_eol
- {
- loc=(Token)input.LT(1);
- match(input,36,FOLLOW_36_in_salience1131);
- following.push(FOLLOW_opt_eol_in_salience1133);
- opt_eol();
- following.pop();
-
- i=(Token)input.LT(1);
- match(input,INT,FOLLOW_INT_in_salience1137);
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:568:46: ( ';' )?
- int alt35=2;
- int LA35_0 = input.LA(1);
- if ( LA35_0==15 ) {
- alt35=1;
- }
- else if ( LA35_0==EOL||LA35_0==24||LA35_0==29||LA35_0==32||LA35_0==34||(LA35_0>=36 && LA35_0<=41) ) {
- alt35=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("568:46: ( \';\' )?", 35, 0, input);
-
- throw nvae;
- }
- switch (alt35) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:568:46: ';'
- {
- match(input,15,FOLLOW_15_in_salience1139);
-
- }
- break;
-
- }
-
- following.push(FOLLOW_opt_eol_in_salience1142);
- opt_eol();
- following.pop();
-
-
- d = new AttributeDescr( "salience", i.getText() );
- d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
-
-
- }
-
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return d;
- }
- // $ANTLR end salience
-
-
- // $ANTLR start no_loop
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:575:1: no_loop returns [AttributeDescr d] : ( (loc= 'no-loop' opt_eol ( ';' )? opt_eol ) | (loc= 'no-loop' t= BOOL opt_eol ( ';' )? opt_eol ) );
- public AttributeDescr no_loop() throws RecognitionException {
- AttributeDescr d;
- Token loc=null;
- Token t=null;
-
-
- d = null;
-
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:580:17: ( (loc= 'no-loop' opt_eol ( ';' )? opt_eol ) | (loc= 'no-loop' t= BOOL opt_eol ( ';' )? opt_eol ) )
- int alt38=2;
- int LA38_0 = input.LA(1);
- if ( LA38_0==37 ) {
- int LA38_1 = input.LA(2);
- if ( LA38_1==BOOL ) {
- alt38=2;
- }
- else if ( LA38_1==EOL||LA38_1==15||LA38_1==24||LA38_1==29||LA38_1==32||LA38_1==34||(LA38_1>=36 && LA38_1<=41) ) {
- alt38=1;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("575:1: no_loop returns [AttributeDescr d] : ( (loc= \'no-loop\' opt_eol ( \';\' )? opt_eol ) | (loc= \'no-loop\' t= BOOL opt_eol ( \';\' )? opt_eol ) );", 38, 1, input);
-
- throw nvae;
- }
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("575:1: no_loop returns [AttributeDescr d] : ( (loc= \'no-loop\' opt_eol ( \';\' )? opt_eol ) | (loc= \'no-loop\' t= BOOL opt_eol ( \';\' )? opt_eol ) );", 38, 0, input);
-
- throw nvae;
- }
- switch (alt38) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:580:17: (loc= 'no-loop' opt_eol ( ';' )? opt_eol )
- {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:580:17: (loc= 'no-loop' opt_eol ( ';' )? opt_eol )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:581:25: loc= 'no-loop' opt_eol ( ';' )? opt_eol
- {
- loc=(Token)input.LT(1);
- match(input,37,FOLLOW_37_in_no_loop1177);
- following.push(FOLLOW_opt_eol_in_no_loop1179);
- opt_eol();
- following.pop();
-
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:581:47: ( ';' )?
- int alt36=2;
- int LA36_0 = input.LA(1);
- if ( LA36_0==15 ) {
- alt36=1;
- }
- else if ( LA36_0==EOL||LA36_0==24||LA36_0==29||LA36_0==32||LA36_0==34||(LA36_0>=36 && LA36_0<=41) ) {
- alt36=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("581:47: ( \';\' )?", 36, 0, input);
-
- throw nvae;
- }
- switch (alt36) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:581:47: ';'
- {
- match(input,15,FOLLOW_15_in_no_loop1181);
-
- }
- break;
-
- }
-
- following.push(FOLLOW_opt_eol_in_no_loop1184);
- opt_eol();
- following.pop();
-
-
- d = new AttributeDescr( "no-loop", "true" );
- d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
-
-
- }
-
-
- }
- break;
- case 2 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:588:17: (loc= 'no-loop' t= BOOL opt_eol ( ';' )? opt_eol )
- {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:588:17: (loc= 'no-loop' t= BOOL opt_eol ( ';' )? opt_eol )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:589:25: loc= 'no-loop' t= BOOL opt_eol ( ';' )? opt_eol
- {
- loc=(Token)input.LT(1);
- match(input,37,FOLLOW_37_in_no_loop1209);
- t=(Token)input.LT(1);
- match(input,BOOL,FOLLOW_BOOL_in_no_loop1213);
- following.push(FOLLOW_opt_eol_in_no_loop1215);
- opt_eol();
- following.pop();
-
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:589:54: ( ';' )?
- int alt37=2;
- int LA37_0 = input.LA(1);
- if ( LA37_0==15 ) {
- alt37=1;
- }
- else if ( LA37_0==EOL||LA37_0==24||LA37_0==29||LA37_0==32||LA37_0==34||(LA37_0>=36 && LA37_0<=41) ) {
- alt37=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("589:54: ( \';\' )?", 37, 0, input);
-
- throw nvae;
- }
- switch (alt37) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:589:54: ';'
- {
- match(input,15,FOLLOW_15_in_no_loop1217);
-
- }
- break;
-
- }
-
- following.push(FOLLOW_opt_eol_in_no_loop1220);
- opt_eol();
- following.pop();
-
-
- d = new AttributeDescr( "no-loop", t.getText() );
- d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
-
-
- }
-
-
- }
- break;
-
- }
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return d;
- }
- // $ANTLR end no_loop
-
-
- // $ANTLR start auto_focus
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:599:1: auto_focus returns [AttributeDescr d] : ( (loc= 'auto-focus' opt_eol ( ';' )? opt_eol ) | (loc= 'auto-focus' t= BOOL opt_eol ( ';' )? opt_eol ) );
- public AttributeDescr auto_focus() throws RecognitionException {
- AttributeDescr d;
- Token loc=null;
- Token t=null;
-
-
- d = null;
-
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:604:17: ( (loc= 'auto-focus' opt_eol ( ';' )? opt_eol ) | (loc= 'auto-focus' t= BOOL opt_eol ( ';' )? opt_eol ) )
- int alt41=2;
- int LA41_0 = input.LA(1);
- if ( LA41_0==38 ) {
- int LA41_1 = input.LA(2);
- if ( LA41_1==BOOL ) {
- alt41=2;
- }
- else if ( LA41_1==EOL||LA41_1==15||LA41_1==24||LA41_1==29||LA41_1==32||LA41_1==34||(LA41_1>=36 && LA41_1<=41) ) {
- alt41=1;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("599:1: auto_focus returns [AttributeDescr d] : ( (loc= \'auto-focus\' opt_eol ( \';\' )? opt_eol ) | (loc= \'auto-focus\' t= BOOL opt_eol ( \';\' )? opt_eol ) );", 41, 1, input);
-
- throw nvae;
- }
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("599:1: auto_focus returns [AttributeDescr d] : ( (loc= \'auto-focus\' opt_eol ( \';\' )? opt_eol ) | (loc= \'auto-focus\' t= BOOL opt_eol ( \';\' )? opt_eol ) );", 41, 0, input);
-
- throw nvae;
- }
- switch (alt41) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:604:17: (loc= 'auto-focus' opt_eol ( ';' )? opt_eol )
- {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:604:17: (loc= 'auto-focus' opt_eol ( ';' )? opt_eol )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:605:25: loc= 'auto-focus' opt_eol ( ';' )? opt_eol
- {
- loc=(Token)input.LT(1);
- match(input,38,FOLLOW_38_in_auto_focus1266);
- following.push(FOLLOW_opt_eol_in_auto_focus1268);
- opt_eol();
- following.pop();
-
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:605:50: ( ';' )?
- int alt39=2;
- int LA39_0 = input.LA(1);
- if ( LA39_0==15 ) {
- alt39=1;
- }
- else if ( LA39_0==EOL||LA39_0==24||LA39_0==29||LA39_0==32||LA39_0==34||(LA39_0>=36 && LA39_0<=41) ) {
- alt39=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("605:50: ( \';\' )?", 39, 0, input);
-
- throw nvae;
- }
- switch (alt39) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:605:50: ';'
- {
- match(input,15,FOLLOW_15_in_auto_focus1270);
-
- }
- break;
-
- }
-
- following.push(FOLLOW_opt_eol_in_auto_focus1273);
- opt_eol();
- following.pop();
-
-
- d = new AttributeDescr( "auto-focus", "true" );
- d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
-
-
- }
-
-
- }
- break;
- case 2 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:612:17: (loc= 'auto-focus' t= BOOL opt_eol ( ';' )? opt_eol )
- {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:612:17: (loc= 'auto-focus' t= BOOL opt_eol ( ';' )? opt_eol )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:613:25: loc= 'auto-focus' t= BOOL opt_eol ( ';' )? opt_eol
- {
- loc=(Token)input.LT(1);
- match(input,38,FOLLOW_38_in_auto_focus1298);
- t=(Token)input.LT(1);
- match(input,BOOL,FOLLOW_BOOL_in_auto_focus1302);
- following.push(FOLLOW_opt_eol_in_auto_focus1304);
- opt_eol();
- following.pop();
-
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:613:57: ( ';' )?
- int alt40=2;
- int LA40_0 = input.LA(1);
- if ( LA40_0==15 ) {
- alt40=1;
- }
- else if ( LA40_0==EOL||LA40_0==24||LA40_0==29||LA40_0==32||LA40_0==34||(LA40_0>=36 && LA40_0<=41) ) {
- alt40=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("613:57: ( \';\' )?", 40, 0, input);
-
- throw nvae;
- }
- switch (alt40) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:613:57: ';'
- {
- match(input,15,FOLLOW_15_in_auto_focus1306);
-
- }
- break;
-
- }
-
- following.push(FOLLOW_opt_eol_in_auto_focus1309);
- opt_eol();
- following.pop();
-
-
- d = new AttributeDescr( "auto-focus", t.getText() );
- d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
-
-
- }
-
-
- }
- break;
-
- }
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return d;
- }
- // $ANTLR end auto_focus
-
-
- // $ANTLR start activation_group
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:623:1: activation_group returns [AttributeDescr d] : loc= 'activation-group' opt_eol name= STRING ( ';' )? opt_eol ;
- public AttributeDescr activation_group() throws RecognitionException {
- AttributeDescr d;
- Token loc=null;
- Token name=null;
-
-
- d = null;
-
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:628:17: (loc= 'activation-group' opt_eol name= STRING ( ';' )? opt_eol )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:628:17: loc= 'activation-group' opt_eol name= STRING ( ';' )? opt_eol
- {
- loc=(Token)input.LT(1);
- match(input,39,FOLLOW_39_in_activation_group1351);
- following.push(FOLLOW_opt_eol_in_activation_group1353);
- opt_eol();
- following.pop();
-
- name=(Token)input.LT(1);
- match(input,STRING,FOLLOW_STRING_in_activation_group1357);
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:628:60: ( ';' )?
- int alt42=2;
- int LA42_0 = input.LA(1);
- if ( LA42_0==15 ) {
- alt42=1;
- }
- else if ( LA42_0==EOL||LA42_0==24||LA42_0==29||LA42_0==32||LA42_0==34||(LA42_0>=36 && LA42_0<=41) ) {
- alt42=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("628:60: ( \';\' )?", 42, 0, input);
-
- throw nvae;
- }
- switch (alt42) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:628:60: ';'
- {
- match(input,15,FOLLOW_15_in_activation_group1359);
-
- }
- break;
-
- }
-
- following.push(FOLLOW_opt_eol_in_activation_group1362);
- opt_eol();
- following.pop();
-
-
- d = new AttributeDescr( "activation-group", getString( name ) );
- d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
-
-
- }
-
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return d;
- }
- // $ANTLR end activation_group
-
-
- // $ANTLR start agenda_group
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:635:1: agenda_group returns [AttributeDescr d] : loc= 'agenda-group' opt_eol name= STRING ( ';' )? opt_eol ;
- public AttributeDescr agenda_group() throws RecognitionException {
- AttributeDescr d;
- Token loc=null;
- Token name=null;
-
-
- d = null;
-
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:640:17: (loc= 'agenda-group' opt_eol name= STRING ( ';' )? opt_eol )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:640:17: loc= 'agenda-group' opt_eol name= STRING ( ';' )? opt_eol
- {
- loc=(Token)input.LT(1);
- match(input,40,FOLLOW_40_in_agenda_group1391);
- following.push(FOLLOW_opt_eol_in_agenda_group1393);
- opt_eol();
- following.pop();
-
- name=(Token)input.LT(1);
- match(input,STRING,FOLLOW_STRING_in_agenda_group1397);
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:640:56: ( ';' )?
- int alt43=2;
- int LA43_0 = input.LA(1);
- if ( LA43_0==15 ) {
- alt43=1;
- }
- else if ( LA43_0==EOL||LA43_0==24||LA43_0==29||LA43_0==32||LA43_0==34||(LA43_0>=36 && LA43_0<=41) ) {
- alt43=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("640:56: ( \';\' )?", 43, 0, input);
-
- throw nvae;
- }
- switch (alt43) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:640:56: ';'
- {
- match(input,15,FOLLOW_15_in_agenda_group1399);
-
- }
- break;
-
- }
-
- following.push(FOLLOW_opt_eol_in_agenda_group1402);
- opt_eol();
- following.pop();
-
-
- d = new AttributeDescr( "agenda-group", getString( name ) );
- d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
-
-
- }
-
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return d;
- }
- // $ANTLR end agenda_group
-
-
- // $ANTLR start duration
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:648:1: duration returns [AttributeDescr d] : loc= 'duration' opt_eol i= INT ( ';' )? opt_eol ;
- public AttributeDescr duration() throws RecognitionException {
- AttributeDescr d;
- Token loc=null;
- Token i=null;
-
-
- d = null;
-
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:653:17: (loc= 'duration' opt_eol i= INT ( ';' )? opt_eol )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:653:17: loc= 'duration' opt_eol i= INT ( ';' )? opt_eol
- {
- loc=(Token)input.LT(1);
- match(input,41,FOLLOW_41_in_duration1434);
- following.push(FOLLOW_opt_eol_in_duration1436);
- opt_eol();
- following.pop();
-
- i=(Token)input.LT(1);
- match(input,INT,FOLLOW_INT_in_duration1440);
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:653:46: ( ';' )?
- int alt44=2;
- int LA44_0 = input.LA(1);
- if ( LA44_0==15 ) {
- alt44=1;
- }
- else if ( LA44_0==EOL||LA44_0==24||LA44_0==29||LA44_0==32||LA44_0==34||(LA44_0>=36 && LA44_0<=41) ) {
- alt44=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("653:46: ( \';\' )?", 44, 0, input);
-
- throw nvae;
- }
- switch (alt44) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:653:46: ';'
- {
- match(input,15,FOLLOW_15_in_duration1442);
-
- }
- break;
-
- }
-
- following.push(FOLLOW_opt_eol_in_duration1445);
- opt_eol();
- following.pop();
-
-
- d = new AttributeDescr( "duration", i.getText() );
- d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
-
-
- }
-
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return d;
- }
- // $ANTLR end duration
-
-
- // $ANTLR start normal_lhs_block
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:661:1: normal_lhs_block[AndDescr descrs] : (d= lhs opt_eol )* opt_eol ;
- public void normal_lhs_block(AndDescr descrs) throws RecognitionException {
- BaseDescr d = null;
-
-
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:663:17: ( (d= lhs opt_eol )* opt_eol )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:663:17: (d= lhs opt_eol )* opt_eol
- {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:663:17: (d= lhs opt_eol )*
- loop45:
- do {
- int alt45=2;
- int LA45_0 = input.LA(1);
- if ( LA45_0==ID||LA45_0==23||(LA45_0>=59 && LA45_0<=61) ) {
- alt45=1;
- }
-
-
- switch (alt45) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:663:25: d= lhs opt_eol
- {
- following.push(FOLLOW_lhs_in_normal_lhs_block1471);
- d=lhs();
- following.pop();
-
- following.push(FOLLOW_opt_eol_in_normal_lhs_block1473);
- opt_eol();
- following.pop();
-
- descrs.addDescr( d );
-
- }
- break;
-
- default :
- break loop45;
- }
- } while (true);
-
- following.push(FOLLOW_opt_eol_in_normal_lhs_block1485);
- opt_eol();
- following.pop();
-
-
- }
-
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return ;
- }
- // $ANTLR end normal_lhs_block
-
-
- // $ANTLR start expander_lhs_block
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:671:1: expander_lhs_block[AndDescr descrs] : ( options {greedy=false; } : text= paren_chunk loc= EOL ( EOL )* )* ;
- public void expander_lhs_block(AndDescr descrs) throws RecognitionException {
- Token loc=null;
- String text = null;
-
-
-
- String lhsBlock = null;
- String eol = System.getProperty( "line.separator" );
- List constraints = null;
-
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:678:17: ( ( options {greedy=false; } : text= paren_chunk loc= EOL ( EOL )* )* )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:678:17: ( options {greedy=false; } : text= paren_chunk loc= EOL ( EOL )* )*
- {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:678:17: ( options {greedy=false; } : text= paren_chunk loc= EOL ( EOL )* )*
- loop47:
- do {
- int alt47=2;
- switch ( input.LA(1) ) {
- case 29:
- alt47=2;
- break;
- case EOL:
- alt47=2;
- break;
- case 34:
- alt47=2;
- break;
- case ID:
- case INT:
- case BOOL:
- case STRING:
- case FLOAT:
- case MISC:
- case WS:
- case SH_STYLE_SINGLE_LINE_COMMENT:
- case C_STYLE_SINGLE_LINE_COMMENT:
- case MULTI_LINE_COMMENT:
- case 16:
- case 17:
- case 18:
- case 19:
- case 20:
- case 21:
- case 22:
- case 23:
- case 24:
- case 25:
- case 26:
- case 27:
- case 28:
- case 30:
- case 31:
- case 32:
- case 33:
- case 35:
- case 36:
- case 37:
- case 38:
- case 39:
- case 40:
- case 41:
- case 42:
- case 43:
- case 44:
- case 45:
- case 46:
- case 47:
- case 48:
- case 49:
- case 50:
- case 51:
- case 52:
- case 53:
- case 54:
- case 55:
- case 56:
- case 57:
- case 58:
- case 59:
- case 60:
- case 61:
- case 62:
- case 63:
- case 64:
- case 65:
- case 66:
- case 67:
- case 68:
- case 69:
- case 70:
- case 71:
- case 72:
- alt47=1;
- break;
- case 15:
- alt47=2;
- break;
-
- }
-
- switch (alt47) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:679:25: text= paren_chunk loc= EOL ( EOL )*
- {
- following.push(FOLLOW_paren_chunk_in_expander_lhs_block1526);
- text=paren_chunk();
- following.pop();
-
- loc=(Token)input.LT(1);
- match(input,EOL,FOLLOW_EOL_in_expander_lhs_block1530);
-
- //only expand non null
- if (text != null) {
- if (text.trim().startsWith("-")) {
- if (constraints == null) {
- constraints = new ArrayList();
- }
- constraints.add(runWhenExpander( text, offset(loc.getLine())));
- } else {
- if (constraints != null) {
- lhsBlock = applyConstraints(constraints, lhsBlock);
- constraints = null;
- }
-
-
- if (lhsBlock == null) {
- lhsBlock = runWhenExpander( text, offset(loc.getLine()));
- } else {
- lhsBlock = lhsBlock + eol + runWhenExpander( text, offset(loc.getLine()));
- }
- }
- text = null;
- }
-
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:705:17: ( EOL )*
- loop46:
- do {
- int alt46=2;
- int LA46_0 = input.LA(1);
- if ( LA46_0==EOL ) {
- alt46=1;
- }
-
-
- switch (alt46) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:705:18: EOL
- {
- match(input,EOL,FOLLOW_EOL_in_expander_lhs_block1545);
-
- }
- break;
-
- default :
- break loop46;
- }
- } while (true);
-
-
- }
- break;
-
- default :
- break loop47;
- }
- } while (true);
-
-
- //flush out any constraints left handing before the RHS
- lhsBlock = applyConstraints(constraints, lhsBlock);
- if (lhsBlock != null) {
- reparseLhs(lhsBlock, descrs);
- }
-
-
- }
-
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return ;
- }
- // $ANTLR end expander_lhs_block
-
-
- // $ANTLR start lhs
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:719:1: lhs returns [BaseDescr d] : l= lhs_or ;
- public BaseDescr lhs() throws RecognitionException {
- BaseDescr d;
- BaseDescr l = null;
-
-
-
- d=null;
-
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:723:17: (l= lhs_or )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:723:17: l= lhs_or
- {
- following.push(FOLLOW_lhs_or_in_lhs1587);
- l=lhs_or();
- following.pop();
-
- d = l;
-
- }
-
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return d;
- }
- // $ANTLR end lhs
-
-
- // $ANTLR start lhs_column
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:727:1: lhs_column returns [BaseDescr d] : (f= fact_binding | f= fact );
- public BaseDescr lhs_column() throws RecognitionException {
- BaseDescr d;
- BaseDescr f = null;
-
-
-
- d=null;
-
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:731:17: (f= fact_binding | f= fact )
- int alt48=2;
- alt48 = dfa48.predict(input);
- switch (alt48) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:731:17: f= fact_binding
- {
- following.push(FOLLOW_fact_binding_in_lhs_column1615);
- f=fact_binding();
- following.pop();
-
- d = f;
-
- }
- break;
- case 2 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:732:17: f= fact
- {
- following.push(FOLLOW_fact_in_lhs_column1624);
- f=fact();
- following.pop();
-
- d = f;
-
- }
- break;
-
- }
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return d;
- }
- // $ANTLR end lhs_column
-
-
- // $ANTLR start from_statement
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:735:1: from_statement returns [FromDescr d] : 'from' opt_eol ds= from_source ;
- public FromDescr from_statement() throws RecognitionException {
- FromDescr d;
- DeclarativeInvokerDescr ds = null;
-
-
-
- d=factory.createFrom();
-
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:740:17: ( 'from' opt_eol ds= from_source )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:740:17: 'from' opt_eol ds= from_source
- {
- match(input,42,FOLLOW_42_in_from_statement1652);
- following.push(FOLLOW_opt_eol_in_from_statement1654);
- opt_eol();
- following.pop();
-
- following.push(FOLLOW_from_source_in_from_statement1658);
- ds=from_source();
- following.pop();
-
-
- d.setDataSource(ds);
-
-
-
- }
-
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return d;
- }
- // $ANTLR end from_statement
-
-
- // $ANTLR start from_source
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:750:1: from_source returns [DeclarativeInvokerDescr ds] : ( (var= ID '.' field= ID ( '[' arg= argument_value ']' )? ) | (var= ID '.' method= ID opt_eol '(' opt_eol args= argument_list opt_eol ')' ) | (functionName= ID opt_eol '(' opt_eol args= argument_list opt_eol ')' ) );
- public DeclarativeInvokerDescr from_source() throws RecognitionException {
- DeclarativeInvokerDescr ds;
- Token var=null;
- Token field=null;
- Token method=null;
- Token functionName=null;
- ArgumentValueDescr arg = null;
-
- ArrayList args = null;
-
-
-
- ds = null;
-
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:755:17: ( (var= ID '.' field= ID ( '[' arg= argument_value ']' )? ) | (var= ID '.' method= ID opt_eol '(' opt_eol args= argument_list opt_eol ')' ) | (functionName= ID opt_eol '(' opt_eol args= argument_list opt_eol ')' ) )
- int alt50=3;
- alt50 = dfa50.predict(input);
- switch (alt50) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:755:17: (var= ID '.' field= ID ( '[' arg= argument_value ']' )? )
- {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:755:17: (var= ID '.' field= ID ( '[' arg= argument_value ']' )? )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:755:18: var= ID '.' field= ID ( '[' arg= argument_value ']' )?
- {
- var=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_from_source1702);
- match(input,19,FOLLOW_19_in_from_source1704);
- field=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_from_source1708);
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:755:39: ( '[' arg= argument_value ']' )?
- int alt49=2;
- int LA49_0 = input.LA(1);
- if ( LA49_0==43 ) {
- alt49=1;
- }
- else if ( (LA49_0>=EOL && LA49_0<=ID)||LA49_0==15||LA49_0==23||LA49_0==25||LA49_0==29||LA49_0==34||(LA49_0>=52 && LA49_0<=53)||(LA49_0>=57 && LA49_0<=61) ) {
- alt49=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("755:39: ( \'[\' arg= argument_value \']\' )?", 49, 0, input);
-
- throw nvae;
- }
- switch (alt49) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:755:40: '[' arg= argument_value ']'
- {
- match(input,43,FOLLOW_43_in_from_source1712);
- following.push(FOLLOW_argument_value_in_from_source1716);
- arg=argument_value();
- following.pop();
-
- match(input,44,FOLLOW_44_in_from_source1718);
-
- }
- break;
-
- }
-
-
- FieldAccessDescr fa;
- if ( arg == null ) {
- fa = new FieldAccessDescr(var.getText(), field.getText());
- } else {
- fa = new FieldAccessDescr(var.getText(), field.getText(), arg);
- }
- fa.setLocation( offset(var.getLine()), var.getCharPositionInLine() );
- ds = fa;
-
-
- }
-
-
- }
- break;
- case 2 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:770:17: (var= ID '.' method= ID opt_eol '(' opt_eol args= argument_list opt_eol ')' )
- {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:770:17: (var= ID '.' method= ID opt_eol '(' opt_eol args= argument_list opt_eol ')' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:770:18: var= ID '.' method= ID opt_eol '(' opt_eol args= argument_list opt_eol ')'
- {
- var=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_from_source1747);
- match(input,19,FOLLOW_19_in_from_source1749);
- method=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_from_source1753);
- following.push(FOLLOW_opt_eol_in_from_source1755);
- opt_eol();
- following.pop();
-
- match(input,23,FOLLOW_23_in_from_source1758);
- following.push(FOLLOW_opt_eol_in_from_source1760);
- opt_eol();
- following.pop();
-
- following.push(FOLLOW_argument_list_in_from_source1764);
- args=argument_list();
- following.pop();
-
- following.push(FOLLOW_opt_eol_in_from_source1766);
- opt_eol();
- following.pop();
-
- match(input,25,FOLLOW_25_in_from_source1768);
-
- MethodAccessDescr ma = new MethodAccessDescr(var.getText(), method.getText());
- ma.setLocation( offset(var.getLine()), var.getCharPositionInLine() );
- ma.setArguments(args);
- ds = ma;
-
-
- }
-
-
- }
- break;
- case 3 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:779:17: (functionName= ID opt_eol '(' opt_eol args= argument_list opt_eol ')' )
- {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:779:17: (functionName= ID opt_eol '(' opt_eol args= argument_list opt_eol ')' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:779:18: functionName= ID opt_eol '(' opt_eol args= argument_list opt_eol ')'
- {
- functionName=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_from_source1790);
- following.push(FOLLOW_opt_eol_in_from_source1792);
- opt_eol();
- following.pop();
-
- match(input,23,FOLLOW_23_in_from_source1794);
- following.push(FOLLOW_opt_eol_in_from_source1796);
- opt_eol();
- following.pop();
-
- following.push(FOLLOW_argument_list_in_from_source1800);
- args=argument_list();
- following.pop();
-
- following.push(FOLLOW_opt_eol_in_from_source1802);
- opt_eol();
- following.pop();
-
- match(input,25,FOLLOW_25_in_from_source1804);
-
- FunctionCallDescr fc = new FunctionCallDescr(functionName.getText());
- fc.setLocation( offset(functionName.getLine()), functionName.getCharPositionInLine() );
- fc.setArguments(args);
- ds = fc;
-
-
- }
-
-
- }
- break;
-
- }
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return ds;
- }
- // $ANTLR end from_source
-
-
- // $ANTLR start accumulate_statement
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:792:1: accumulate_statement returns [AccumulateDescr d] : loc= 'from' opt_eol 'accumulate' opt_eol '(' opt_eol column= lhs_column opt_eol ',' opt_eol 'init' opt_eol '(' c= paren_chunk2 ')' opt_eol ',' opt_eol 'action' opt_eol '(' c= paren_chunk2 ')' opt_eol ',' opt_eol 'result' opt_eol '(' c= paren_chunk2 ')' opt_eol ')' ;
- public AccumulateDescr accumulate_statement() throws RecognitionException {
- AccumulateDescr d;
- Token loc=null;
- BaseDescr column = null;
-
- String c = null;
-
-
-
- d = factory.createAccumulate();
-
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:797:17: (loc= 'from' opt_eol 'accumulate' opt_eol '(' opt_eol column= lhs_column opt_eol ',' opt_eol 'init' opt_eol '(' c= paren_chunk2 ')' opt_eol ',' opt_eol 'action' opt_eol '(' c= paren_chunk2 ')' opt_eol ',' opt_eol 'result' opt_eol '(' c= paren_chunk2 ')' opt_eol ')' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:797:17: loc= 'from' opt_eol 'accumulate' opt_eol '(' opt_eol column= lhs_column opt_eol ',' opt_eol 'init' opt_eol '(' c= paren_chunk2 ')' opt_eol ',' opt_eol 'action' opt_eol '(' c= paren_chunk2 ')' opt_eol ',' opt_eol 'result' opt_eol '(' c= paren_chunk2 ')' opt_eol ')'
- {
- loc=(Token)input.LT(1);
- match(input,42,FOLLOW_42_in_accumulate_statement1853);
- following.push(FOLLOW_opt_eol_in_accumulate_statement1855);
- opt_eol();
- following.pop();
-
- match(input,45,FOLLOW_45_in_accumulate_statement1857);
- following.push(FOLLOW_opt_eol_in_accumulate_statement1859);
- opt_eol();
- following.pop();
-
-
- d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
-
- match(input,23,FOLLOW_23_in_accumulate_statement1869);
- following.push(FOLLOW_opt_eol_in_accumulate_statement1871);
- opt_eol();
- following.pop();
-
- following.push(FOLLOW_lhs_column_in_accumulate_statement1875);
- column=lhs_column();
- following.pop();
-
- following.push(FOLLOW_opt_eol_in_accumulate_statement1877);
- opt_eol();
- following.pop();
-
- match(input,24,FOLLOW_24_in_accumulate_statement1879);
- following.push(FOLLOW_opt_eol_in_accumulate_statement1881);
- opt_eol();
- following.pop();
-
-
- d.setSourceColumn( (ColumnDescr)column );
-
- match(input,46,FOLLOW_46_in_accumulate_statement1889);
- following.push(FOLLOW_opt_eol_in_accumulate_statement1891);
- opt_eol();
- following.pop();
-
- match(input,23,FOLLOW_23_in_accumulate_statement1893);
- following.push(FOLLOW_paren_chunk2_in_accumulate_statement1897);
- c=paren_chunk2();
- following.pop();
-
- match(input,25,FOLLOW_25_in_accumulate_statement1899);
- following.push(FOLLOW_opt_eol_in_accumulate_statement1901);
- opt_eol();
- following.pop();
-
- match(input,24,FOLLOW_24_in_accumulate_statement1903);
- following.push(FOLLOW_opt_eol_in_accumulate_statement1905);
- opt_eol();
- following.pop();
-
-
- d.setInitCode( c );
-
- match(input,47,FOLLOW_47_in_accumulate_statement1913);
- following.push(FOLLOW_opt_eol_in_accumulate_statement1915);
- opt_eol();
- following.pop();
-
- match(input,23,FOLLOW_23_in_accumulate_statement1917);
- following.push(FOLLOW_paren_chunk2_in_accumulate_statement1921);
- c=paren_chunk2();
- following.pop();
-
- match(input,25,FOLLOW_25_in_accumulate_statement1923);
- following.push(FOLLOW_opt_eol_in_accumulate_statement1925);
- opt_eol();
- following.pop();
-
- match(input,24,FOLLOW_24_in_accumulate_statement1927);
- following.push(FOLLOW_opt_eol_in_accumulate_statement1929);
- opt_eol();
- following.pop();
-
-
- d.setActionCode( c );
-
- match(input,48,FOLLOW_48_in_accumulate_statement1937);
- following.push(FOLLOW_opt_eol_in_accumulate_statement1939);
- opt_eol();
- following.pop();
-
- match(input,23,FOLLOW_23_in_accumulate_statement1941);
- following.push(FOLLOW_paren_chunk2_in_accumulate_statement1945);
- c=paren_chunk2();
- following.pop();
-
- match(input,25,FOLLOW_25_in_accumulate_statement1947);
- following.push(FOLLOW_opt_eol_in_accumulate_statement1949);
- opt_eol();
- following.pop();
-
- match(input,25,FOLLOW_25_in_accumulate_statement1951);
-
- d.setResultCode( c );
-
-
- }
-
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return d;
- }
- // $ANTLR end accumulate_statement
-
-
- // $ANTLR start collect_statement
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:819:1: collect_statement returns [CollectDescr d] : loc= 'from' opt_eol 'collect' opt_eol '(' opt_eol column= lhs_column opt_eol ')' ;
- public CollectDescr collect_statement() throws RecognitionException {
- CollectDescr d;
- Token loc=null;
- BaseDescr column = null;
-
-
-
- d = factory.createCollect();
-
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:824:17: (loc= 'from' opt_eol 'collect' opt_eol '(' opt_eol column= lhs_column opt_eol ')' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:824:17: loc= 'from' opt_eol 'collect' opt_eol '(' opt_eol column= lhs_column opt_eol ')'
- {
- loc=(Token)input.LT(1);
- match(input,42,FOLLOW_42_in_collect_statement1994);
- following.push(FOLLOW_opt_eol_in_collect_statement1996);
- opt_eol();
- following.pop();
-
- match(input,49,FOLLOW_49_in_collect_statement1998);
- following.push(FOLLOW_opt_eol_in_collect_statement2000);
- opt_eol();
- following.pop();
-
-
- d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
-
- match(input,23,FOLLOW_23_in_collect_statement2010);
- following.push(FOLLOW_opt_eol_in_collect_statement2012);
- opt_eol();
- following.pop();
-
- following.push(FOLLOW_lhs_column_in_collect_statement2016);
- column=lhs_column();
- following.pop();
-
- following.push(FOLLOW_opt_eol_in_collect_statement2018);
- opt_eol();
- following.pop();
-
- match(input,25,FOLLOW_25_in_collect_statement2020);
-
- d.setSourceColumn( (ColumnDescr)column );
-
-
- }
-
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return d;
- }
- // $ANTLR end collect_statement
-
-
- // $ANTLR start argument_list
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:834:1: argument_list returns [ArrayList args] : (param= argument_value ( opt_eol ',' opt_eol param= argument_value )* )? ;
- public ArrayList argument_list() throws RecognitionException {
- ArrayList args;
- ArgumentValueDescr param = null;
-
-
-
- args = new ArrayList();
-
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:839:17: ( (param= argument_value ( opt_eol ',' opt_eol param= argument_value )* )? )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:839:17: (param= argument_value ( opt_eol ',' opt_eol param= argument_value )* )?
- {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:839:17: (param= argument_value ( opt_eol ',' opt_eol param= argument_value )* )?
- int alt52=2;
- int LA52_0 = input.LA(1);
- if ( (LA52_0>=ID && LA52_0<=FLOAT)||LA52_0==26||LA52_0==43||LA52_0==50 ) {
- alt52=1;
- }
- else if ( LA52_0==EOL||LA52_0==15||LA52_0==25 ) {
- alt52=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("839:17: (param= argument_value ( opt_eol \',\' opt_eol param= argument_value )* )?", 52, 0, input);
-
- throw nvae;
- }
- switch (alt52) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:839:18: param= argument_value ( opt_eol ',' opt_eol param= argument_value )*
- {
- following.push(FOLLOW_argument_value_in_argument_list2053);
- param=argument_value();
- following.pop();
-
-
- if (param != null) {
- args.add(param);
- }
-
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:845:17: ( opt_eol ',' opt_eol param= argument_value )*
- loop51:
- do {
- int alt51=2;
- alt51 = dfa51.predict(input);
- switch (alt51) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:846:25: opt_eol ',' opt_eol param= argument_value
- {
- following.push(FOLLOW_opt_eol_in_argument_list2069);
- opt_eol();
- following.pop();
-
- match(input,24,FOLLOW_24_in_argument_list2071);
- following.push(FOLLOW_opt_eol_in_argument_list2073);
- opt_eol();
- following.pop();
-
- following.push(FOLLOW_argument_value_in_argument_list2077);
- param=argument_value();
- following.pop();
-
-
- if (param != null) {
- args.add(param);
- }
-
-
- }
- break;
-
- default :
- break loop51;
- }
- } while (true);
-
-
- }
- break;
-
- }
-
-
- }
-
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return args;
- }
- // $ANTLR end argument_list
-
-
- // $ANTLR start argument_value
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:855:1: argument_value returns [ArgumentValueDescr value] : (t= STRING | t= INT | t= FLOAT | t= BOOL | t= ID | t= 'null' | t= 'null' | m= inline_map | a= inline_array ) ;
- public ArgumentValueDescr argument_value() throws RecognitionException {
- ArgumentValueDescr value;
- Token t=null;
- ArgumentValueDescr.MapDescr m = null;
-
- List a = null;
-
-
-
- value = null;
- String text = null;
-
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:860:17: ( (t= STRING | t= INT | t= FLOAT | t= BOOL | t= ID | t= 'null' | t= 'null' | m= inline_map | a= inline_array ) )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:860:17: (t= STRING | t= INT | t= FLOAT | t= BOOL | t= ID | t= 'null' | t= 'null' | m= inline_map | a= inline_array )
- {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:860:17: (t= STRING | t= INT | t= FLOAT | t= BOOL | t= ID | t= 'null' | t= 'null' | m= inline_map | a= inline_array )
- int alt53=9;
- switch ( input.LA(1) ) {
- case STRING:
- alt53=1;
- break;
- case INT:
- alt53=2;
- break;
- case FLOAT:
- alt53=3;
- break;
- case BOOL:
- alt53=4;
- break;
- case ID:
- alt53=5;
- break;
- case 50:
- alt53=6;
- break;
- case 26:
- alt53=8;
- break;
- case 43:
- alt53=9;
- break;
- default:
- NoViableAltException nvae =
- new NoViableAltException("860:17: (t= STRING | t= INT | t= FLOAT | t= BOOL | t= ID | t= \'null\' | t= \'null\' | m= inline_map | a= inline_array )", 53, 0, input);
-
- throw nvae;
- }
-
- switch (alt53) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:860:25: t= STRING
- {
- t=(Token)input.LT(1);
- match(input,STRING,FOLLOW_STRING_in_argument_value2117);
- text = getString( t ); value=new ArgumentValueDescr(ArgumentValueDescr.STRING, text);
-
- }
- break;
- case 2 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:861:25: t= INT
- {
- t=(Token)input.LT(1);
- match(input,INT,FOLLOW_INT_in_argument_value2128);
- text = t.getText(); value=new ArgumentValueDescr(ArgumentValueDescr.INTEGRAL, text);
-
- }
- break;
- case 3 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:862:25: t= FLOAT
- {
- t=(Token)input.LT(1);
- match(input,FLOAT,FOLLOW_FLOAT_in_argument_value2141);
- text = t.getText(); value=new ArgumentValueDescr(ArgumentValueDescr.DECIMAL, text);
-
- }
- break;
- case 4 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:863:25: t= BOOL
- {
- t=(Token)input.LT(1);
- match(input,BOOL,FOLLOW_BOOL_in_argument_value2152);
- text = t.getText(); value=new ArgumentValueDescr(ArgumentValueDescr.BOOLEAN, text);
-
- }
- break;
- case 5 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:864:25: t= ID
- {
- t=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_argument_value2164);
- text = t.getText(); value=new ArgumentValueDescr(ArgumentValueDescr.VARIABLE, text);
-
- }
- break;
- case 6 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:865:25: t= 'null'
- {
- t=(Token)input.LT(1);
- match(input,50,FOLLOW_50_in_argument_value2175);
- text = "null"; value=new ArgumentValueDescr(ArgumentValueDescr.NULL, text);
-
- }
- break;
- case 7 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:866:25: t= 'null'
- {
- t=(Token)input.LT(1);
- match(input,50,FOLLOW_50_in_argument_value2186);
- text = "null"; value=new ArgumentValueDescr(ArgumentValueDescr.NULL, text);
-
- }
- break;
- case 8 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:867:25: m= inline_map
- {
- following.push(FOLLOW_inline_map_in_argument_value2205);
- m=inline_map();
- following.pop();
-
- value=new ArgumentValueDescr(ArgumentValueDescr.MAP, m.getKeyValuePairs() );
-
- }
- break;
- case 9 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:868:25: a= inline_array
- {
- following.push(FOLLOW_inline_array_in_argument_value2221);
- a=inline_array();
- following.pop();
-
- value = new ArgumentValueDescr(ArgumentValueDescr.LIST, a );
-
- }
- break;
-
- }
-
-
- }
-
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return value;
- }
- // $ANTLR end argument_value
-
-
- // $ANTLR start inline_map
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:872:1: inline_map returns [ArgumentValueDescr.MapDescr mapDescr] : '{' (key= argument_value '=>' value= argument_value ) ( ( EOL )? ',' ( EOL )? key= argument_value '=>' value= argument_value )* '}' ;
- public ArgumentValueDescr.MapDescr inline_map() throws RecognitionException {
- ArgumentValueDescr.MapDescr mapDescr;
- ArgumentValueDescr key = null;
-
- ArgumentValueDescr value = null;
-
-
-
- mapDescr = new ArgumentValueDescr.MapDescr();
-
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:876:8: ( '{' (key= argument_value '=>' value= argument_value ) ( ( EOL )? ',' ( EOL )? key= argument_value '=>' value= argument_value )* '}' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:876:8: '{' (key= argument_value '=>' value= argument_value ) ( ( EOL )? ',' ( EOL )? key= argument_value '=>' value= argument_value )* '}'
- {
- match(input,26,FOLLOW_26_in_inline_map2261);
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:877:12: (key= argument_value '=>' value= argument_value )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:877:14: key= argument_value '=>' value= argument_value
- {
- following.push(FOLLOW_argument_value_in_inline_map2279);
- key=argument_value();
- following.pop();
-
- match(input,51,FOLLOW_51_in_inline_map2281);
- following.push(FOLLOW_argument_value_in_inline_map2285);
- value=argument_value();
- following.pop();
-
-
- if ( key != null ) {
- mapDescr.add( new ArgumentValueDescr.KeyValuePairDescr( key, value ) );
- }
-
-
- }
-
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:884:12: ( ( EOL )? ',' ( EOL )? key= argument_value '=>' value= argument_value )*
- loop56:
- do {
- int alt56=2;
- int LA56_0 = input.LA(1);
- if ( LA56_0==EOL||LA56_0==24 ) {
- alt56=1;
- }
-
-
- switch (alt56) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:884:14: ( EOL )? ',' ( EOL )? key= argument_value '=>' value= argument_value
- {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:884:14: ( EOL )?
- int alt54=2;
- int LA54_0 = input.LA(1);
- if ( LA54_0==EOL ) {
- alt54=1;
- }
- else if ( LA54_0==24 ) {
- alt54=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("884:14: ( EOL )?", 54, 0, input);
-
- throw nvae;
- }
- switch (alt54) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:884:15: EOL
- {
- match(input,EOL,FOLLOW_EOL_in_inline_map2328);
-
- }
- break;
-
- }
-
- match(input,24,FOLLOW_24_in_inline_map2332);
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:884:25: ( EOL )?
- int alt55=2;
- int LA55_0 = input.LA(1);
- if ( LA55_0==EOL ) {
- alt55=1;
- }
- else if ( (LA55_0>=ID && LA55_0<=FLOAT)||LA55_0==26||LA55_0==43||LA55_0==50 ) {
- alt55=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("884:25: ( EOL )?", 55, 0, input);
-
- throw nvae;
- }
- switch (alt55) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:884:26: EOL
- {
- match(input,EOL,FOLLOW_EOL_in_inline_map2335);
-
- }
- break;
-
- }
-
- following.push(FOLLOW_argument_value_in_inline_map2341);
- key=argument_value();
- following.pop();
-
- match(input,51,FOLLOW_51_in_inline_map2343);
- following.push(FOLLOW_argument_value_in_inline_map2347);
- value=argument_value();
- following.pop();
-
-
- if ( key != null ) {
- mapDescr.add( new ArgumentValueDescr.KeyValuePairDescr( key, value ) );
- }
-
-
- }
- break;
-
- default :
- break loop56;
- }
- } while (true);
-
- match(input,27,FOLLOW_27_in_inline_map2383);
-
- }
-
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return mapDescr;
- }
- // $ANTLR end inline_map
-
-
- // $ANTLR start inline_array
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:893:1: inline_array returns [List list] : '[' arg= argument_value ( ( EOL )? ',' ( EOL )? arg= argument_value )* ']' ;
- public List inline_array() throws RecognitionException {
- List list;
- ArgumentValueDescr arg = null;
-
-
-
- list = new ArrayList();
-
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:898:5: ( '[' arg= argument_value ( ( EOL )? ',' ( EOL )? arg= argument_value )* ']' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:898:5: '[' arg= argument_value ( ( EOL )? ',' ( EOL )? arg= argument_value )* ']'
- {
- match(input,43,FOLLOW_43_in_inline_array2427);
- following.push(FOLLOW_argument_value_in_inline_array2431);
- arg=argument_value();
- following.pop();
-
- list.add(arg);
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:900:10: ( ( EOL )? ',' ( EOL )? arg= argument_value )*
- loop59:
- do {
- int alt59=2;
- int LA59_0 = input.LA(1);
- if ( LA59_0==EOL||LA59_0==24 ) {
- alt59=1;
- }
-
-
- switch (alt59) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:900:12: ( EOL )? ',' ( EOL )? arg= argument_value
- {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:900:12: ( EOL )?
- int alt57=2;
- int LA57_0 = input.LA(1);
- if ( LA57_0==EOL ) {
- alt57=1;
- }
- else if ( LA57_0==24 ) {
- alt57=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("900:12: ( EOL )?", 57, 0, input);
-
- throw nvae;
- }
- switch (alt57) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:900:12: EOL
- {
- match(input,EOL,FOLLOW_EOL_in_inline_array2449);
-
- }
- break;
-
- }
-
- match(input,24,FOLLOW_24_in_inline_array2452);
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:900:21: ( EOL )?
- int alt58=2;
- int LA58_0 = input.LA(1);
- if ( LA58_0==EOL ) {
- alt58=1;
- }
- else if ( (LA58_0>=ID && LA58_0<=FLOAT)||LA58_0==26||LA58_0==43||LA58_0==50 ) {
- alt58=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("900:21: ( EOL )?", 58, 0, input);
-
- throw nvae;
- }
- switch (alt58) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:900:21: EOL
- {
- match(input,EOL,FOLLOW_EOL_in_inline_array2454);
-
- }
- break;
-
- }
-
- following.push(FOLLOW_argument_value_in_inline_array2459);
- arg=argument_value();
- following.pop();
-
- list.add(arg);
-
- }
- break;
-
- default :
- break loop59;
- }
- } while (true);
-
- match(input,44,FOLLOW_44_in_inline_array2472);
-
- }
-
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return list;
- }
- // $ANTLR end inline_array
-
-
- // $ANTLR start fact_binding
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:905:1: fact_binding returns [BaseDescr d] : id= ID opt_eol ':' opt_eol fe= fact_expression[id.getText()] ;
- public BaseDescr fact_binding() throws RecognitionException {
- BaseDescr d;
- Token id=null;
- BaseDescr fe = null;
-
-
-
- d=null;
- boolean multi=false;
-
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:911:17: (id= ID opt_eol ':' opt_eol fe= fact_expression[id.getText()] )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:911:17: id= ID opt_eol ':' opt_eol fe= fact_expression[id.getText()]
- {
- id=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_fact_binding2515);
- following.push(FOLLOW_opt_eol_in_fact_binding2525);
- opt_eol();
- following.pop();
-
- match(input,33,FOLLOW_33_in_fact_binding2527);
- following.push(FOLLOW_opt_eol_in_fact_binding2529);
- opt_eol();
- following.pop();
-
- following.push(FOLLOW_fact_expression_in_fact_binding2533);
- fe=fact_expression(id.getText());
- following.pop();
-
-
- d=fe;
-
-
- }
-
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return d;
- }
- // $ANTLR end fact_binding
-
-
- // $ANTLR start fact_expression
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:919:2: fact_expression[String id] returns [BaseDescr pd] : ( '(' opt_eol fe= fact_expression[id] opt_eol ')' | f= fact opt_eol ( ('or'|'||') opt_eol f= fact )* );
- public BaseDescr fact_expression(String id) throws RecognitionException {
- BaseDescr pd;
- BaseDescr fe = null;
-
- BaseDescr f = null;
-
-
-
- pd = null;
- boolean multi = false;
-
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:924:17: ( '(' opt_eol fe= fact_expression[id] opt_eol ')' | f= fact opt_eol ( ('or'|'||') opt_eol f= fact )* )
- int alt61=2;
- int LA61_0 = input.LA(1);
- if ( LA61_0==23 ) {
- alt61=1;
- }
- else if ( LA61_0==ID ) {
- alt61=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("919:2: fact_expression[String id] returns [BaseDescr pd] : ( \'(\' opt_eol fe= fact_expression[id] opt_eol \')\' | f= fact opt_eol ( (\'or\'|\'||\') opt_eol f= fact )* );", 61, 0, input);
-
- throw nvae;
- }
- switch (alt61) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:924:17: '(' opt_eol fe= fact_expression[id] opt_eol ')'
- {
- match(input,23,FOLLOW_23_in_fact_expression2565);
- following.push(FOLLOW_opt_eol_in_fact_expression2567);
- opt_eol();
- following.pop();
-
- following.push(FOLLOW_fact_expression_in_fact_expression2571);
- fe=fact_expression(id);
- following.pop();
-
- following.push(FOLLOW_opt_eol_in_fact_expression2573);
- opt_eol();
- following.pop();
-
- match(input,25,FOLLOW_25_in_fact_expression2575);
- pd=fe;
-
- }
- break;
- case 2 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:925:17: f= fact opt_eol ( ('or'|'||') opt_eol f= fact )*
- {
- following.push(FOLLOW_fact_in_fact_expression2586);
- f=fact();
- following.pop();
-
- following.push(FOLLOW_opt_eol_in_fact_expression2588);
- opt_eol();
- following.pop();
-
-
- ((ColumnDescr)f).setIdentifier( id );
- pd = f;
-
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:930:17: ( ('or'|'||') opt_eol f= fact )*
- loop60:
- do {
- int alt60=2;
- int LA60_0 = input.LA(1);
- if ( (LA60_0>=52 && LA60_0<=53) ) {
- alt60=1;
- }
-
-
- switch (alt60) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:930:25: ('or'|'||') opt_eol f= fact
- {
- if ( (input.LA(1)>=52 && input.LA(1)<=53) ) {
- input.consume();
- errorRecovery=false;
- }
- else {
- MismatchedSetException mse =
- new MismatchedSetException(null,input);
- recoverFromMismatchedSet(input,mse,FOLLOW_set_in_fact_expression2601); throw mse;
- }
-
- following.push(FOLLOW_opt_eol_in_fact_expression2606);
- opt_eol();
- following.pop();
-
- if ( ! multi ) {
- BaseDescr first = pd;
- pd = new OrDescr();
- ((OrDescr)pd).addDescr( first );
- multi=true;
- }
-
- following.push(FOLLOW_fact_in_fact_expression2620);
- f=fact();
- following.pop();
-
-
- ((ColumnDescr)f).setIdentifier( id );
- ((OrDescr)pd).addDescr( f );
-
-
- }
- break;
-
- default :
- break loop60;
- }
- } while (true);
-
-
- }
- break;
-
- }
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return pd;
- }
- // $ANTLR end fact_expression
-
-
- // $ANTLR start fact
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:946:1: fact returns [BaseDescr d] : id= dotted_name opt_eol loc= '(' opt_eol (c= constraints )? opt_eol endLoc= ')' opt_eol ;
- public BaseDescr fact() throws RecognitionException {
- BaseDescr d;
- Token loc=null;
- Token endLoc=null;
- String id = null;
-
- List c = null;
-
-
-
- d=null;
-
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:950:17: (id= dotted_name opt_eol loc= '(' opt_eol (c= constraints )? opt_eol endLoc= ')' opt_eol )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:950:17: id= dotted_name opt_eol loc= '(' opt_eol (c= constraints )? opt_eol endLoc= ')' opt_eol
- {
- following.push(FOLLOW_dotted_name_in_fact2659);
- id=dotted_name();
- following.pop();
-
-
- d = new ColumnDescr( id );
-
- following.push(FOLLOW_opt_eol_in_fact2667);
- opt_eol();
- following.pop();
-
- loc=(Token)input.LT(1);
- match(input,23,FOLLOW_23_in_fact2675);
-
- d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
-
- following.push(FOLLOW_opt_eol_in_fact2678);
- opt_eol();
- following.pop();
-
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:956:34: (c= constraints )?
- int alt62=2;
- alt62 = dfa62.predict(input);
- switch (alt62) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:956:41: c= constraints
- {
- following.push(FOLLOW_constraints_in_fact2684);
- c=constraints();
- following.pop();
-
-
- for ( Iterator cIter = c.iterator() ; cIter.hasNext() ; ) {
- ((ColumnDescr)d).addDescr( (BaseDescr) cIter.next() );
- }
-
-
- }
- break;
-
- }
-
- following.push(FOLLOW_opt_eol_in_fact2703);
- opt_eol();
- following.pop();
-
- endLoc=(Token)input.LT(1);
- match(input,25,FOLLOW_25_in_fact2707);
- following.push(FOLLOW_opt_eol_in_fact2709);
- opt_eol();
- following.pop();
-
-
- d.setEndLocation( offset(endLoc.getLine()), endLoc.getCharPositionInLine() );
-
-
- }
-
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return d;
- }
- // $ANTLR end fact
-
-
- // $ANTLR start constraints
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:970:1: constraints returns [List constraints] : opt_eol ( constraint[constraints] | predicate[constraints] ) ( opt_eol ',' opt_eol ( constraint[constraints] | predicate[constraints] ) )* opt_eol ;
- public List constraints() throws RecognitionException {
- List constraints;
-
- constraints = new ArrayList();
-
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:974:17: ( opt_eol ( constraint[constraints] | predicate[constraints] ) ( opt_eol ',' opt_eol ( constraint[constraints] | predicate[constraints] ) )* opt_eol )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:974:17: opt_eol ( constraint[constraints] | predicate[constraints] ) ( opt_eol ',' opt_eol ( constraint[constraints] | predicate[constraints] ) )* opt_eol
- {
- following.push(FOLLOW_opt_eol_in_constraints2741);
- opt_eol();
- following.pop();
-
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:975:17: ( constraint[constraints] | predicate[constraints] )
- int alt63=2;
- int LA63_0 = input.LA(1);
- if ( LA63_0==EOL||LA63_0==15 ) {
- alt63=1;
- }
- else if ( LA63_0==ID ) {
- int LA63_2 = input.LA(2);
- if ( LA63_2==33 ) {
- int LA63_3 = input.LA(3);
- if ( LA63_3==ID ) {
- int LA63_17 = input.LA(4);
- if ( LA63_17==56 ) {
- alt63=2;
- }
- else if ( LA63_17==EOL||LA63_17==15||(LA63_17>=24 && LA63_17<=25)||(LA63_17>=63 && LA63_17<=72) ) {
- alt63=1;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("975:17: ( constraint[constraints] | predicate[constraints] )", 63, 17, input);
-
- throw nvae;
- }
- }
- else if ( LA63_3==EOL||LA63_3==15 ) {
- alt63=1;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("975:17: ( constraint[constraints] | predicate[constraints] )", 63, 3, input);
-
- throw nvae;
- }
- }
- else if ( LA63_2==EOL||LA63_2==15||(LA63_2>=24 && LA63_2<=25)||(LA63_2>=63 && LA63_2<=72) ) {
- alt63=1;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("975:17: ( constraint[constraints] | predicate[constraints] )", 63, 2, input);
-
- throw nvae;
- }
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("975:17: ( constraint[constraints] | predicate[constraints] )", 63, 0, input);
-
- throw nvae;
- }
- switch (alt63) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:975:18: constraint[constraints]
- {
- following.push(FOLLOW_constraint_in_constraints2746);
- constraint(constraints);
- following.pop();
-
-
- }
- break;
- case 2 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:975:42: predicate[constraints]
- {
- following.push(FOLLOW_predicate_in_constraints2749);
- predicate(constraints);
- following.pop();
-
-
- }
- break;
-
- }
-
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:976:17: ( opt_eol ',' opt_eol ( constraint[constraints] | predicate[constraints] ) )*
- loop65:
- do {
- int alt65=2;
- alt65 = dfa65.predict(input);
- switch (alt65) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:976:19: opt_eol ',' opt_eol ( constraint[constraints] | predicate[constraints] )
- {
- following.push(FOLLOW_opt_eol_in_constraints2757);
- opt_eol();
- following.pop();
-
- match(input,24,FOLLOW_24_in_constraints2759);
- following.push(FOLLOW_opt_eol_in_constraints2761);
- opt_eol();
- following.pop();
-
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:976:39: ( constraint[constraints] | predicate[constraints] )
- int alt64=2;
- int LA64_0 = input.LA(1);
- if ( LA64_0==EOL||LA64_0==15 ) {
- alt64=1;
- }
- else if ( LA64_0==ID ) {
- int LA64_2 = input.LA(2);
- if ( LA64_2==33 ) {
- int LA64_3 = input.LA(3);
- if ( LA64_3==ID ) {
- int LA64_17 = input.LA(4);
- if ( LA64_17==56 ) {
- alt64=2;
- }
- else if ( LA64_17==EOL||LA64_17==15||(LA64_17>=24 && LA64_17<=25)||(LA64_17>=63 && LA64_17<=72) ) {
- alt64=1;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("976:39: ( constraint[constraints] | predicate[constraints] )", 64, 17, input);
-
- throw nvae;
- }
- }
- else if ( LA64_3==EOL||LA64_3==15 ) {
- alt64=1;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("976:39: ( constraint[constraints] | predicate[constraints] )", 64, 3, input);
-
- throw nvae;
- }
- }
- else if ( LA64_2==EOL||LA64_2==15||(LA64_2>=24 && LA64_2<=25)||(LA64_2>=63 && LA64_2<=72) ) {
- alt64=1;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("976:39: ( constraint[constraints] | predicate[constraints] )", 64, 2, input);
-
- throw nvae;
- }
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("976:39: ( constraint[constraints] | predicate[constraints] )", 64, 0, input);
-
- throw nvae;
- }
- switch (alt64) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:976:40: constraint[constraints]
- {
- following.push(FOLLOW_constraint_in_constraints2764);
- constraint(constraints);
- following.pop();
-
-
- }
- break;
- case 2 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:976:64: predicate[constraints]
- {
- following.push(FOLLOW_predicate_in_constraints2767);
- predicate(constraints);
- following.pop();
-
-
- }
- break;
-
- }
-
-
- }
- break;
-
- default :
- break loop65;
- }
- } while (true);
-
- following.push(FOLLOW_opt_eol_in_constraints2775);
- opt_eol();
- following.pop();
-
-
- }
-
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return constraints;
- }
- // $ANTLR end constraints
-
-
- // $ANTLR start constraint
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:980:1: constraint[List constraints] : opt_eol (fb= ID opt_eol ':' opt_eol )? f= ID opt_eol (op= operator opt_eol (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) (con= ('&'|'|')op= operator (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) )* )? opt_eol ;
- public void constraint(List constraints) throws RecognitionException {
- Token fb=null;
- Token f=null;
- Token bvc=null;
- Token con=null;
- String op = null;
-
- String lc = null;
-
- String rvc = null;
-
-
-
- BaseDescr d = null;
-
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:984:17: ( opt_eol (fb= ID opt_eol ':' opt_eol )? f= ID opt_eol (op= operator opt_eol (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) (con= ('&'|'|')op= operator (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) )* )? opt_eol )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:984:17: opt_eol (fb= ID opt_eol ':' opt_eol )? f= ID opt_eol (op= operator opt_eol (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) (con= ('&'|'|')op= operator (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) )* )? opt_eol
- {
- following.push(FOLLOW_opt_eol_in_constraint2794);
- opt_eol();
- following.pop();
-
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:985:17: (fb= ID opt_eol ':' opt_eol )?
- int alt66=2;
- alt66 = dfa66.predict(input);
- switch (alt66) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:985:19: fb= ID opt_eol ':' opt_eol
- {
- fb=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_constraint2802);
- following.push(FOLLOW_opt_eol_in_constraint2804);
- opt_eol();
- following.pop();
-
- match(input,33,FOLLOW_33_in_constraint2806);
- following.push(FOLLOW_opt_eol_in_constraint2808);
- opt_eol();
- following.pop();
-
-
- }
- break;
-
- }
-
- f=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_constraint2818);
-
-
- if ( fb != null ) {
- //System.err.println( "fb: " + fb.getText() );
- //System.err.println( " f: " + f.getText() );
- d = new FieldBindingDescr( f.getText(), fb.getText() );
- //System.err.println( "fbd: " + d );
-
- d.setLocation( offset(f.getLine()), f.getCharPositionInLine() );
- constraints.add( d );
- }
- FieldConstraintDescr fc = new FieldConstraintDescr(f.getText());
- fc.setLocation( offset(f.getLine()), f.getCharPositionInLine() );
-
-
-
- following.push(FOLLOW_opt_eol_in_constraint2832);
- opt_eol();
- following.pop();
-
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1003:33: (op= operator opt_eol (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) (con= ('&'|'|')op= operator (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) )* )?
- int alt70=2;
- int LA70_0 = input.LA(1);
- if ( (LA70_0>=63 && LA70_0<=72) ) {
- alt70=1;
- }
- else if ( LA70_0==EOL||LA70_0==15||(LA70_0>=24 && LA70_0<=25) ) {
- alt70=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("1003:33: (op= operator opt_eol (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) (con= (\'&\'|\'|\')op= operator (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) )* )?", 70, 0, input);
-
- throw nvae;
- }
- switch (alt70) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1003:41: op= operator opt_eol (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) (con= ('&'|'|')op= operator (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) )*
- {
- following.push(FOLLOW_operator_in_constraint2838);
- op=operator();
- following.pop();
-
- following.push(FOLLOW_opt_eol_in_constraint2840);
- opt_eol();
- following.pop();
-
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1005:41: (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint )
- int alt67=4;
- switch ( input.LA(1) ) {
- case ID:
- int LA67_1 = input.LA(2);
- if ( LA67_1==19 ) {
- alt67=2;
- }
- else if ( LA67_1==EOL||LA67_1==15||(LA67_1>=24 && LA67_1<=25)||(LA67_1>=54 && LA67_1<=55) ) {
- alt67=1;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("1005:41: (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint )", 67, 1, input);
-
- throw nvae;
- }
- break;
- case INT:
- case BOOL:
- case STRING:
- case FLOAT:
- case 50:
- alt67=3;
- break;
- case 23:
- alt67=4;
- break;
- default:
- NoViableAltException nvae =
- new NoViableAltException("1005:41: (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint )", 67, 0, input);
-
- throw nvae;
- }
-
- switch (alt67) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1005:49: bvc= ID
- {
- bvc=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_constraint2858);
-
-
-
-
- VariableRestrictionDescr vd = new VariableRestrictionDescr(op, bvc.getText());
- fc.addRestriction(vd);
- constraints.add(fc);
-
-
-
- }
- break;
- case 2 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1016:49: lc= enum_constraint
- {
- following.push(FOLLOW_enum_constraint_in_constraint2883);
- lc=enum_constraint();
- following.pop();
-
-
-
- LiteralRestrictionDescr lrd = new LiteralRestrictionDescr(op, lc, true);
- fc.addRestriction(lrd);
- constraints.add(fc);
-
-
-
- }
- break;
- case 3 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1025:49: lc= literal_constraint
- {
- following.push(FOLLOW_literal_constraint_in_constraint2915);
- lc=literal_constraint();
- following.pop();
-
-
-
- LiteralRestrictionDescr lrd = new LiteralRestrictionDescr(op, lc);
- fc.addRestriction(lrd);
- constraints.add(fc);
-
-
-
- }
- break;
- case 4 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1033:49: rvc= retval_constraint
- {
- following.push(FOLLOW_retval_constraint_in_constraint2935);
- rvc=retval_constraint();
- following.pop();
-
-
-
-
-
- ReturnValueRestrictionDescr rvd = new ReturnValueRestrictionDescr(op, rvc);
- fc.addRestriction(rvd);
- constraints.add(fc);
-
-
-
- }
- break;
-
- }
-
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1044:41: (con= ('&'|'|')op= operator (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) )*
- loop69:
- do {
- int alt69=2;
- int LA69_0 = input.LA(1);
- if ( (LA69_0>=54 && LA69_0<=55) ) {
- alt69=1;
- }
-
-
- switch (alt69) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1045:49: con= ('&'|'|')op= operator (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint )
- {
- con=(Token)input.LT(1);
- if ( (input.LA(1)>=54 && input.LA(1)<=55) ) {
- input.consume();
- errorRecovery=false;
- }
- else {
- MismatchedSetException mse =
- new MismatchedSetException(null,input);
- recoverFromMismatchedSet(input,mse,FOLLOW_set_in_constraint2970); throw mse;
- }
-
-
- if (con.getText().equals("&") ) {
- fc.addRestriction(new RestrictionConnectiveDescr(RestrictionConnectiveDescr.AND));
- } else {
- fc.addRestriction(new RestrictionConnectiveDescr(RestrictionConnectiveDescr.OR));
- }
-
- following.push(FOLLOW_operator_in_constraint2992);
- op=operator();
- following.pop();
-
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1055:49: (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint )
- int alt68=4;
- switch ( input.LA(1) ) {
- case ID:
- int LA68_1 = input.LA(2);
- if ( LA68_1==19 ) {
- alt68=2;
- }
- else if ( LA68_1==EOL||LA68_1==15||(LA68_1>=24 && LA68_1<=25)||(LA68_1>=54 && LA68_1<=55) ) {
- alt68=1;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("1055:49: (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint )", 68, 1, input);
-
- throw nvae;
- }
- break;
- case INT:
- case BOOL:
- case STRING:
- case FLOAT:
- case 50:
- alt68=3;
- break;
- case 23:
- alt68=4;
- break;
- default:
- NoViableAltException nvae =
- new NoViableAltException("1055:49: (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint )", 68, 0, input);
-
- throw nvae;
- }
-
- switch (alt68) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1055:57: bvc= ID
- {
- bvc=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_constraint3004);
-
- VariableRestrictionDescr vd = new VariableRestrictionDescr(op, bvc.getText());
- fc.addRestriction(vd);
-
-
- }
- break;
- case 2 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1061:57: lc= enum_constraint
- {
- following.push(FOLLOW_enum_constraint_in_constraint3032);
- lc=enum_constraint();
- following.pop();
-
-
- LiteralRestrictionDescr lrd = new LiteralRestrictionDescr(op, lc, true);
- fc.addRestriction(lrd);
-
-
-
- }
- break;
- case 3 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1068:57: lc= literal_constraint
- {
- following.push(FOLLOW_literal_constraint_in_constraint3067);
- lc=literal_constraint();
- following.pop();
-
-
- LiteralRestrictionDescr lrd = new LiteralRestrictionDescr(op, lc);
- fc.addRestriction(lrd);
-
-
-
- }
- break;
- case 4 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1074:57: rvc= retval_constraint
- {
- following.push(FOLLOW_retval_constraint_in_constraint3089);
- rvc=retval_constraint();
- following.pop();
-
-
- ReturnValueRestrictionDescr rvd = new ReturnValueRestrictionDescr(op, rvc);
- fc.addRestriction(rvd);
-
-
-
- }
- break;
-
- }
-
-
- }
- break;
-
- default :
- break loop69;
- }
- } while (true);
-
-
- }
- break;
-
- }
-
- following.push(FOLLOW_opt_eol_in_constraint3145);
- opt_eol();
- following.pop();
-
-
- }
-
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return ;
- }
- // $ANTLR end constraint
-
-
- // $ANTLR start literal_constraint
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1087:1: literal_constraint returns [String text] : (t= STRING | t= INT | t= FLOAT | t= BOOL | t= 'null' ) ;
- public String literal_constraint() throws RecognitionException {
- String text;
- Token t=null;
-
-
- text = null;
-
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1091:17: ( (t= STRING | t= INT | t= FLOAT | t= BOOL | t= 'null' ) )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1091:17: (t= STRING | t= INT | t= FLOAT | t= BOOL | t= 'null' )
- {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1091:17: (t= STRING | t= INT | t= FLOAT | t= BOOL | t= 'null' )
- int alt71=5;
- switch ( input.LA(1) ) {
- case STRING:
- alt71=1;
- break;
- case INT:
- alt71=2;
- break;
- case FLOAT:
- alt71=3;
- break;
- case BOOL:
- alt71=4;
- break;
- case 50:
- alt71=5;
- break;
- default:
- NoViableAltException nvae =
- new NoViableAltException("1091:17: (t= STRING | t= INT | t= FLOAT | t= BOOL | t= \'null\' )", 71, 0, input);
-
- throw nvae;
- }
-
- switch (alt71) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1091:25: t= STRING
- {
- t=(Token)input.LT(1);
- match(input,STRING,FOLLOW_STRING_in_literal_constraint3172);
- text = getString( t );
-
- }
- break;
- case 2 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1092:25: t= INT
- {
- t=(Token)input.LT(1);
- match(input,INT,FOLLOW_INT_in_literal_constraint3183);
- text = t.getText();
-
- }
- break;
- case 3 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1093:25: t= FLOAT
- {
- t=(Token)input.LT(1);
- match(input,FLOAT,FOLLOW_FLOAT_in_literal_constraint3196);
- text = t.getText();
-
- }
- break;
- case 4 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1094:25: t= BOOL
- {
- t=(Token)input.LT(1);
- match(input,BOOL,FOLLOW_BOOL_in_literal_constraint3207);
- text = t.getText();
-
- }
- break;
- case 5 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1095:25: t= 'null'
- {
- t=(Token)input.LT(1);
- match(input,50,FOLLOW_50_in_literal_constraint3219);
- text = null;
-
- }
- break;
-
- }
-
-
- }
-
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return text;
- }
- // $ANTLR end literal_constraint
-
-
- // $ANTLR start enum_constraint
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1099:1: enum_constraint returns [String text] : (cls= ID '.' en= ID ) ;
- public String enum_constraint() throws RecognitionException {
- String text;
- Token cls=null;
- Token en=null;
-
-
- text = null;
-
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1103:17: ( (cls= ID '.' en= ID ) )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1103:17: (cls= ID '.' en= ID )
- {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1103:17: (cls= ID '.' en= ID )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1103:18: cls= ID '.' en= ID
- {
- cls=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_enum_constraint3250);
- match(input,19,FOLLOW_19_in_enum_constraint3252);
- en=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_enum_constraint3256);
-
- }
-
- text = cls.getText() + "." + en.getText();
-
- }
-
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return text;
- }
- // $ANTLR end enum_constraint
-
-
- // $ANTLR start retval_constraint
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1106:1: retval_constraint returns [String text] : '(' c= paren_chunk ')' ;
- public String retval_constraint() throws RecognitionException {
- String text;
- String c = null;
-
-
-
- text = null;
-
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1111:17: ( '(' c= paren_chunk ')' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1111:17: '(' c= paren_chunk ')'
- {
- match(input,23,FOLLOW_23_in_retval_constraint3285);
- following.push(FOLLOW_paren_chunk_in_retval_constraint3290);
- c=paren_chunk();
- following.pop();
-
- match(input,25,FOLLOW_25_in_retval_constraint3293);
- text = c;
-
- }
-
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return text;
- }
- // $ANTLR end retval_constraint
-
-
- // $ANTLR start predicate
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1114:1: predicate[List constraints] : decl= ID ':' field= ID '->' '(' text= paren_chunk ')' ;
- public void predicate(List constraints) throws RecognitionException {
- Token decl=null;
- Token field=null;
- String text = null;
-
-
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1116:17: (decl= ID ':' field= ID '->' '(' text= paren_chunk ')' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1116:17: decl= ID ':' field= ID '->' '(' text= paren_chunk ')'
- {
- decl=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_predicate3311);
- match(input,33,FOLLOW_33_in_predicate3313);
- field=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_predicate3317);
- match(input,56,FOLLOW_56_in_predicate3319);
- match(input,23,FOLLOW_23_in_predicate3321);
- following.push(FOLLOW_paren_chunk_in_predicate3325);
- text=paren_chunk();
- following.pop();
-
- match(input,25,FOLLOW_25_in_predicate3327);
-
- PredicateDescr d = new PredicateDescr(field.getText(), decl.getText(), text );
- constraints.add( d );
-
-
- }
-
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return ;
- }
- // $ANTLR end predicate
-
-
- // $ANTLR start paren_chunk
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1123:1: paren_chunk returns [String text] : ( options {greedy=false; } : '(' c= paren_chunk ')' | any= . )* ;
- public String paren_chunk() throws RecognitionException {
- String text;
- Token any=null;
- String c = null;
-
-
-
- text = null;
-
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1129:18: ( ( options {greedy=false; } : '(' c= paren_chunk ')' | any= . )* )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1129:18: ( options {greedy=false; } : '(' c= paren_chunk ')' | any= . )*
- {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1129:18: ( options {greedy=false; } : '(' c= paren_chunk ')' | any= . )*
- loop72:
- do {
- int alt72=3;
- switch ( input.LA(1) ) {
- case EOL:
- alt72=3;
- break;
- case 25:
- alt72=3;
- break;
- case 23:
- alt72=1;
- break;
- case ID:
- case INT:
- case BOOL:
- case STRING:
- case FLOAT:
- case MISC:
- case WS:
- case SH_STYLE_SINGLE_LINE_COMMENT:
- case C_STYLE_SINGLE_LINE_COMMENT:
- case MULTI_LINE_COMMENT:
- case 15:
- case 16:
- case 17:
- case 18:
- case 19:
- case 20:
- case 21:
- case 22:
- case 24:
- case 26:
- case 27:
- case 28:
- case 29:
- case 30:
- case 31:
- case 32:
- case 33:
- case 34:
- case 35:
- case 36:
- case 37:
- case 38:
- case 39:
- case 40:
- case 41:
- case 42:
- case 43:
- case 44:
- case 45:
- case 46:
- case 47:
- case 48:
- case 49:
- case 50:
- case 51:
- case 52:
- case 53:
- case 54:
- case 55:
- case 56:
- case 57:
- case 58:
- case 59:
- case 60:
- case 61:
- case 62:
- case 63:
- case 64:
- case 65:
- case 66:
- case 67:
- case 68:
- case 69:
- case 70:
- case 71:
- case 72:
- alt72=2;
- break;
-
- }
-
- switch (alt72) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1130:25: '(' c= paren_chunk ')'
- {
- match(input,23,FOLLOW_23_in_paren_chunk3373);
- following.push(FOLLOW_paren_chunk_in_paren_chunk3377);
- c=paren_chunk();
- following.pop();
-
- match(input,25,FOLLOW_25_in_paren_chunk3379);
-
- if ( c == null ) {
- c = "";
- }
- if ( text == null ) {
- text = "( " + c + " )";
- } else {
- text = text + " ( " + c + " )";
- }
-
-
- }
- break;
- case 2 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1141:19: any= .
- {
- any=(Token)input.LT(1);
- matchAny(input);
-
- if ( text == null ) {
- text = any.getText();
- } else {
- text = text + " " + any.getText();
- }
-
-
- }
- break;
-
- default :
- break loop72;
- }
- } while (true);
-
-
- }
-
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return text;
- }
- // $ANTLR end paren_chunk
-
-
- // $ANTLR start paren_chunk2
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1153:1: paren_chunk2 returns [String text] : ( options {greedy=false; } : '(' c= paren_chunk2 ')' | any= . )* ;
- public String paren_chunk2() throws RecognitionException {
- String text;
- Token any=null;
- String c = null;
-
-
-
- text = null;
-
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1159:18: ( ( options {greedy=false; } : '(' c= paren_chunk2 ')' | any= . )* )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1159:18: ( options {greedy=false; } : '(' c= paren_chunk2 ')' | any= . )*
- {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1159:18: ( options {greedy=false; } : '(' c= paren_chunk2 ')' | any= . )*
- loop73:
- do {
- int alt73=3;
- switch ( input.LA(1) ) {
- case 25:
- alt73=3;
- break;
- case 23:
- alt73=1;
- break;
- case EOL:
- case ID:
- case INT:
- case BOOL:
- case STRING:
- case FLOAT:
- case MISC:
- case WS:
- case SH_STYLE_SINGLE_LINE_COMMENT:
- case C_STYLE_SINGLE_LINE_COMMENT:
- case MULTI_LINE_COMMENT:
- case 15:
- case 16:
- case 17:
- case 18:
- case 19:
- case 20:
- case 21:
- case 22:
- case 24:
- case 26:
- case 27:
- case 28:
- case 29:
- case 30:
- case 31:
- case 32:
- case 33:
- case 34:
- case 35:
- case 36:
- case 37:
- case 38:
- case 39:
- case 40:
- case 41:
- case 42:
- case 43:
- case 44:
- case 45:
- case 46:
- case 47:
- case 48:
- case 49:
- case 50:
- case 51:
- case 52:
- case 53:
- case 54:
- case 55:
- case 56:
- case 57:
- case 58:
- case 59:
- case 60:
- case 61:
- case 62:
- case 63:
- case 64:
- case 65:
- case 66:
- case 67:
- case 68:
- case 69:
- case 70:
- case 71:
- case 72:
- alt73=2;
- break;
-
- }
-
- switch (alt73) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1160:25: '(' c= paren_chunk2 ')'
- {
- match(input,23,FOLLOW_23_in_paren_chunk23450);
- following.push(FOLLOW_paren_chunk2_in_paren_chunk23454);
- c=paren_chunk2();
- following.pop();
-
- match(input,25,FOLLOW_25_in_paren_chunk23456);
-
- if ( c == null ) {
- c = "";
- }
- if ( text == null ) {
- text = "( " + c + " )";
- } else {
- text = text + " ( " + c + " )";
- }
-
-
- }
- break;
- case 2 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1171:19: any= .
- {
- any=(Token)input.LT(1);
- matchAny(input);
-
- if ( text == null ) {
- text = any.getText();
- } else {
- text = text + " " + any.getText();
- }
-
-
- }
- break;
-
- default :
- break loop73;
- }
- } while (true);
-
-
- }
-
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return text;
- }
- // $ANTLR end paren_chunk2
-
-
- // $ANTLR start curly_chunk
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1182:1: curly_chunk returns [String text] : ( options {greedy=false; } : '{' c= curly_chunk '}' | any= . )* ;
- public String curly_chunk() throws RecognitionException {
- String text;
- Token any=null;
- String c = null;
-
-
-
- text = null;
-
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1188:17: ( ( options {greedy=false; } : '{' c= curly_chunk '}' | any= . )* )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1188:17: ( options {greedy=false; } : '{' c= curly_chunk '}' | any= . )*
- {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1188:17: ( options {greedy=false; } : '{' c= curly_chunk '}' | any= . )*
- loop74:
- do {
- int alt74=3;
- switch ( input.LA(1) ) {
- case 27:
- alt74=3;
- break;
- case 26:
- alt74=1;
- break;
- case EOL:
- case ID:
- case INT:
- case BOOL:
- case STRING:
- case FLOAT:
- case MISC:
- case WS:
- case SH_STYLE_SINGLE_LINE_COMMENT:
- case C_STYLE_SINGLE_LINE_COMMENT:
- case MULTI_LINE_COMMENT:
- case 15:
- case 16:
- case 17:
- case 18:
- case 19:
- case 20:
- case 21:
- case 22:
- case 23:
- case 24:
- case 25:
- case 28:
- case 29:
- case 30:
- case 31:
- case 32:
- case 33:
- case 34:
- case 35:
- case 36:
- case 37:
- case 38:
- case 39:
- case 40:
- case 41:
- case 42:
- case 43:
- case 44:
- case 45:
- case 46:
- case 47:
- case 48:
- case 49:
- case 50:
- case 51:
- case 52:
- case 53:
- case 54:
- case 55:
- case 56:
- case 57:
- case 58:
- case 59:
- case 60:
- case 61:
- case 62:
- case 63:
- case 64:
- case 65:
- case 66:
- case 67:
- case 68:
- case 69:
- case 70:
- case 71:
- case 72:
- alt74=2;
- break;
-
- }
-
- switch (alt74) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1189:25: '{' c= curly_chunk '}'
- {
- match(input,26,FOLLOW_26_in_curly_chunk3525);
- following.push(FOLLOW_curly_chunk_in_curly_chunk3529);
- c=curly_chunk();
- following.pop();
-
- match(input,27,FOLLOW_27_in_curly_chunk3531);
-
- //System.err.println( "chunk [" + c + "]" );
- if ( c == null ) {
- c = "";
- }
- if ( text == null ) {
- text = "{ " + c + " }";
- } else {
- text = text + " { " + c + " }";
- }
-
-
- }
- break;
- case 2 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1201:19: any= .
- {
- any=(Token)input.LT(1);
- matchAny(input);
-
- //System.err.println( "any [" + any.getText() + "]" );
- if ( text == null ) {
- text = any.getText();
- } else {
- text = text + " " + any.getText();
- }
-
-
- }
- break;
-
- default :
- break loop74;
- }
- } while (true);
-
-
- }
-
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return text;
- }
- // $ANTLR end curly_chunk
-
-
- // $ANTLR start lhs_or
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1213:1: lhs_or returns [BaseDescr d] : left= lhs_and ( ('or'|'||') opt_eol right= lhs_and )* ;
- public BaseDescr lhs_or() throws RecognitionException {
- BaseDescr d;
- BaseDescr left = null;
-
- BaseDescr right = null;
-
-
-
- d = null;
-
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1218:17: (left= lhs_and ( ('or'|'||') opt_eol right= lhs_and )* )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1218:17: left= lhs_and ( ('or'|'||') opt_eol right= lhs_and )*
- {
- OrDescr or = null;
- following.push(FOLLOW_lhs_and_in_lhs_or3589);
- left=lhs_and();
- following.pop();
-
- d = left;
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1220:17: ( ('or'|'||') opt_eol right= lhs_and )*
- loop75:
- do {
- int alt75=2;
- int LA75_0 = input.LA(1);
- if ( (LA75_0>=52 && LA75_0<=53) ) {
- alt75=1;
- }
-
-
- switch (alt75) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1220:19: ('or'|'||') opt_eol right= lhs_and
- {
- if ( (input.LA(1)>=52 && input.LA(1)<=53) ) {
- input.consume();
- errorRecovery=false;
- }
- else {
- MismatchedSetException mse =
- new MismatchedSetException(null,input);
- recoverFromMismatchedSet(input,mse,FOLLOW_set_in_lhs_or3598); throw mse;
- }
-
- following.push(FOLLOW_opt_eol_in_lhs_or3603);
- opt_eol();
- following.pop();
-
- following.push(FOLLOW_lhs_and_in_lhs_or3610);
- right=lhs_and();
- following.pop();
-
-
- if ( or == null ) {
- or = new OrDescr();
- or.addDescr( left );
- d = or;
- }
-
- or.addDescr( right );
-
-
- }
- break;
-
- default :
- break loop75;
- }
- } while (true);
-
-
- }
-
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return d;
- }
- // $ANTLR end lhs_or
-
-
- // $ANTLR start lhs_and
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1234:1: lhs_and returns [BaseDescr d] : left= lhs_unary ( ('and'|'&&') opt_eol right= lhs_unary )* ;
- public BaseDescr lhs_and() throws RecognitionException {
- BaseDescr d;
- BaseDescr left = null;
-
- BaseDescr right = null;
-
-
-
- d = null;
-
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1239:17: (left= lhs_unary ( ('and'|'&&') opt_eol right= lhs_unary )* )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1239:17: left= lhs_unary ( ('and'|'&&') opt_eol right= lhs_unary )*
- {
- AndDescr and = null;
- following.push(FOLLOW_lhs_unary_in_lhs_and3650);
- left=lhs_unary();
- following.pop();
-
- d = left;
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1241:17: ( ('and'|'&&') opt_eol right= lhs_unary )*
- loop76:
- do {
- int alt76=2;
- int LA76_0 = input.LA(1);
- if ( (LA76_0>=57 && LA76_0<=58) ) {
- alt76=1;
- }
-
-
- switch (alt76) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1241:19: ('and'|'&&') opt_eol right= lhs_unary
- {
- if ( (input.LA(1)>=57 && input.LA(1)<=58) ) {
- input.consume();
- errorRecovery=false;
- }
- else {
- MismatchedSetException mse =
- new MismatchedSetException(null,input);
- recoverFromMismatchedSet(input,mse,FOLLOW_set_in_lhs_and3659); throw mse;
- }
-
- following.push(FOLLOW_opt_eol_in_lhs_and3664);
- opt_eol();
- following.pop();
-
- following.push(FOLLOW_lhs_unary_in_lhs_and3671);
- right=lhs_unary();
- following.pop();
-
-
- if ( and == null ) {
- and = new AndDescr();
- and.addDescr( left );
- d = and;
- }
-
- and.addDescr( right );
-
-
- }
- break;
-
- default :
- break loop76;
- }
- } while (true);
-
-
- }
-
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return d;
- }
- // $ANTLR end lhs_and
-
-
- // $ANTLR start lhs_unary
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1255:1: lhs_unary returns [BaseDescr d] : (u= lhs_exist | u= lhs_not | u= lhs_eval | u= lhs_column ( (fm= from_statement ) | (ac= accumulate_statement ) | (cs= collect_statement ) )? | '(' opt_eol u= lhs opt_eol ')' ) ;
- public BaseDescr lhs_unary() throws RecognitionException {
- BaseDescr d;
- BaseDescr u = null;
-
- FromDescr fm = null;
-
- AccumulateDescr ac = null;
-
- CollectDescr cs = null;
-
-
-
- d = null;
-
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1259:17: ( (u= lhs_exist | u= lhs_not | u= lhs_eval | u= lhs_column ( (fm= from_statement ) | (ac= accumulate_statement ) | (cs= collect_statement ) )? | '(' opt_eol u= lhs opt_eol ')' ) )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1259:17: (u= lhs_exist | u= lhs_not | u= lhs_eval | u= lhs_column ( (fm= from_statement ) | (ac= accumulate_statement ) | (cs= collect_statement ) )? | '(' opt_eol u= lhs opt_eol ')' )
- {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1259:17: (u= lhs_exist | u= lhs_not | u= lhs_eval | u= lhs_column ( (fm= from_statement ) | (ac= accumulate_statement ) | (cs= collect_statement ) )? | '(' opt_eol u= lhs opt_eol ')' )
- int alt78=5;
- switch ( input.LA(1) ) {
- case 59:
- alt78=1;
- break;
- case 60:
- alt78=2;
- break;
- case 61:
- alt78=3;
- break;
- case ID:
- alt78=4;
- break;
- case 23:
- alt78=5;
- break;
- default:
- NoViableAltException nvae =
- new NoViableAltException("1259:17: (u= lhs_exist | u= lhs_not | u= lhs_eval | u= lhs_column ( (fm= from_statement ) | (ac= accumulate_statement ) | (cs= collect_statement ) )? | \'(\' opt_eol u= lhs opt_eol \')\' )", 78, 0, input);
-
- throw nvae;
- }
-
- switch (alt78) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1259:25: u= lhs_exist
- {
- following.push(FOLLOW_lhs_exist_in_lhs_unary3709);
- u=lhs_exist();
- following.pop();
-
- d = u;
-
- }
- break;
- case 2 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1260:25: u= lhs_not
- {
- following.push(FOLLOW_lhs_not_in_lhs_unary3719);
- u=lhs_not();
- following.pop();
-
- d = u;
-
- }
- break;
- case 3 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1261:25: u= lhs_eval
- {
- following.push(FOLLOW_lhs_eval_in_lhs_unary3729);
- u=lhs_eval();
- following.pop();
-
- d = u;
-
- }
- break;
- case 4 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1262:25: u= lhs_column ( (fm= from_statement ) | (ac= accumulate_statement ) | (cs= collect_statement ) )?
- {
- following.push(FOLLOW_lhs_column_in_lhs_unary3743);
- u=lhs_column();
- following.pop();
-
- d=u;
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1263:27: ( (fm= from_statement ) | (ac= accumulate_statement ) | (cs= collect_statement ) )?
- int alt77=4;
- alt77 = dfa77.predict(input);
- switch (alt77) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1263:28: (fm= from_statement )
- {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1263:28: (fm= from_statement )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1263:29: fm= from_statement
- {
- following.push(FOLLOW_from_statement_in_lhs_unary3764);
- fm=from_statement();
- following.pop();
-
- fm.setColumn((ColumnDescr) u); d=fm;
-
- }
-
-
- }
- break;
- case 2 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1264:28: (ac= accumulate_statement )
- {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1264:28: (ac= accumulate_statement )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1264:29: ac= accumulate_statement
- {
- following.push(FOLLOW_accumulate_statement_in_lhs_unary3786);
- ac=accumulate_statement();
- following.pop();
-
- ac.setResultColumn((ColumnDescr) u); d=ac;
-
- }
-
-
- }
- break;
- case 3 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1265:28: (cs= collect_statement )
- {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1265:28: (cs= collect_statement )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1265:29: cs= collect_statement
- {
- following.push(FOLLOW_collect_statement_in_lhs_unary3807);
- cs=collect_statement();
- following.pop();
-
- cs.setResultColumn((ColumnDescr) u); d=cs;
-
- }
-
-
- }
- break;
-
- }
-
-
- }
- break;
- case 5 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1266:25: '(' opt_eol u= lhs opt_eol ')'
- {
- match(input,23,FOLLOW_23_in_lhs_unary3819);
- following.push(FOLLOW_opt_eol_in_lhs_unary3821);
- opt_eol();
- following.pop();
-
- following.push(FOLLOW_lhs_in_lhs_unary3825);
- u=lhs();
- following.pop();
-
- following.push(FOLLOW_opt_eol_in_lhs_unary3827);
- opt_eol();
- following.pop();
-
- match(input,25,FOLLOW_25_in_lhs_unary3829);
- d = u;
-
- }
- break;
-
- }
-
-
- }
-
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return d;
- }
- // $ANTLR end lhs_unary
-
-
- // $ANTLR start lhs_exist
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1270:1: lhs_exist returns [BaseDescr d] : loc= 'exists' ( '(' column= lhs_column ')' | column= lhs_column ) ;
- public BaseDescr lhs_exist() throws RecognitionException {
- BaseDescr d;
- Token loc=null;
- BaseDescr column = null;
-
-
-
- d = null;
-
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1274:17: (loc= 'exists' ( '(' column= lhs_column ')' | column= lhs_column ) )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1274:17: loc= 'exists' ( '(' column= lhs_column ')' | column= lhs_column )
- {
- loc=(Token)input.LT(1);
- match(input,59,FOLLOW_59_in_lhs_exist3860);
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1274:30: ( '(' column= lhs_column ')' | column= lhs_column )
- int alt79=2;
- int LA79_0 = input.LA(1);
- if ( LA79_0==23 ) {
- alt79=1;
- }
- else if ( LA79_0==ID ) {
- alt79=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("1274:30: ( \'(\' column= lhs_column \')\' | column= lhs_column )", 79, 0, input);
-
- throw nvae;
- }
- switch (alt79) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1274:31: '(' column= lhs_column ')'
- {
- match(input,23,FOLLOW_23_in_lhs_exist3863);
- following.push(FOLLOW_lhs_column_in_lhs_exist3867);
- column=lhs_column();
- following.pop();
-
- match(input,25,FOLLOW_25_in_lhs_exist3869);
-
- }
- break;
- case 2 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1274:59: column= lhs_column
- {
- following.push(FOLLOW_lhs_column_in_lhs_exist3875);
- column=lhs_column();
- following.pop();
-
-
- }
- break;
-
- }
-
-
- d = new ExistsDescr( (ColumnDescr) column );
- d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
-
-
- }
-
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return d;
- }
- // $ANTLR end lhs_exist
-
-
- // $ANTLR start lhs_not
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1281:1: lhs_not returns [NotDescr d] : loc= 'not' ( '(' column= lhs_column ')' | column= lhs_column ) ;
- public NotDescr lhs_not() throws RecognitionException {
- NotDescr d;
- Token loc=null;
- BaseDescr column = null;
-
-
-
- d = null;
-
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1285:17: (loc= 'not' ( '(' column= lhs_column ')' | column= lhs_column ) )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1285:17: loc= 'not' ( '(' column= lhs_column ')' | column= lhs_column )
- {
- loc=(Token)input.LT(1);
- match(input,60,FOLLOW_60_in_lhs_not3905);
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1285:27: ( '(' column= lhs_column ')' | column= lhs_column )
- int alt80=2;
- int LA80_0 = input.LA(1);
- if ( LA80_0==23 ) {
- alt80=1;
- }
- else if ( LA80_0==ID ) {
- alt80=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("1285:27: ( \'(\' column= lhs_column \')\' | column= lhs_column )", 80, 0, input);
-
- throw nvae;
- }
- switch (alt80) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1285:28: '(' column= lhs_column ')'
- {
- match(input,23,FOLLOW_23_in_lhs_not3908);
- following.push(FOLLOW_lhs_column_in_lhs_not3912);
- column=lhs_column();
- following.pop();
-
- match(input,25,FOLLOW_25_in_lhs_not3915);
-
- }
- break;
- case 2 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1285:57: column= lhs_column
- {
- following.push(FOLLOW_lhs_column_in_lhs_not3921);
- column=lhs_column();
- following.pop();
-
-
- }
- break;
-
- }
-
-
- d = new NotDescr( (ColumnDescr) column );
- d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
-
-
- }
-
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return d;
- }
- // $ANTLR end lhs_not
-
-
- // $ANTLR start lhs_eval
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1292:1: lhs_eval returns [BaseDescr d] : 'eval' loc= '(' c= paren_chunk2 ')' ;
- public BaseDescr lhs_eval() throws RecognitionException {
- BaseDescr d;
- Token loc=null;
- String c = null;
-
-
-
- d = null;
- String text = "";
-
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1297:17: ( 'eval' loc= '(' c= paren_chunk2 ')' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1297:17: 'eval' loc= '(' c= paren_chunk2 ')'
- {
- match(input,61,FOLLOW_61_in_lhs_eval3947);
- loc=(Token)input.LT(1);
- match(input,23,FOLLOW_23_in_lhs_eval3951);
- following.push(FOLLOW_paren_chunk2_in_lhs_eval3959);
- c=paren_chunk2();
- following.pop();
-
- match(input,25,FOLLOW_25_in_lhs_eval3963);
-
- checkTrailingSemicolon( c, offset(loc.getLine()) );
- d = new EvalDescr( c );
-
-
- }
-
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return d;
- }
- // $ANTLR end lhs_eval
-
-
- // $ANTLR start dotted_name
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1306:1: dotted_name returns [String name] : id= ID ( '.' id= ID )* ( '[' ']' )* ;
- public String dotted_name() throws RecognitionException {
- String name;
- Token id=null;
-
-
- name = null;
-
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1311:17: (id= ID ( '.' id= ID )* ( '[' ']' )* )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1311:17: id= ID ( '.' id= ID )* ( '[' ']' )*
- {
- id=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_dotted_name3995);
- name=id.getText();
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1311:46: ( '.' id= ID )*
- loop81:
- do {
- int alt81=2;
- int LA81_0 = input.LA(1);
- if ( LA81_0==19 ) {
- alt81=1;
- }
-
-
- switch (alt81) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1311:48: '.' id= ID
- {
- match(input,19,FOLLOW_19_in_dotted_name4001);
- id=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_dotted_name4005);
- name = name + "." + id.getText();
-
- }
- break;
-
- default :
- break loop81;
- }
- } while (true);
-
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1311:99: ( '[' ']' )*
- loop82:
- do {
- int alt82=2;
- int LA82_0 = input.LA(1);
- if ( LA82_0==43 ) {
- alt82=1;
- }
-
-
- switch (alt82) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1311:101: '[' ']'
- {
- match(input,43,FOLLOW_43_in_dotted_name4014);
- match(input,44,FOLLOW_44_in_dotted_name4016);
- name = name + "[]";
-
- }
- break;
-
- default :
- break loop82;
- }
- } while (true);
-
-
- }
-
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return name;
- }
- // $ANTLR end dotted_name
-
-
- // $ANTLR start argument_name
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1314:1: argument_name returns [String name] : id= ID ( '[' ']' )* ;
- public String argument_name() throws RecognitionException {
- String name;
- Token id=null;
-
-
- name = null;
-
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1319:17: (id= ID ( '[' ']' )* )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1319:17: id= ID ( '[' ']' )*
- {
- id=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_argument_name4046);
- name=id.getText();
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1319:46: ( '[' ']' )*
- loop83:
- do {
- int alt83=2;
- int LA83_0 = input.LA(1);
- if ( LA83_0==43 ) {
- alt83=1;
- }
-
-
- switch (alt83) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1319:48: '[' ']'
- {
- match(input,43,FOLLOW_43_in_argument_name4052);
- match(input,44,FOLLOW_44_in_argument_name4054);
- name = name + "[]";
-
- }
- break;
-
- default :
- break loop83;
- }
- } while (true);
-
-
- }
-
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return name;
- }
- // $ANTLR end argument_name
-
-
- // $ANTLR start word
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1323:1: word returns [String word] : (id= ID | 'import' | 'use' | 'rule' | 'query' | 'salience' | 'no-loop' | 'when' | 'then' | 'end' | str= STRING );
- public String word() throws RecognitionException {
- String word;
- Token id=null;
- Token str=null;
-
-
- word = null;
-
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1327:17: (id= ID | 'import' | 'use' | 'rule' | 'query' | 'salience' | 'no-loop' | 'when' | 'then' | 'end' | str= STRING )
- int alt84=11;
- switch ( input.LA(1) ) {
- case ID:
- alt84=1;
- break;
- case 17:
- alt84=2;
- break;
- case 62:
- alt84=3;
- break;
- case 31:
- alt84=4;
- break;
- case 28:
- alt84=5;
- break;
- case 36:
- alt84=6;
- break;
- case 37:
- alt84=7;
- break;
- case 32:
- alt84=8;
- break;
- case 34:
- alt84=9;
- break;
- case 29:
- alt84=10;
- break;
- case STRING:
- alt84=11;
- break;
- default:
- NoViableAltException nvae =
- new NoViableAltException("1323:1: word returns [String word] : (id= ID | \'import\' | \'use\' | \'rule\' | \'query\' | \'salience\' | \'no-loop\' | \'when\' | \'then\' | \'end\' | str= STRING );", 84, 0, input);
-
- throw nvae;
- }
-
- switch (alt84) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1327:17: id= ID
- {
- id=(Token)input.LT(1);
- match(input,ID,FOLLOW_ID_in_word4082);
- word=id.getText();
-
- }
- break;
- case 2 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1328:17: 'import'
- {
- match(input,17,FOLLOW_17_in_word4094);
- word="import";
-
- }
- break;
- case 3 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1329:17: 'use'
- {
- match(input,62,FOLLOW_62_in_word4103);
- word="use";
-
- }
- break;
- case 4 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1330:17: 'rule'
- {
- match(input,31,FOLLOW_31_in_word4115);
- word="rule";
-
- }
- break;
- case 5 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1331:17: 'query'
- {
- match(input,28,FOLLOW_28_in_word4126);
- word="query";
-
- }
- break;
- case 6 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1332:17: 'salience'
- {
- match(input,36,FOLLOW_36_in_word4136);
- word="salience";
-
- }
- break;
- case 7 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1333:17: 'no-loop'
- {
- match(input,37,FOLLOW_37_in_word4144);
- word="no-loop";
-
- }
- break;
- case 8 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1334:17: 'when'
- {
- match(input,32,FOLLOW_32_in_word4152);
- word="when";
-
- }
- break;
- case 9 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1335:17: 'then'
- {
- match(input,34,FOLLOW_34_in_word4163);
- word="then";
-
- }
- break;
- case 10 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1336:17: 'end'
- {
- match(input,29,FOLLOW_29_in_word4174);
- word="end";
-
- }
- break;
- case 11 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1337:17: str= STRING
- {
- str=(Token)input.LT(1);
- match(input,STRING,FOLLOW_STRING_in_word4188);
- word=getString(str);
-
- }
- break;
-
- }
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return word;
- }
- // $ANTLR end word
-
-
- // $ANTLR start operator
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1340:1: operator returns [String str] : ( '==' | '=' | '>' | '>=' | '<' | '<=' | '!=' | 'contains' | 'matches' | 'excludes' );
- public String operator() throws RecognitionException {
- String str;
-
- str = null;
-
- try {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1346:17: ( '==' | '=' | '>' | '>=' | '<' | '<=' | '!=' | 'contains' | 'matches' | 'excludes' )
- int alt85=10;
- switch ( input.LA(1) ) {
- case 63:
- alt85=1;
- break;
- case 64:
- alt85=2;
- break;
- case 65:
- alt85=3;
- break;
- case 66:
- alt85=4;
- break;
- case 67:
- alt85=5;
- break;
- case 68:
- alt85=6;
- break;
- case 69:
- alt85=7;
- break;
- case 70:
- alt85=8;
- break;
- case 71:
- alt85=9;
- break;
- case 72:
- alt85=10;
- break;
- default:
- NoViableAltException nvae =
- new NoViableAltException("1340:1: operator returns [String str] : ( \'==\' | \'=\' | \'>\' | \'>=\' | \'<\' | \'<=\' | \'!=\' | \'contains\' | \'matches\' | \'excludes\' );", 85, 0, input);
-
- throw nvae;
- }
-
- switch (alt85) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1346:17: '=='
- {
- match(input,63,FOLLOW_63_in_operator4217);
- str= "==";
-
- }
- break;
- case 2 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1347:18: '='
- {
- match(input,64,FOLLOW_64_in_operator4224);
- str="==";
-
- }
- break;
- case 3 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1348:18: '>'
- {
- match(input,65,FOLLOW_65_in_operator4231);
- str=">";
-
- }
- break;
- case 4 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1349:18: '>='
- {
- match(input,66,FOLLOW_66_in_operator4238);
- str=">=";
-
- }
- break;
- case 5 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1350:18: '<'
- {
- match(input,67,FOLLOW_67_in_operator4247);
- str="<";
-
- }
- break;
- case 6 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1351:18: '<='
- {
- match(input,68,FOLLOW_68_in_operator4254);
- str="<=";
-
- }
- break;
- case 7 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1352:18: '!='
- {
- match(input,69,FOLLOW_69_in_operator4261);
- str="!=";
-
- }
- break;
- case 8 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1353:18: 'contains'
- {
- match(input,70,FOLLOW_70_in_operator4268);
- str="contains";
-
- }
- break;
- case 9 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1354:18: 'matches'
- {
- match(input,71,FOLLOW_71_in_operator4275);
- str="matches";
-
- }
- break;
- case 10 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1355:18: 'excludes'
- {
- match(input,72,FOLLOW_72_in_operator4282);
- str="excludes";
-
- }
- break;
-
- }
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- }
- return str;
- }
- // $ANTLR end operator
-
-
- protected DFA2 dfa2 = new DFA2();protected DFA4 dfa4 = new DFA4();protected DFA13 dfa13 = new DFA13();protected DFA14 dfa14 = new DFA14();protected DFA15 dfa15 = new DFA15();protected DFA48 dfa48 = new DFA48();protected DFA50 dfa50 = new DFA50();protected DFA51 dfa51 = new DFA51();protected DFA62 dfa62 = new DFA62();protected DFA65 dfa65 = new DFA65();protected DFA66 dfa66 = new DFA66();protected DFA77 dfa77 = new DFA77();
- class DFA2 extends DFA {
- public int predict(IntStream input) throws RecognitionException {
- return predict(input, s0);
- }
- DFA.State s1 = new DFA.State() {{alt=5;}};
- DFA.State s4 = new DFA.State() {{alt=2;}};
- DFA.State s3 = new DFA.State() {{alt=1;}};
- DFA.State s5 = new DFA.State() {{alt=3;}};
- DFA.State s2 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case 28:
- return s4;
-
- case EOL:
- case 15:
- return s2;
-
- case 31:
- return s3;
-
- case 30:
- return s5;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 2, 2, input);
-
- throw nvae; }
- }
- };
- DFA.State s6 = new DFA.State() {{alt=4;}};
- DFA.State s0 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case -1:
- return s1;
-
- case EOL:
- case 15:
- return s2;
-
- case 31:
- return s3;
-
- case 28:
- return s4;
-
- case 30:
- return s5;
-
- case 17:
- case 18:
- case 22:
- return s6;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 2, 0, input);
-
- throw nvae; }
- }
- };
-
- }class DFA4 extends DFA {
- public int predict(IntStream input) throws RecognitionException {
- return predict(input, s0);
- }
- DFA.State s1 = new DFA.State() {{alt=3;}};
- DFA.State s17 = new DFA.State() {{alt=1;}};
- DFA.State s16 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA4_16 = input.LA(1);
- if ( LA4_16==ID ) {return s17;}
- if ( LA4_16==EOL||LA4_16==15 ) {return s16;}
-
- NoViableAltException nvae =
- new NoViableAltException("", 4, 16, input);
-
- throw nvae;
- }
- };
- DFA.State s10 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA4_10 = input.LA(1);
- if ( LA4_10==EOL||LA4_10==15 ) {return s16;}
- if ( LA4_10==ID ) {return s17;}
-
- NoViableAltException nvae =
- new NoViableAltException("", 4, 10, input);
-
- throw nvae;
- }
- };
- DFA.State s12 = new DFA.State() {{alt=1;}};
- DFA.State s11 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA4_11 = input.LA(1);
- if ( LA4_11==ID ) {return s12;}
- if ( LA4_11==EOL||LA4_11==15 ) {return s11;}
-
- NoViableAltException nvae =
- new NoViableAltException("", 4, 11, input);
-
- throw nvae;
- }
- };
- DFA.State s5 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case 18:
- return s10;
-
- case EOL:
- case 15:
- return s11;
-
- case ID:
- return s12;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 4, 5, input);
-
- throw nvae; }
- }
- };
- DFA.State s22 = new DFA.State() {{alt=1;}};
- DFA.State s33 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA4_33 = input.LA(1);
- if ( LA4_33==ID ) {return s22;}
- if ( LA4_33==43 ) {return s21;}
-
- NoViableAltException nvae =
- new NoViableAltException("", 4, 33, input);
-
- throw nvae;
- }
- };
- DFA.State s21 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA4_21 = input.LA(1);
- if ( LA4_21==44 ) {return s33;}
-
- NoViableAltException nvae =
- new NoViableAltException("", 4, 21, input);
-
- throw nvae;
- }
- };
- DFA.State s32 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case 43:
- return s21;
-
- case ID:
- return s22;
-
- case 19:
- return s20;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 4, 32, input);
-
- throw nvae; }
- }
- };
- DFA.State s20 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA4_20 = input.LA(1);
- if ( LA4_20==ID ) {return s32;}
-
- NoViableAltException nvae =
- new NoViableAltException("", 4, 20, input);
-
- throw nvae;
- }
- };
- DFA.State s13 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case 19:
- return s20;
-
- case 43:
- return s21;
-
- case ID:
- return s22;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 4, 13, input);
-
- throw nvae; }
- }
- };
- DFA.State s6 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA4_6 = input.LA(1);
- if ( LA4_6==ID ) {return s13;}
-
- NoViableAltException nvae =
- new NoViableAltException("", 4, 6, input);
-
- throw nvae;
- }
- };
- DFA.State s93 = new DFA.State() {{alt=1;}};
- DFA.State s111 = new DFA.State() {{alt=1;}};
- DFA.State s120 = new DFA.State() {{alt=1;}};
- DFA.State s126 = new DFA.State() {{alt=1;}};
- DFA.State s128 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case 27:
- return s126;
-
- case 26:
- return s127;
-
- case EOL:
- case ID:
- case INT:
- case BOOL:
- case STRING:
- case FLOAT:
- case MISC:
- case WS:
- case SH_STYLE_SINGLE_LINE_COMMENT:
- case C_STYLE_SINGLE_LINE_COMMENT:
- case MULTI_LINE_COMMENT:
- case 15:
- case 16:
- case 17:
- case 18:
- case 19:
- case 20:
- case 21:
- case 22:
- case 23:
- case 24:
- case 25:
- case 28:
- case 29:
- case 30:
- case 31:
- case 32:
- case 33:
- case 34:
- case 35:
- case 36:
- case 37:
- case 38:
- case 39:
- case 40:
- case 41:
- case 42:
- case 43:
- case 44:
- case 45:
- case 46:
- case 47:
- case 48:
- case 49:
- case 50:
- case 51:
- case 52:
- case 53:
- case 54:
- case 55:
- case 56:
- case 57:
- case 58:
- case 59:
- case 60:
- case 61:
- case 62:
- case 63:
- case 64:
- case 65:
- case 66:
- case 67:
- case 68:
- case 69:
- case 70:
- case 71:
- case 72:
- return s128;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 4, 128, input);
-
- throw nvae; }
- }
- };
- DFA.State s127 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case 27:
- return s126;
-
- case 26:
- return s127;
-
- case EOL:
- case ID:
- case INT:
- case BOOL:
- case STRING:
- case FLOAT:
- case MISC:
- case WS:
- case SH_STYLE_SINGLE_LINE_COMMENT:
- case C_STYLE_SINGLE_LINE_COMMENT:
- case MULTI_LINE_COMMENT:
- case 15:
- case 16:
- case 17:
- case 18:
- case 19:
- case 20:
- case 21:
- case 22:
- case 23:
- case 24:
- case 25:
- case 28:
- case 29:
- case 30:
- case 31:
- case 32:
- case 33:
- case 34:
- case 35:
- case 36:
- case 37:
- case 38:
- case 39:
- case 40:
- case 41:
- case 42:
- case 43:
- case 44:
- case 45:
- case 46:
- case 47:
- case 48:
- case 49:
- case 50:
- case 51:
- case 52:
- case 53:
- case 54:
- case 55:
- case 56:
- case 57:
- case 58:
- case 59:
- case 60:
- case 61:
- case 62:
- case 63:
- case 64:
- case 65:
- case 66:
- case 67:
- case 68:
- case 69:
- case 70:
- case 71:
- case 72:
- return s128;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 4, 127, input);
-
- throw nvae; }
- }
- };
- DFA.State s121 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case 27:
- return s126;
-
- case 26:
- return s127;
-
- case EOL:
- case ID:
- case INT:
- case BOOL:
- case STRING:
- case FLOAT:
- case MISC:
- case WS:
- case SH_STYLE_SINGLE_LINE_COMMENT:
- case C_STYLE_SINGLE_LINE_COMMENT:
- case MULTI_LINE_COMMENT:
- case 15:
- case 16:
- case 17:
- case 18:
- case 19:
- case 20:
- case 21:
- case 22:
- case 23:
- case 24:
- case 25:
- case 28:
- case 29:
- case 30:
- case 31:
- case 32:
- case 33:
- case 34:
- case 35:
- case 36:
- case 37:
- case 38:
- case 39:
- case 40:
- case 41:
- case 42:
- case 43:
- case 44:
- case 45:
- case 46:
- case 47:
- case 48:
- case 49:
- case 50:
- case 51:
- case 52:
- case 53:
- case 54:
- case 55:
- case 56:
- case 57:
- case 58:
- case 59:
- case 60:
- case 61:
- case 62:
- case 63:
- case 64:
- case 65:
- case 66:
- case 67:
- case 68:
- case 69:
- case 70:
- case 71:
- case 72:
- return s128;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 4, 121, input);
-
- throw nvae; }
- }
- };
- DFA.State s122 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case 27:
- return s120;
-
- case 26:
- return s121;
-
- case EOL:
- case ID:
- case INT:
- case BOOL:
- case STRING:
- case FLOAT:
- case MISC:
- case WS:
- case SH_STYLE_SINGLE_LINE_COMMENT:
- case C_STYLE_SINGLE_LINE_COMMENT:
- case MULTI_LINE_COMMENT:
- case 15:
- case 16:
- case 17:
- case 18:
- case 19:
- case 20:
- case 21:
- case 22:
- case 23:
- case 24:
- case 25:
- case 28:
- case 29:
- case 30:
- case 31:
- case 32:
- case 33:
- case 34:
- case 35:
- case 36:
- case 37:
- case 38:
- case 39:
- case 40:
- case 41:
- case 42:
- case 43:
- case 44:
- case 45:
- case 46:
- case 47:
- case 48:
- case 49:
- case 50:
- case 51:
- case 52:
- case 53:
- case 54:
- case 55:
- case 56:
- case 57:
- case 58:
- case 59:
- case 60:
- case 61:
- case 62:
- case 63:
- case 64:
- case 65:
- case 66:
- case 67:
- case 68:
- case 69:
- case 70:
- case 71:
- case 72:
- return s122;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 4, 122, input);
-
- throw nvae; }
- }
- };
- DFA.State s112 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case 27:
- return s120;
-
- case 26:
- return s121;
-
- case EOL:
- case ID:
- case INT:
- case BOOL:
- case STRING:
- case FLOAT:
- case MISC:
- case WS:
- case SH_STYLE_SINGLE_LINE_COMMENT:
- case C_STYLE_SINGLE_LINE_COMMENT:
- case MULTI_LINE_COMMENT:
- case 15:
- case 16:
- case 17:
- case 18:
- case 19:
- case 20:
- case 21:
- case 22:
- case 23:
- case 24:
- case 25:
- case 28:
- case 29:
- case 30:
- case 31:
- case 32:
- case 33:
- case 34:
- case 35:
- case 36:
- case 37:
- case 38:
- case 39:
- case 40:
- case 41:
- case 42:
- case 43:
- case 44:
- case 45:
- case 46:
- case 47:
- case 48:
- case 49:
- case 50:
- case 51:
- case 52:
- case 53:
- case 54:
- case 55:
- case 56:
- case 57:
- case 58:
- case 59:
- case 60:
- case 61:
- case 62:
- case 63:
- case 64:
- case 65:
- case 66:
- case 67:
- case 68:
- case 69:
- case 70:
- case 71:
- case 72:
- return s122;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 4, 112, input);
-
- throw nvae; }
- }
- };
- DFA.State s113 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case 27:
- return s111;
-
- case 26:
- return s112;
-
- case EOL:
- case ID:
- case INT:
- case BOOL:
- case STRING:
- case FLOAT:
- case MISC:
- case WS:
- case SH_STYLE_SINGLE_LINE_COMMENT:
- case C_STYLE_SINGLE_LINE_COMMENT:
- case MULTI_LINE_COMMENT:
- case 15:
- case 16:
- case 17:
- case 18:
- case 19:
- case 20:
- case 21:
- case 22:
- case 23:
- case 24:
- case 25:
- case 28:
- case 29:
- case 30:
- case 31:
- case 32:
- case 33:
- case 34:
- case 35:
- case 36:
- case 37:
- case 38:
- case 39:
- case 40:
- case 41:
- case 42:
- case 43:
- case 44:
- case 45:
- case 46:
- case 47:
- case 48:
- case 49:
- case 50:
- case 51:
- case 52:
- case 53:
- case 54:
- case 55:
- case 56:
- case 57:
- case 58:
- case 59:
- case 60:
- case 61:
- case 62:
- case 63:
- case 64:
- case 65:
- case 66:
- case 67:
- case 68:
- case 69:
- case 70:
- case 71:
- case 72:
- return s113;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 4, 113, input);
-
- throw nvae; }
- }
- };
- DFA.State s94 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case 27:
- return s111;
-
- case 26:
- return s112;
-
- case EOL:
- case ID:
- case INT:
- case BOOL:
- case STRING:
- case FLOAT:
- case MISC:
- case WS:
- case SH_STYLE_SINGLE_LINE_COMMENT:
- case C_STYLE_SINGLE_LINE_COMMENT:
- case MULTI_LINE_COMMENT:
- case 15:
- case 16:
- case 17:
- case 18:
- case 19:
- case 20:
- case 21:
- case 22:
- case 23:
- case 24:
- case 25:
- case 28:
- case 29:
- case 30:
- case 31:
- case 32:
- case 33:
- case 34:
- case 35:
- case 36:
- case 37:
- case 38:
- case 39:
- case 40:
- case 41:
- case 42:
- case 43:
- case 44:
- case 45:
- case 46:
- case 47:
- case 48:
- case 49:
- case 50:
- case 51:
- case 52:
- case 53:
- case 54:
- case 55:
- case 56:
- case 57:
- case 58:
- case 59:
- case 60:
- case 61:
- case 62:
- case 63:
- case 64:
- case 65:
- case 66:
- case 67:
- case 68:
- case 69:
- case 70:
- case 71:
- case 72:
- return s113;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 4, 94, input);
-
- throw nvae; }
- }
- };
- DFA.State s95 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case 27:
- return s93;
-
- case 26:
- return s94;
-
- case EOL:
- case ID:
- case INT:
- case BOOL:
- case STRING:
- case FLOAT:
- case MISC:
- case WS:
- case SH_STYLE_SINGLE_LINE_COMMENT:
- case C_STYLE_SINGLE_LINE_COMMENT:
- case MULTI_LINE_COMMENT:
- case 15:
- case 16:
- case 17:
- case 18:
- case 19:
- case 20:
- case 21:
- case 22:
- case 23:
- case 24:
- case 25:
- case 28:
- case 29:
- case 30:
- case 31:
- case 32:
- case 33:
- case 34:
- case 35:
- case 36:
- case 37:
- case 38:
- case 39:
- case 40:
- case 41:
- case 42:
- case 43:
- case 44:
- case 45:
- case 46:
- case 47:
- case 48:
- case 49:
- case 50:
- case 51:
- case 52:
- case 53:
- case 54:
- case 55:
- case 56:
- case 57:
- case 58:
- case 59:
- case 60:
- case 61:
- case 62:
- case 63:
- case 64:
- case 65:
- case 66:
- case 67:
- case 68:
- case 69:
- case 70:
- case 71:
- case 72:
- return s95;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 4, 95, input);
-
- throw nvae; }
- }
- };
- DFA.State s73 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case 27:
- return s93;
-
- case 26:
- return s94;
-
- case EOL:
- case ID:
- case INT:
- case BOOL:
- case STRING:
- case FLOAT:
- case MISC:
- case WS:
- case SH_STYLE_SINGLE_LINE_COMMENT:
- case C_STYLE_SINGLE_LINE_COMMENT:
- case MULTI_LINE_COMMENT:
- case 15:
- case 16:
- case 17:
- case 18:
- case 19:
- case 20:
- case 21:
- case 22:
- case 23:
- case 24:
- case 25:
- case 28:
- case 29:
- case 30:
- case 31:
- case 32:
- case 33:
- case 34:
- case 35:
- case 36:
- case 37:
- case 38:
- case 39:
- case 40:
- case 41:
- case 42:
- case 43:
- case 44:
- case 45:
- case 46:
- case 47:
- case 48:
- case 49:
- case 50:
- case 51:
- case 52:
- case 53:
- case 54:
- case 55:
- case 56:
- case 57:
- case 58:
- case 59:
- case 60:
- case 61:
- case 62:
- case 63:
- case 64:
- case 65:
- case 66:
- case 67:
- case 68:
- case 69:
- case 70:
- case 71:
- case 72:
- return s95;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 4, 73, input);
-
- throw nvae; }
- }
- };
- DFA.State s74 = new DFA.State() {{alt=1;}};
- DFA.State s75 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case 27:
- return s74;
-
- case 26:
- return s73;
-
- case EOL:
- case ID:
- case INT:
- case BOOL:
- case STRING:
- case FLOAT:
- case MISC:
- case WS:
- case SH_STYLE_SINGLE_LINE_COMMENT:
- case C_STYLE_SINGLE_LINE_COMMENT:
- case MULTI_LINE_COMMENT:
- case 15:
- case 16:
- case 17:
- case 18:
- case 19:
- case 20:
- case 21:
- case 22:
- case 23:
- case 24:
- case 25:
- case 28:
- case 29:
- case 30:
- case 31:
- case 32:
- case 33:
- case 34:
- case 35:
- case 36:
- case 37:
- case 38:
- case 39:
- case 40:
- case 41:
- case 42:
- case 43:
- case 44:
- case 45:
- case 46:
- case 47:
- case 48:
- case 49:
- case 50:
- case 51:
- case 52:
- case 53:
- case 54:
- case 55:
- case 56:
- case 57:
- case 58:
- case 59:
- case 60:
- case 61:
- case 62:
- case 63:
- case 64:
- case 65:
- case 66:
- case 67:
- case 68:
- case 69:
- case 70:
- case 71:
- case 72:
- return s75;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 4, 75, input);
-
- throw nvae; }
- }
- };
- DFA.State s57 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case 26:
- return s73;
-
- case 27:
- return s74;
-
- case EOL:
- case ID:
- case INT:
- case BOOL:
- case STRING:
- case FLOAT:
- case MISC:
- case WS:
- case SH_STYLE_SINGLE_LINE_COMMENT:
- case C_STYLE_SINGLE_LINE_COMMENT:
- case MULTI_LINE_COMMENT:
- case 15:
- case 16:
- case 17:
- case 18:
- case 19:
- case 20:
- case 21:
- case 22:
- case 23:
- case 24:
- case 25:
- case 28:
- case 29:
- case 30:
- case 31:
- case 32:
- case 33:
- case 34:
- case 35:
- case 36:
- case 37:
- case 38:
- case 39:
- case 40:
- case 41:
- case 42:
- case 43:
- case 44:
- case 45:
- case 46:
- case 47:
- case 48:
- case 49:
- case 50:
- case 51:
- case 52:
- case 53:
- case 54:
- case 55:
- case 56:
- case 57:
- case 58:
- case 59:
- case 60:
- case 61:
- case 62:
- case 63:
- case 64:
- case 65:
- case 66:
- case 67:
- case 68:
- case 69:
- case 70:
- case 71:
- case 72:
- return s75;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 4, 57, input);
-
- throw nvae; }
- }
- };
- DFA.State s56 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA4_56 = input.LA(1);
- if ( LA4_56==26 ) {return s57;}
- if ( LA4_56==EOL||LA4_56==15 ) {return s56;}
-
- NoViableAltException nvae =
- new NoViableAltException("", 4, 56, input);
-
- throw nvae;
- }
- };
- DFA.State s39 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA4_39 = input.LA(1);
- if ( LA4_39==EOL||LA4_39==15 ) {return s56;}
- if ( LA4_39==26 ) {return s57;}
-
- NoViableAltException nvae =
- new NoViableAltException("", 4, 39, input);
-
- throw nvae;
- }
- };
- DFA.State s104 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case 25:
- return s39;
-
- case 24:
- return s52;
-
- case EOL:
- case 15:
- return s104;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 4, 104, input);
-
- throw nvae; }
- }
- };
- DFA.State s88 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case 43:
- return s67;
-
- case EOL:
- case 15:
- return s104;
-
- case 25:
- return s39;
-
- case 24:
- return s52;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 4, 88, input);
-
- throw nvae; }
- }
- };
- DFA.State s84 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case 25:
- return s39;
-
- case 24:
- return s52;
-
- case EOL:
- case 15:
- return s84;
-
- case ID:
- return s88;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 4, 84, input);
-
- throw nvae; }
- }
- };
- DFA.State s66 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case 43:
- return s50;
-
- case EOL:
- case 15:
- return s84;
-
- case 25:
- return s39;
-
- case 24:
- return s52;
-
- case 19:
- return s20;
-
- case ID:
- return s88;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 4, 66, input);
-
- throw nvae; }
- }
- };
- DFA.State s65 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA4_65 = input.LA(1);
- if ( LA4_65==ID ) {return s66;}
- if ( LA4_65==EOL||LA4_65==15 ) {return s65;}
-
- NoViableAltException nvae =
- new NoViableAltException("", 4, 65, input);
-
- throw nvae;
- }
- };
- DFA.State s52 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA4_52 = input.LA(1);
- if ( LA4_52==EOL||LA4_52==15 ) {return s65;}
- if ( LA4_52==ID ) {return s66;}
-
- NoViableAltException nvae =
- new NoViableAltException("", 4, 52, input);
-
- throw nvae;
- }
- };
- DFA.State s68 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case 24:
- return s52;
-
- case 25:
- return s39;
-
- case EOL:
- case 15:
- return s68;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 4, 68, input);
-
- throw nvae; }
- }
- };
- DFA.State s89 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case EOL:
- case 15:
- return s68;
-
- case 24:
- return s52;
-
- case 25:
- return s39;
-
- case 43:
- return s67;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 4, 89, input);
-
- throw nvae; }
- }
- };
- DFA.State s67 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA4_67 = input.LA(1);
- if ( LA4_67==44 ) {return s89;}
-
- NoViableAltException nvae =
- new NoViableAltException("", 4, 67, input);
-
- throw nvae;
- }
- };
- DFA.State s55 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case 43:
- return s67;
-
- case EOL:
- case 15:
- return s68;
-
- case 24:
- return s52;
-
- case 25:
- return s39;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 4, 55, input);
-
- throw nvae; }
- }
- };
- DFA.State s51 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case ID:
- return s55;
-
- case EOL:
- case 15:
- return s51;
-
- case 24:
- return s52;
-
- case 25:
- return s39;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 4, 51, input);
-
- throw nvae; }
- }
- };
- DFA.State s60 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case EOL:
- case 15:
- return s51;
-
- case 24:
- return s52;
-
- case 25:
- return s39;
-
- case 43:
- return s50;
-
- case ID:
- return s55;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 4, 60, input);
-
- throw nvae; }
- }
- };
- DFA.State s50 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA4_50 = input.LA(1);
- if ( LA4_50==44 ) {return s60;}
-
- NoViableAltException nvae =
- new NoViableAltException("", 4, 50, input);
-
- throw nvae;
- }
- };
- DFA.State s38 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case 43:
- return s50;
-
- case EOL:
- case 15:
- return s51;
-
- case 24:
- return s52;
-
- case 25:
- return s39;
-
- case 19:
- return s20;
-
- case ID:
- return s55;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 4, 38, input);
-
- throw nvae; }
- }
- };
- DFA.State s37 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case ID:
- return s38;
-
- case EOL:
- case 15:
- return s37;
-
- case 25:
- return s39;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 4, 37, input);
-
- throw nvae; }
- }
- };
- DFA.State s26 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case EOL:
- case 15:
- return s37;
-
- case ID:
- return s38;
-
- case 25:
- return s39;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 4, 26, input);
-
- throw nvae; }
- }
- };
- DFA.State s40 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA4_40 = input.LA(1);
- if ( LA4_40==23 ) {return s26;}
- if ( LA4_40==EOL||LA4_40==15 ) {return s40;}
-
- NoViableAltException nvae =
- new NoViableAltException("", 4, 40, input);
-
- throw nvae;
- }
- };
- DFA.State s29 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA4_29 = input.LA(1);
- if ( LA4_29==EOL||LA4_29==15 ) {return s40;}
- if ( LA4_29==23 ) {return s26;}
-
- NoViableAltException nvae =
- new NoViableAltException("", 4, 29, input);
-
- throw nvae;
- }
- };
- DFA.State s25 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case 23:
- return s26;
-
- case EOL:
- case 15:
- return s25;
-
- case ID:
- return s29;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 4, 25, input);
-
- throw nvae; }
- }
- };
- DFA.State s15 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case EOL:
- case 15:
- return s25;
-
- case 23:
- return s26;
-
- case 19:
- return s20;
-
- case 43:
- return s21;
-
- case ID:
- return s29;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 4, 15, input);
-
- throw nvae; }
- }
- };
- DFA.State s14 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA4_14 = input.LA(1);
- if ( LA4_14==ID ) {return s15;}
- if ( LA4_14==EOL||LA4_14==15 ) {return s14;}
-
- NoViableAltException nvae =
- new NoViableAltException("", 4, 14, input);
-
- throw nvae;
- }
- };
- DFA.State s7 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA4_7 = input.LA(1);
- if ( LA4_7==EOL||LA4_7==15 ) {return s14;}
- if ( LA4_7==ID ) {return s15;}
-
- NoViableAltException nvae =
- new NoViableAltException("", 4, 7, input);
-
- throw nvae;
- }
- };
- DFA.State s9 = new DFA.State() {{alt=2;}};
- DFA.State s0 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case -1:
- case EOL:
- case 15:
- case 28:
- case 30:
- case 31:
- return s1;
-
- case 17:
- return s5;
-
- case 22:
- return s6;
-
- case 18:
- return s7;
-
- case 21:
- return s9;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 4, 0, input);
-
- throw nvae; }
- }
- };
-
- }class DFA13 extends DFA {
- public int predict(IntStream input) throws RecognitionException {
- return predict(input, s0);
- }
- DFA.State s3 = new DFA.State() {{alt=1;}};
- DFA.State s2 = new DFA.State() {{alt=2;}};
- DFA.State s5 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case ID:
- return s3;
-
- case EOL:
- case 15:
- return s5;
-
- case 23:
- return s2;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 13, 5, input);
-
- throw nvae; }
- }
- };
- DFA.State s1 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case ID:
- case 19:
- case 43:
- return s3;
-
- case EOL:
- case 15:
- return s5;
-
- case 23:
- return s2;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 13, 1, input);
-
- throw nvae; }
- }
- };
- DFA.State s0 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA13_0 = input.LA(1);
- if ( LA13_0==ID ) {return s1;}
- if ( LA13_0==EOL||LA13_0==15 ) {return s2;}
-
- NoViableAltException nvae =
- new NoViableAltException("", 13, 0, input);
-
- throw nvae;
- }
- };
-
- }class DFA14 extends DFA {
- public int predict(IntStream input) throws RecognitionException {
- return predict(input, s0);
- }
- DFA.State s3 = new DFA.State() {{alt=1;}};
- DFA.State s2 = new DFA.State() {{alt=2;}};
- DFA.State s5 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case ID:
- return s3;
-
- case EOL:
- case 15:
- return s5;
-
- case 24:
- case 25:
- return s2;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 14, 5, input);
-
- throw nvae; }
- }
- };
- DFA.State s9 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case EOL:
- case 15:
- return s5;
-
- case ID:
- return s3;
-
- case 43:
- return s4;
-
- case 24:
- case 25:
- return s2;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 14, 9, input);
-
- throw nvae; }
- }
- };
- DFA.State s4 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA14_4 = input.LA(1);
- if ( LA14_4==44 ) {return s9;}
-
- NoViableAltException nvae =
- new NoViableAltException("", 14, 4, input);
-
- throw nvae;
- }
- };
- DFA.State s1 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case ID:
- case 19:
- return s3;
-
- case 43:
- return s4;
-
- case EOL:
- case 15:
- return s5;
-
- case 24:
- case 25:
- return s2;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 14, 1, input);
-
- throw nvae; }
- }
- };
- DFA.State s0 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA14_0 = input.LA(1);
- if ( LA14_0==ID ) {return s1;}
- if ( LA14_0==EOL||LA14_0==15 ) {return s2;}
-
- NoViableAltException nvae =
- new NoViableAltException("", 14, 0, input);
-
- throw nvae;
- }
- };
-
- }class DFA15 extends DFA {
- public int predict(IntStream input) throws RecognitionException {
- return predict(input, s0);
- }
- DFA.State s3 = new DFA.State() {{alt=1;}};
- DFA.State s2 = new DFA.State() {{alt=2;}};
- DFA.State s5 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case 24:
- case 25:
- return s2;
-
- case EOL:
- case 15:
- return s5;
-
- case ID:
- return s3;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 15, 5, input);
-
- throw nvae; }
- }
- };
- DFA.State s9 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case EOL:
- case 15:
- return s5;
-
- case ID:
- return s3;
-
- case 43:
- return s4;
-
- case 24:
- case 25:
- return s2;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 15, 9, input);
-
- throw nvae; }
- }
- };
- DFA.State s4 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA15_4 = input.LA(1);
- if ( LA15_4==44 ) {return s9;}
-
- NoViableAltException nvae =
- new NoViableAltException("", 15, 4, input);
-
- throw nvae;
- }
- };
- DFA.State s1 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case ID:
- case 19:
- return s3;
-
- case 43:
- return s4;
-
- case EOL:
- case 15:
- return s5;
-
- case 24:
- case 25:
- return s2;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 15, 1, input);
-
- throw nvae; }
- }
- };
- DFA.State s0 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA15_0 = input.LA(1);
- if ( LA15_0==ID ) {return s1;}
- if ( LA15_0==EOL||LA15_0==15 ) {return s2;}
-
- NoViableAltException nvae =
- new NoViableAltException("", 15, 0, input);
-
- throw nvae;
- }
- };
-
- }class DFA48 extends DFA {
- public int predict(IntStream input) throws RecognitionException {
- return predict(input, s0);
- }
- DFA.State s2 = new DFA.State() {{alt=2;}};
- DFA.State s6 = new DFA.State() {{alt=1;}};
- DFA.State s4 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case 23:
- return s2;
-
- case EOL:
- case 15:
- return s4;
-
- case 33:
- return s6;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 48, 4, input);
-
- throw nvae; }
- }
- };
- DFA.State s1 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case 19:
- case 23:
- case 43:
- return s2;
-
- case EOL:
- case 15:
- return s4;
-
- case 33:
- return s6;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 48, 1, input);
-
- throw nvae; }
- }
- };
- DFA.State s0 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA48_0 = input.LA(1);
- if ( LA48_0==ID ) {return s1;}
-
- NoViableAltException nvae =
- new NoViableAltException("", 48, 0, input);
-
- throw nvae;
- }
- };
-
- }class DFA50 extends DFA {
- public int predict(IntStream input) throws RecognitionException {
- return predict(input, s0);
- }
- DFA.State s8 = new DFA.State() {{alt=1;}};
- DFA.State s33 = new DFA.State() {{alt=2;}};
- DFA.State s55 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case 23:
- case 33:
- return s8;
-
- case EOL:
- case 15:
- return s55;
-
- case 24:
- case 25:
- return s33;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 50, 55, input);
-
- throw nvae; }
- }
- };
- DFA.State s31 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case EOL:
- case 15:
- return s55;
-
- case 24:
- case 25:
- return s33;
-
- case 19:
- case 23:
- case 33:
- case 43:
- return s8;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 50, 31, input);
-
- throw nvae; }
- }
- };
- DFA.State s27 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case 23:
- case 59:
- case 60:
- case 61:
- return s8;
-
- case ID:
- return s31;
-
- case EOL:
- case 15:
- return s27;
-
- case INT:
- case BOOL:
- case STRING:
- case FLOAT:
- case 25:
- case 26:
- case 43:
- case 50:
- return s33;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 50, 27, input);
-
- throw nvae; }
- }
- };
- DFA.State s7 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case EOL:
- case 15:
- return s27;
-
- case 23:
- case 59:
- case 60:
- case 61:
- return s8;
-
- case ID:
- return s31;
-
- case INT:
- case BOOL:
- case STRING:
- case FLOAT:
- case 25:
- case 26:
- case 43:
- case 50:
- return s33;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 50, 7, input);
-
- throw nvae; }
- }
- };
- DFA.State s6 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case 23:
- return s7;
-
- case EOL:
- case 15:
- return s6;
-
- case ID:
- case 25:
- case 29:
- case 34:
- case 59:
- case 60:
- case 61:
- return s8;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 50, 6, input);
-
- throw nvae; }
- }
- };
- DFA.State s5 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case EOL:
- case 15:
- return s6;
-
- case 23:
- return s7;
-
- case ID:
- case 25:
- case 29:
- case 34:
- case 43:
- case 52:
- case 53:
- case 57:
- case 58:
- case 59:
- case 60:
- case 61:
- return s8;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 50, 5, input);
-
- throw nvae; }
- }
- };
- DFA.State s2 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA50_2 = input.LA(1);
- if ( LA50_2==ID ) {return s5;}
-
- NoViableAltException nvae =
- new NoViableAltException("", 50, 2, input);
-
- throw nvae;
- }
- };
- DFA.State s3 = new DFA.State() {{alt=3;}};
- DFA.State s1 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA50_1 = input.LA(1);
- if ( LA50_1==19 ) {return s2;}
- if ( LA50_1==EOL||LA50_1==15||LA50_1==23 ) {return s3;}
-
- NoViableAltException nvae =
- new NoViableAltException("", 50, 1, input);
-
- throw nvae;
- }
- };
- DFA.State s0 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA50_0 = input.LA(1);
- if ( LA50_0==ID ) {return s1;}
-
- NoViableAltException nvae =
- new NoViableAltException("", 50, 0, input);
-
- throw nvae;
- }
- };
-
- }class DFA51 extends DFA {
- public int predict(IntStream input) throws RecognitionException {
- return predict(input, s0);
- }
- DFA.State s3 = new DFA.State() {{alt=1;}};
- DFA.State s2 = new DFA.State() {{alt=2;}};
- DFA.State s1 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case 24:
- return s3;
-
- case EOL:
- case 15:
- return s1;
-
- case 25:
- return s2;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 51, 1, input);
-
- throw nvae; }
- }
- };
- DFA.State s0 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case EOL:
- case 15:
- return s1;
-
- case 25:
- return s2;
-
- case 24:
- return s3;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 51, 0, input);
-
- throw nvae; }
- }
- };
-
- }class DFA62 extends DFA {
- public int predict(IntStream input) throws RecognitionException {
- return predict(input, s0);
- }
- DFA.State s2 = new DFA.State() {{alt=1;}};
- DFA.State s3 = new DFA.State() {{alt=2;}};
- DFA.State s1 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case ID:
- return s2;
-
- case EOL:
- case 15:
- return s1;
-
- case 25:
- return s3;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 62, 1, input);
-
- throw nvae; }
- }
- };
- DFA.State s0 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case EOL:
- case 15:
- return s1;
-
- case ID:
- return s2;
-
- case 25:
- return s3;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 62, 0, input);
-
- throw nvae; }
- }
- };
-
- }class DFA65 extends DFA {
- public int predict(IntStream input) throws RecognitionException {
- return predict(input, s0);
- }
- DFA.State s3 = new DFA.State() {{alt=1;}};
- DFA.State s2 = new DFA.State() {{alt=2;}};
- DFA.State s1 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case 24:
- return s3;
-
- case EOL:
- case 15:
- return s1;
-
- case 25:
- return s2;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 65, 1, input);
-
- throw nvae; }
- }
- };
- DFA.State s0 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case EOL:
- case 15:
- return s1;
-
- case 25:
- return s2;
-
- case 24:
- return s3;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 65, 0, input);
-
- throw nvae; }
- }
- };
-
- }class DFA66 extends DFA {
- public int predict(IntStream input) throws RecognitionException {
- return predict(input, s0);
- }
- DFA.State s3 = new DFA.State() {{alt=2;}};
- DFA.State s15 = new DFA.State() {{alt=1;}};
- DFA.State s2 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case 24:
- case 25:
- case 63:
- case 64:
- case 65:
- case 66:
- case 67:
- case 68:
- case 69:
- case 70:
- case 71:
- case 72:
- return s3;
-
- case EOL:
- case 15:
- return s2;
-
- case 33:
- return s15;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 66, 2, input);
-
- throw nvae; }
- }
- };
- DFA.State s1 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case EOL:
- case 15:
- return s2;
-
- case 24:
- case 25:
- case 63:
- case 64:
- case 65:
- case 66:
- case 67:
- case 68:
- case 69:
- case 70:
- case 71:
- case 72:
- return s3;
-
- case 33:
- return s15;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 66, 1, input);
-
- throw nvae; }
- }
- };
- DFA.State s0 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA66_0 = input.LA(1);
- if ( LA66_0==ID ) {return s1;}
-
- NoViableAltException nvae =
- new NoViableAltException("", 66, 0, input);
-
- throw nvae;
- }
- };
-
- }class DFA77 extends DFA {
- public int predict(IntStream input) throws RecognitionException {
- return predict(input, s0);
- }
- DFA.State s15 = new DFA.State() {{alt=1;}};
- DFA.State s14 = new DFA.State() {{alt=2;}};
- DFA.State s16 = new DFA.State() {{alt=3;}};
- DFA.State s13 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case ID:
- return s15;
-
- case EOL:
- case 15:
- return s13;
-
- case 45:
- return s14;
-
- case 49:
- return s16;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 77, 13, input);
-
- throw nvae; }
- }
- };
- DFA.State s1 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case EOL:
- case 15:
- return s13;
-
- case 45:
- return s14;
-
- case ID:
- return s15;
-
- case 49:
- return s16;
-
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 77, 1, input);
-
- throw nvae; }
- }
- };
- DFA.State s2 = new DFA.State() {{alt=4;}};
- DFA.State s0 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA77_0 = input.LA(1);
- if ( LA77_0==42 ) {return s1;}
- if ( (LA77_0>=EOL && LA77_0<=ID)||LA77_0==15||LA77_0==23||LA77_0==25||LA77_0==29||LA77_0==34||(LA77_0>=52 && LA77_0<=53)||(LA77_0>=57 && LA77_0<=61) ) {return s2;}
-
- NoViableAltException nvae =
- new NoViableAltException("", 77, 0, input);
-
- throw nvae;
- }
- };
-
- }
-
-
- public static final BitSet FOLLOW_set_in_opt_eol41 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_compilation_unit57 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_prolog_in_compilation_unit61 = new BitSet(new long[]{0x0000000000468012L});
- public static final BitSet FOLLOW_rule_in_compilation_unit70 = new BitSet(new long[]{0x0000000000468012L});
- public static final BitSet FOLLOW_query_in_compilation_unit83 = new BitSet(new long[]{0x0000000000468012L});
- public static final BitSet FOLLOW_template_in_compilation_unit93 = new BitSet(new long[]{0x0000000000468012L});
- public static final BitSet FOLLOW_extra_statement_in_compilation_unit101 = new BitSet(new long[]{0x0000000000468012L});
- public static final BitSet FOLLOW_opt_eol_in_prolog125 = new BitSet(new long[]{0x0000000000678012L});
- public static final BitSet FOLLOW_package_statement_in_prolog133 = new BitSet(new long[]{0x0000000000668012L});
- public static final BitSet FOLLOW_extra_statement_in_prolog148 = new BitSet(new long[]{0x0000000000668012L});
- public static final BitSet FOLLOW_expander_in_prolog154 = new BitSet(new long[]{0x0000000000668012L});
- public static final BitSet FOLLOW_opt_eol_in_prolog166 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_16_in_package_statement190 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_package_statement192 = new BitSet(new long[]{0x0000000000000020L});
- public static final BitSet FOLLOW_dotted_name_in_package_statement196 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_15_in_package_statement198 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_package_statement201 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_17_in_import_statement217 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_import_statement219 = new BitSet(new long[]{0x0000000000000020L});
- public static final BitSet FOLLOW_import_name_in_import_statement223 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_15_in_import_statement225 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_import_statement228 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_17_in_function_import_statement244 = new BitSet(new long[]{0x0000000000040000L});
- public static final BitSet FOLLOW_18_in_function_import_statement246 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_function_import_statement248 = new BitSet(new long[]{0x0000000000000020L});
- public static final BitSet FOLLOW_import_name_in_function_import_statement252 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_15_in_function_import_statement254 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_function_import_statement257 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ID_in_import_name289 = new BitSet(new long[]{0x0000000000180002L});
- public static final BitSet FOLLOW_19_in_import_name295 = new BitSet(new long[]{0x0000000000000020L});
- public static final BitSet FOLLOW_ID_in_import_name299 = new BitSet(new long[]{0x0000000000180002L});
- public static final BitSet FOLLOW_20_in_import_name309 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_21_in_expander329 = new BitSet(new long[]{0x0000000000008032L});
- public static final BitSet FOLLOW_dotted_name_in_expander334 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_15_in_expander338 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_expander341 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_22_in_global365 = new BitSet(new long[]{0x0000000000000020L});
- public static final BitSet FOLLOW_dotted_name_in_global369 = new BitSet(new long[]{0x0000000000000020L});
- public static final BitSet FOLLOW_ID_in_global373 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_15_in_global375 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_global378 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_18_in_function404 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_function406 = new BitSet(new long[]{0x0000000000008032L});
- public static final BitSet FOLLOW_dotted_name_in_function411 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_function415 = new BitSet(new long[]{0x0000000000000020L});
- public static final BitSet FOLLOW_ID_in_function419 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_function421 = new BitSet(new long[]{0x0000000000800000L});
- public static final BitSet FOLLOW_23_in_function430 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_function432 = new BitSet(new long[]{0x0000000002008032L});
- public static final BitSet FOLLOW_dotted_name_in_function442 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_function446 = new BitSet(new long[]{0x0000000000000020L});
- public static final BitSet FOLLOW_argument_name_in_function450 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_function452 = new BitSet(new long[]{0x0000000003000000L});
- public static final BitSet FOLLOW_24_in_function466 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_function468 = new BitSet(new long[]{0x0000000000008032L});
- public static final BitSet FOLLOW_dotted_name_in_function473 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_function477 = new BitSet(new long[]{0x0000000000000020L});
- public static final BitSet FOLLOW_argument_name_in_function481 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_function483 = new BitSet(new long[]{0x0000000003000000L});
- public static final BitSet FOLLOW_25_in_function508 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_function512 = new BitSet(new long[]{0x0000000004000000L});
- public static final BitSet FOLLOW_26_in_function516 = new BitSet(new long[]{0xFFFFFFFFFFFFFFF2L,0x00000000000001FFL});
- public static final BitSet FOLLOW_curly_chunk_in_function523 = new BitSet(new long[]{0x0000000008000000L});
- public static final BitSet FOLLOW_27_in_function532 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_function540 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_opt_eol_in_query564 = new BitSet(new long[]{0x0000000010000000L});
- public static final BitSet FOLLOW_28_in_query570 = new BitSet(new long[]{0x40000035B0020120L});
- public static final BitSet FOLLOW_word_in_query574 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_query576 = new BitSet(new long[]{0xFFFFFFFFFFFFFFF2L,0x00000000000001FFL});
- public static final BitSet FOLLOW_expander_lhs_block_in_query592 = new BitSet(new long[]{0x0000000020000000L});
- public static final BitSet FOLLOW_normal_lhs_block_in_query600 = new BitSet(new long[]{0x0000000020000000L});
- public static final BitSet FOLLOW_29_in_query615 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_query617 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_opt_eol_in_template641 = new BitSet(new long[]{0x0000000040000000L});
- public static final BitSet FOLLOW_30_in_template647 = new BitSet(new long[]{0x0000000000000020L});
- public static final BitSet FOLLOW_ID_in_template651 = new BitSet(new long[]{0x0000000000000010L});
- public static final BitSet FOLLOW_EOL_in_template653 = new BitSet(new long[]{0x0000000000000020L});
- public static final BitSet FOLLOW_template_slot_in_template668 = new BitSet(new long[]{0x0000000020000020L});
- public static final BitSet FOLLOW_29_in_template683 = new BitSet(new long[]{0x0000000000000010L});
- public static final BitSet FOLLOW_EOL_in_template685 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_dotted_name_in_template_slot717 = new BitSet(new long[]{0x0000000000000020L});
- public static final BitSet FOLLOW_ID_in_template_slot721 = new BitSet(new long[]{0x0000000000008010L});
- public static final BitSet FOLLOW_set_in_template_slot725 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_opt_eol_in_rule760 = new BitSet(new long[]{0x0000000080000000L});
- public static final BitSet FOLLOW_31_in_rule766 = new BitSet(new long[]{0x40000035B0020120L});
- public static final BitSet FOLLOW_word_in_rule770 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_rule772 = new BitSet(new long[]{0x0000000A00008012L});
- public static final BitSet FOLLOW_rule_attributes_in_rule783 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_rule793 = new BitSet(new long[]{0x0000000120008012L});
- public static final BitSet FOLLOW_32_in_rule802 = new BitSet(new long[]{0x0000000200008012L});
- public static final BitSet FOLLOW_33_in_rule804 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_rule807 = new BitSet(new long[]{0xFFFFFFFFFFFFFFF2L,0x00000000000001FFL});
- public static final BitSet FOLLOW_expander_lhs_block_in_rule825 = new BitSet(new long[]{0x0000000020008012L});
- public static final BitSet FOLLOW_normal_lhs_block_in_rule834 = new BitSet(new long[]{0x0000000020008012L});
- public static final BitSet FOLLOW_opt_eol_in_rule857 = new BitSet(new long[]{0x0000000400000000L});
- public static final BitSet FOLLOW_34_in_rule861 = new BitSet(new long[]{0x0000000200008012L});
- public static final BitSet FOLLOW_33_in_rule863 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_rule867 = new BitSet(new long[]{0xFFFFFFFFFFFFFFF0L,0x00000000000001FFL});
- public static final BitSet FOLLOW_EOL_in_rule894 = new BitSet(new long[]{0xFFFFFFFFFFFFFFF0L,0x00000000000001FFL});
- public static final BitSet FOLLOW_29_in_rule924 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_rule926 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_import_statement_in_extra_statement946 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_function_import_statement_in_extra_statement951 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_global_in_extra_statement956 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_function_in_extra_statement961 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_35_in_rule_attributes980 = new BitSet(new long[]{0x0000000200008012L});
- public static final BitSet FOLLOW_33_in_rule_attributes983 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_rule_attributes986 = new BitSet(new long[]{0x000003F001000002L});
- public static final BitSet FOLLOW_24_in_rule_attributes993 = new BitSet(new long[]{0x000003F000000000L});
- public static final BitSet FOLLOW_rule_attribute_in_rule_attributes998 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_rule_attributes1000 = new BitSet(new long[]{0x000003F001000002L});
- public static final BitSet FOLLOW_salience_in_rule_attribute1039 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_no_loop_in_rule_attribute1049 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_agenda_group_in_rule_attribute1060 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_duration_in_rule_attribute1073 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_activation_group_in_rule_attribute1087 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_auto_focus_in_rule_attribute1098 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_36_in_salience1131 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_salience1133 = new BitSet(new long[]{0x0000000000000040L});
- public static final BitSet FOLLOW_INT_in_salience1137 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_15_in_salience1139 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_salience1142 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_37_in_no_loop1177 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_no_loop1179 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_15_in_no_loop1181 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_no_loop1184 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_37_in_no_loop1209 = new BitSet(new long[]{0x0000000000000080L});
- public static final BitSet FOLLOW_BOOL_in_no_loop1213 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_no_loop1215 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_15_in_no_loop1217 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_no_loop1220 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_38_in_auto_focus1266 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_auto_focus1268 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_15_in_auto_focus1270 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_auto_focus1273 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_38_in_auto_focus1298 = new BitSet(new long[]{0x0000000000000080L});
- public static final BitSet FOLLOW_BOOL_in_auto_focus1302 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_auto_focus1304 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_15_in_auto_focus1306 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_auto_focus1309 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_39_in_activation_group1351 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_activation_group1353 = new BitSet(new long[]{0x0000000000000100L});
- public static final BitSet FOLLOW_STRING_in_activation_group1357 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_15_in_activation_group1359 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_activation_group1362 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_40_in_agenda_group1391 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_agenda_group1393 = new BitSet(new long[]{0x0000000000000100L});
- public static final BitSet FOLLOW_STRING_in_agenda_group1397 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_15_in_agenda_group1399 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_agenda_group1402 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_41_in_duration1434 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_duration1436 = new BitSet(new long[]{0x0000000000000040L});
- public static final BitSet FOLLOW_INT_in_duration1440 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_15_in_duration1442 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_duration1445 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_lhs_in_normal_lhs_block1471 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_normal_lhs_block1473 = new BitSet(new long[]{0x3800000000808032L});
- public static final BitSet FOLLOW_opt_eol_in_normal_lhs_block1485 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_paren_chunk_in_expander_lhs_block1526 = new BitSet(new long[]{0x0000000000000010L});
- public static final BitSet FOLLOW_EOL_in_expander_lhs_block1530 = new BitSet(new long[]{0xFFFFFFFFFFFFFFF2L,0x00000000000001FFL});
- public static final BitSet FOLLOW_EOL_in_expander_lhs_block1545 = new BitSet(new long[]{0xFFFFFFFFFFFFFFF2L,0x00000000000001FFL});
- public static final BitSet FOLLOW_lhs_or_in_lhs1587 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_fact_binding_in_lhs_column1615 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_fact_in_lhs_column1624 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_42_in_from_statement1652 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_from_statement1654 = new BitSet(new long[]{0x0000000000000020L});
- public static final BitSet FOLLOW_from_source_in_from_statement1658 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ID_in_from_source1702 = new BitSet(new long[]{0x0000000000080000L});
- public static final BitSet FOLLOW_19_in_from_source1704 = new BitSet(new long[]{0x0000000000000020L});
- public static final BitSet FOLLOW_ID_in_from_source1708 = new BitSet(new long[]{0x0000080000000002L});
- public static final BitSet FOLLOW_43_in_from_source1712 = new BitSet(new long[]{0x00040800040003E0L});
- public static final BitSet FOLLOW_argument_value_in_from_source1716 = new BitSet(new long[]{0x0000100000000000L});
- public static final BitSet FOLLOW_44_in_from_source1718 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ID_in_from_source1747 = new BitSet(new long[]{0x0000000000080000L});
- public static final BitSet FOLLOW_19_in_from_source1749 = new BitSet(new long[]{0x0000000000000020L});
- public static final BitSet FOLLOW_ID_in_from_source1753 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_from_source1755 = new BitSet(new long[]{0x0000000000800000L});
- public static final BitSet FOLLOW_23_in_from_source1758 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_from_source1760 = new BitSet(new long[]{0x00040800040003E2L});
- public static final BitSet FOLLOW_argument_list_in_from_source1764 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_from_source1766 = new BitSet(new long[]{0x0000000002000000L});
- public static final BitSet FOLLOW_25_in_from_source1768 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ID_in_from_source1790 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_from_source1792 = new BitSet(new long[]{0x0000000000800000L});
- public static final BitSet FOLLOW_23_in_from_source1794 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_from_source1796 = new BitSet(new long[]{0x00040800040003E2L});
- public static final BitSet FOLLOW_argument_list_in_from_source1800 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_from_source1802 = new BitSet(new long[]{0x0000000002000000L});
- public static final BitSet FOLLOW_25_in_from_source1804 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_42_in_accumulate_statement1853 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_accumulate_statement1855 = new BitSet(new long[]{0x0000200000000000L});
- public static final BitSet FOLLOW_45_in_accumulate_statement1857 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_accumulate_statement1859 = new BitSet(new long[]{0x0000000000800000L});
- public static final BitSet FOLLOW_23_in_accumulate_statement1869 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_accumulate_statement1871 = new BitSet(new long[]{0x0000000000000020L});
- public static final BitSet FOLLOW_lhs_column_in_accumulate_statement1875 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_accumulate_statement1877 = new BitSet(new long[]{0x0000000001000000L});
- public static final BitSet FOLLOW_24_in_accumulate_statement1879 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_accumulate_statement1881 = new BitSet(new long[]{0x0000400000000000L});
- public static final BitSet FOLLOW_46_in_accumulate_statement1889 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_accumulate_statement1891 = new BitSet(new long[]{0x0000000000800000L});
- public static final BitSet FOLLOW_23_in_accumulate_statement1893 = new BitSet(new long[]{0xFFFFFFFFFFFFFFF2L,0x00000000000001FFL});
- public static final BitSet FOLLOW_paren_chunk2_in_accumulate_statement1897 = new BitSet(new long[]{0x0000000002000000L});
- public static final BitSet FOLLOW_25_in_accumulate_statement1899 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_accumulate_statement1901 = new BitSet(new long[]{0x0000000001000000L});
- public static final BitSet FOLLOW_24_in_accumulate_statement1903 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_accumulate_statement1905 = new BitSet(new long[]{0x0000800000000000L});
- public static final BitSet FOLLOW_47_in_accumulate_statement1913 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_accumulate_statement1915 = new BitSet(new long[]{0x0000000000800000L});
- public static final BitSet FOLLOW_23_in_accumulate_statement1917 = new BitSet(new long[]{0xFFFFFFFFFFFFFFF2L,0x00000000000001FFL});
- public static final BitSet FOLLOW_paren_chunk2_in_accumulate_statement1921 = new BitSet(new long[]{0x0000000002000000L});
- public static final BitSet FOLLOW_25_in_accumulate_statement1923 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_accumulate_statement1925 = new BitSet(new long[]{0x0000000001000000L});
- public static final BitSet FOLLOW_24_in_accumulate_statement1927 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_accumulate_statement1929 = new BitSet(new long[]{0x0001000000000000L});
- public static final BitSet FOLLOW_48_in_accumulate_statement1937 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_accumulate_statement1939 = new BitSet(new long[]{0x0000000000800000L});
- public static final BitSet FOLLOW_23_in_accumulate_statement1941 = new BitSet(new long[]{0xFFFFFFFFFFFFFFF2L,0x00000000000001FFL});
- public static final BitSet FOLLOW_paren_chunk2_in_accumulate_statement1945 = new BitSet(new long[]{0x0000000002000000L});
- public static final BitSet FOLLOW_25_in_accumulate_statement1947 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_accumulate_statement1949 = new BitSet(new long[]{0x0000000002000000L});
- public static final BitSet FOLLOW_25_in_accumulate_statement1951 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_42_in_collect_statement1994 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_collect_statement1996 = new BitSet(new long[]{0x0002000000000000L});
- public static final BitSet FOLLOW_49_in_collect_statement1998 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_collect_statement2000 = new BitSet(new long[]{0x0000000000800000L});
- public static final BitSet FOLLOW_23_in_collect_statement2010 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_collect_statement2012 = new BitSet(new long[]{0x0000000000000020L});
- public static final BitSet FOLLOW_lhs_column_in_collect_statement2016 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_collect_statement2018 = new BitSet(new long[]{0x0000000002000000L});
- public static final BitSet FOLLOW_25_in_collect_statement2020 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_argument_value_in_argument_list2053 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_argument_list2069 = new BitSet(new long[]{0x0000000001000000L});
- public static final BitSet FOLLOW_24_in_argument_list2071 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_argument_list2073 = new BitSet(new long[]{0x00040800040003E0L});
- public static final BitSet FOLLOW_argument_value_in_argument_list2077 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_STRING_in_argument_value2117 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_INT_in_argument_value2128 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_FLOAT_in_argument_value2141 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_BOOL_in_argument_value2152 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ID_in_argument_value2164 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_50_in_argument_value2175 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_50_in_argument_value2186 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_inline_map_in_argument_value2205 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_inline_array_in_argument_value2221 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_26_in_inline_map2261 = new BitSet(new long[]{0x00040800040003E0L});
- public static final BitSet FOLLOW_argument_value_in_inline_map2279 = new BitSet(new long[]{0x0008000000000000L});
- public static final BitSet FOLLOW_51_in_inline_map2281 = new BitSet(new long[]{0x00040800040003E0L});
- public static final BitSet FOLLOW_argument_value_in_inline_map2285 = new BitSet(new long[]{0x0000000009000010L});
- public static final BitSet FOLLOW_EOL_in_inline_map2328 = new BitSet(new long[]{0x0000000001000000L});
- public static final BitSet FOLLOW_24_in_inline_map2332 = new BitSet(new long[]{0x00040800040003F0L});
- public static final BitSet FOLLOW_EOL_in_inline_map2335 = new BitSet(new long[]{0x00040800040003E0L});
- public static final BitSet FOLLOW_argument_value_in_inline_map2341 = new BitSet(new long[]{0x0008000000000000L});
- public static final BitSet FOLLOW_51_in_inline_map2343 = new BitSet(new long[]{0x00040800040003E0L});
- public static final BitSet FOLLOW_argument_value_in_inline_map2347 = new BitSet(new long[]{0x0000000009000010L});
- public static final BitSet FOLLOW_27_in_inline_map2383 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_43_in_inline_array2427 = new BitSet(new long[]{0x00040800040003E0L});
- public static final BitSet FOLLOW_argument_value_in_inline_array2431 = new BitSet(new long[]{0x0000100001000010L});
- public static final BitSet FOLLOW_EOL_in_inline_array2449 = new BitSet(new long[]{0x0000000001000000L});
- public static final BitSet FOLLOW_24_in_inline_array2452 = new BitSet(new long[]{0x00040800040003F0L});
- public static final BitSet FOLLOW_EOL_in_inline_array2454 = new BitSet(new long[]{0x00040800040003E0L});
- public static final BitSet FOLLOW_argument_value_in_inline_array2459 = new BitSet(new long[]{0x0000100001000010L});
- public static final BitSet FOLLOW_44_in_inline_array2472 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ID_in_fact_binding2515 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_fact_binding2525 = new BitSet(new long[]{0x0000000200000000L});
- public static final BitSet FOLLOW_33_in_fact_binding2527 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_fact_binding2529 = new BitSet(new long[]{0x0000000000800020L});
- public static final BitSet FOLLOW_fact_expression_in_fact_binding2533 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_23_in_fact_expression2565 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_fact_expression2567 = new BitSet(new long[]{0x0000000000800020L});
- public static final BitSet FOLLOW_fact_expression_in_fact_expression2571 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_fact_expression2573 = new BitSet(new long[]{0x0000000002000000L});
- public static final BitSet FOLLOW_25_in_fact_expression2575 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_fact_in_fact_expression2586 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_fact_expression2588 = new BitSet(new long[]{0x0030000000000002L});
- public static final BitSet FOLLOW_set_in_fact_expression2601 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_fact_expression2606 = new BitSet(new long[]{0x0000000000000020L});
- public static final BitSet FOLLOW_fact_in_fact_expression2620 = new BitSet(new long[]{0x0030000000000002L});
- public static final BitSet FOLLOW_dotted_name_in_fact2659 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_fact2667 = new BitSet(new long[]{0x0000000000800000L});
- public static final BitSet FOLLOW_23_in_fact2675 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_fact2678 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_constraints_in_fact2684 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_fact2703 = new BitSet(new long[]{0x0000000002000000L});
- public static final BitSet FOLLOW_25_in_fact2707 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_fact2709 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_opt_eol_in_constraints2741 = new BitSet(new long[]{0x0000000000008032L});
- public static final BitSet FOLLOW_constraint_in_constraints2746 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_predicate_in_constraints2749 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_constraints2757 = new BitSet(new long[]{0x0000000001000000L});
- public static final BitSet FOLLOW_24_in_constraints2759 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_constraints2761 = new BitSet(new long[]{0x0000000000008032L});
- public static final BitSet FOLLOW_constraint_in_constraints2764 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_predicate_in_constraints2767 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_constraints2775 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_opt_eol_in_constraint2794 = new BitSet(new long[]{0x0000000000000020L});
- public static final BitSet FOLLOW_ID_in_constraint2802 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_constraint2804 = new BitSet(new long[]{0x0000000200000000L});
- public static final BitSet FOLLOW_33_in_constraint2806 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_constraint2808 = new BitSet(new long[]{0x0000000000000020L});
- public static final BitSet FOLLOW_ID_in_constraint2818 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_constraint2832 = new BitSet(new long[]{0x8000000000008012L,0x00000000000001FFL});
- public static final BitSet FOLLOW_operator_in_constraint2838 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_constraint2840 = new BitSet(new long[]{0x00040000008003E0L});
- public static final BitSet FOLLOW_ID_in_constraint2858 = new BitSet(new long[]{0x00C0000000008012L});
- public static final BitSet FOLLOW_enum_constraint_in_constraint2883 = new BitSet(new long[]{0x00C0000000008012L});
- public static final BitSet FOLLOW_literal_constraint_in_constraint2915 = new BitSet(new long[]{0x00C0000000008012L});
- public static final BitSet FOLLOW_retval_constraint_in_constraint2935 = new BitSet(new long[]{0x00C0000000008012L});
- public static final BitSet FOLLOW_set_in_constraint2970 = new BitSet(new long[]{0x8000000000000000L,0x00000000000001FFL});
- public static final BitSet FOLLOW_operator_in_constraint2992 = new BitSet(new long[]{0x00040000008003E0L});
- public static final BitSet FOLLOW_ID_in_constraint3004 = new BitSet(new long[]{0x00C0000000008012L});
- public static final BitSet FOLLOW_enum_constraint_in_constraint3032 = new BitSet(new long[]{0x00C0000000008012L});
- public static final BitSet FOLLOW_literal_constraint_in_constraint3067 = new BitSet(new long[]{0x00C0000000008012L});
- public static final BitSet FOLLOW_retval_constraint_in_constraint3089 = new BitSet(new long[]{0x00C0000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_constraint3145 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_STRING_in_literal_constraint3172 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_INT_in_literal_constraint3183 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_FLOAT_in_literal_constraint3196 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_BOOL_in_literal_constraint3207 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_50_in_literal_constraint3219 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ID_in_enum_constraint3250 = new BitSet(new long[]{0x0000000000080000L});
- public static final BitSet FOLLOW_19_in_enum_constraint3252 = new BitSet(new long[]{0x0000000000000020L});
- public static final BitSet FOLLOW_ID_in_enum_constraint3256 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_23_in_retval_constraint3285 = new BitSet(new long[]{0xFFFFFFFFFFFFFFF2L,0x00000000000001FFL});
- public static final BitSet FOLLOW_paren_chunk_in_retval_constraint3290 = new BitSet(new long[]{0x0000000002000000L});
- public static final BitSet FOLLOW_25_in_retval_constraint3293 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ID_in_predicate3311 = new BitSet(new long[]{0x0000000200000000L});
- public static final BitSet FOLLOW_33_in_predicate3313 = new BitSet(new long[]{0x0000000000000020L});
- public static final BitSet FOLLOW_ID_in_predicate3317 = new BitSet(new long[]{0x0100000000000000L});
- public static final BitSet FOLLOW_56_in_predicate3319 = new BitSet(new long[]{0x0000000000800000L});
- public static final BitSet FOLLOW_23_in_predicate3321 = new BitSet(new long[]{0xFFFFFFFFFFFFFFF2L,0x00000000000001FFL});
- public static final BitSet FOLLOW_paren_chunk_in_predicate3325 = new BitSet(new long[]{0x0000000002000000L});
- public static final BitSet FOLLOW_25_in_predicate3327 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_23_in_paren_chunk3373 = new BitSet(new long[]{0xFFFFFFFFFFFFFFF2L,0x00000000000001FFL});
- public static final BitSet FOLLOW_paren_chunk_in_paren_chunk3377 = new BitSet(new long[]{0x0000000002000000L});
- public static final BitSet FOLLOW_25_in_paren_chunk3379 = new BitSet(new long[]{0xFFFFFFFFFFFFFFF2L,0x00000000000001FFL});
- public static final BitSet FOLLOW_23_in_paren_chunk23450 = new BitSet(new long[]{0xFFFFFFFFFFFFFFF2L,0x00000000000001FFL});
- public static final BitSet FOLLOW_paren_chunk2_in_paren_chunk23454 = new BitSet(new long[]{0x0000000002000000L});
- public static final BitSet FOLLOW_25_in_paren_chunk23456 = new BitSet(new long[]{0xFFFFFFFFFFFFFFF2L,0x00000000000001FFL});
- public static final BitSet FOLLOW_26_in_curly_chunk3525 = new BitSet(new long[]{0xFFFFFFFFFFFFFFF2L,0x00000000000001FFL});
- public static final BitSet FOLLOW_curly_chunk_in_curly_chunk3529 = new BitSet(new long[]{0x0000000008000000L});
- public static final BitSet FOLLOW_27_in_curly_chunk3531 = new BitSet(new long[]{0xFFFFFFFFFFFFFFF2L,0x00000000000001FFL});
- public static final BitSet FOLLOW_lhs_and_in_lhs_or3589 = new BitSet(new long[]{0x0030000000000002L});
- public static final BitSet FOLLOW_set_in_lhs_or3598 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_lhs_or3603 = new BitSet(new long[]{0x3800000000800020L});
- public static final BitSet FOLLOW_lhs_and_in_lhs_or3610 = new BitSet(new long[]{0x0030000000000002L});
- public static final BitSet FOLLOW_lhs_unary_in_lhs_and3650 = new BitSet(new long[]{0x0600000000000002L});
- public static final BitSet FOLLOW_set_in_lhs_and3659 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_lhs_and3664 = new BitSet(new long[]{0x3800000000800020L});
- public static final BitSet FOLLOW_lhs_unary_in_lhs_and3671 = new BitSet(new long[]{0x0600000000000002L});
- public static final BitSet FOLLOW_lhs_exist_in_lhs_unary3709 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_lhs_not_in_lhs_unary3719 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_lhs_eval_in_lhs_unary3729 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_lhs_column_in_lhs_unary3743 = new BitSet(new long[]{0x0000040000000002L});
- public static final BitSet FOLLOW_from_statement_in_lhs_unary3764 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_accumulate_statement_in_lhs_unary3786 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_collect_statement_in_lhs_unary3807 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_23_in_lhs_unary3819 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_lhs_unary3821 = new BitSet(new long[]{0x3800000000800020L});
- public static final BitSet FOLLOW_lhs_in_lhs_unary3825 = new BitSet(new long[]{0x0000000000008012L});
- public static final BitSet FOLLOW_opt_eol_in_lhs_unary3827 = new BitSet(new long[]{0x0000000002000000L});
- public static final BitSet FOLLOW_25_in_lhs_unary3829 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_59_in_lhs_exist3860 = new BitSet(new long[]{0x0000000000800020L});
- public static final BitSet FOLLOW_23_in_lhs_exist3863 = new BitSet(new long[]{0x0000000000000020L});
- public static final BitSet FOLLOW_lhs_column_in_lhs_exist3867 = new BitSet(new long[]{0x0000000002000000L});
- public static final BitSet FOLLOW_25_in_lhs_exist3869 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_lhs_column_in_lhs_exist3875 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_60_in_lhs_not3905 = new BitSet(new long[]{0x0000000000800020L});
- public static final BitSet FOLLOW_23_in_lhs_not3908 = new BitSet(new long[]{0x0000000000000020L});
- public static final BitSet FOLLOW_lhs_column_in_lhs_not3912 = new BitSet(new long[]{0x0000000002000000L});
- public static final BitSet FOLLOW_25_in_lhs_not3915 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_lhs_column_in_lhs_not3921 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_61_in_lhs_eval3947 = new BitSet(new long[]{0x0000000000800000L});
- public static final BitSet FOLLOW_23_in_lhs_eval3951 = new BitSet(new long[]{0xFFFFFFFFFFFFFFF2L,0x00000000000001FFL});
- public static final BitSet FOLLOW_paren_chunk2_in_lhs_eval3959 = new BitSet(new long[]{0x0000000002000000L});
- public static final BitSet FOLLOW_25_in_lhs_eval3963 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ID_in_dotted_name3995 = new BitSet(new long[]{0x0000080000080002L});
- public static final BitSet FOLLOW_19_in_dotted_name4001 = new BitSet(new long[]{0x0000000000000020L});
- public static final BitSet FOLLOW_ID_in_dotted_name4005 = new BitSet(new long[]{0x0000080000080002L});
- public static final BitSet FOLLOW_43_in_dotted_name4014 = new BitSet(new long[]{0x0000100000000000L});
- public static final BitSet FOLLOW_44_in_dotted_name4016 = new BitSet(new long[]{0x0000080000000002L});
- public static final BitSet FOLLOW_ID_in_argument_name4046 = new BitSet(new long[]{0x0000080000000002L});
- public static final BitSet FOLLOW_43_in_argument_name4052 = new BitSet(new long[]{0x0000100000000000L});
- public static final BitSet FOLLOW_44_in_argument_name4054 = new BitSet(new long[]{0x0000080000000002L});
- public static final BitSet FOLLOW_ID_in_word4082 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_17_in_word4094 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_62_in_word4103 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_31_in_word4115 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_28_in_word4126 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_36_in_word4136 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_37_in_word4144 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_32_in_word4152 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_34_in_word4163 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_29_in_word4174 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_STRING_in_word4188 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_63_in_operator4217 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_64_in_operator4224 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_65_in_operator4231 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_66_in_operator4238 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_67_in_operator4247 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_68_in_operator4254 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_69_in_operator4261 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_70_in_operator4268 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_71_in_operator4275 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_72_in_operator4282 = new BitSet(new long[]{0x0000000000000002L});
-
-}
\ No newline at end of file
Deleted: labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/lang/RuleParserLexer.java
===================================================================
--- labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/lang/RuleParserLexer.java 2006-11-29 11:43:42 UTC (rev 7927)
+++ labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/lang/RuleParserLexer.java 2006-11-29 11:48:37 UTC (rev 7928)
@@ -1,5503 +0,0 @@
-// $ANTLR 3.0ea8 /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g 2006-09-14 21:52:38
-
- package org.drools.lang;
-
-
-import org.antlr.runtime.*;
-import java.util.Stack;
-import java.util.List;
-import java.util.ArrayList;
-import java.util.Map;
-import java.util.HashMap;
-public class RuleParserLexer extends Lexer {
- public static final int T29=29;
- public static final int T36=36;
- public static final int T58=58;
- public static final int T70=70;
- public static final int MISC=10;
- public static final int FLOAT=9;
- public static final int T35=35;
- public static final int T61=61;
- public static final int T45=45;
- public static final int T20=20;
- public static final int T34=34;
- public static final int T64=64;
- public static final int T25=25;
- public static final int T18=18;
- public static final int T37=37;
- public static final int INT=6;
- public static final int T26=26;
- public static final int T32=32;
- public static final int T17=17;
- public static final int T51=51;
- public static final int SH_STYLE_SINGLE_LINE_COMMENT=12;
- public static final int T46=46;
- public static final int T16=16;
- public static final int T38=38;
- public static final int T41=41;
- public static final int T24=24;
- public static final int T19=19;
- public static final int T69=69;
- public static final int T39=39;
- public static final int ID=5;
- public static final int T21=21;
- public static final int Synpred1_fragment=74;
- public static final int T62=62;
- public static final int T44=44;
- public static final int T55=55;
- public static final int BOOL=7;
- public static final int T68=68;
- public static final int T33=33;
- public static final int T22=22;
- public static final int T50=50;
- public static final int WS=11;
- public static final int STRING=8;
- public static final int T43=43;
- public static final int T23=23;
- public static final int T28=28;
- public static final int T42=42;
- public static final int T66=66;
- public static final int T40=40;
- public static final int T71=71;
- public static final int T63=63;
- public static final int T57=57;
- public static final int T72=72;
- public static final int T65=65;
- public static final int T56=56;
- public static final int T59=59;
- public static final int T48=48;
- public static final int T15=15;
- public static final int T54=54;
- public static final int EOF=-1;
- public static final int T67=67;
- public static final int T47=47;
- public static final int EOL=4;
- public static final int Tokens=73;
- public static final int T53=53;
- public static final int T60=60;
- public static final int T31=31;
- public static final int MULTI_LINE_COMMENT=14;
- public static final int T49=49;
- public static final int T27=27;
- public static final int T52=52;
- public static final int T30=30;
- public static final int C_STYLE_SINGLE_LINE_COMMENT=13;
- public RuleParserLexer() {;}
- public RuleParserLexer(CharStream input) {
- super(input);
- ruleMemo = new Map[71+1];
- }
-
-
- // $ANTLR start T15
- public void mT15() throws RecognitionException {
- int T15_StartIndex = input.index();
- try {
- int type = T15;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 1) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:6:7: ( ';' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:6:7: ';'
- {
- match(';'); if (failed) return ;
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 1, T15_StartIndex); }
- }
- }
- // $ANTLR end T15
-
-
- // $ANTLR start T16
- public void mT16() throws RecognitionException {
- int T16_StartIndex = input.index();
- try {
- int type = T16;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 2) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:7:7: ( 'package' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:7:7: 'package'
- {
- match("package"); if (failed) return ;
-
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 2, T16_StartIndex); }
- }
- }
- // $ANTLR end T16
-
-
- // $ANTLR start T17
- public void mT17() throws RecognitionException {
- int T17_StartIndex = input.index();
- try {
- int type = T17;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 3) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:8:7: ( 'import' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:8:7: 'import'
- {
- match("import"); if (failed) return ;
-
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 3, T17_StartIndex); }
- }
- }
- // $ANTLR end T17
-
-
- // $ANTLR start T18
- public void mT18() throws RecognitionException {
- int T18_StartIndex = input.index();
- try {
- int type = T18;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 4) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:9:7: ( 'function' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:9:7: 'function'
- {
- match("function"); if (failed) return ;
-
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 4, T18_StartIndex); }
- }
- }
- // $ANTLR end T18
-
-
- // $ANTLR start T19
- public void mT19() throws RecognitionException {
- int T19_StartIndex = input.index();
- try {
- int type = T19;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 5) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:10:7: ( '.' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:10:7: '.'
- {
- match('.'); if (failed) return ;
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 5, T19_StartIndex); }
- }
- }
- // $ANTLR end T19
-
-
- // $ANTLR start T20
- public void mT20() throws RecognitionException {
- int T20_StartIndex = input.index();
- try {
- int type = T20;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 6) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:11:7: ( '.*' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:11:7: '.*'
- {
- match(".*"); if (failed) return ;
-
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 6, T20_StartIndex); }
- }
- }
- // $ANTLR end T20
-
-
- // $ANTLR start T21
- public void mT21() throws RecognitionException {
- int T21_StartIndex = input.index();
- try {
- int type = T21;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 7) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:12:7: ( 'expander' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:12:7: 'expander'
- {
- match("expander"); if (failed) return ;
-
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 7, T21_StartIndex); }
- }
- }
- // $ANTLR end T21
-
-
- // $ANTLR start T22
- public void mT22() throws RecognitionException {
- int T22_StartIndex = input.index();
- try {
- int type = T22;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 8) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:13:7: ( 'global' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:13:7: 'global'
- {
- match("global"); if (failed) return ;
-
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 8, T22_StartIndex); }
- }
- }
- // $ANTLR end T22
-
-
- // $ANTLR start T23
- public void mT23() throws RecognitionException {
- int T23_StartIndex = input.index();
- try {
- int type = T23;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 9) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:14:7: ( '(' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:14:7: '('
- {
- match('('); if (failed) return ;
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 9, T23_StartIndex); }
- }
- }
- // $ANTLR end T23
-
-
- // $ANTLR start T24
- public void mT24() throws RecognitionException {
- int T24_StartIndex = input.index();
- try {
- int type = T24;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 10) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:15:7: ( ',' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:15:7: ','
- {
- match(','); if (failed) return ;
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 10, T24_StartIndex); }
- }
- }
- // $ANTLR end T24
-
-
- // $ANTLR start T25
- public void mT25() throws RecognitionException {
- int T25_StartIndex = input.index();
- try {
- int type = T25;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 11) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:16:7: ( ')' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:16:7: ')'
- {
- match(')'); if (failed) return ;
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 11, T25_StartIndex); }
- }
- }
- // $ANTLR end T25
-
-
- // $ANTLR start T26
- public void mT26() throws RecognitionException {
- int T26_StartIndex = input.index();
- try {
- int type = T26;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 12) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:17:7: ( '{' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:17:7: '{'
- {
- match('{'); if (failed) return ;
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 12, T26_StartIndex); }
- }
- }
- // $ANTLR end T26
-
-
- // $ANTLR start T27
- public void mT27() throws RecognitionException {
- int T27_StartIndex = input.index();
- try {
- int type = T27;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 13) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:18:7: ( '}' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:18:7: '}'
- {
- match('}'); if (failed) return ;
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 13, T27_StartIndex); }
- }
- }
- // $ANTLR end T27
-
-
- // $ANTLR start T28
- public void mT28() throws RecognitionException {
- int T28_StartIndex = input.index();
- try {
- int type = T28;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 14) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:19:7: ( 'query' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:19:7: 'query'
- {
- match("query"); if (failed) return ;
-
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 14, T28_StartIndex); }
- }
- }
- // $ANTLR end T28
-
-
- // $ANTLR start T29
- public void mT29() throws RecognitionException {
- int T29_StartIndex = input.index();
- try {
- int type = T29;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 15) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:20:7: ( 'end' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:20:7: 'end'
- {
- match("end"); if (failed) return ;
-
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 15, T29_StartIndex); }
- }
- }
- // $ANTLR end T29
-
-
- // $ANTLR start T30
- public void mT30() throws RecognitionException {
- int T30_StartIndex = input.index();
- try {
- int type = T30;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 16) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:21:7: ( 'template' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:21:7: 'template'
- {
- match("template"); if (failed) return ;
-
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 16, T30_StartIndex); }
- }
- }
- // $ANTLR end T30
-
-
- // $ANTLR start T31
- public void mT31() throws RecognitionException {
- int T31_StartIndex = input.index();
- try {
- int type = T31;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 17) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:22:7: ( 'rule' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:22:7: 'rule'
- {
- match("rule"); if (failed) return ;
-
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 17, T31_StartIndex); }
- }
- }
- // $ANTLR end T31
-
-
- // $ANTLR start T32
- public void mT32() throws RecognitionException {
- int T32_StartIndex = input.index();
- try {
- int type = T32;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 18) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:23:7: ( 'when' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:23:7: 'when'
- {
- match("when"); if (failed) return ;
-
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 18, T32_StartIndex); }
- }
- }
- // $ANTLR end T32
-
-
- // $ANTLR start T33
- public void mT33() throws RecognitionException {
- int T33_StartIndex = input.index();
- try {
- int type = T33;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 19) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:24:7: ( ':' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:24:7: ':'
- {
- match(':'); if (failed) return ;
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 19, T33_StartIndex); }
- }
- }
- // $ANTLR end T33
-
-
- // $ANTLR start T34
- public void mT34() throws RecognitionException {
- int T34_StartIndex = input.index();
- try {
- int type = T34;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 20) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:25:7: ( 'then' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:25:7: 'then'
- {
- match("then"); if (failed) return ;
-
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 20, T34_StartIndex); }
- }
- }
- // $ANTLR end T34
-
-
- // $ANTLR start T35
- public void mT35() throws RecognitionException {
- int T35_StartIndex = input.index();
- try {
- int type = T35;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 21) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:26:7: ( 'attributes' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:26:7: 'attributes'
- {
- match("attributes"); if (failed) return ;
-
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 21, T35_StartIndex); }
- }
- }
- // $ANTLR end T35
-
-
- // $ANTLR start T36
- public void mT36() throws RecognitionException {
- int T36_StartIndex = input.index();
- try {
- int type = T36;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 22) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:27:7: ( 'salience' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:27:7: 'salience'
- {
- match("salience"); if (failed) return ;
-
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 22, T36_StartIndex); }
- }
- }
- // $ANTLR end T36
-
-
- // $ANTLR start T37
- public void mT37() throws RecognitionException {
- int T37_StartIndex = input.index();
- try {
- int type = T37;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 23) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:28:7: ( 'no-loop' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:28:7: 'no-loop'
- {
- match("no-loop"); if (failed) return ;
-
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 23, T37_StartIndex); }
- }
- }
- // $ANTLR end T37
-
-
- // $ANTLR start T38
- public void mT38() throws RecognitionException {
- int T38_StartIndex = input.index();
- try {
- int type = T38;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 24) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:29:7: ( 'auto-focus' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:29:7: 'auto-focus'
- {
- match("auto-focus"); if (failed) return ;
-
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 24, T38_StartIndex); }
- }
- }
- // $ANTLR end T38
-
-
- // $ANTLR start T39
- public void mT39() throws RecognitionException {
- int T39_StartIndex = input.index();
- try {
- int type = T39;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 25) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:30:7: ( 'activation-group' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:30:7: 'activation-group'
- {
- match("activation-group"); if (failed) return ;
-
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 25, T39_StartIndex); }
- }
- }
- // $ANTLR end T39
-
-
- // $ANTLR start T40
- public void mT40() throws RecognitionException {
- int T40_StartIndex = input.index();
- try {
- int type = T40;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 26) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:31:7: ( 'agenda-group' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:31:7: 'agenda-group'
- {
- match("agenda-group"); if (failed) return ;
-
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 26, T40_StartIndex); }
- }
- }
- // $ANTLR end T40
-
-
- // $ANTLR start T41
- public void mT41() throws RecognitionException {
- int T41_StartIndex = input.index();
- try {
- int type = T41;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 27) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:32:7: ( 'duration' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:32:7: 'duration'
- {
- match("duration"); if (failed) return ;
-
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 27, T41_StartIndex); }
- }
- }
- // $ANTLR end T41
-
-
- // $ANTLR start T42
- public void mT42() throws RecognitionException {
- int T42_StartIndex = input.index();
- try {
- int type = T42;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 28) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:33:7: ( 'from' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:33:7: 'from'
- {
- match("from"); if (failed) return ;
-
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 28, T42_StartIndex); }
- }
- }
- // $ANTLR end T42
-
-
- // $ANTLR start T43
- public void mT43() throws RecognitionException {
- int T43_StartIndex = input.index();
- try {
- int type = T43;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 29) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:34:7: ( '[' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:34:7: '['
- {
- match('['); if (failed) return ;
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 29, T43_StartIndex); }
- }
- }
- // $ANTLR end T43
-
-
- // $ANTLR start T44
- public void mT44() throws RecognitionException {
- int T44_StartIndex = input.index();
- try {
- int type = T44;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 30) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:35:7: ( ']' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:35:7: ']'
- {
- match(']'); if (failed) return ;
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 30, T44_StartIndex); }
- }
- }
- // $ANTLR end T44
-
-
- // $ANTLR start T45
- public void mT45() throws RecognitionException {
- int T45_StartIndex = input.index();
- try {
- int type = T45;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 31) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:36:7: ( 'accumulate' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:36:7: 'accumulate'
- {
- match("accumulate"); if (failed) return ;
-
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 31, T45_StartIndex); }
- }
- }
- // $ANTLR end T45
-
-
- // $ANTLR start T46
- public void mT46() throws RecognitionException {
- int T46_StartIndex = input.index();
- try {
- int type = T46;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 32) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:37:7: ( 'init' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:37:7: 'init'
- {
- match("init"); if (failed) return ;
-
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 32, T46_StartIndex); }
- }
- }
- // $ANTLR end T46
-
-
- // $ANTLR start T47
- public void mT47() throws RecognitionException {
- int T47_StartIndex = input.index();
- try {
- int type = T47;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 33) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:38:7: ( 'action' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:38:7: 'action'
- {
- match("action"); if (failed) return ;
-
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 33, T47_StartIndex); }
- }
- }
- // $ANTLR end T47
-
-
- // $ANTLR start T48
- public void mT48() throws RecognitionException {
- int T48_StartIndex = input.index();
- try {
- int type = T48;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 34) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:39:7: ( 'result' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:39:7: 'result'
- {
- match("result"); if (failed) return ;
-
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 34, T48_StartIndex); }
- }
- }
- // $ANTLR end T48
-
-
- // $ANTLR start T49
- public void mT49() throws RecognitionException {
- int T49_StartIndex = input.index();
- try {
- int type = T49;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 35) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:40:7: ( 'collect' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:40:7: 'collect'
- {
- match("collect"); if (failed) return ;
-
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 35, T49_StartIndex); }
- }
- }
- // $ANTLR end T49
-
-
- // $ANTLR start T50
- public void mT50() throws RecognitionException {
- int T50_StartIndex = input.index();
- try {
- int type = T50;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 36) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:41:7: ( 'null' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:41:7: 'null'
- {
- match("null"); if (failed) return ;
-
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 36, T50_StartIndex); }
- }
- }
- // $ANTLR end T50
-
-
- // $ANTLR start T51
- public void mT51() throws RecognitionException {
- int T51_StartIndex = input.index();
- try {
- int type = T51;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 37) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:42:7: ( '=>' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:42:7: '=>'
- {
- match("=>"); if (failed) return ;
-
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 37, T51_StartIndex); }
- }
- }
- // $ANTLR end T51
-
-
- // $ANTLR start T52
- public void mT52() throws RecognitionException {
- int T52_StartIndex = input.index();
- try {
- int type = T52;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 38) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:43:7: ( 'or' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:43:7: 'or'
- {
- match("or"); if (failed) return ;
-
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 38, T52_StartIndex); }
- }
- }
- // $ANTLR end T52
-
-
- // $ANTLR start T53
- public void mT53() throws RecognitionException {
- int T53_StartIndex = input.index();
- try {
- int type = T53;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 39) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:44:7: ( '||' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:44:7: '||'
- {
- match("||"); if (failed) return ;
-
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 39, T53_StartIndex); }
- }
- }
- // $ANTLR end T53
-
-
- // $ANTLR start T54
- public void mT54() throws RecognitionException {
- int T54_StartIndex = input.index();
- try {
- int type = T54;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 40) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:45:7: ( '&' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:45:7: '&'
- {
- match('&'); if (failed) return ;
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 40, T54_StartIndex); }
- }
- }
- // $ANTLR end T54
-
-
- // $ANTLR start T55
- public void mT55() throws RecognitionException {
- int T55_StartIndex = input.index();
- try {
- int type = T55;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 41) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:46:7: ( '|' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:46:7: '|'
- {
- match('|'); if (failed) return ;
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 41, T55_StartIndex); }
- }
- }
- // $ANTLR end T55
-
-
- // $ANTLR start T56
- public void mT56() throws RecognitionException {
- int T56_StartIndex = input.index();
- try {
- int type = T56;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 42) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:47:7: ( '->' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:47:7: '->'
- {
- match("->"); if (failed) return ;
-
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 42, T56_StartIndex); }
- }
- }
- // $ANTLR end T56
-
-
- // $ANTLR start T57
- public void mT57() throws RecognitionException {
- int T57_StartIndex = input.index();
- try {
- int type = T57;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 43) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:48:7: ( 'and' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:48:7: 'and'
- {
- match("and"); if (failed) return ;
-
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 43, T57_StartIndex); }
- }
- }
- // $ANTLR end T57
-
-
- // $ANTLR start T58
- public void mT58() throws RecognitionException {
- int T58_StartIndex = input.index();
- try {
- int type = T58;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 44) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:49:7: ( '&&' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:49:7: '&&'
- {
- match("&&"); if (failed) return ;
-
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 44, T58_StartIndex); }
- }
- }
- // $ANTLR end T58
-
-
- // $ANTLR start T59
- public void mT59() throws RecognitionException {
- int T59_StartIndex = input.index();
- try {
- int type = T59;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 45) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:50:7: ( 'exists' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:50:7: 'exists'
- {
- match("exists"); if (failed) return ;
-
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 45, T59_StartIndex); }
- }
- }
- // $ANTLR end T59
-
-
- // $ANTLR start T60
- public void mT60() throws RecognitionException {
- int T60_StartIndex = input.index();
- try {
- int type = T60;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 46) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:51:7: ( 'not' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:51:7: 'not'
- {
- match("not"); if (failed) return ;
-
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 46, T60_StartIndex); }
- }
- }
- // $ANTLR end T60
-
-
- // $ANTLR start T61
- public void mT61() throws RecognitionException {
- int T61_StartIndex = input.index();
- try {
- int type = T61;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 47) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:52:7: ( 'eval' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:52:7: 'eval'
- {
- match("eval"); if (failed) return ;
-
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 47, T61_StartIndex); }
- }
- }
- // $ANTLR end T61
-
-
- // $ANTLR start T62
- public void mT62() throws RecognitionException {
- int T62_StartIndex = input.index();
- try {
- int type = T62;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 48) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:53:7: ( 'use' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:53:7: 'use'
- {
- match("use"); if (failed) return ;
-
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 48, T62_StartIndex); }
- }
- }
- // $ANTLR end T62
-
-
- // $ANTLR start T63
- public void mT63() throws RecognitionException {
- int T63_StartIndex = input.index();
- try {
- int type = T63;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 49) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:54:7: ( '==' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:54:7: '=='
- {
- match("=="); if (failed) return ;
-
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 49, T63_StartIndex); }
- }
- }
- // $ANTLR end T63
-
-
- // $ANTLR start T64
- public void mT64() throws RecognitionException {
- int T64_StartIndex = input.index();
- try {
- int type = T64;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 50) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:55:7: ( '=' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:55:7: '='
- {
- match('='); if (failed) return ;
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 50, T64_StartIndex); }
- }
- }
- // $ANTLR end T64
-
-
- // $ANTLR start T65
- public void mT65() throws RecognitionException {
- int T65_StartIndex = input.index();
- try {
- int type = T65;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 51) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:56:7: ( '>' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:56:7: '>'
- {
- match('>'); if (failed) return ;
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 51, T65_StartIndex); }
- }
- }
- // $ANTLR end T65
-
-
- // $ANTLR start T66
- public void mT66() throws RecognitionException {
- int T66_StartIndex = input.index();
- try {
- int type = T66;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 52) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:57:7: ( '>=' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:57:7: '>='
- {
- match(">="); if (failed) return ;
-
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 52, T66_StartIndex); }
- }
- }
- // $ANTLR end T66
-
-
- // $ANTLR start T67
- public void mT67() throws RecognitionException {
- int T67_StartIndex = input.index();
- try {
- int type = T67;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 53) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:58:7: ( '<' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:58:7: '<'
- {
- match('<'); if (failed) return ;
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 53, T67_StartIndex); }
- }
- }
- // $ANTLR end T67
-
-
- // $ANTLR start T68
- public void mT68() throws RecognitionException {
- int T68_StartIndex = input.index();
- try {
- int type = T68;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 54) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:59:7: ( '<=' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:59:7: '<='
- {
- match("<="); if (failed) return ;
-
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 54, T68_StartIndex); }
- }
- }
- // $ANTLR end T68
-
-
- // $ANTLR start T69
- public void mT69() throws RecognitionException {
- int T69_StartIndex = input.index();
- try {
- int type = T69;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 55) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:60:7: ( '!=' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:60:7: '!='
- {
- match("!="); if (failed) return ;
-
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 55, T69_StartIndex); }
- }
- }
- // $ANTLR end T69
-
-
- // $ANTLR start T70
- public void mT70() throws RecognitionException {
- int T70_StartIndex = input.index();
- try {
- int type = T70;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 56) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:61:7: ( 'contains' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:61:7: 'contains'
- {
- match("contains"); if (failed) return ;
-
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 56, T70_StartIndex); }
- }
- }
- // $ANTLR end T70
-
-
- // $ANTLR start T71
- public void mT71() throws RecognitionException {
- int T71_StartIndex = input.index();
- try {
- int type = T71;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 57) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:62:7: ( 'matches' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:62:7: 'matches'
- {
- match("matches"); if (failed) return ;
-
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 57, T71_StartIndex); }
- }
- }
- // $ANTLR end T71
-
-
- // $ANTLR start T72
- public void mT72() throws RecognitionException {
- int T72_StartIndex = input.index();
- try {
- int type = T72;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 58) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:63:7: ( 'excludes' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:63:7: 'excludes'
- {
- match("excludes"); if (failed) return ;
-
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 58, T72_StartIndex); }
- }
- }
- // $ANTLR end T72
-
-
- // $ANTLR start MISC
- public void mMISC() throws RecognitionException {
- int MISC_StartIndex = input.index();
- try {
- int type = MISC;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 59) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1363:17: ( '!' | '@' | '$' | '%' | '^' | '&' | '*' | '_' | '-' | '+' | '?' | '|' | ',' | '{' | '}' | '[' | ']' | '=' | '/' | '(' | ')' | '\'' | '\\' | '||' | '&&' | '<<<' | '++' | '--' | '>>>' | '==' | '+=' | '=+' | '-=' | '=-' | '*=' | '=*' | '/=' | '=/' | '>>=' )
- int alt1=39;
- switch ( input.LA(1) ) {
- case '!':
- alt1=1;
- break;
- case '@':
- alt1=2;
- break;
- case '$':
- alt1=3;
- break;
- case '%':
- alt1=4;
- break;
- case '^':
- alt1=5;
- break;
- case '&':
- int LA1_6 = input.LA(2);
- if ( LA1_6=='&' ) {
- alt1=25;
- }
- else {
- alt1=6;}
- break;
- case '*':
- int LA1_7 = input.LA(2);
- if ( LA1_7=='=' ) {
- alt1=35;
- }
- else {
- alt1=7;}
- break;
- case '_':
- alt1=8;
- break;
- case '-':
- switch ( input.LA(2) ) {
- case '=':
- alt1=33;
- break;
- case '-':
- alt1=28;
- break;
- default:
- alt1=9;}
-
- break;
- case '+':
- switch ( input.LA(2) ) {
- case '=':
- alt1=31;
- break;
- case '+':
- alt1=27;
- break;
- default:
- alt1=10;}
-
- break;
- case '?':
- alt1=11;
- break;
- case '|':
- int LA1_12 = input.LA(2);
- if ( LA1_12=='|' ) {
- alt1=24;
- }
- else {
- alt1=12;}
- break;
- case ',':
- alt1=13;
- break;
- case '{':
- alt1=14;
- break;
- case '}':
- alt1=15;
- break;
- case '[':
- alt1=16;
- break;
- case ']':
- alt1=17;
- break;
- case '=':
- switch ( input.LA(2) ) {
- case '=':
- alt1=30;
- break;
- case '-':
- alt1=34;
- break;
- case '*':
- alt1=36;
- break;
- case '/':
- alt1=38;
- break;
- case '+':
- alt1=32;
- break;
- default:
- alt1=18;}
-
- break;
- case '/':
- int LA1_19 = input.LA(2);
- if ( LA1_19=='=' ) {
- alt1=37;
- }
- else {
- alt1=19;}
- break;
- case '(':
- alt1=20;
- break;
- case ')':
- alt1=21;
- break;
- case '\'':
- alt1=22;
- break;
- case '\\':
- alt1=23;
- break;
- case '<':
- alt1=26;
- break;
- case '>':
- int LA1_25 = input.LA(2);
- if ( LA1_25=='>' ) {
- int LA1_46 = input.LA(3);
- if ( LA1_46=='=' ) {
- alt1=39;
- }
- else if ( LA1_46=='>' ) {
- alt1=29;
- }
- else {
- if (backtracking>0) {failed=true; return ;}
- NoViableAltException nvae =
- new NoViableAltException("1362:1: MISC : ( \'!\' | \'@\' | \'$\' | \'%\' | \'^\' | \'&\' | \'*\' | \'_\' | \'-\' | \'+\' | \'?\' | \'|\' | \',\' | \'{\' | \'}\' | \'[\' | \']\' | \'=\' | \'/\' | \'(\' | \')\' | \'\\\'\' | \'\\\\\' | \'||\' | \'&&\' | \'<<<\' | \'++\' | \'--\' | \'>>>\' | \'==\' | \'+=\' | \'=+\' | \'-=\' | \'=-\' | \'*=\' | \'=*\' | \'/=\' | \'=/\' | \'>>=\' );", 1, 46, input);
-
- throw nvae;
- }
- }
- else {
- if (backtracking>0) {failed=true; return ;}
- NoViableAltException nvae =
- new NoViableAltException("1362:1: MISC : ( \'!\' | \'@\' | \'$\' | \'%\' | \'^\' | \'&\' | \'*\' | \'_\' | \'-\' | \'+\' | \'?\' | \'|\' | \',\' | \'{\' | \'}\' | \'[\' | \']\' | \'=\' | \'/\' | \'(\' | \')\' | \'\\\'\' | \'\\\\\' | \'||\' | \'&&\' | \'<<<\' | \'++\' | \'--\' | \'>>>\' | \'==\' | \'+=\' | \'=+\' | \'-=\' | \'=-\' | \'*=\' | \'=*\' | \'/=\' | \'=/\' | \'>>=\' );", 1, 25, input);
-
- throw nvae;
- }
- break;
- default:
- if (backtracking>0) {failed=true; return ;}
- NoViableAltException nvae =
- new NoViableAltException("1362:1: MISC : ( \'!\' | \'@\' | \'$\' | \'%\' | \'^\' | \'&\' | \'*\' | \'_\' | \'-\' | \'+\' | \'?\' | \'|\' | \',\' | \'{\' | \'}\' | \'[\' | \']\' | \'=\' | \'/\' | \'(\' | \')\' | \'\\\'\' | \'\\\\\' | \'||\' | \'&&\' | \'<<<\' | \'++\' | \'--\' | \'>>>\' | \'==\' | \'+=\' | \'=+\' | \'-=\' | \'=-\' | \'*=\' | \'=*\' | \'/=\' | \'=/\' | \'>>=\' );", 1, 0, input);
-
- throw nvae;
- }
-
- switch (alt1) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1363:17: '!'
- {
- match('!'); if (failed) return ;
-
- }
- break;
- case 2 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1363:23: '@'
- {
- match('@'); if (failed) return ;
-
- }
- break;
- case 3 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1363:29: '$'
- {
- match('$'); if (failed) return ;
-
- }
- break;
- case 4 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1363:35: '%'
- {
- match('%'); if (failed) return ;
-
- }
- break;
- case 5 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1363:41: '^'
- {
- match('^'); if (failed) return ;
-
- }
- break;
- case 6 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1363:47: '&'
- {
- match('&'); if (failed) return ;
-
- }
- break;
- case 7 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1363:53: '*'
- {
- match('*'); if (failed) return ;
-
- }
- break;
- case 8 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1363:59: '_'
- {
- match('_'); if (failed) return ;
-
- }
- break;
- case 9 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1363:65: '-'
- {
- match('-'); if (failed) return ;
-
- }
- break;
- case 10 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1363:71: '+'
- {
- match('+'); if (failed) return ;
-
- }
- break;
- case 11 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1363:78: '?'
- {
- match('?'); if (failed) return ;
-
- }
- break;
- case 12 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1364:19: '|'
- {
- match('|'); if (failed) return ;
-
- }
- break;
- case 13 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1364:25: ','
- {
- match(','); if (failed) return ;
-
- }
- break;
- case 14 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1364:31: '{'
- {
- match('{'); if (failed) return ;
-
- }
- break;
- case 15 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1364:37: '}'
- {
- match('}'); if (failed) return ;
-
- }
- break;
- case 16 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1364:43: '['
- {
- match('['); if (failed) return ;
-
- }
- break;
- case 17 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1364:49: ']'
- {
- match(']'); if (failed) return ;
-
- }
- break;
- case 18 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1364:55: '='
- {
- match('='); if (failed) return ;
-
- }
- break;
- case 19 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1364:61: '/'
- {
- match('/'); if (failed) return ;
-
- }
- break;
- case 20 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1364:67: '('
- {
- match('('); if (failed) return ;
-
- }
- break;
- case 21 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1364:73: ')'
- {
- match(')'); if (failed) return ;
-
- }
- break;
- case 22 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1364:79: '\''
- {
- match('\''); if (failed) return ;
-
- }
- break;
- case 23 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1364:86: '\\'
- {
- match('\\'); if (failed) return ;
-
- }
- break;
- case 24 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1365:19: '||'
- {
- match("||"); if (failed) return ;
-
-
- }
- break;
- case 25 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1365:26: '&&'
- {
- match("&&"); if (failed) return ;
-
-
- }
- break;
- case 26 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1365:33: '<<<'
- {
- match("<<<"); if (failed) return ;
-
-
- }
- break;
- case 27 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1365:41: '++'
- {
- match("++"); if (failed) return ;
-
-
- }
- break;
- case 28 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1365:48: '--'
- {
- match("--"); if (failed) return ;
-
-
- }
- break;
- case 29 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1365:55: '>>>'
- {
- match(">>>"); if (failed) return ;
-
-
- }
- break;
- case 30 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1365:63: '=='
- {
- match("=="); if (failed) return ;
-
-
- }
- break;
- case 31 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1365:70: '+='
- {
- match("+="); if (failed) return ;
-
-
- }
- break;
- case 32 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1365:77: '=+'
- {
- match("=+"); if (failed) return ;
-
-
- }
- break;
- case 33 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1365:84: '-='
- {
- match("-="); if (failed) return ;
-
-
- }
- break;
- case 34 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1365:91: '=-'
- {
- match("=-"); if (failed) return ;
-
-
- }
- break;
- case 35 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1365:97: '*='
- {
- match("*="); if (failed) return ;
-
-
- }
- break;
- case 36 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1365:104: '=*'
- {
- match("=*"); if (failed) return ;
-
-
- }
- break;
- case 37 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1366:19: '/='
- {
- match("/="); if (failed) return ;
-
-
- }
- break;
- case 38 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1366:26: '=/'
- {
- match("=/"); if (failed) return ;
-
-
- }
- break;
- case 39 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1366:33: '>>='
- {
- match(">>="); if (failed) return ;
-
-
- }
- break;
-
- }
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 59, MISC_StartIndex); }
- }
- }
- // $ANTLR end MISC
-
-
- // $ANTLR start WS
- public void mWS() throws RecognitionException {
- int WS_StartIndex = input.index();
- try {
- int type = WS;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 60) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1370:17: ( (' '|'\t'|'\f'))
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1370:17: (' '|'\t'|'\f')
- {
- if ( input.LA(1)=='\t'||input.LA(1)=='\f'||input.LA(1)==' ' ) {
- input.consume();
- failed=false;
- }
- else {
- if (backtracking>0) {failed=true; return ;}
- MismatchedSetException mse =
- new MismatchedSetException(null,input);
- recover(mse); throw mse;
- }
-
- if ( backtracking==0 ) {
- channel=99;
- }
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 60, WS_StartIndex); }
- }
- }
- // $ANTLR end WS
-
-
- // $ANTLR start EOL
- public void mEOL() throws RecognitionException {
- int EOL_StartIndex = input.index();
- try {
- int type = EOL;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 61) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1378:17: ( ( ( '\r\n' )=> '\r\n' | '\r' | '\n' ) )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1378:17: ( ( '\r\n' )=> '\r\n' | '\r' | '\n' )
- {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1378:17: ( ( '\r\n' )=> '\r\n' | '\r' | '\n' )
- int alt2=3;
- int LA2_0 = input.LA(1);
- if ( LA2_0=='\r' ) {
- int LA2_1 = input.LA(2);
- if ( LA2_1=='\n' ) {
- alt2=1;
- }
- else {
- alt2=2;}
- }
- else if ( LA2_0=='\n' ) {
- alt2=3;
- }
- else {
- if (backtracking>0) {failed=true; return ;}
- NoViableAltException nvae =
- new NoViableAltException("1378:17: ( ( \'\\r\\n\' )=> \'\\r\\n\' | \'\\r\' | \'\\n\' )", 2, 0, input);
-
- throw nvae;
- }
- switch (alt2) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1378:25: ( '\r\n' )=> '\r\n'
- {
-
- match("\r\n"); if (failed) return ;
-
-
- }
- break;
- case 2 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1379:25: '\r'
- {
- match('\r'); if (failed) return ;
-
- }
- break;
- case 3 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1380:25: '\n'
- {
- match('\n'); if (failed) return ;
-
- }
- break;
-
- }
-
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 61, EOL_StartIndex); }
- }
- }
- // $ANTLR end EOL
-
-
- // $ANTLR start INT
- public void mINT() throws RecognitionException {
- int INT_StartIndex = input.index();
- try {
- int type = INT;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 62) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1385:17: ( ( '-' )? ( '0' .. '9' )+ ( ('l'|'L'))? )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1385:17: ( '-' )? ( '0' .. '9' )+ ( ('l'|'L'))?
- {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1385:17: ( '-' )?
- int alt3=2;
- int LA3_0 = input.LA(1);
- if ( LA3_0=='-' ) {
- alt3=1;
- }
- else if ( (LA3_0>='0' && LA3_0<='9') ) {
- alt3=2;
- }
- else {
- if (backtracking>0) {failed=true; return ;}
- NoViableAltException nvae =
- new NoViableAltException("1385:17: ( \'-\' )?", 3, 0, input);
-
- throw nvae;
- }
- switch (alt3) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1385:18: '-'
- {
- match('-'); if (failed) return ;
-
- }
- break;
-
- }
-
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1385:23: ( '0' .. '9' )+
- int cnt4=0;
- loop4:
- do {
- int alt4=2;
- int LA4_0 = input.LA(1);
- if ( (LA4_0>='0' && LA4_0<='9') ) {
- alt4=1;
- }
-
-
- switch (alt4) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1385:24: '0' .. '9'
- {
- matchRange('0','9'); if (failed) return ;
-
- }
- break;
-
- default :
- if ( cnt4 >= 1 ) break loop4;
- if (backtracking>0) {failed=true; return ;}
- EarlyExitException eee =
- new EarlyExitException(4, input);
- throw eee;
- }
- cnt4++;
- } while (true);
-
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1385:34: ( ('l'|'L'))?
- int alt5=2;
- int LA5_0 = input.LA(1);
- if ( LA5_0=='L'||LA5_0=='l' ) {
- alt5=1;
- }
- else {
- alt5=2;}
- switch (alt5) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1385:35: ('l'|'L')
- {
- if ( input.LA(1)=='L'||input.LA(1)=='l' ) {
- input.consume();
- failed=false;
- }
- else {
- if (backtracking>0) {failed=true; return ;}
- MismatchedSetException mse =
- new MismatchedSetException(null,input);
- recover(mse); throw mse;
- }
-
-
- }
- break;
-
- }
-
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 62, INT_StartIndex); }
- }
- }
- // $ANTLR end INT
-
-
- // $ANTLR start FLOAT
- public void mFLOAT() throws RecognitionException {
- int FLOAT_StartIndex = input.index();
- try {
- int type = FLOAT;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 63) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1389:17: ( ( '-' )? ( '0' .. '9' )+ '.' ( '0' .. '9' )+ )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1389:17: ( '-' )? ( '0' .. '9' )+ '.' ( '0' .. '9' )+
- {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1389:17: ( '-' )?
- int alt6=2;
- int LA6_0 = input.LA(1);
- if ( LA6_0=='-' ) {
- alt6=1;
- }
- else if ( (LA6_0>='0' && LA6_0<='9') ) {
- alt6=2;
- }
- else {
- if (backtracking>0) {failed=true; return ;}
- NoViableAltException nvae =
- new NoViableAltException("1389:17: ( \'-\' )?", 6, 0, input);
-
- throw nvae;
- }
- switch (alt6) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1389:18: '-'
- {
- match('-'); if (failed) return ;
-
- }
- break;
-
- }
-
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1389:23: ( '0' .. '9' )+
- int cnt7=0;
- loop7:
- do {
- int alt7=2;
- int LA7_0 = input.LA(1);
- if ( (LA7_0>='0' && LA7_0<='9') ) {
- alt7=1;
- }
-
-
- switch (alt7) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1389:24: '0' .. '9'
- {
- matchRange('0','9'); if (failed) return ;
-
- }
- break;
-
- default :
- if ( cnt7 >= 1 ) break loop7;
- if (backtracking>0) {failed=true; return ;}
- EarlyExitException eee =
- new EarlyExitException(7, input);
- throw eee;
- }
- cnt7++;
- } while (true);
-
- match('.'); if (failed) return ;
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1389:39: ( '0' .. '9' )+
- int cnt8=0;
- loop8:
- do {
- int alt8=2;
- int LA8_0 = input.LA(1);
- if ( (LA8_0>='0' && LA8_0<='9') ) {
- alt8=1;
- }
-
-
- switch (alt8) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1389:40: '0' .. '9'
- {
- matchRange('0','9'); if (failed) return ;
-
- }
- break;
-
- default :
- if ( cnt8 >= 1 ) break loop8;
- if (backtracking>0) {failed=true; return ;}
- EarlyExitException eee =
- new EarlyExitException(8, input);
- throw eee;
- }
- cnt8++;
- } while (true);
-
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 63, FLOAT_StartIndex); }
- }
- }
- // $ANTLR end FLOAT
-
-
- // $ANTLR start STRING
- public void mSTRING() throws RecognitionException {
- int STRING_StartIndex = input.index();
- try {
- int type = STRING;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 64) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1393:17: ( ( '"' ( options {greedy=false; } : . )* '"' ) | ( '\'' ( options {greedy=false; } : . )* '\'' ) )
- int alt11=2;
- int LA11_0 = input.LA(1);
- if ( LA11_0=='"' ) {
- alt11=1;
- }
- else if ( LA11_0=='\'' ) {
- alt11=2;
- }
- else {
- if (backtracking>0) {failed=true; return ;}
- NoViableAltException nvae =
- new NoViableAltException("1392:1: STRING : ( ( \'\"\' ( options {greedy=false; } : . )* \'\"\' ) | ( \'\\\'\' ( options {greedy=false; } : . )* \'\\\'\' ) );", 11, 0, input);
-
- throw nvae;
- }
- switch (alt11) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1393:17: ( '"' ( options {greedy=false; } : . )* '"' )
- {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1393:17: ( '"' ( options {greedy=false; } : . )* '"' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1393:18: '"' ( options {greedy=false; } : . )* '"'
- {
- match('"'); if (failed) return ;
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1393:22: ( options {greedy=false; } : . )*
- loop9:
- do {
- int alt9=2;
- int LA9_0 = input.LA(1);
- if ( LA9_0=='"' ) {
- alt9=2;
- }
- else if ( (LA9_0>='\u0000' && LA9_0<='!')||(LA9_0>='#' && LA9_0<='\uFFFE') ) {
- alt9=1;
- }
-
-
- switch (alt9) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1393:49: .
- {
- matchAny(); if (failed) return ;
-
- }
- break;
-
- default :
- break loop9;
- }
- } while (true);
-
- match('"'); if (failed) return ;
-
- }
-
-
- }
- break;
- case 2 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1393:61: ( '\'' ( options {greedy=false; } : . )* '\'' )
- {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1393:61: ( '\'' ( options {greedy=false; } : . )* '\'' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1393:62: '\'' ( options {greedy=false; } : . )* '\''
- {
- match('\''); if (failed) return ;
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1393:67: ( options {greedy=false; } : . )*
- loop10:
- do {
- int alt10=2;
- int LA10_0 = input.LA(1);
- if ( LA10_0=='\'' ) {
- alt10=2;
- }
- else if ( (LA10_0>='\u0000' && LA10_0<='&')||(LA10_0>='(' && LA10_0<='\uFFFE') ) {
- alt10=1;
- }
-
-
- switch (alt10) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1393:94: .
- {
- matchAny(); if (failed) return ;
-
- }
- break;
-
- default :
- break loop10;
- }
- } while (true);
-
- match('\''); if (failed) return ;
-
- }
-
-
- }
- break;
-
- }
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 64, STRING_StartIndex); }
- }
- }
- // $ANTLR end STRING
-
-
- // $ANTLR start BOOL
- public void mBOOL() throws RecognitionException {
- int BOOL_StartIndex = input.index();
- try {
- int type = BOOL;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 65) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1397:17: ( ( 'true' | 'false' ) )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1397:17: ( 'true' | 'false' )
- {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1397:17: ( 'true' | 'false' )
- int alt12=2;
- int LA12_0 = input.LA(1);
- if ( LA12_0=='t' ) {
- alt12=1;
- }
- else if ( LA12_0=='f' ) {
- alt12=2;
- }
- else {
- if (backtracking>0) {failed=true; return ;}
- NoViableAltException nvae =
- new NoViableAltException("1397:17: ( \'true\' | \'false\' )", 12, 0, input);
-
- throw nvae;
- }
- switch (alt12) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1397:18: 'true'
- {
- match("true"); if (failed) return ;
-
-
- }
- break;
- case 2 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1397:25: 'false'
- {
- match("false"); if (failed) return ;
-
-
- }
- break;
-
- }
-
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 65, BOOL_StartIndex); }
- }
- }
- // $ANTLR end BOOL
-
-
- // $ANTLR start ID
- public void mID() throws RecognitionException {
- int ID_StartIndex = input.index();
- try {
- int type = ID;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 66) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1401:17: ( ('a'..'z'|'A'..'Z'|'_'|'$'|'\u00c0'..'\u00ff') ( ('a'..'z'|'A'..'Z'|'_'|'0'..'9'|'\u00c0'..'\u00ff'))* )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1401:17: ('a'..'z'|'A'..'Z'|'_'|'$'|'\u00c0'..'\u00ff') ( ('a'..'z'|'A'..'Z'|'_'|'0'..'9'|'\u00c0'..'\u00ff'))*
- {
- if ( input.LA(1)=='$'||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z')||(input.LA(1)>='\u00C0' && input.LA(1)<='\u00FF') ) {
- input.consume();
- failed=false;
- }
- else {
- if (backtracking>0) {failed=true; return ;}
- MismatchedSetException mse =
- new MismatchedSetException(null,input);
- recover(mse); throw mse;
- }
-
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1401:65: ( ('a'..'z'|'A'..'Z'|'_'|'0'..'9'|'\u00c0'..'\u00ff'))*
- loop13:
- do {
- int alt13=2;
- int LA13_0 = input.LA(1);
- if ( (LA13_0>='0' && LA13_0<='9')||(LA13_0>='A' && LA13_0<='Z')||LA13_0=='_'||(LA13_0>='a' && LA13_0<='z')||(LA13_0>='\u00C0' && LA13_0<='\u00FF') ) {
- alt13=1;
- }
-
-
- switch (alt13) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1401:66: ('a'..'z'|'A'..'Z'|'_'|'0'..'9'|'\u00c0'..'\u00ff')
- {
- if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z')||(input.LA(1)>='\u00C0' && input.LA(1)<='\u00FF') ) {
- input.consume();
- failed=false;
- }
- else {
- if (backtracking>0) {failed=true; return ;}
- MismatchedSetException mse =
- new MismatchedSetException(null,input);
- recover(mse); throw mse;
- }
-
-
- }
- break;
-
- default :
- break loop13;
- }
- } while (true);
-
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 66, ID_StartIndex); }
- }
- }
- // $ANTLR end ID
-
-
- // $ANTLR start SH_STYLE_SINGLE_LINE_COMMENT
- public void mSH_STYLE_SINGLE_LINE_COMMENT() throws RecognitionException {
- int SH_STYLE_SINGLE_LINE_COMMENT_StartIndex = input.index();
- try {
- int type = SH_STYLE_SINGLE_LINE_COMMENT;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 67) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1407:17: ( '#' ( options {greedy=false; } : . )* EOL )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1407:17: '#' ( options {greedy=false; } : . )* EOL
- {
- match('#'); if (failed) return ;
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1407:21: ( options {greedy=false; } : . )*
- loop14:
- do {
- int alt14=2;
- int LA14_0 = input.LA(1);
- if ( LA14_0=='\r' ) {
- alt14=2;
- }
- else if ( LA14_0=='\n' ) {
- alt14=2;
- }
- else if ( (LA14_0>='\u0000' && LA14_0<='\t')||(LA14_0>='\u000B' && LA14_0<='\f')||(LA14_0>='\u000E' && LA14_0<='\uFFFE') ) {
- alt14=1;
- }
-
-
- switch (alt14) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1407:48: .
- {
- matchAny(); if (failed) return ;
-
- }
- break;
-
- default :
- break loop14;
- }
- } while (true);
-
- mEOL(); if (failed) return ;
- if ( backtracking==0 ) {
- channel=99;
- }
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 67, SH_STYLE_SINGLE_LINE_COMMENT_StartIndex); }
- }
- }
- // $ANTLR end SH_STYLE_SINGLE_LINE_COMMENT
-
-
- // $ANTLR start C_STYLE_SINGLE_LINE_COMMENT
- public void mC_STYLE_SINGLE_LINE_COMMENT() throws RecognitionException {
- int C_STYLE_SINGLE_LINE_COMMENT_StartIndex = input.index();
- try {
- int type = C_STYLE_SINGLE_LINE_COMMENT;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 68) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1413:17: ( '//' ( options {greedy=false; } : . )* EOL )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1413:17: '//' ( options {greedy=false; } : . )* EOL
- {
- match("//"); if (failed) return ;
-
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1413:22: ( options {greedy=false; } : . )*
- loop15:
- do {
- int alt15=2;
- int LA15_0 = input.LA(1);
- if ( LA15_0=='\r' ) {
- alt15=2;
- }
- else if ( LA15_0=='\n' ) {
- alt15=2;
- }
- else if ( (LA15_0>='\u0000' && LA15_0<='\t')||(LA15_0>='\u000B' && LA15_0<='\f')||(LA15_0>='\u000E' && LA15_0<='\uFFFE') ) {
- alt15=1;
- }
-
-
- switch (alt15) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1413:49: .
- {
- matchAny(); if (failed) return ;
-
- }
- break;
-
- default :
- break loop15;
- }
- } while (true);
-
- mEOL(); if (failed) return ;
- if ( backtracking==0 ) {
- channel=99;
- }
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 68, C_STYLE_SINGLE_LINE_COMMENT_StartIndex); }
- }
- }
- // $ANTLR end C_STYLE_SINGLE_LINE_COMMENT
-
-
- // $ANTLR start MULTI_LINE_COMMENT
- public void mMULTI_LINE_COMMENT() throws RecognitionException {
- int MULTI_LINE_COMMENT_StartIndex = input.index();
- try {
- int type = MULTI_LINE_COMMENT;
- int start = getCharIndex();
- int line = getLine();
- int charPosition = getCharPositionInLine();
- int channel = Token.DEFAULT_CHANNEL;
- if ( backtracking>0 && alreadyParsedRule(input, 69) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1418:17: ( '/*' ( options {greedy=false; } : . )* '*/' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1418:17: '/*' ( options {greedy=false; } : . )* '*/'
- {
- match("/*"); if (failed) return ;
-
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1418:22: ( options {greedy=false; } : . )*
- loop16:
- do {
- int alt16=2;
- int LA16_0 = input.LA(1);
- if ( LA16_0=='*' ) {
- int LA16_1 = input.LA(2);
- if ( LA16_1=='/' ) {
- alt16=2;
- }
- else if ( (LA16_1>='\u0000' && LA16_1<='.')||(LA16_1>='0' && LA16_1<='\uFFFE') ) {
- alt16=1;
- }
-
-
- }
- else if ( (LA16_0>='\u0000' && LA16_0<=')')||(LA16_0>='+' && LA16_0<='\uFFFE') ) {
- alt16=1;
- }
-
-
- switch (alt16) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1418:48: .
- {
- matchAny(); if (failed) return ;
-
- }
- break;
-
- default :
- break loop16;
- }
- } while (true);
-
- match("*/"); if (failed) return ;
-
- if ( backtracking==0 ) {
- channel=99;
- }
-
- }
-
- if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 69, MULTI_LINE_COMMENT_StartIndex); }
- }
- }
- // $ANTLR end MULTI_LINE_COMMENT
-
- public void mTokens() throws RecognitionException {
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:10: ( T15 | T16 | T17 | T18 | T19 | T20 | T21 | T22 | T23 | T24 | T25 | T26 | T27 | T28 | T29 | T30 | T31 | T32 | T33 | T34 | T35 | T36 | T37 | T38 | T39 | T40 | T41 | T42 | T43 | T44 | T45 | T46 | T47 | T48 | T49 | T50 | T51 | T52 | T53 | T54 | T55 | T56 | T57 | T58 | T59 | T60 | T61 | T62 | T63 | T64 | T65 | T66 | T67 | T68 | T69 | T70 | T71 | T72 | MISC | WS | EOL | INT | FLOAT | STRING | BOOL | ID | SH_STYLE_SINGLE_LINE_COMMENT | C_STYLE_SINGLE_LINE_COMMENT | MULTI_LINE_COMMENT )
- int alt17=69;
- alt17 = dfa17.predict(input); if (failed) return ;
- switch (alt17) {
- case 1 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:10: T15
- {
- mT15(); if (failed) return ;
-
- }
- break;
- case 2 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:14: T16
- {
- mT16(); if (failed) return ;
-
- }
- break;
- case 3 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:18: T17
- {
- mT17(); if (failed) return ;
-
- }
- break;
- case 4 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:22: T18
- {
- mT18(); if (failed) return ;
-
- }
- break;
- case 5 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:26: T19
- {
- mT19(); if (failed) return ;
-
- }
- break;
- case 6 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:30: T20
- {
- mT20(); if (failed) return ;
-
- }
- break;
- case 7 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:34: T21
- {
- mT21(); if (failed) return ;
-
- }
- break;
- case 8 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:38: T22
- {
- mT22(); if (failed) return ;
-
- }
- break;
- case 9 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:42: T23
- {
- mT23(); if (failed) return ;
-
- }
- break;
- case 10 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:46: T24
- {
- mT24(); if (failed) return ;
-
- }
- break;
- case 11 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:50: T25
- {
- mT25(); if (failed) return ;
-
- }
- break;
- case 12 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:54: T26
- {
- mT26(); if (failed) return ;
-
- }
- break;
- case 13 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:58: T27
- {
- mT27(); if (failed) return ;
-
- }
- break;
- case 14 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:62: T28
- {
- mT28(); if (failed) return ;
-
- }
- break;
- case 15 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:66: T29
- {
- mT29(); if (failed) return ;
-
- }
- break;
- case 16 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:70: T30
- {
- mT30(); if (failed) return ;
-
- }
- break;
- case 17 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:74: T31
- {
- mT31(); if (failed) return ;
-
- }
- break;
- case 18 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:78: T32
- {
- mT32(); if (failed) return ;
-
- }
- break;
- case 19 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:82: T33
- {
- mT33(); if (failed) return ;
-
- }
- break;
- case 20 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:86: T34
- {
- mT34(); if (failed) return ;
-
- }
- break;
- case 21 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:90: T35
- {
- mT35(); if (failed) return ;
-
- }
- break;
- case 22 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:94: T36
- {
- mT36(); if (failed) return ;
-
- }
- break;
- case 23 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:98: T37
- {
- mT37(); if (failed) return ;
-
- }
- break;
- case 24 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:102: T38
- {
- mT38(); if (failed) return ;
-
- }
- break;
- case 25 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:106: T39
- {
- mT39(); if (failed) return ;
-
- }
- break;
- case 26 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:110: T40
- {
- mT40(); if (failed) return ;
-
- }
- break;
- case 27 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:114: T41
- {
- mT41(); if (failed) return ;
-
- }
- break;
- case 28 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:118: T42
- {
- mT42(); if (failed) return ;
-
- }
- break;
- case 29 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:122: T43
- {
- mT43(); if (failed) return ;
-
- }
- break;
- case 30 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:126: T44
- {
- mT44(); if (failed) return ;
-
- }
- break;
- case 31 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:130: T45
- {
- mT45(); if (failed) return ;
-
- }
- break;
- case 32 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:134: T46
- {
- mT46(); if (failed) return ;
-
- }
- break;
- case 33 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:138: T47
- {
- mT47(); if (failed) return ;
-
- }
- break;
- case 34 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:142: T48
- {
- mT48(); if (failed) return ;
-
- }
- break;
- case 35 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:146: T49
- {
- mT49(); if (failed) return ;
-
- }
- break;
- case 36 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:150: T50
- {
- mT50(); if (failed) return ;
-
- }
- break;
- case 37 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:154: T51
- {
- mT51(); if (failed) return ;
-
- }
- break;
- case 38 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:158: T52
- {
- mT52(); if (failed) return ;
-
- }
- break;
- case 39 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:162: T53
- {
- mT53(); if (failed) return ;
-
- }
- break;
- case 40 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:166: T54
- {
- mT54(); if (failed) return ;
-
- }
- break;
- case 41 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:170: T55
- {
- mT55(); if (failed) return ;
-
- }
- break;
- case 42 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:174: T56
- {
- mT56(); if (failed) return ;
-
- }
- break;
- case 43 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:178: T57
- {
- mT57(); if (failed) return ;
-
- }
- break;
- case 44 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:182: T58
- {
- mT58(); if (failed) return ;
-
- }
- break;
- case 45 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:186: T59
- {
- mT59(); if (failed) return ;
-
- }
- break;
- case 46 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:190: T60
- {
- mT60(); if (failed) return ;
-
- }
- break;
- case 47 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:194: T61
- {
- mT61(); if (failed) return ;
-
- }
- break;
- case 48 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:198: T62
- {
- mT62(); if (failed) return ;
-
- }
- break;
- case 49 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:202: T63
- {
- mT63(); if (failed) return ;
-
- }
- break;
- case 50 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:206: T64
- {
- mT64(); if (failed) return ;
-
- }
- break;
- case 51 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:210: T65
- {
- mT65(); if (failed) return ;
-
- }
- break;
- case 52 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:214: T66
- {
- mT66(); if (failed) return ;
-
- }
- break;
- case 53 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:218: T67
- {
- mT67(); if (failed) return ;
-
- }
- break;
- case 54 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:222: T68
- {
- mT68(); if (failed) return ;
-
- }
- break;
- case 55 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:226: T69
- {
- mT69(); if (failed) return ;
-
- }
- break;
- case 56 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:230: T70
- {
- mT70(); if (failed) return ;
-
- }
- break;
- case 57 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:234: T71
- {
- mT71(); if (failed) return ;
-
- }
- break;
- case 58 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:238: T72
- {
- mT72(); if (failed) return ;
-
- }
- break;
- case 59 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:242: MISC
- {
- mMISC(); if (failed) return ;
-
- }
- break;
- case 60 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:247: WS
- {
- mWS(); if (failed) return ;
-
- }
- break;
- case 61 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:250: EOL
- {
- mEOL(); if (failed) return ;
-
- }
- break;
- case 62 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:254: INT
- {
- mINT(); if (failed) return ;
-
- }
- break;
- case 63 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:258: FLOAT
- {
- mFLOAT(); if (failed) return ;
-
- }
- break;
- case 64 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:264: STRING
- {
- mSTRING(); if (failed) return ;
-
- }
- break;
- case 65 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:271: BOOL
- {
- mBOOL(); if (failed) return ;
-
- }
- break;
- case 66 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:276: ID
- {
- mID(); if (failed) return ;
-
- }
- break;
- case 67 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:279: SH_STYLE_SINGLE_LINE_COMMENT
- {
- mSH_STYLE_SINGLE_LINE_COMMENT(); if (failed) return ;
-
- }
- break;
- case 68 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:308: C_STYLE_SINGLE_LINE_COMMENT
- {
- mC_STYLE_SINGLE_LINE_COMMENT(); if (failed) return ;
-
- }
- break;
- case 69 :
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:336: MULTI_LINE_COMMENT
- {
- mMULTI_LINE_COMMENT(); if (failed) return ;
-
- }
- break;
-
- }
-
- }
-
-
- // $ANTLR start Synpred1_fragment
- public void mSynpred1_fragment() throws RecognitionException {
- int Synpred1_fragment_StartIndex = input.index();
- try {
- if ( backtracking>0 && alreadyParsedRule(input, 71) ) { return ; }
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1378:25: ( '\r\n' )
- // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1378:27: '\r\n'
- {
- match("\r\n"); if (failed) return ;
-
-
- }
-
- }
- finally {
- if ( backtracking>0 ) { memoize(input, 71, Synpred1_fragment_StartIndex); }
- }
- }
- // $ANTLR end Synpred1_fragment
-
- class Synpred1Ptr implements GrammarFragmentPtr {
- public void invoke() throws RecognitionException {mSynpred1_fragment();}
- }
- Synpred1Ptr Synpred1 = new Synpred1Ptr();
-
-
- protected DFA17 dfa17 = new DFA17();
- class DFA17 extends DFA {
- public int predict(IntStream input) throws RecognitionException {
- return predict(input, s0);
- }
- DFA.State s1 = new DFA.State() {{alt=1;}};
- DFA.State s550 = new DFA.State() {{alt=2;}};
- DFA.State s51 = new DFA.State() {{alt=66;}};
- DFA.State s498 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_498 = input.LA(1);
- if ( (LA17_498>='0' && LA17_498<='9')||(LA17_498>='A' && LA17_498<='Z')||LA17_498=='_'||(LA17_498>='a' && LA17_498<='z')||(LA17_498>='\u00C0' && LA17_498<='\u00FF') ) {return s51;}
- return s550;
-
- }
- };
- DFA.State s437 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_437 = input.LA(1);
- if ( LA17_437=='e' ) {return s498;}
- return s51;
-
- }
- };
- DFA.State s357 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_357 = input.LA(1);
- if ( LA17_357=='g' ) {return s437;}
- return s51;
-
- }
- };
- DFA.State s262 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_262 = input.LA(1);
- if ( LA17_262=='a' ) {return s357;}
- return s51;
-
- }
- };
- DFA.State s165 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_165 = input.LA(1);
- if ( LA17_165=='k' ) {return s262;}
- return s51;
-
- }
- };
- DFA.State s53 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_53 = input.LA(1);
- if ( LA17_53=='c' ) {return s165;}
- return s51;
-
- }
- };
- DFA.State s2 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_2 = input.LA(1);
- if ( LA17_2=='a' ) {return s53;}
- return s51;
-
- }
- };
- DFA.State s501 = new DFA.State() {{alt=3;}};
- DFA.State s440 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_440 = input.LA(1);
- if ( (LA17_440>='0' && LA17_440<='9')||(LA17_440>='A' && LA17_440<='Z')||LA17_440=='_'||(LA17_440>='a' && LA17_440<='z')||(LA17_440>='\u00C0' && LA17_440<='\u00FF') ) {return s51;}
- return s501;
-
- }
- };
- DFA.State s360 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_360 = input.LA(1);
- if ( LA17_360=='t' ) {return s440;}
- return s51;
-
- }
- };
- DFA.State s265 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_265 = input.LA(1);
- if ( LA17_265=='r' ) {return s360;}
- return s51;
-
- }
- };
- DFA.State s168 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_168 = input.LA(1);
- if ( LA17_168=='o' ) {return s265;}
- return s51;
-
- }
- };
- DFA.State s56 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_56 = input.LA(1);
- if ( LA17_56=='p' ) {return s168;}
- return s51;
-
- }
- };
- DFA.State s363 = new DFA.State() {{alt=32;}};
- DFA.State s268 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_268 = input.LA(1);
- if ( (LA17_268>='0' && LA17_268<='9')||(LA17_268>='A' && LA17_268<='Z')||LA17_268=='_'||(LA17_268>='a' && LA17_268<='z')||(LA17_268>='\u00C0' && LA17_268<='\u00FF') ) {return s51;}
- return s363;
-
- }
- };
- DFA.State s171 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_171 = input.LA(1);
- if ( LA17_171=='t' ) {return s268;}
- return s51;
-
- }
- };
- DFA.State s57 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_57 = input.LA(1);
- if ( LA17_57=='i' ) {return s171;}
- return s51;
-
- }
- };
- DFA.State s3 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case 'm':
- return s56;
-
- case 'n':
- return s57;
-
- default:
- return s51;
- }
- }
- };
- DFA.State s365 = new DFA.State() {{alt=28;}};
- DFA.State s271 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_271 = input.LA(1);
- if ( (LA17_271>='0' && LA17_271<='9')||(LA17_271>='A' && LA17_271<='Z')||LA17_271=='_'||(LA17_271>='a' && LA17_271<='z')||(LA17_271>='\u00C0' && LA17_271<='\u00FF') ) {return s51;}
- return s365;
-
- }
- };
- DFA.State s174 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_174 = input.LA(1);
- if ( LA17_174=='m' ) {return s271;}
- return s51;
-
- }
- };
- DFA.State s60 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_60 = input.LA(1);
- if ( LA17_60=='o' ) {return s174;}
- return s51;
-
- }
- };
- DFA.State s586 = new DFA.State() {{alt=4;}};
- DFA.State s552 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_552 = input.LA(1);
- if ( (LA17_552>='0' && LA17_552<='9')||(LA17_552>='A' && LA17_552<='Z')||LA17_552=='_'||(LA17_552>='a' && LA17_552<='z')||(LA17_552>='\u00C0' && LA17_552<='\u00FF') ) {return s51;}
- return s586;
-
- }
- };
- DFA.State s503 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_503 = input.LA(1);
- if ( LA17_503=='n' ) {return s552;}
- return s51;
-
- }
- };
- DFA.State s443 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_443 = input.LA(1);
- if ( LA17_443=='o' ) {return s503;}
- return s51;
-
- }
- };
- DFA.State s367 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_367 = input.LA(1);
- if ( LA17_367=='i' ) {return s443;}
- return s51;
-
- }
- };
- DFA.State s274 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_274 = input.LA(1);
- if ( LA17_274=='t' ) {return s367;}
- return s51;
-
- }
- };
- DFA.State s177 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_177 = input.LA(1);
- if ( LA17_177=='c' ) {return s274;}
- return s51;
-
- }
- };
- DFA.State s61 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_61 = input.LA(1);
- if ( LA17_61=='n' ) {return s177;}
- return s51;
-
- }
- };
- DFA.State s395 = new DFA.State() {{alt=65;}};
- DFA.State s370 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_370 = input.LA(1);
- if ( (LA17_370>='0' && LA17_370<='9')||(LA17_370>='A' && LA17_370<='Z')||LA17_370=='_'||(LA17_370>='a' && LA17_370<='z')||(LA17_370>='\u00C0' && LA17_370<='\u00FF') ) {return s51;}
- return s395;
-
- }
- };
- DFA.State s277 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_277 = input.LA(1);
- if ( LA17_277=='e' ) {return s370;}
- return s51;
-
- }
- };
- DFA.State s180 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_180 = input.LA(1);
- if ( LA17_180=='s' ) {return s277;}
- return s51;
-
- }
- };
- DFA.State s62 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_62 = input.LA(1);
- if ( LA17_62=='l' ) {return s180;}
- return s51;
-
- }
- };
- DFA.State s4 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case 'r':
- return s60;
-
- case 'u':
- return s61;
-
- case 'a':
- return s62;
-
- default:
- return s51;
- }
- }
- };
- DFA.State s65 = new DFA.State() {{alt=6;}};
- DFA.State s66 = new DFA.State() {{alt=5;}};
- DFA.State s5 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_5 = input.LA(1);
- if ( LA17_5=='*' ) {return s65;}
- return s66;
-
- }
- };
- DFA.State s280 = new DFA.State() {{alt=15;}};
- DFA.State s183 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_183 = input.LA(1);
- if ( (LA17_183>='0' && LA17_183<='9')||(LA17_183>='A' && LA17_183<='Z')||LA17_183=='_'||(LA17_183>='a' && LA17_183<='z')||(LA17_183>='\u00C0' && LA17_183<='\u00FF') ) {return s51;}
- return s280;
-
- }
- };
- DFA.State s67 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_67 = input.LA(1);
- if ( LA17_67=='d' ) {return s183;}
- return s51;
-
- }
- };
- DFA.State s506 = new DFA.State() {{alt=45;}};
- DFA.State s448 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_448 = input.LA(1);
- if ( (LA17_448>='0' && LA17_448<='9')||(LA17_448>='A' && LA17_448<='Z')||LA17_448=='_'||(LA17_448>='a' && LA17_448<='z')||(LA17_448>='\u00C0' && LA17_448<='\u00FF') ) {return s51;}
- return s506;
-
- }
- };
- DFA.State s373 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_373 = input.LA(1);
- if ( LA17_373=='s' ) {return s448;}
- return s51;
-
- }
- };
- DFA.State s282 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_282 = input.LA(1);
- if ( LA17_282=='t' ) {return s373;}
- return s51;
-
- }
- };
- DFA.State s186 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_186 = input.LA(1);
- if ( LA17_186=='s' ) {return s282;}
- return s51;
-
- }
- };
- DFA.State s588 = new DFA.State() {{alt=58;}};
- DFA.State s555 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_555 = input.LA(1);
- if ( (LA17_555>='0' && LA17_555<='9')||(LA17_555>='A' && LA17_555<='Z')||LA17_555=='_'||(LA17_555>='a' && LA17_555<='z')||(LA17_555>='\u00C0' && LA17_555<='\u00FF') ) {return s51;}
- return s588;
-
- }
- };
- DFA.State s508 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_508 = input.LA(1);
- if ( LA17_508=='s' ) {return s555;}
- return s51;
-
- }
- };
- DFA.State s451 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_451 = input.LA(1);
- if ( LA17_451=='e' ) {return s508;}
- return s51;
-
- }
- };
- DFA.State s376 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_376 = input.LA(1);
- if ( LA17_376=='d' ) {return s451;}
- return s51;
-
- }
- };
- DFA.State s285 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_285 = input.LA(1);
- if ( LA17_285=='u' ) {return s376;}
- return s51;
-
- }
- };
- DFA.State s187 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_187 = input.LA(1);
- if ( LA17_187=='l' ) {return s285;}
- return s51;
-
- }
- };
- DFA.State s590 = new DFA.State() {{alt=7;}};
- DFA.State s558 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_558 = input.LA(1);
- if ( (LA17_558>='0' && LA17_558<='9')||(LA17_558>='A' && LA17_558<='Z')||LA17_558=='_'||(LA17_558>='a' && LA17_558<='z')||(LA17_558>='\u00C0' && LA17_558<='\u00FF') ) {return s51;}
- return s590;
-
- }
- };
- DFA.State s511 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_511 = input.LA(1);
- if ( LA17_511=='r' ) {return s558;}
- return s51;
-
- }
- };
- DFA.State s454 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_454 = input.LA(1);
- if ( LA17_454=='e' ) {return s511;}
- return s51;
-
- }
- };
- DFA.State s379 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_379 = input.LA(1);
- if ( LA17_379=='d' ) {return s454;}
- return s51;
-
- }
- };
- DFA.State s288 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_288 = input.LA(1);
- if ( LA17_288=='n' ) {return s379;}
- return s51;
-
- }
- };
- DFA.State s188 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_188 = input.LA(1);
- if ( LA17_188=='a' ) {return s288;}
- return s51;
-
- }
- };
- DFA.State s68 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case 'i':
- return s186;
-
- case 'c':
- return s187;
-
- case 'p':
- return s188;
-
- default:
- return s51;
- }
- }
- };
- DFA.State s382 = new DFA.State() {{alt=47;}};
- DFA.State s291 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_291 = input.LA(1);
- if ( (LA17_291>='0' && LA17_291<='9')||(LA17_291>='A' && LA17_291<='Z')||LA17_291=='_'||(LA17_291>='a' && LA17_291<='z')||(LA17_291>='\u00C0' && LA17_291<='\u00FF') ) {return s51;}
- return s382;
-
- }
- };
- DFA.State s191 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_191 = input.LA(1);
- if ( LA17_191=='l' ) {return s291;}
- return s51;
-
- }
- };
- DFA.State s69 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_69 = input.LA(1);
- if ( LA17_69=='a' ) {return s191;}
- return s51;
-
- }
- };
- DFA.State s6 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case 'n':
- return s67;
-
- case 'x':
- return s68;
-
- case 'v':
- return s69;
-
- default:
- return s51;
- }
- }
- };
- DFA.State s514 = new DFA.State() {{alt=8;}};
- DFA.State s457 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_457 = input.LA(1);
- if ( (LA17_457>='0' && LA17_457<='9')||(LA17_457>='A' && LA17_457<='Z')||LA17_457=='_'||(LA17_457>='a' && LA17_457<='z')||(LA17_457>='\u00C0' && LA17_457<='\u00FF') ) {return s51;}
- return s514;
-
- }
- };
- DFA.State s384 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_384 = input.LA(1);
- if ( LA17_384=='l' ) {return s457;}
- return s51;
-
- }
- };
- DFA.State s294 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_294 = input.LA(1);
- if ( LA17_294=='a' ) {return s384;}
- return s51;
-
- }
- };
- DFA.State s194 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_194 = input.LA(1);
- if ( LA17_194=='b' ) {return s294;}
- return s51;
-
- }
- };
- DFA.State s72 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_72 = input.LA(1);
- if ( LA17_72=='o' ) {return s194;}
- return s51;
-
- }
- };
- DFA.State s7 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_7 = input.LA(1);
- if ( LA17_7=='l' ) {return s72;}
- return s51;
-
- }
- };
- DFA.State s75 = new DFA.State() {{alt=9;}};
- DFA.State s8 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_8 = input.LA(1);
- return s75;
-
- }
- };
- DFA.State s76 = new DFA.State() {{alt=10;}};
- DFA.State s9 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_9 = input.LA(1);
- return s76;
-
- }
- };
- DFA.State s77 = new DFA.State() {{alt=11;}};
- DFA.State s10 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_10 = input.LA(1);
- return s77;
-
- }
- };
- DFA.State s78 = new DFA.State() {{alt=12;}};
- DFA.State s11 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_11 = input.LA(1);
- return s78;
-
- }
- };
- DFA.State s79 = new DFA.State() {{alt=13;}};
- DFA.State s12 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_12 = input.LA(1);
- return s79;
-
- }
- };
- DFA.State s460 = new DFA.State() {{alt=14;}};
- DFA.State s387 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_387 = input.LA(1);
- if ( (LA17_387>='0' && LA17_387<='9')||(LA17_387>='A' && LA17_387<='Z')||LA17_387=='_'||(LA17_387>='a' && LA17_387<='z')||(LA17_387>='\u00C0' && LA17_387<='\u00FF') ) {return s51;}
- return s460;
-
- }
- };
- DFA.State s297 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_297 = input.LA(1);
- if ( LA17_297=='y' ) {return s387;}
- return s51;
-
- }
- };
- DFA.State s197 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_197 = input.LA(1);
- if ( LA17_197=='r' ) {return s297;}
- return s51;
-
- }
- };
- DFA.State s80 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_80 = input.LA(1);
- if ( LA17_80=='e' ) {return s197;}
- return s51;
-
- }
- };
- DFA.State s13 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_13 = input.LA(1);
- if ( LA17_13=='u' ) {return s80;}
- return s51;
-
- }
- };
- DFA.State s592 = new DFA.State() {{alt=16;}};
- DFA.State s561 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_561 = input.LA(1);
- if ( (LA17_561>='0' && LA17_561<='9')||(LA17_561>='A' && LA17_561<='Z')||LA17_561=='_'||(LA17_561>='a' && LA17_561<='z')||(LA17_561>='\u00C0' && LA17_561<='\u00FF') ) {return s51;}
- return s592;
-
- }
- };
- DFA.State s516 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_516 = input.LA(1);
- if ( LA17_516=='e' ) {return s561;}
- return s51;
-
- }
- };
- DFA.State s462 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_462 = input.LA(1);
- if ( LA17_462=='t' ) {return s516;}
- return s51;
-
- }
- };
- DFA.State s390 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_390 = input.LA(1);
- if ( LA17_390=='a' ) {return s462;}
- return s51;
-
- }
- };
- DFA.State s300 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_300 = input.LA(1);
- if ( LA17_300=='l' ) {return s390;}
- return s51;
-
- }
- };
- DFA.State s200 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_200 = input.LA(1);
- if ( LA17_200=='p' ) {return s300;}
- return s51;
-
- }
- };
- DFA.State s83 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_83 = input.LA(1);
- if ( LA17_83=='m' ) {return s200;}
- return s51;
-
- }
- };
- DFA.State s393 = new DFA.State() {{alt=20;}};
- DFA.State s303 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_303 = input.LA(1);
- if ( (LA17_303>='0' && LA17_303<='9')||(LA17_303>='A' && LA17_303<='Z')||LA17_303=='_'||(LA17_303>='a' && LA17_303<='z')||(LA17_303>='\u00C0' && LA17_303<='\u00FF') ) {return s51;}
- return s393;
-
- }
- };
- DFA.State s203 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_203 = input.LA(1);
- if ( LA17_203=='n' ) {return s303;}
- return s51;
-
- }
- };
- DFA.State s84 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_84 = input.LA(1);
- if ( LA17_84=='e' ) {return s203;}
- return s51;
-
- }
- };
- DFA.State s306 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_306 = input.LA(1);
- if ( (LA17_306>='0' && LA17_306<='9')||(LA17_306>='A' && LA17_306<='Z')||LA17_306=='_'||(LA17_306>='a' && LA17_306<='z')||(LA17_306>='\u00C0' && LA17_306<='\u00FF') ) {return s51;}
- return s395;
-
- }
- };
- DFA.State s206 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_206 = input.LA(1);
- if ( LA17_206=='e' ) {return s306;}
- return s51;
-
- }
- };
- DFA.State s85 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_85 = input.LA(1);
- if ( LA17_85=='u' ) {return s206;}
- return s51;
-
- }
- };
- DFA.State s14 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case 'e':
- return s83;
-
- case 'h':
- return s84;
-
- case 'r':
- return s85;
-
- default:
- return s51;
- }
- }
- };
- DFA.State s397 = new DFA.State() {{alt=17;}};
- DFA.State s309 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_309 = input.LA(1);
- if ( (LA17_309>='0' && LA17_309<='9')||(LA17_309>='A' && LA17_309<='Z')||LA17_309=='_'||(LA17_309>='a' && LA17_309<='z')||(LA17_309>='\u00C0' && LA17_309<='\u00FF') ) {return s51;}
- return s397;
-
- }
- };
- DFA.State s209 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_209 = input.LA(1);
- if ( LA17_209=='e' ) {return s309;}
- return s51;
-
- }
- };
- DFA.State s88 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_88 = input.LA(1);
- if ( LA17_88=='l' ) {return s209;}
- return s51;
-
- }
- };
- DFA.State s519 = new DFA.State() {{alt=34;}};
- DFA.State s465 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_465 = input.LA(1);
- if ( (LA17_465>='0' && LA17_465<='9')||(LA17_465>='A' && LA17_465<='Z')||LA17_465=='_'||(LA17_465>='a' && LA17_465<='z')||(LA17_465>='\u00C0' && LA17_465<='\u00FF') ) {return s51;}
- return s519;
-
- }
- };
- DFA.State s399 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_399 = input.LA(1);
- if ( LA17_399=='t' ) {return s465;}
- return s51;
-
- }
- };
- DFA.State s312 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_312 = input.LA(1);
- if ( LA17_312=='l' ) {return s399;}
- return s51;
-
- }
- };
- DFA.State s212 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_212 = input.LA(1);
- if ( LA17_212=='u' ) {return s312;}
- return s51;
-
- }
- };
- DFA.State s89 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_89 = input.LA(1);
- if ( LA17_89=='s' ) {return s212;}
- return s51;
-
- }
- };
- DFA.State s15 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case 'u':
- return s88;
-
- case 'e':
- return s89;
-
- default:
- return s51;
- }
- }
- };
- DFA.State s402 = new DFA.State() {{alt=18;}};
- DFA.State s315 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_315 = input.LA(1);
- if ( (LA17_315>='0' && LA17_315<='9')||(LA17_315>='A' && LA17_315<='Z')||LA17_315=='_'||(LA17_315>='a' && LA17_315<='z')||(LA17_315>='\u00C0' && LA17_315<='\u00FF') ) {return s51;}
- return s402;
-
- }
- };
- DFA.State s215 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_215 = input.LA(1);
- if ( LA17_215=='n' ) {return s315;}
- return s51;
-
- }
- };
- DFA.State s92 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_92 = input.LA(1);
- if ( LA17_92=='e' ) {return s215;}
- return s51;
-
- }
- };
- DFA.State s16 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_16 = input.LA(1);
- if ( LA17_16=='h' ) {return s92;}
- return s51;
-
- }
- };
- DFA.State s17 = new DFA.State() {{alt=19;}};
- DFA.State s618 = new DFA.State() {{alt=31;}};
- DFA.State s609 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_609 = input.LA(1);
- if ( (LA17_609>='0' && LA17_609<='9')||(LA17_609>='A' && LA17_609<='Z')||LA17_609=='_'||(LA17_609>='a' && LA17_609<='z')||(LA17_609>='\u00C0' && LA17_609<='\u00FF') ) {return s51;}
- return s618;
-
- }
- };
- DFA.State s594 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_594 = input.LA(1);
- if ( LA17_594=='e' ) {return s609;}
- return s51;
-
- }
- };
- DFA.State s564 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_564 = input.LA(1);
- if ( LA17_564=='t' ) {return s594;}
- return s51;
-
- }
- };
- DFA.State s521 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_521 = input.LA(1);
- if ( LA17_521=='a' ) {return s564;}
- return s51;
-
- }
- };
- DFA.State s468 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_468 = input.LA(1);
- if ( LA17_468=='l' ) {return s521;}
- return s51;
-
- }
- };
- DFA.State s404 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_404 = input.LA(1);
- if ( LA17_404=='u' ) {return s468;}
- return s51;
-
- }
- };
- DFA.State s318 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_318 = input.LA(1);
- if ( LA17_318=='m' ) {return s404;}
- return s51;
-
- }
- };
- DFA.State s218 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_218 = input.LA(1);
- if ( LA17_218=='u' ) {return s318;}
- return s51;
-
- }
- };
- DFA.State s620 = new DFA.State() {{alt=25;}};
- DFA.State s612 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_612 = input.LA(1);
- if ( LA17_612=='-' ) {return s620;}
- return s51;
-
- }
- };
- DFA.State s597 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_597 = input.LA(1);
- if ( LA17_597=='n' ) {return s612;}
- return s51;
-
- }
- };
- DFA.State s567 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_567 = input.LA(1);
- if ( LA17_567=='o' ) {return s597;}
- return s51;
-
- }
- };
- DFA.State s524 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_524 = input.LA(1);
- if ( LA17_524=='i' ) {return s567;}
- return s51;
-
- }
- };
- DFA.State s471 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_471 = input.LA(1);
- if ( LA17_471=='t' ) {return s524;}
- return s51;
-
- }
- };
- DFA.State s407 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_407 = input.LA(1);
- if ( LA17_407=='a' ) {return s471;}
- return s51;
-
- }
- };
- DFA.State s527 = new DFA.State() {{alt=33;}};
- DFA.State s474 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_474 = input.LA(1);
- if ( (LA17_474>='0' && LA17_474<='9')||(LA17_474>='A' && LA17_474<='Z')||LA17_474=='_'||(LA17_474>='a' && LA17_474<='z')||(LA17_474>='\u00C0' && LA17_474<='\u00FF') ) {return s51;}
- return s527;
-
- }
- };
- DFA.State s408 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_408 = input.LA(1);
- if ( LA17_408=='n' ) {return s474;}
- return s51;
-
- }
- };
- DFA.State s321 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case 'v':
- return s407;
-
- case 'o':
- return s408;
-
- default:
- return s51;
- }
- }
- };
- DFA.State s219 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_219 = input.LA(1);
- if ( LA17_219=='i' ) {return s321;}
- return s51;
-
- }
- };
- DFA.State s95 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case 'c':
- return s218;
-
- case 't':
- return s219;
-
- default:
- return s51;
- }
- }
- };
- DFA.State s324 = new DFA.State() {{alt=43;}};
- DFA.State s222 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_222 = input.LA(1);
- if ( (LA17_222>='0' && LA17_222<='9')||(LA17_222>='A' && LA17_222<='Z')||LA17_222=='_'||(LA17_222>='a' && LA17_222<='z')||(LA17_222>='\u00C0' && LA17_222<='\u00FF') ) {return s51;}
- return s324;
-
- }
- };
- DFA.State s96 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_96 = input.LA(1);
- if ( LA17_96=='d' ) {return s222;}
- return s51;
-
- }
- };
- DFA.State s529 = new DFA.State() {{alt=26;}};
- DFA.State s477 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_477 = input.LA(1);
- if ( LA17_477=='-' ) {return s529;}
- return s51;
-
- }
- };
- DFA.State s411 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_411 = input.LA(1);
- if ( LA17_411=='a' ) {return s477;}
- return s51;
-
- }
- };
- DFA.State s326 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_326 = input.LA(1);
- if ( LA17_326=='d' ) {return s411;}
- return s51;
-
- }
- };
- DFA.State s225 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_225 = input.LA(1);
- if ( LA17_225=='n' ) {return s326;}
- return s51;
-
- }
- };
- DFA.State s97 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_97 = input.LA(1);
- if ( LA17_97=='e' ) {return s225;}
- return s51;
-
- }
- };
- DFA.State s623 = new DFA.State() {{alt=21;}};
- DFA.State s615 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_615 = input.LA(1);
- if ( (LA17_615>='0' && LA17_615<='9')||(LA17_615>='A' && LA17_615<='Z')||LA17_615=='_'||(LA17_615>='a' && LA17_615<='z')||(LA17_615>='\u00C0' && LA17_615<='\u00FF') ) {return s51;}
- return s623;
-
- }
- };
- DFA.State s600 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_600 = input.LA(1);
- if ( LA17_600=='s' ) {return s615;}
- return s51;
-
- }
- };
- DFA.State s570 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_570 = input.LA(1);
- if ( LA17_570=='e' ) {return s600;}
- return s51;
-
- }
- };
- DFA.State s532 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_532 = input.LA(1);
- if ( LA17_532=='t' ) {return s570;}
- return s51;
-
- }
- };
- DFA.State s480 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_480 = input.LA(1);
- if ( LA17_480=='u' ) {return s532;}
- return s51;
-
- }
- };
- DFA.State s414 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_414 = input.LA(1);
- if ( LA17_414=='b' ) {return s480;}
- return s51;
-
- }
- };
- DFA.State s329 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_329 = input.LA(1);
- if ( LA17_329=='i' ) {return s414;}
- return s51;
-
- }
- };
- DFA.State s228 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_228 = input.LA(1);
- if ( LA17_228=='r' ) {return s329;}
- return s51;
-
- }
- };
- DFA.State s98 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_98 = input.LA(1);
- if ( LA17_98=='t' ) {return s228;}
- return s51;
-
- }
- };
- DFA.State s417 = new DFA.State() {{alt=24;}};
- DFA.State s332 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_332 = input.LA(1);
- if ( LA17_332=='-' ) {return s417;}
- return s51;
-
- }
- };
- DFA.State s231 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_231 = input.LA(1);
- if ( LA17_231=='o' ) {return s332;}
- return s51;
-
- }
- };
- DFA.State s99 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_99 = input.LA(1);
- if ( LA17_99=='t' ) {return s231;}
- return s51;
-
- }
- };
- DFA.State s18 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case 'c':
- return s95;
-
- case 'n':
- return s96;
-
- case 'g':
- return s97;
-
- case 't':
- return s98;
-
- case 'u':
- return s99;
-
- default:
- return s51;
- }
- }
- };
- DFA.State s603 = new DFA.State() {{alt=22;}};
- DFA.State s573 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_573 = input.LA(1);
- if ( (LA17_573>='0' && LA17_573<='9')||(LA17_573>='A' && LA17_573<='Z')||LA17_573=='_'||(LA17_573>='a' && LA17_573<='z')||(LA17_573>='\u00C0' && LA17_573<='\u00FF') ) {return s51;}
- return s603;
-
- }
- };
- DFA.State s535 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_535 = input.LA(1);
- if ( LA17_535=='e' ) {return s573;}
- return s51;
-
- }
- };
- DFA.State s483 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_483 = input.LA(1);
- if ( LA17_483=='c' ) {return s535;}
- return s51;
-
- }
- };
- DFA.State s420 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_420 = input.LA(1);
- if ( LA17_420=='n' ) {return s483;}
- return s51;
-
- }
- };
- DFA.State s335 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_335 = input.LA(1);
- if ( LA17_335=='e' ) {return s420;}
- return s51;
-
- }
- };
- DFA.State s234 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_234 = input.LA(1);
- if ( LA17_234=='i' ) {return s335;}
- return s51;
-
- }
- };
- DFA.State s102 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_102 = input.LA(1);
- if ( LA17_102=='l' ) {return s234;}
- return s51;
-
- }
- };
- DFA.State s19 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_19 = input.LA(1);
- if ( LA17_19=='a' ) {return s102;}
- return s51;
-
- }
- };
- DFA.State s338 = new DFA.State() {{alt=46;}};
- DFA.State s237 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_237 = input.LA(1);
- if ( (LA17_237>='0' && LA17_237<='9')||(LA17_237>='A' && LA17_237<='Z')||LA17_237=='_'||(LA17_237>='a' && LA17_237<='z')||(LA17_237>='\u00C0' && LA17_237<='\u00FF') ) {return s51;}
- return s338;
-
- }
- };
- DFA.State s238 = new DFA.State() {{alt=23;}};
- DFA.State s105 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case 't':
- return s237;
-
- case '-':
- return s238;
-
- default:
- return s51;
- }
- }
- };
- DFA.State s423 = new DFA.State() {{alt=36;}};
- DFA.State s340 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_340 = input.LA(1);
- if ( (LA17_340>='0' && LA17_340<='9')||(LA17_340>='A' && LA17_340<='Z')||LA17_340=='_'||(LA17_340>='a' && LA17_340<='z')||(LA17_340>='\u00C0' && LA17_340<='\u00FF') ) {return s51;}
- return s423;
-
- }
- };
- DFA.State s241 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_241 = input.LA(1);
- if ( LA17_241=='l' ) {return s340;}
- return s51;
-
- }
- };
- DFA.State s106 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_106 = input.LA(1);
- if ( LA17_106=='l' ) {return s241;}
- return s51;
-
- }
- };
- DFA.State s20 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case 'o':
- return s105;
-
- case 'u':
- return s106;
-
- default:
- return s51;
- }
- }
- };
- DFA.State s605 = new DFA.State() {{alt=27;}};
- DFA.State s576 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_576 = input.LA(1);
- if ( (LA17_576>='0' && LA17_576<='9')||(LA17_576>='A' && LA17_576<='Z')||LA17_576=='_'||(LA17_576>='a' && LA17_576<='z')||(LA17_576>='\u00C0' && LA17_576<='\u00FF') ) {return s51;}
- return s605;
-
- }
- };
- DFA.State s538 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_538 = input.LA(1);
- if ( LA17_538=='n' ) {return s576;}
- return s51;
-
- }
- };
- DFA.State s486 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_486 = input.LA(1);
- if ( LA17_486=='o' ) {return s538;}
- return s51;
-
- }
- };
- DFA.State s425 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_425 = input.LA(1);
- if ( LA17_425=='i' ) {return s486;}
- return s51;
-
- }
- };
- DFA.State s343 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_343 = input.LA(1);
- if ( LA17_343=='t' ) {return s425;}
- return s51;
-
- }
- };
- DFA.State s244 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_244 = input.LA(1);
- if ( LA17_244=='a' ) {return s343;}
- return s51;
-
- }
- };
- DFA.State s109 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_109 = input.LA(1);
- if ( LA17_109=='r' ) {return s244;}
- return s51;
-
- }
- };
- DFA.State s21 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_21 = input.LA(1);
- if ( LA17_21=='u' ) {return s109;}
- return s51;
-
- }
- };
- DFA.State s112 = new DFA.State() {{alt=29;}};
- DFA.State s22 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_22 = input.LA(1);
- return s112;
-
- }
- };
- DFA.State s113 = new DFA.State() {{alt=30;}};
- DFA.State s23 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_23 = input.LA(1);
- return s113;
-
- }
- };
- DFA.State s607 = new DFA.State() {{alt=56;}};
- DFA.State s579 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_579 = input.LA(1);
- if ( (LA17_579>='0' && LA17_579<='9')||(LA17_579>='A' && LA17_579<='Z')||LA17_579=='_'||(LA17_579>='a' && LA17_579<='z')||(LA17_579>='\u00C0' && LA17_579<='\u00FF') ) {return s51;}
- return s607;
-
- }
- };
- DFA.State s541 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_541 = input.LA(1);
- if ( LA17_541=='s' ) {return s579;}
- return s51;
-
- }
- };
- DFA.State s489 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_489 = input.LA(1);
- if ( LA17_489=='n' ) {return s541;}
- return s51;
-
- }
- };
- DFA.State s428 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_428 = input.LA(1);
- if ( LA17_428=='i' ) {return s489;}
- return s51;
-
- }
- };
- DFA.State s346 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_346 = input.LA(1);
- if ( LA17_346=='a' ) {return s428;}
- return s51;
-
- }
- };
- DFA.State s247 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_247 = input.LA(1);
- if ( LA17_247=='t' ) {return s346;}
- return s51;
-
- }
- };
- DFA.State s582 = new DFA.State() {{alt=35;}};
- DFA.State s544 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_544 = input.LA(1);
- if ( (LA17_544>='0' && LA17_544<='9')||(LA17_544>='A' && LA17_544<='Z')||LA17_544=='_'||(LA17_544>='a' && LA17_544<='z')||(LA17_544>='\u00C0' && LA17_544<='\u00FF') ) {return s51;}
- return s582;
-
- }
- };
- DFA.State s492 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_492 = input.LA(1);
- if ( LA17_492=='t' ) {return s544;}
- return s51;
-
- }
- };
- DFA.State s431 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_431 = input.LA(1);
- if ( LA17_431=='c' ) {return s492;}
- return s51;
-
- }
- };
- DFA.State s349 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_349 = input.LA(1);
- if ( LA17_349=='e' ) {return s431;}
- return s51;
-
- }
- };
- DFA.State s248 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_248 = input.LA(1);
- if ( LA17_248=='l' ) {return s349;}
- return s51;
-
- }
- };
- DFA.State s114 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case 'n':
- return s247;
-
- case 'l':
- return s248;
-
- default:
- return s51;
- }
- }
- };
- DFA.State s24 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_24 = input.LA(1);
- if ( LA17_24=='o' ) {return s114;}
- return s51;
-
- }
- };
- DFA.State s35 = new DFA.State() {{alt=59;}};
- DFA.State s118 = new DFA.State() {{alt=37;}};
- DFA.State s251 = new DFA.State() {{alt=49;}};
- DFA.State s120 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_120 = input.LA(1);
- return s251;
-
- }
- };
- DFA.State s123 = new DFA.State() {{alt=50;}};
- DFA.State s25 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case '*':
- case '+':
- case '-':
- case '/':
- return s35;
-
- case '>':
- return s118;
-
- case '=':
- return s120;
-
- default:
- return s123;
- }
- }
- };
- DFA.State s252 = new DFA.State() {{alt=38;}};
- DFA.State s124 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_124 = input.LA(1);
- if ( (LA17_124>='0' && LA17_124<='9')||(LA17_124>='A' && LA17_124<='Z')||LA17_124=='_'||(LA17_124>='a' && LA17_124<='z')||(LA17_124>='\u00C0' && LA17_124<='\u00FF') ) {return s51;}
- return s252;
-
- }
- };
- DFA.State s26 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_26 = input.LA(1);
- if ( LA17_26=='r' ) {return s124;}
- return s51;
-
- }
- };
- DFA.State s254 = new DFA.State() {{alt=39;}};
- DFA.State s127 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_127 = input.LA(1);
- return s254;
-
- }
- };
- DFA.State s128 = new DFA.State() {{alt=41;}};
- DFA.State s27 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_27 = input.LA(1);
- if ( LA17_27=='|' ) {return s127;}
- return s128;
-
- }
- };
- DFA.State s255 = new DFA.State() {{alt=44;}};
- DFA.State s129 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_129 = input.LA(1);
- return s255;
-
- }
- };
- DFA.State s130 = new DFA.State() {{alt=40;}};
- DFA.State s28 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_28 = input.LA(1);
- if ( LA17_28=='&' ) {return s129;}
- return s130;
-
- }
- };
- DFA.State s132 = new DFA.State() {{alt=42;}};
- DFA.State s161 = new DFA.State() {{alt=62;}};
- DFA.State s164 = new DFA.State() {{alt=63;}};
- DFA.State s49 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case '0':
- case '1':
- case '2':
- case '3':
- case '4':
- case '5':
- case '6':
- case '7':
- case '8':
- case '9':
- return s49;
-
- case '.':
- return s164;
-
- default:
- return s161;
- }
- }
- };
- DFA.State s29 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case '>':
- return s132;
-
- case '0':
- case '1':
- case '2':
- case '3':
- case '4':
- case '5':
- case '6':
- case '7':
- case '8':
- case '9':
- return s49;
-
- default:
- return s35;
- }
- }
- };
- DFA.State s352 = new DFA.State() {{alt=48;}};
- DFA.State s256 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_256 = input.LA(1);
- if ( (LA17_256>='0' && LA17_256<='9')||(LA17_256>='A' && LA17_256<='Z')||LA17_256=='_'||(LA17_256>='a' && LA17_256<='z')||(LA17_256>='\u00C0' && LA17_256<='\u00FF') ) {return s51;}
- return s352;
-
- }
- };
- DFA.State s136 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_136 = input.LA(1);
- if ( LA17_136=='e' ) {return s256;}
- return s51;
-
- }
- };
- DFA.State s30 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_30 = input.LA(1);
- if ( LA17_30=='s' ) {return s136;}
- return s51;
-
- }
- };
- DFA.State s140 = new DFA.State() {{alt=52;}};
- DFA.State s141 = new DFA.State() {{alt=51;}};
- DFA.State s31 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case '>':
- return s35;
-
- case '=':
- return s140;
-
- default:
- return s141;
- }
- }
- };
- DFA.State s142 = new DFA.State() {{alt=54;}};
- DFA.State s144 = new DFA.State() {{alt=53;}};
- DFA.State s32 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case '=':
- return s142;
-
- case '<':
- return s35;
-
- default:
- return s144;
- }
- }
- };
- DFA.State s145 = new DFA.State() {{alt=55;}};
- DFA.State s33 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_33 = input.LA(1);
- if ( LA17_33=='=' ) {return s145;}
- return s35;
-
- }
- };
- DFA.State s584 = new DFA.State() {{alt=57;}};
- DFA.State s547 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_547 = input.LA(1);
- if ( (LA17_547>='0' && LA17_547<='9')||(LA17_547>='A' && LA17_547<='Z')||LA17_547=='_'||(LA17_547>='a' && LA17_547<='z')||(LA17_547>='\u00C0' && LA17_547<='\u00FF') ) {return s51;}
- return s584;
-
- }
- };
- DFA.State s495 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_495 = input.LA(1);
- if ( LA17_495=='s' ) {return s547;}
- return s51;
-
- }
- };
- DFA.State s434 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_434 = input.LA(1);
- if ( LA17_434=='e' ) {return s495;}
- return s51;
-
- }
- };
- DFA.State s354 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_354 = input.LA(1);
- if ( LA17_354=='h' ) {return s434;}
- return s51;
-
- }
- };
- DFA.State s259 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_259 = input.LA(1);
- if ( LA17_259=='c' ) {return s354;}
- return s51;
-
- }
- };
- DFA.State s147 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_147 = input.LA(1);
- if ( LA17_147=='t' ) {return s259;}
- return s51;
-
- }
- };
- DFA.State s34 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_34 = input.LA(1);
- if ( LA17_34=='a' ) {return s147;}
- return s51;
-
- }
- };
- DFA.State s150 = new DFA.State() {{alt=59;}};
- DFA.State s36 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_36 = input.LA(1);
- if ( (LA17_36>='0' && LA17_36<='9')||(LA17_36>='A' && LA17_36<='Z')||LA17_36=='_'||(LA17_36>='a' && LA17_36<='z')||(LA17_36>='\u00C0' && LA17_36<='\u00FF') ) {return s51;}
- return s150;
-
- }
- };
- DFA.State s40 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_40 = input.LA(1);
- if ( (LA17_40>='0' && LA17_40<='9')||(LA17_40>='A' && LA17_40<='Z')||LA17_40=='_'||(LA17_40>='a' && LA17_40<='z')||(LA17_40>='\u00C0' && LA17_40<='\u00FF') ) {return s51;}
- return s150;
-
- }
- };
- DFA.State s155 = new DFA.State() {{alt=69;}};
- DFA.State s156 = new DFA.State() {{alt=68;}};
- DFA.State s43 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case '*':
- return s155;
-
- case '/':
- return s156;
-
- default:
- return s150;
- }
- }
- };
- DFA.State s50 = new DFA.State() {{alt=64;}};
- DFA.State s44 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- int LA17_44 = input.LA(1);
- if ( (LA17_44>='\u0000' && LA17_44<='\uFFFE') ) {return s50;}
- return s150;
-
- }
- };
- DFA.State s46 = new DFA.State() {{alt=60;}};
- DFA.State s47 = new DFA.State() {{alt=61;}};
- DFA.State s52 = new DFA.State() {{alt=67;}};
- DFA.State s0 = new DFA.State() {
- public DFA.State transition(IntStream input) throws RecognitionException {
- switch ( input.LA(1) ) {
- case ';':
- return s1;
-
- case 'p':
- return s2;
-
- case 'i':
- return s3;
-
- case 'f':
- return s4;
-
- case '.':
- return s5;
-
- case 'e':
- return s6;
-
- case 'g':
- return s7;
-
- case '(':
- return s8;
-
- case ',':
- return s9;
-
- case ')':
- return s10;
-
- case '{':
- return s11;
-
- case '}':
- return s12;
-
- case 'q':
- return s13;
-
- case 't':
- return s14;
-
- case 'r':
- return s15;
-
- case 'w':
- return s16;
-
- case ':':
- return s17;
-
- case 'a':
- return s18;
-
- case 's':
- return s19;
-
- case 'n':
- return s20;
-
- case 'd':
- return s21;
-
- case '[':
- return s22;
-
- case ']':
- return s23;
-
- case 'c':
- return s24;
-
- case '=':
- return s25;
-
- case 'o':
- return s26;
-
- case '|':
- return s27;
-
- case '&':
- return s28;
-
- case '-':
- return s29;
-
- case 'u':
- return s30;
-
- case '>':
- return s31;
-
- case '<':
- return s32;
-
- case '!':
- return s33;
-
- case 'm':
- return s34;
-
- case '%':
- case '*':
- case '+':
- case '?':
- case '@':
- case '\\':
- case '^':
- return s35;
-
- case '$':
- return s36;
-
- case '_':
- return s40;
-
- case '/':
- return s43;
-
- case '\'':
- return s44;
-
- case '\t':
- case '\f':
- case ' ':
- return s46;
-
- case '\n':
- case '\r':
- return s47;
-
- case '0':
- case '1':
- case '2':
- case '3':
- case '4':
- case '5':
- case '6':
- case '7':
- case '8':
- case '9':
- return s49;
-
- case '"':
- return s50;
-
- case 'A':
- case 'B':
- case 'C':
- case 'D':
- case 'E':
- case 'F':
- case 'G':
- case 'H':
- case 'I':
- case 'J':
- case 'K':
- case 'L':
- case 'M':
- case 'N':
- case 'O':
- case 'P':
- case 'Q':
- case 'R':
- case 'S':
- case 'T':
- case 'U':
- case 'V':
- case 'W':
- case 'X':
- case 'Y':
- case 'Z':
- case 'b':
- case 'h':
- case 'j':
- case 'k':
- case 'l':
- case 'v':
- case 'x':
- case 'y':
- case 'z':
- case '\u00C0':
- case '\u00C1':
- case '\u00C2':
- case '\u00C3':
- case '\u00C4':
- case '\u00C5':
- case '\u00C6':
- case '\u00C7':
- case '\u00C8':
- case '\u00C9':
- case '\u00CA':
- case '\u00CB':
- case '\u00CC':
- case '\u00CD':
- case '\u00CE':
- case '\u00CF':
- case '\u00D0':
- case '\u00D1':
- case '\u00D2':
- case '\u00D3':
- case '\u00D4':
- case '\u00D5':
- case '\u00D6':
- case '\u00D7':
- case '\u00D8':
- case '\u00D9':
- case '\u00DA':
- case '\u00DB':
- case '\u00DC':
- case '\u00DD':
- case '\u00DE':
- case '\u00DF':
- case '\u00E0':
- case '\u00E1':
- case '\u00E2':
- case '\u00E3':
- case '\u00E4':
- case '\u00E5':
- case '\u00E6':
- case '\u00E7':
- case '\u00E8':
- case '\u00E9':
- case '\u00EA':
- case '\u00EB':
- case '\u00EC':
- case '\u00ED':
- case '\u00EE':
- case '\u00EF':
- case '\u00F0':
- case '\u00F1':
- case '\u00F2':
- case '\u00F3':
- case '\u00F4':
- case '\u00F5':
- case '\u00F6':
- case '\u00F7':
- case '\u00F8':
- case '\u00F9':
- case '\u00FA':
- case '\u00FB':
- case '\u00FC':
- case '\u00FD':
- case '\u00FE':
- case '\u00FF':
- return s51;
-
- case '#':
- return s52;
-
- default:
- if (backtracking>0) {failed=true; return null;}
- NoViableAltException nvae =
- new NoViableAltException("", 17, 0, input);
-
- throw nvae; }
- }
- };
-
- }
-}
\ No newline at end of file
Modified: labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/lang/descr/LiteralRestrictionDescr.java
===================================================================
--- labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/lang/descr/LiteralRestrictionDescr.java 2006-11-29 11:43:42 UTC (rev 7927)
+++ labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/lang/descr/LiteralRestrictionDescr.java 2006-11-29 11:48:37 UTC (rev 7928)
@@ -56,4 +56,8 @@
public String getText() {
return this.text;
}
+
+ public String toString() {
+ return this.evaluator + " " + this.text;
+ }
}
\ No newline at end of file
Added: labs/jbossrules/trunk/drools-compiler/src/main/resources/org/drools/lang/DRL.g
===================================================================
--- labs/jbossrules/trunk/drools-compiler/src/main/resources/org/drools/lang/DRL.g 2006-11-29 11:43:42 UTC (rev 7927)
+++ labs/jbossrules/trunk/drools-compiler/src/main/resources/org/drools/lang/DRL.g 2006-11-29 11:48:37 UTC (rev 7928)
@@ -0,0 +1,1339 @@
+grammar DRL;
+
+ at parser::header {
+ package org.drools.lang;
+ import java.util.List;
+ import java.util.ArrayList;
+ import java.util.Iterator;
+ import java.util.Map;
+ import java.util.HashMap;
+ import java.util.StringTokenizer;
+ import org.drools.lang.descr.*;
+ import org.drools.compiler.SwitchingCommonTokenStream;
+}
+
+ at parser::members {
+ private ExpanderResolver expanderResolver;
+ private Expander expander;
+ private boolean expanderDebug = false;
+ private PackageDescr packageDescr;
+ private List errors = new ArrayList();
+ private String source = "unknown";
+ private int lineOffset = 0;
+ private DescrFactory factory = new DescrFactory();
+ private boolean parserDebug = false;
+
+ public void setParserDebug(boolean parserDebug) {
+ this.parserDebug = parserDebug;
+ }
+
+ public void debug(String message) {
+ if ( parserDebug )
+ System.err.println( "drl parser: " + message );
+ }
+
+ public void setSource(String source) {
+ this.source = source;
+ }
+ public DescrFactory getFactory() {
+ return factory;
+ }
+
+ /**
+ * This may be set to enable debuggin of DSLs/expanders.
+ * If set to true, expander stuff will be sent to the Std out.
+ */
+ public void setExpanderDebug(boolean status) {
+ expanderDebug = status;
+ }
+ public String getSource() {
+ return this.source;
+ }
+
+ public PackageDescr getPackageDescr() {
+ return packageDescr;
+ }
+
+ private int offset(int line) {
+ return line + lineOffset;
+ }
+
+ /**
+ * This will set the offset to record when reparsing. Normally is zero of course
+ */
+ public void setLineOffset(int i) {
+ this.lineOffset = i;
+ }
+
+ public void setExpanderResolver(ExpanderResolver expanderResolver) {
+ this.expanderResolver = expanderResolver;
+ }
+
+ public ExpanderResolver getExpanderResolver() {
+ return expanderResolver;
+ }
+
+ /** Expand the LHS */
+ private String runWhenExpander(String text, int line) throws RecognitionException {
+ String expanded = text.trim();
+ if (expanded.startsWith(">")) {
+ expanded = expanded.substring(1); //escape !!
+ } else {
+ try {
+ expanded = expander.expand( "when", text );
+ } catch (Exception e) {
+ this.errors.add(new ExpanderException("Unable to expand: " + text + ". Due to " + e.getMessage(), line));
+ return "";
+ }
+ }
+ if (expanderDebug) {
+ System.out.println("Expanding LHS: " + text + " ----> " + expanded + " --> from line: " + line);
+ }
+ return expanded;
+
+ }
+
+ /** This will apply a list of constraints to an LHS block */
+ private String applyConstraints(List constraints, String block) {
+ //apply the constraints as a comma seperated list inside the previous block
+ //the block will end in something like "foo()" and the constraint patterns will be put in the ()
+ if (constraints == null) {
+ return block;
+ }
+ StringBuffer list = new StringBuffer();
+ for (Iterator iter = constraints.iterator(); iter.hasNext();) {
+ String con = (String) iter.next();
+ list.append("\n\t\t");
+ list.append(con);
+ if (iter.hasNext()) {
+ list.append(",");
+ }
+ }
+ if (block.endsWith("()")) {
+ return block.substring(0, block.length() - 2) + "(" + list.toString() + ")";
+ } else {
+ return block + "(" + list.toString() + ")";
+ }
+ }
+
+ /** Reparse the results of the expansion */
+ private void reparseLhs(String text, AndDescr descrs) throws RecognitionException {
+ CharStream charStream = new ANTLRStringStream( text );
+ DRLLexer lexer = new DRLLexer( charStream );
+ TokenStream tokenStream = new CommonTokenStream( lexer );
+ DRLParser parser = new DRLParser( tokenStream );
+ parser.setLineOffset( descrs.getLine() );
+ parser.normal_lhs_block(descrs);
+
+ if (parser.hasErrors()) {
+ this.errors.addAll(parser.getErrors());
+ }
+ if (expanderDebug) {
+ System.out.println("Reparsing LHS: " + text + " --> successful:" + !parser.hasErrors());
+ }
+
+ }
+
+ /** Expand a line on the RHS */
+ private String runThenExpander(String text, int startLine) {
+ //System.err.println( "expand THEN [" + text + "]" );
+ StringTokenizer lines = new StringTokenizer( text, "\n\r" );
+
+ StringBuffer expanded = new StringBuffer();
+
+ String eol = System.getProperty( "line.separator" );
+
+ while ( lines.hasMoreTokens() ) {
+ startLine++;
+ String line = lines.nextToken();
+ line = line.trim();
+ if ( line.length() > 0 ) {
+ if ( line.startsWith( ">" ) ) {
+ expanded.append( line.substring( 1 ) );
+ expanded.append( eol );
+ } else {
+ try {
+ expanded.append( expander.expand( "then", line ) );
+ expanded.append( eol );
+ } catch (Exception e) {
+ this.errors.add(new ExpanderException("Unable to expand: " + line + ". Due to " + e.getMessage(), startLine));
+ }
+ }
+ }
+ }
+
+ if (expanderDebug) {
+ System.out.println("Expanding RHS: " + text + " ----> " + expanded.toString() + " --> from line starting: " + startLine);
+ }
+
+ return expanded.toString();
+ }
+
+
+
+ private String getString(Token token) {
+ String orig = token.getText();
+ return orig.substring( 1, orig.length() -1 );
+ }
+
+ public void reportError(RecognitionException ex) {
+ // if we've already reported an error and have not matched a token
+ // yet successfully, don't report any errors.
+ if ( errorRecovery ) {
+ return;
+ }
+ errorRecovery = true;
+
+ ex.line = offset(ex.line); //add the offset if there is one
+ errors.add( ex );
+ }
+
+ /** return the raw RecognitionException errors */
+ public List getErrors() {
+ return errors;
+ }
+
+ /** Return a list of pretty strings summarising the errors */
+ public List getErrorMessages() {
+ List messages = new ArrayList();
+ for ( Iterator errorIter = errors.iterator() ; errorIter.hasNext() ; ) {
+ messages.add( createErrorMessage( (RecognitionException) errorIter.next() ) );
+ }
+ return messages;
+ }
+
+ /** return true if any parser errors were accumulated */
+ public boolean hasErrors() {
+ return ! errors.isEmpty();
+ }
+
+ /** This will take a RecognitionException, and create a sensible error message out of it */
+ public String createErrorMessage(RecognitionException e)
+ {
+ StringBuffer message = new StringBuffer();
+ message.append( source + ":"+e.line+":"+e.charPositionInLine+" ");
+ if ( e instanceof MismatchedTokenException ) {
+ MismatchedTokenException mte = (MismatchedTokenException)e;
+ message.append("mismatched token: "+
+ e.token+
+ "; expecting type "+
+ tokenNames[mte.expecting]);
+ }
+ else if ( e instanceof MismatchedTreeNodeException ) {
+ MismatchedTreeNodeException mtne = (MismatchedTreeNodeException)e;
+ message.append("mismatched tree node: "+
+ mtne.foundNode+
+ "; expecting type "+
+ tokenNames[mtne.expecting]);
+ }
+ else if ( e instanceof NoViableAltException ) {
+ NoViableAltException nvae = (NoViableAltException)e;
+ message.append( "Unexpected token '" + e.token.getText() + "'" );
+ /*
+ message.append("decision=<<"+nvae.grammarDecisionDescription+">>"+
+ " state "+nvae.stateNumber+
+ " (decision="+nvae.decisionNumber+
+ ") no viable alt; token="+
+ e.token);
+ */
+ }
+ else if ( e instanceof EarlyExitException ) {
+ EarlyExitException eee = (EarlyExitException)e;
+ message.append("required (...)+ loop (decision="+
+ eee.decisionNumber+
+ ") did not match anything; token="+
+ e.token);
+ }
+ else if ( e instanceof MismatchedSetException ) {
+ MismatchedSetException mse = (MismatchedSetException)e;
+ message.append("mismatched token '"+
+ e.token+
+ "' expecting set "+mse.expecting);
+ }
+ else if ( e instanceof MismatchedNotSetException ) {
+ MismatchedNotSetException mse = (MismatchedNotSetException)e;
+ message.append("mismatched token '"+
+ e.token+
+ "' expecting set "+mse.expecting);
+ }
+ else if ( e instanceof FailedPredicateException ) {
+ FailedPredicateException fpe = (FailedPredicateException)e;
+ message.append("rule "+fpe.ruleName+" failed predicate: {"+
+ fpe.predicateText+"}?");
+ } else if (e instanceof GeneralParseException) {
+ message.append(" " + e.getMessage());
+ }
+ return message.toString();
+ }
+
+ void checkTrailingSemicolon(String text, int line) {
+ if (text.trim().endsWith( ";" ) ) {
+ this.errors.add( new GeneralParseException( "Trailing semi-colon not allowed", offset(line) ) );
+ }
+ }
+
+}
+
+ at lexer::header {
+ package org.drools.lang;
+}
+
+opt_semicolon
+ : ';'?
+ ;
+
+compilation_unit
+ : prolog
+ ( statement )*
+ ;
+
+prolog
+ @init {
+ String packageName = "";
+ }
+ : ( name=package_statement { packageName = name; } )?
+ {
+ this.packageDescr = new PackageDescr( name );
+ }
+ ;
+
+statement
+ :
+ ( import_statement
+ | function_import_statement
+ | global
+ | function
+ | t=template {this.packageDescr.addFactTemplate( t ); }
+ | r=rule {this.packageDescr.addRule( r ); }
+ | q=query {this.packageDescr.addRule( q ); }
+ )
+ ;
+
+package_statement returns [String packageName]
+ @init{
+ packageName = null;
+ }
+ :
+ 'package' name=dotted_name opt_semicolon
+ {
+ packageName = name;
+ }
+ ;
+
+
+import_statement
+ : 'import' name=import_name opt_semicolon
+ {
+ if (packageDescr != null)
+ packageDescr.addImport( name );
+ }
+ ;
+
+function_import_statement
+ : 'import' 'function' name=import_name opt_semicolon
+ {
+ if (packageDescr != null)
+ packageDescr.addFunctionImport( name );
+ }
+ ;
+
+
+import_name returns [String name]
+ @init {
+ name = null;
+ }
+ :
+ id=ID { name=id.getText(); } ( '.' id=ID { name = name + "." + id.getText(); } )* (star='.*' { name = name + star.getText(); })?
+ ;
+
+
+global
+ @init {
+ }
+ :
+ 'global' type=dotted_name id=ID opt_semicolon
+ {
+ packageDescr.addGlobal( id.getText(), type );
+ }
+ ;
+
+
+function
+ @init {
+ FunctionDescr f = null;
+ }
+ :
+ loc='function' (retType=dotted_name)? name=ID
+ {
+ //System.err.println( "function :: " + name.getText() );
+ f = new FunctionDescr( name.getText(), retType );
+ f.setLocation(offset(loc.getLine()), loc.getCharPositionInLine());
+ }
+ '('
+ ( (paramType=dotted_name)? paramName=argument
+ {
+ f.addParameter( paramType, paramName );
+ }
+ ( ',' (paramType=dotted_name)? paramName=argument
+ {
+ f.addParameter( paramType, paramName );
+ }
+ )*
+ )?
+ ')'
+ body=CURLY_CHUNK
+ {
+ //strip out '{','}'
+ String bodys = body.getText();
+ bodys = bodys.substring(1,bodys.length()-1);
+ f.setText( bodys );
+
+ packageDescr.addFunction( f );
+ }
+ ;
+
+
+
+query returns [QueryDescr query]
+ @init {
+ query = null;
+ }
+ :
+ loc='query' queryName=word
+ {
+ query = new QueryDescr( queryName, null );
+ query.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+ AndDescr lhs = new AndDescr(); query.setLhs( lhs );
+ lhs.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+ }
+ (
+// { expander != null }? expander_lhs_block[lhs] |
+ normal_lhs_block[lhs]
+ )
+
+ 'end'
+ ;
+
+
+template returns [FactTemplateDescr template]
+ @init {
+ template = null;
+ }
+ :
+ loc='template' templateName=ID opt_semicolon
+ {
+ template = new FactTemplateDescr(templateName.getText());
+ template.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+ }
+ (
+ slot=template_slot
+ {
+ template.addFieldTemplate(slot);
+ }
+ )+
+ 'end' opt_semicolon
+ ;
+
+template_slot returns [FieldTemplateDescr field]
+ @init {
+ field = null;
+ }
+ :
+ //name=ID ':' fieldType=dotted_name ( EOL | ';' )
+ fieldType=dotted_name name=ID opt_semicolon
+ {
+
+
+ field = new FieldTemplateDescr(name.getText(), fieldType);
+ field.setLocation( offset(name.getLine()), name.getCharPositionInLine() );
+ }
+ ;
+
+rule returns [RuleDescr rule]
+ @init {
+ rule = null;
+ String consequence = "";
+ }
+ :
+ loc='rule' ruleName=word
+ {
+ debug( "start rule: " + ruleName );
+ rule = new RuleDescr( ruleName, null );
+ rule.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+ }
+ rule_attributes[rule]
+ ( loc='when' ':'?
+ {
+ AndDescr lhs = new AndDescr(); rule.setLhs( lhs );
+ lhs.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+ }
+ (
+// { expander != null }? expander_lhs_block[lhs] |
+ normal_lhs_block[lhs]
+ )
+
+ )?
+ rhs=RHS
+ {
+ consequence = rhs.getText();
+ //strip out "then", "end"
+ consequence = consequence.substring(4,consequence.length()-3);
+
+ if ( expander != null ) {
+ String expanded = runThenExpander( consequence, offset(rhs.getLine()) );
+ rule.setConsequence( expanded );
+ } else {
+ rule.setConsequence( consequence );
+ }
+ rule.setConsequenceLocation(offset(rhs.getLine()), rhs.getCharPositionInLine());
+ debug( "end rule: " + ruleName );
+ }
+ ;
+
+
+
+rule_attributes[RuleDescr rule]
+ :
+ ('attributes' ':')?
+ ( ','? a=rule_attribute
+ {
+ rule.addAttribute( a );
+ }
+ )*
+ ;
+
+
+
+rule_attribute returns [AttributeDescr d]
+ @init {
+ d = null;
+ }
+ :
+ a=salience { d = a; }
+ | a=no_loop { d = a; }
+ | a=agenda_group { d = a; }
+ | a=duration { d = a; }
+ | a=activation_group { d = a; }
+ | a=auto_focus { d = a; }
+
+ ;
+
+
+salience returns [AttributeDescr d ]
+ @init {
+ d = null;
+ }
+ :
+ loc='salience' i=INT opt_semicolon
+ {
+ d = new AttributeDescr( "salience", i.getText() );
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+ }
+ ;
+
+no_loop returns [AttributeDescr d]
+ @init {
+ d = null;
+ }
+ :
+ (
+ loc='no-loop' opt_semicolon
+ {
+ d = new AttributeDescr( "no-loop", "true" );
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+ }
+ )
+ |
+ (
+ loc='no-loop' t=BOOL opt_semicolon
+ {
+ d = new AttributeDescr( "no-loop", t.getText() );
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+ }
+
+ )
+
+ ;
+
+auto_focus returns [AttributeDescr d]
+ @init {
+ d = null;
+ }
+ :
+ (
+ loc='auto-focus' opt_semicolon
+ {
+ d = new AttributeDescr( "auto-focus", "true" );
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+ }
+ )
+ |
+ (
+ loc='auto-focus' t=BOOL opt_semicolon
+ {
+ d = new AttributeDescr( "auto-focus", t.getText() );
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+ }
+
+ )
+
+ ;
+
+activation_group returns [AttributeDescr d]
+ @init {
+ d = null;
+ }
+ :
+ loc='activation-group' name=STRING opt_semicolon
+ {
+ d = new AttributeDescr( "activation-group", getString( name ) );
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+ }
+ ;
+
+agenda_group returns [AttributeDescr d]
+ @init {
+ d = null;
+ }
+ :
+ loc='agenda-group' name=STRING opt_semicolon
+ {
+ d = new AttributeDescr( "agenda-group", getString( name ) );
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+ }
+ ;
+
+
+duration returns [AttributeDescr d]
+ @init {
+ d = null;
+ }
+ :
+ loc='duration' i=INT
+ {
+ d = new AttributeDescr( "duration", i.getText() );
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+ }
+ ;
+
+
+normal_lhs_block[AndDescr descrs]
+ :
+ ( d=lhs
+ { descrs.addDescr( d ); }
+ )*
+ ;
+
+/*
+expander_lhs_block[AndDescr descrs]
+ @init {
+ String lhsBlock = null;
+ String eol = System.getProperty( "line.separator" );
+ List constraints = null;
+ }
+ :
+ (options{greedy=false;} :
+ text=paren_chunk (options{greedy=true;} : loc=EOL)
+ {
+ //only expand non null
+ if (text != null) {
+ if (text.trim().startsWith("-")) {
+ if (constraints == null) {
+ constraints = new ArrayList();
+ }
+ constraints.add(runWhenExpander( text, offset(loc.getLine())));
+ } else {
+ if (constraints != null) {
+ lhsBlock = applyConstraints(constraints, lhsBlock);
+ constraints = null;
+ }
+
+
+ if (lhsBlock == null) {
+ lhsBlock = runWhenExpander( text, offset(loc.getLine()));
+ } else {
+ lhsBlock = lhsBlock + eol + runWhenExpander( text, offset(loc.getLine()));
+ }
+ }
+ text = null;
+ }
+ }
+
+
+ )*
+
+ {
+ //flush out any constraints left handing before the RHS
+ lhsBlock = applyConstraints(constraints, lhsBlock);
+ if (lhsBlock != null) {
+ reparseLhs(lhsBlock, descrs);
+ }
+ }
+
+ ;
+*/
+
+lhs returns [BaseDescr d]
+ @init {
+ d=null;
+ }
+ : l=lhs_or { d = l; }
+ ;
+
+
+lhs_column returns [BaseDescr d]
+ @init {
+ d=null;
+ }
+ : f=fact_binding { d = f; }
+ | f=fact { d = f; }
+ ;
+
+from_statement returns [FromDescr d]
+ @init {
+ d=factory.createFrom();
+ }
+ :
+ 'from' ds=from_source
+ {
+ d.setDataSource(ds);
+
+ }
+
+
+
+ ;
+
+from_source returns [DeclarativeInvokerDescr ds]
+ @init {
+ ds = null;
+ }
+ :
+ (var=ID '.' field=ID ('[' arg=argument_value ']')?
+
+ {
+ FieldAccessDescr fa;
+ if ( arg == null ) {
+ fa = new FieldAccessDescr(var.getText(), field.getText());
+ } else {
+ fa = new FieldAccessDescr(var.getText(), field.getText(), arg);
+ }
+ fa.setLocation( offset(var.getLine()), var.getCharPositionInLine() );
+ ds = fa;
+ }
+
+ )
+ |
+ (var=ID '.' method=ID '(' args=argument_list ')'
+ {
+ MethodAccessDescr ma = new MethodAccessDescr(var.getText(), method.getText());
+ ma.setLocation( offset(var.getLine()), var.getCharPositionInLine() );
+ ma.setArguments(args);
+ ds = ma;
+ }
+ )
+ |
+ (functionName=ID '(' args=argument_list ')'
+ {
+ FunctionCallDescr fc = new FunctionCallDescr(functionName.getText());
+ fc.setLocation( offset(functionName.getLine()), functionName.getCharPositionInLine() );
+ fc.setArguments(args);
+ ds = fc;
+ }
+
+
+ )
+
+ ;
+
+accumulate_statement returns [AccumulateDescr d]
+ @init {
+ d = factory.createAccumulate();
+ }
+ :
+ loc='from' 'accumulate'
+ {
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+ }
+ '(' column=lhs_column ','
+ {
+ d.setSourceColumn( (ColumnDescr)column );
+ }
+ 'init' text=paren_chunk ','
+ {
+ d.setInitCode( text.substring(1, text.length()-1) );
+ }
+ 'action' text=paren_chunk ','
+ {
+ d.setActionCode( text.substring(1, text.length()-1) );
+ }
+ 'result' text=paren_chunk ')'
+ {
+ d.setResultCode( text.substring(1, text.length()-1) );
+ }
+ ;
+
+collect_statement returns [CollectDescr d]
+ @init {
+ d = factory.createCollect();
+ }
+ :
+ loc='from' 'collect'
+ {
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+ }
+ '(' column=lhs_column ')'
+ {
+ d.setSourceColumn( (ColumnDescr)column );
+ }
+ ;
+
+argument_list returns [ArrayList args]
+ @init {
+ args = new ArrayList();
+ }
+ :
+ (param=argument_value {
+ if (param != null) {
+ args.add(param);
+ }
+ }
+
+ (
+ ',' param=argument_value {
+ if (param != null) {
+ args.add(param);
+ }
+ }
+ )*
+ )?
+ ;
+
+argument_value returns [ArgumentValueDescr value]
+ @init {
+ value = null;
+ String text = null;
+ }
+ : ( t=STRING { text = getString( t ); value=new ArgumentValueDescr(ArgumentValueDescr.STRING, text);}
+ | t=INT { text = t.getText(); value=new ArgumentValueDescr(ArgumentValueDescr.INTEGRAL, text);}
+ | t=FLOAT { text = t.getText(); value=new ArgumentValueDescr(ArgumentValueDescr.DECIMAL, text); }
+ | t=BOOL { text = t.getText(); value=new ArgumentValueDescr(ArgumentValueDescr.BOOLEAN, text); }
+ | t=ID { text = t.getText(); value=new ArgumentValueDescr(ArgumentValueDescr.VARIABLE, text);}
+ | t='null' { text = "null"; value=new ArgumentValueDescr(ArgumentValueDescr.NULL, text);}
+ | m=inline_map { value=new ArgumentValueDescr(ArgumentValueDescr.MAP, m.getKeyValuePairs() ); }
+ | a=inline_array { value = new ArgumentValueDescr(ArgumentValueDescr.LIST, a ); }
+ )
+ ;
+
+inline_map returns [ArgumentValueDescr.MapDescr mapDescr]
+ @init {
+ mapDescr = new ArgumentValueDescr.MapDescr();
+ }
+ : '{'
+ ( key=argument_value '=>' value=argument_value {
+ if ( key != null ) {
+ mapDescr.add( new ArgumentValueDescr.KeyValuePairDescr( key, value ) );
+ }
+ }
+ )
+
+ ( (EOL)? ',' (EOL)? key=argument_value '=>' value=argument_value {
+ if ( key != null ) {
+ mapDescr.add( new ArgumentValueDescr.KeyValuePairDescr( key, value ) );
+ }
+ }
+ )*
+ '}'
+ ;
+
+inline_array returns [List list]
+ @init {
+ list = new ArrayList();
+ }
+ :
+ '[' arg=argument_value { list.add(arg); }
+
+ ( EOL? ',' EOL? arg=argument_value { list.add(arg); } )*
+ ']'
+
+
+ ;
+
+fact_binding returns [BaseDescr d]
+ @init {
+ d=null;
+ boolean multi=false;
+ }
+ :
+ id=ID
+
+ ':' fe=fact_expression[id.getText()]
+ {
+ d=fe;
+ }
+ ;
+
+ fact_expression[String id] returns [BaseDescr pd]
+ @init {
+ pd = null;
+ boolean multi = false;
+ }
+ : '(' fe=fact_expression_in_paren[id] ')' { pd=fe; }
+ | f=fact
+ {
+ ((ColumnDescr)f).setIdentifier( id );
+ pd = f;
+ }
+ ;
+
+// in parenthesis alternative is allowed
+ fact_expression_in_paren[String id] returns [BaseDescr pd]
+ @init {
+ pd = null;
+ boolean multi = false;
+ }
+ : '(' fe=fact_expression_in_paren[id]')' { pd=fe; }
+ | f=fact
+ {
+ ((ColumnDescr)f).setIdentifier( id );
+ pd = f;
+ }
+ ( ('or'|'||')
+ { if ( ! multi ) {
+ BaseDescr first = pd;
+ pd = new OrDescr();
+ ((OrDescr)pd).addDescr( first );
+ multi=true;
+ }
+ }
+ f=fact
+ {
+ ((ColumnDescr)f).setIdentifier( id );
+ ((OrDescr)pd).addDescr( f );
+ }
+ )*
+ ;
+
+fact returns [BaseDescr d]
+ @init {
+ d=null;
+ }
+ : id=dotted_name
+ {
+ d = new ColumnDescr( id );
+ }
+ loc='(' {
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+ } ( c=constraints
+ {
+ for ( Iterator cIter = c.iterator() ; cIter.hasNext() ; ) {
+ ((ColumnDescr)d).addDescr( (BaseDescr) cIter.next() );
+ }
+ }
+
+ )? endLoc=')'
+ {
+ d.setEndLocation( offset(endLoc.getLine()), endLoc.getCharPositionInLine() );
+ }
+ ;
+
+
+constraints returns [List constraints]
+ @init {
+ constraints = new ArrayList();
+ }
+ : (constraint[constraints]|predicate[constraints])
+ ( ',' (constraint[constraints]|predicate[constraints]))*
+ ;
+
+constraint[List constraints]
+ @init {
+ BaseDescr d = null;
+ FieldConstraintDescr fc = null;
+ }
+ :
+ ( fb=ID ':' )?
+ f=ID
+ {
+ if ( fb != null ) {
+ d = new FieldBindingDescr( f.getText(), fb.getText() );
+ d.setLocation( offset(f.getLine()), f.getCharPositionInLine() );
+ constraints.add( d );
+ }
+ fc = new FieldConstraintDescr(f.getText());
+ fc.setLocation( offset(f.getLine()), f.getCharPositionInLine() );
+ }
+ (
+ rd=constraint_expression
+ {
+ fc.addRestriction(rd);
+ constraints.add(fc);
+ }
+ (
+ con=('&'|'|')
+ {
+ if (con.getText().equals("&") ) {
+ fc.addRestriction(new RestrictionConnectiveDescr(RestrictionConnectiveDescr.AND));
+ } else {
+ fc.addRestriction(new RestrictionConnectiveDescr(RestrictionConnectiveDescr.OR));
+ }
+ }
+ rd=constraint_expression
+ {
+ fc.addRestriction(rd);
+ }
+ )*
+ )?
+ ;
+
+constraint_expression returns [RestrictionDescr rd]
+ :
+ op=( '=='
+ | '>'
+ | '>='
+ | '<'
+ | '<='
+ | '!='
+ | 'contains'
+ | 'matches'
+ | 'excludes'
+ )
+ ( bvc=ID
+ {
+ rd = new VariableRestrictionDescr(op.getText(), bvc.getText());
+ }
+ |
+ lc=enum_constraint
+ {
+ rd = new LiteralRestrictionDescr(op.getText(), lc, true);
+ }
+ |
+ lc=literal_constraint
+ {
+ rd = new LiteralRestrictionDescr(op.getText(), lc);
+ }
+ | rvc=retval_constraint
+ {
+ rd = new ReturnValueRestrictionDescr(op.getText(), rvc);
+ }
+ )
+ ;
+
+literal_constraint returns [String text]
+ @init {
+ text = null;
+ }
+ : ( t=STRING { text = getString( t ); } //t.getText(); text=text.substring( 1, text.length() - 1 ); }
+ | t=INT { text = t.getText(); }
+ | t=FLOAT { text = t.getText(); }
+ | t=BOOL { text = t.getText(); }
+ | t='null' { text = null; }
+ )
+ ;
+
+enum_constraint returns [String text]
+ @init {
+ text = null;
+ }
+ : (cls=ID '.' en=ID) { text = cls.getText() + "." + en.getText(); }
+ ;
+
+
+predicate[List constraints]
+ :
+ decl=ID ':' field=ID '->' text=paren_chunk
+ {
+ String body = text.substring(1, text.length()-1);
+ PredicateDescr d = new PredicateDescr(field.getText(), decl.getText(), body );
+ constraints.add( d );
+ }
+ ;
+
+paren_chunk returns [String text]
+ :
+ {
+ ((CommonTokenStream)input).setTokenTypeChannel(WS, Token.DEFAULT_CHANNEL);
+ }
+ loc='('
+ {
+ int parenCounter = 1;
+ StringBuffer buf = new StringBuffer();
+ buf.append(loc.getText());
+
+ do {
+ Token nextToken = input.LT(1);
+ buf.append( nextToken.getText() );
+
+ int nextTokenId = nextToken.getType();
+ if( nextTokenId == RIGHT_PAREN ) {
+ parenCounter--;
+ } else if( nextTokenId == LEFT_PAREN ) {
+ parenCounter++;
+ }
+ if( parenCounter == 0 ) {
+ break;
+ }
+ input.consume();
+ } while( true );
+ text = buf.toString();
+ ((CommonTokenStream)input).setTokenTypeChannel(WS, Token.HIDDEN_CHANNEL);
+ }
+ ')'
+ ;
+
+retval_constraint returns [String text]
+ @init {
+ text = null;
+ }
+ :
+ c=paren_chunk { text = c.substring(1, c.length()-1); }
+ ;
+
+
+
+
+
+
+lhs_or returns [BaseDescr d]
+ @init{
+ d = null;
+ }
+ :
+ { OrDescr or = null; }
+ left=lhs_and {d = left; }
+ ( ('or'|'||')
+ right=lhs_and
+ {
+ if ( or == null ) {
+ or = new OrDescr();
+ or.addDescr( left );
+ d = or;
+ }
+
+ or.addDescr( right );
+ }
+ )*
+ ;
+
+lhs_and returns [BaseDescr d]
+ @init{
+ d = null;
+ }
+ :
+ { AndDescr and = null; }
+ left=lhs_unary { d = left; }
+ ( ('and'|'&&')
+ right=lhs_unary
+ {
+ if ( and == null ) {
+ and = new AndDescr();
+ and.addDescr( left );
+ d = and;
+ }
+
+ and.addDescr( right );
+ }
+ )*
+ ;
+
+lhs_unary returns [BaseDescr d]
+ @init {
+ d = null;
+ }
+ : ( u=lhs_exist
+ | u=lhs_not
+ | u=lhs_eval
+ | u=lhs_column (
+ (fm=from_statement {fm.setColumn((ColumnDescr) u); u=fm;})
+ |(ac=accumulate_statement {ac.setResultColumn((ColumnDescr) u); u=ac;})
+ |(cs=collect_statement {cs.setResultColumn((ColumnDescr) u); u=cs;})
+ )?
+ | '(' u=lhs ')'
+ ) { d = u; }
+ opt_semicolon
+ ;
+
+lhs_exist returns [BaseDescr d]
+ @init {
+ d = null;
+ }
+ : loc='exists' ('(' column=lhs_column ')' | column=lhs_column)
+ {
+ d = new ExistsDescr( (ColumnDescr) column );
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+ }
+ ;
+
+lhs_not returns [NotDescr d]
+ @init {
+ d = null;
+ }
+ : loc='not' ('(' column=lhs_column ')' | column=lhs_column)
+ {
+ d = new NotDescr( (ColumnDescr) column );
+ d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() );
+ }
+ ;
+
+lhs_eval returns [BaseDescr d]
+ @init {
+ d = null;
+ }
+ : loc='eval' c=paren_chunk
+ {
+ String body = c.substring(1, c.length()-1);
+ checkTrailingSemicolon( body, offset(loc.getLine()) );
+ d = new EvalDescr( body );
+ }
+ ;
+
+dotted_name returns [String name]
+ @init {
+ name = null;
+ }
+ :
+ id=ID { name=id.getText(); } ( '.' id=ID { name = name + "." + id.getText(); } )* ( '[' ']' { name = name + "[]";})*
+ ;
+
+argument returns [String name]
+ @init {
+ name = null;
+ }
+ :
+ id=ID { name=id.getText(); } ( '[' ']' { name = name + "[]";})*
+ ;
+
+
+word returns [String word]
+ @init{
+ word = null;
+ }
+ : id=ID { word=id.getText(); }
+ | 'import' { word="import"; }
+ | 'use' { word="use"; }
+ | 'rule' { word="rule"; }
+ | 'query' { word="query"; }
+ | 'salience' { word="salience"; }
+ | 'no-loop' { word="no-loop"; }
+ | 'when' { word="when"; }
+ | 'then' { word="then"; }
+ | 'end' { word="end"; }
+ | str=STRING { word=getString(str);} //str.getText(); word=word.substring( 1, word.length()-1 ); }
+ ;
+
+/*
+MISC :
+ '!' | '@' | '$' | '%' | '^' | '&' | '*' | '_' | '-' | '+' | '?'
+ | '|' | ',' | '{' | '}' | '[' | ']' | '=' | '/' | '(' | ')' | '\'' | '\\'
+ | '||' | '&&' | '<<<' | '++' | '--' | '>>>' | '==' | '+=' | '=+' | '-=' | '=-' |'*=' | '=*'
+ | '/=' | '=/' | '>>='
+
+ ;
+*/
+
+RHS :'then' (options{greedy=false;} : .)* ('\n'|'\r') (' '|'\t'|'\f')* 'end'
+ ;
+
+WS : ( ' '
+ | '\t'
+ | '\f'
+ | EOL
+ )
+ { $channel=HIDDEN; }
+ ;
+
+fragment
+EOL :
+ ( ( '\r\n' )=> '\r\n' // Evil DOS
+ | '\r' // Macintosh
+ | '\n' // Unix (the right way)
+ )
+ ;
+
+INT
+ : ('-')?('0'..'9')+
+ ;
+
+FLOAT
+ : ('-')?('0'..'9')+ '.' ('0'..'9')+
+ ;
+
+STRING
+ : ('"' ( EscapeSequence | ~('\\'|'"') )* '"')
+ | ('\'' ( EscapeSequence | ~('\\'|'\'') )* '\'')
+ ;
+
+fragment
+HexDigit : ('0'..'9'|'a'..'f'|'A'..'F') ;
+
+fragment
+EscapeSequence
+ : '\\' ('b'|'t'|'n'|'f'|'r'|'\"'|'\''|'\\')
+ | UnicodeEscape
+ | OctalEscape
+ ;
+
+fragment
+OctalEscape
+ : '\\' ('0'..'3') ('0'..'7') ('0'..'7')
+ | '\\' ('0'..'7') ('0'..'7')
+ | '\\' ('0'..'7')
+ ;
+
+fragment
+UnicodeEscape
+ : '\\' 'u' HexDigit HexDigit HexDigit HexDigit
+ ;
+
+BOOL
+ : ('true'|'false')
+ ;
+
+ID
+ : ('a'..'z'|'A'..'Z'|'_'|'$' | '\u00c0'..'\u00ff')('a'..'z'|'A'..'Z'|'_'|'0'..'9' | '\u00c0'..'\u00ff')*
+ ;
+
+
+SH_STYLE_SINGLE_LINE_COMMENT
+ : '#' ( options{greedy=false;} : .)* EOL /* ('\r')? '\n' */
+ { $channel=HIDDEN; }
+ ;
+
+
+C_STYLE_SINGLE_LINE_COMMENT
+ : '//' ( options{greedy=false;} : .)* EOL // ('\r')? '\n'
+ { $channel=HIDDEN; }
+ ;
+
+
+CURLY_CHUNK
+ :
+ '{' ( CURLY_CHUNK | NO_CURLY )* '}'
+ ;
+
+LEFT_PAREN
+ : '('
+ ;
+
+RIGHT_PAREN
+ : ')'
+ ;
+
+fragment
+NO_PAREN
+ : ~('('|')')
+ ;
+
+fragment
+NO_CURLY
+ : ~('{'|'}')
+ ;
+
+MULTI_LINE_COMMENT
+ : '/*' (options{greedy=false;} : .)* '*/'
+ { $channel=HIDDEN; }
+ ;
+
+IGNORE
+ : .
+ ;
Modified: labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/IndexedNumber.java
===================================================================
--- labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/IndexedNumber.java 2006-11-29 11:43:42 UTC (rev 7927)
+++ labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/IndexedNumber.java 2006-11-29 11:48:37 UTC (rev 7928)
@@ -31,6 +31,8 @@
private int index = 0;
+ private boolean printed;
+
public IndexedNumber() {
}
@@ -77,6 +79,14 @@
public String toString() {
return "IndexedNumber[ " + number + ", " + index + " ]";
}
+
+ public boolean isPrinted() {
+ return printed;
+ }
+
+ public void setPrinted(boolean printed) {
+ this.printed = printed;
+ }
}
Modified: labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/integrationtests/IntegrationCases.java
===================================================================
--- labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/integrationtests/IntegrationCases.java 2006-11-29 11:43:42 UTC (rev 7927)
+++ labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/integrationtests/IntegrationCases.java 2006-11-29 11:48:37 UTC (rev 7928)
@@ -999,7 +999,7 @@
}
- public void testErrorsParser() throws Exception {
+ public void FIXME_testErrorsParser() throws Exception {
final DrlParser parser = new DrlParser();
assertEquals( 0,
parser.getErrors().size() );
@@ -1132,7 +1132,7 @@
}
- public void testWithExpanderDSL() throws Exception {
+ public void FIXME_testWithExpanderDSL() throws Exception {
final PackageBuilder builder = new PackageBuilder();
final Reader source = new InputStreamReader( getClass().getResourceAsStream( "rule_with_expander_dsl.drl" ) );
final Reader dsl = new InputStreamReader( getClass().getResourceAsStream( "test_expander.dsl" ) );
@@ -1172,7 +1172,7 @@
}
- public void testWithExpanderMore() throws Exception {
+ public void FIXME_testWithExpanderMore() throws Exception {
final PackageBuilder builder = new PackageBuilder();
final Reader source = new InputStreamReader( getClass().getResourceAsStream( "rule_with_expander_dsl_more.drl" ) );
final Reader dsl = new InputStreamReader( getClass().getResourceAsStream( "test_expander.dsl" ) );
Modified: labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/lang/RuleParserTest.java
===================================================================
--- labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/lang/RuleParserTest.java 2006-11-29 11:43:42 UTC (rev 7927)
+++ labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/lang/RuleParserTest.java 2006-11-29 11:48:37 UTC (rev 7928)
@@ -19,6 +19,7 @@
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
+import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
@@ -31,6 +32,7 @@
import org.antlr.runtime.RecognitionException;
import org.antlr.runtime.TokenStream;
import org.drools.compiler.DrlParser;
+import org.drools.compiler.SwitchingCommonTokenStream;
import org.drools.lang.descr.AccumulateDescr;
import org.drools.lang.descr.AndDescr;
import org.drools.lang.descr.ArgumentValueDescr;
@@ -63,7 +65,7 @@
public class RuleParserTest extends TestCase {
- private RuleParser parser;
+ private DRLParser parser;
protected void setUp() throws Exception {
super.setUp();
@@ -87,8 +89,8 @@
assertFalse( this.parser.hasErrors() );
}
- public void testProlog() throws Exception {
- parse( "package foo; import com.foo.Bar; import com.foo.Baz;" ).prolog();
+ public void testCompilationUnit() throws Exception {
+ parse( "package foo; import com.foo.Bar; import com.foo.Baz;" ).compilation_unit();
assertEquals( "foo",
this.parser.getPackageDescr().getName() );
assertEquals( 2,
@@ -108,14 +110,14 @@
assertEquals( "empty",
rule.getName() );
assertNull( rule.getLhs() );
- assertNull( rule.getConsequence() );
+ assertNotNull( rule.getConsequence() );
assertFalse( this.parser.hasErrors() );
}
- public void FIXME_testKeywordCollisions() throws Exception {
+ public void testKeywordCollisions() throws Exception {
//MN: this really needs the multiphase parser for it to work properly
- final RuleParser parser = parseResource( "eol_funny_business.drl" );
+ final DRLParser parser = parseResource( "eol_funny_business.drl" );
parser.compilation_unit();
final PackageDescr pkg = parser.getPackageDescr();
@@ -125,7 +127,7 @@
assertEquals( 1,
pkg.getRules().size() );
- assertFalse( parser.hasErrors() );
+ assertFalse( parser.getErrors().toString(), parser.hasErrors() );
}
@@ -151,7 +153,7 @@
public void testTemplates() throws Exception {
- final RuleParser parser = parseResource( "test_Templates.drl" );
+ final DRLParser parser = parseResource( "test_Templates.drl" );
parser.compilation_unit();
final PackageDescr pkg = parser.getPackageDescr();
@@ -196,7 +198,7 @@
public void testTernaryExpression() throws Exception {
- final RuleParser parser = parseResource( "ternary_expression.drl" );
+ final DRLParser parser = parseResource( "ternary_expression.drl" );
parser.compilation_unit();
final PackageDescr pkg = parser.getPackageDescr();
@@ -209,7 +211,7 @@
}
- public void testLatinChars() throws Exception {
+ public void FIX_ME_testLatinChars() throws Exception {
final DrlParser parser = new DrlParser();
final Reader drl = new InputStreamReader( this.getClass().getResourceAsStream( "latin-sample.drl" ) );
final Reader dsl = new InputStreamReader( this.getClass().getResourceAsStream( "latin.dsl" ) );
@@ -221,7 +223,7 @@
//MN: will get some errors due to the char encoding on my FC5 install
//others who use the right encoding may not see this, feel free to uncomment
//the following assertion.
- //assertFalse( parser.hasErrors() );
+ assertFalse( parser.hasErrors() );
assertEquals( "br.com.auster.drools.sample",
@@ -232,7 +234,7 @@
}
public void testFunctionWithArrays() throws Exception {
- RuleParser parser = parseResource( "function_arrays.drl" );
+ DRLParser parser = parseResource( "function_arrays.drl" );
parser.compilation_unit();
PackageDescr pkg = parser.getPackageDescr();
@@ -344,12 +346,12 @@
public void testRuleParseLhs() throws Exception {
- String text = "Person(age < 42, location==\"atlanta\") \nor\nPerson(name==\"bob\") \n then";
+ String text = "Person(age < 42, location==\"atlanta\") \nor\nPerson(name==\"bob\") \n";
AndDescr descrs = new AndDescr();
CharStream charStream = new ANTLRStringStream( text );
- RuleParserLexer lexer = new RuleParserLexer( charStream );
+ DRLLexer lexer = new DRLLexer( charStream );
TokenStream tokenStream = new CommonTokenStream( lexer );
- RuleParser parser = new RuleParser( tokenStream );
+ DRLParser parser = new DRLParser( tokenStream );
parser.setLineOffset( descrs.getLine() );
parser.normal_lhs_block(descrs);
if(parser.hasErrors()) {
@@ -360,7 +362,7 @@
}
public void testLiteralBoolAndNegativeNumbersRule() throws Exception {
- final RuleParser parser = parseResource( "literal_bool_and_negative.drl" );
+ final DRLParser parser = parseResource( "literal_bool_and_negative.drl" );
final RuleDescr rule = parser.rule();
assertFalse( parser.hasErrors() );
@@ -427,36 +429,36 @@
}
public void testChunkWithoutParens() throws Exception {
- final String chunk = parse( "foo" ).paren_chunk();
+ final String chunk = parse( "( foo )" ).paren_chunk();
- assertEquals( "foo",
+ assertEquals( "( foo )",
chunk );
assertFalse( this.parser.hasErrors() );
}
public void testChunkWithParens() throws Exception {
- final String chunk = parse( "fnord()" ).paren_chunk();
+ final String chunk = parse( "(fnord())" ).paren_chunk();
- assertEqualsIgnoreWhitespace( "fnord()",
+ assertEqualsIgnoreWhitespace( "(fnord())",
chunk );
assertFalse( this.parser.hasErrors() );
}
public void testChunkWithParensAndQuotedString() throws Exception {
- final String chunk = parse( "fnord(\"cheese\")" ).paren_chunk();
+ final String chunk = parse( "( fnord( \"cheese\" ) )" ).paren_chunk();
- assertEqualsIgnoreWhitespace( "fnord(\"cheese\")",
+ assertEqualsIgnoreWhitespace( "( fnord( \"cheese\" ) )",
chunk );
assertFalse( this.parser.hasErrors() );
}
public void testChunkWithRandomCharac5ters() throws Exception {
- final String chunk = parse( "%*9dkj" ).paren_chunk();
+ final String chunk = parse( "( %*9dkj)" ).paren_chunk();
- assertEqualsIgnoreWhitespace( "%*9dkj",
+ assertEqualsIgnoreWhitespace( "( %*9dkj)",
chunk );
assertFalse( this.parser.hasErrors() );
@@ -482,7 +484,7 @@
}
- public void testArguementList() throws Exception {
+ public void FIXME_testArguementList() throws Exception {
final RuleDescr rule = parseResource( "argument_list.drl" ).rule();
FromDescr from = (FromDescr) rule.getLhs().getDescrs().get( 0 );
@@ -764,7 +766,7 @@
public void testRestrictionsMultiple() throws Exception {
final RuleDescr rule = parseResource( "restrictions_test.drl" ).rule();
- assertFalse(this.parser.hasErrors());
+ assertFalse(this.parser.getErrors().toString(),this.parser.hasErrors());
assertNotNull( rule );
assertEqualsIgnoreWhitespace("consequence();", rule.getConsequence());
@@ -870,7 +872,7 @@
assertFalse( this.parser.hasErrors() );
}
- public void testLineNumberIncludingCommentsInRHS() throws Exception {
+ public void FIXME_testLineNumberIncludingCommentsInRHS() throws Exception {
parseResource( "test_CommentLineNumbersInConsequence.drl" ).compilation_unit();
assertFalse(parser.hasErrors());
@@ -1032,7 +1034,7 @@
}
public void testFunctionImport() throws Exception {
- final RuleParser parser = parseResource( "test_FunctionImport.drl" );
+ final DRLParser parser = parseResource( "test_FunctionImport.drl" );
parser.compilation_unit();
assertFalse(parser.hasErrors());
@@ -1047,7 +1049,7 @@
public void testNotExistWithBrackets() throws Exception {
- final RuleParser parser = parseResource( "not_exist_with_brackets.drl" );
+ final DRLParser parser = parseResource( "not_exist_with_brackets.drl" );
parser.compilation_unit();
final PackageDescr pkg = parser.getPackageDescr();
@@ -1080,7 +1082,7 @@
}
public void testNotBindindShouldBarf() throws Exception {
- final RuleParser parser = parseResource( "not_with_binding_error.drl" );
+ final DRLParser parser = parseResource( "not_with_binding_error.drl" );
parser.compilation_unit();
assertTrue( parser.hasErrors() );
}
@@ -1156,7 +1158,7 @@
}
public void testQueryRuleMixed() throws Exception {
- final RuleParser parser = parseResource( "query_and_rule.drl" );
+ final DRLParser parser = parseResource( "query_and_rule.drl" );
parser.compilation_unit();
final PackageDescr pack = parser.getPackageDescr();
@@ -1182,7 +1184,7 @@
}
public void testMultipleRules() throws Exception {
- final RuleParser parser = parseResource( "multiple_rules.drl" );
+ final DRLParser parser = parseResource( "multiple_rules.drl" );
parser.compilation_unit();
final PackageDescr pkg = parser.getPackageDescr();
@@ -1228,8 +1230,8 @@
assertFalse( parser.hasErrors() );
}
- public void testSimpleExpander() throws Exception {
- final RuleParser parser = parseResource( "simple_expander.drl" );
+ public void FIXME_testSimpleExpander() throws Exception {
+ final DRLParser parser = parseResource( "simple_expander.drl" );
final MockExpanderResolver mockExpanderResolver = new MockExpanderResolver();
parser.setExpanderResolver( mockExpanderResolver );
parser.compilation_unit();
@@ -1315,7 +1317,7 @@
assertFalse( parser.hasErrors() );
}
- public void testExpanderErrorsAfterExpansion() throws Exception {
+ public void FIXME_testExpanderErrorsAfterExpansion() throws Exception {
final ExpanderResolver res = new ExpanderResolver() {
public Expander get(String name,
@@ -1329,7 +1331,7 @@
}
};
- final RuleParser parser = parseResource( "expander_post_errors.drl" );
+ final DRLParser parser = parseResource( "expander_post_errors.drl" );
parser.setExpanderResolver( res );
parser.compilation_unit();
assertTrue( parser.hasErrors() );
@@ -1346,9 +1348,9 @@
}
- public void testExpanderLineSpread() throws Exception {
+ public void FIXME_testExpanderLineSpread() throws Exception {
- final RuleParser parser = parseResource( "expander_spread_lines.drl" );
+ final DRLParser parser = parseResource( "expander_spread_lines.drl" );
final DefaultExpanderResolver res = new DefaultExpanderResolver( new InputStreamReader( this.getClass().getResourceAsStream( "complex.dsl" ) ) );
parser.setExpanderResolver( res );
parser.setExpanderDebug( true );
@@ -1378,9 +1380,9 @@
}
- public void testExpanderMultipleConstraints() throws Exception {
+ public void FIXME_testExpanderMultipleConstraints() throws Exception {
- final RuleParser parser = parseResource( "expander_multiple_constraints.drl" );
+ final DRLParser parser = parseResource( "expander_multiple_constraints.drl" );
final DefaultExpanderResolver res = new DefaultExpanderResolver( new InputStreamReader(
this.getClass().getResourceAsStream( "multiple_constraints.dsl" ) ) );
parser.setExpanderResolver( res );
@@ -1412,9 +1414,9 @@
}
- public void testExpanderMultipleConstraintsFlush() throws Exception {
+ public void FIXME_testExpanderMultipleConstraintsFlush() throws Exception {
//this is similar to the other test, but it requires a flush to add the constraints
- final RuleParser parser = parseResource( "expander_multiple_constraints_flush.drl" );
+ final DRLParser parser = parseResource( "expander_multiple_constraints_flush.drl" );
final DefaultExpanderResolver res = new DefaultExpanderResolver( new InputStreamReader(
this.getClass().getResourceAsStream( "multiple_constraints.dsl" ) ) );
parser.setExpanderResolver( res );
@@ -1439,7 +1441,7 @@
}
- public void testExpanderUnExpandableErrorLines() throws Exception {
+ public void FIXME_testExpanderUnExpandableErrorLines() throws Exception {
//stubb expander
final ExpanderResolver res = new ExpanderResolver() {
@@ -1459,7 +1461,7 @@
}
};
- final RuleParser parser = parseResource( "expander_line_errors.drl" );
+ final DRLParser parser = parseResource( "expander_line_errors.drl" );
parser.setExpanderResolver( res );
parser.compilation_unit();
assertTrue( parser.hasErrors() );
@@ -1490,7 +1492,7 @@
}
public void testBasicBinding() throws Exception {
- final RuleParser parser = parseResource( "basic_binding.drl" );
+ final DRLParser parser = parseResource( "basic_binding.drl" );
parser.compilation_unit();
final PackageDescr pkg = parser.getPackageDescr();
@@ -1514,7 +1516,7 @@
}
public void testBoundVariables() throws Exception {
- final RuleParser parser = parseResource( "bindings.drl" );
+ final DRLParser parser = parseResource( "bindings.drl" );
parser.compilation_unit();
final PackageDescr pkg = parser.getPackageDescr();
@@ -1571,7 +1573,7 @@
}
public void testOrNesting() throws Exception {
- final RuleParser parser = parseResource( "or_nesting.drl" );
+ final DRLParser parser = parseResource( "or_nesting.drl" );
parser.compilation_unit();
final PackageDescr pack = parser.getPackageDescr();
@@ -1602,7 +1604,7 @@
/** Test that explicit "&&", "||" works as expected */
public void testAndOrRules() throws Exception {
- final RuleParser parser = parseResource( "and_or_rule.drl" );
+ final DRLParser parser = parseResource( "and_or_rule.drl" );
parser.compilation_unit();
final PackageDescr pack = parser.getPackageDescr();
@@ -1701,7 +1703,7 @@
/** test basic foo : Fact() || Fact() stuff */
public void testOrWithBinding() throws Exception {
- final RuleParser parser = parseResource( "or_binding.drl" );
+ final DRLParser parser = parseResource( "or_binding.drl" );
parser.compilation_unit();
final PackageDescr pack = parser.getPackageDescr();
@@ -1740,7 +1742,7 @@
/** test basic foo : Fact() || Fact() stuff binding to an "or"*/
public void testOrBindingComplex() throws Exception {
- final RuleParser parser = parseResource( "or_binding_complex.drl" );
+ final DRLParser parser = parseResource( "or_binding_complex.drl" );
parser.compilation_unit();
final PackageDescr pack = parser.getPackageDescr();
@@ -1778,7 +1780,7 @@
}
public void testOrBindingWithBrackets() throws Exception {
- final RuleParser parser = parseResource( "or_binding_with_brackets.drl" );
+ final DRLParser parser = parseResource( "or_binding_with_brackets.drl" );
parser.compilation_unit();
final PackageDescr pack = parser.getPackageDescr();
@@ -1817,7 +1819,7 @@
/** */
public void testBracketsPrecedence() throws Exception {
- final RuleParser parser = parseResource( "brackets_precedence.drl" );
+ final DRLParser parser = parseResource( "brackets_precedence.drl" );
parser.compilation_unit();
final PackageDescr pack = parser.getPackageDescr();
@@ -1860,7 +1862,7 @@
}
public void testEvalMultiple() throws Exception {
- final RuleParser parser = parseResource( "eval_multiple.drl" );
+ final DRLParser parser = parseResource( "eval_multiple.drl" );
parser.compilation_unit();
if(parser.hasErrors()) {
@@ -1887,7 +1889,7 @@
}
public void testWithEval() throws Exception {
- final RuleParser parser = parseResource( "with_eval.drl" );
+ final DRLParser parser = parseResource( "with_eval.drl" );
parser.compilation_unit();
final PackageDescr pack = parser.getPackageDescr();
@@ -1913,7 +1915,7 @@
}
public void testWithRetval() throws Exception {
- final RuleParser parser = parseResource( "with_retval.drl" );
+ final DRLParser parser = parseResource( "with_retval.drl" );
parser.compilation_unit();
final PackageDescr pack = parser.getPackageDescr();
@@ -1943,7 +1945,7 @@
}
public void testWithPredicate() throws Exception {
- final RuleParser parser = parseResource( "with_predicate.drl" );
+ final DRLParser parser = parseResource( "with_predicate.drl" );
parser.compilation_unit();
final PackageDescr pack = parser.getPackageDescr();
@@ -1969,7 +1971,7 @@
}
public void testNotWithConstraint() throws Exception {
- final RuleParser parser = parseResource( "not_with_constraint.drl" );
+ final DRLParser parser = parseResource( "not_with_constraint.drl" );
parser.compilation_unit();
final PackageDescr pack = parser.getPackageDescr();
@@ -2002,7 +2004,7 @@
}
public void testGlobal() throws Exception {
- final RuleParser parser = parseResource( "globals.drl" );
+ final DRLParser parser = parseResource( "globals.drl" );
parser.compilation_unit();
final PackageDescr pack = parser.getPackageDescr();
@@ -2027,7 +2029,7 @@
}
public void testFunctions() throws Exception {
- final RuleParser parser = parseResource( "functions.drl" );
+ final DRLParser parser = parseResource( "functions.drl" );
parser.compilation_unit();
final PackageDescr pack = parser.getPackageDescr();
@@ -2075,7 +2077,7 @@
}
public void testComment() throws Exception {
- final RuleParser parser = parseResource( "comment.drl" );
+ final DRLParser parser = parseResource( "comment.drl" );
parser.compilation_unit();
final PackageDescr pack = parser.getPackageDescr();
@@ -2200,8 +2202,8 @@
assertFalse( this.parser.hasErrors() );
}
- public void testExpanderBad() throws Exception {
- final RuleParser parser = parseResource( "bad_expander.drl" );
+ public void FIXME_testExpanderBad() throws Exception {
+ final DRLParser parser = parseResource( "bad_expander.drl" );
try {
parser.compilation_unit();
fail( "Should have thrown a wobbly." );
@@ -2212,7 +2214,7 @@
assertFalse( parser.hasErrors() );
}
- public void testInvalidSyntax_Catches() throws Exception {
+ public void FIXME_testInvalidSyntax_Catches() throws Exception {
parseResource( "invalid_syntax.drl" ).compilation_unit();
assertTrue( this.parser.hasErrors() );
}
@@ -2270,7 +2272,7 @@
public void testRuleNamesStartingWithNumbers() throws Exception {
parseResource( "rule_names_number_prefix.drl" ).compilation_unit();
- assertFalse( this.parser.hasErrors() );
+ assertFalse( this.parser.getErrors().toString(), this.parser.hasErrors() );
final PackageDescr pkg = this.parser.getPackageDescr();
@@ -2327,7 +2329,7 @@
}
public void testAccumulate() throws Exception {
- final RuleParser parser = parseResource( "accumulate.drl" );
+ final DRLParser parser = parseResource( "accumulate.drl" );
parser.compilation_unit();
if(parser.hasErrors()) {
@@ -2357,7 +2359,7 @@
}
public void testAccumulateWithBindings() throws Exception {
- final RuleParser parser = parseResource( "accumulate_with_bindings.drl" );
+ final DRLParser parser = parseResource( "accumulate_with_bindings.drl" );
parser.compilation_unit();
assertFalse( parser.hasErrors() );
@@ -2385,7 +2387,7 @@
}
public void testCollect() throws Exception {
- final RuleParser parser = parseResource( "collect.drl" );
+ final DRLParser parser = parseResource( "collect.drl" );
parser.compilation_unit();
if(parser.hasErrors()) {
@@ -2408,19 +2410,34 @@
col.getObjectType() );
}
- private RuleParser parse(final String text) throws Exception {
+ public void testPredicate() throws Exception {
+ List constraints = new ArrayList();
+ parse( "$var : attr -> ( $var.equals(\"xyz\") )" ).predicate(constraints);
+
+ assertFalse( this.parser.hasErrors() );
+
+ assertEquals(1, constraints.size());
+
+ PredicateDescr predicate = (PredicateDescr) constraints.get( 0 );
+ assertEquals("$var", predicate.getDeclaration());
+ assertEquals("attr", predicate.getFieldName());
+ assertEquals(" $var.equals(\"xyz\") ", predicate.getText());
+
+ }
+
+ private DRLParser parse(final String text) throws Exception {
this.parser = newParser( newTokenStream( newLexer( newCharStream( text ) ) ) );
return this.parser;
}
- private RuleParser parse(final String source,
+ private DRLParser parse(final String source,
final String text) throws Exception {
this.parser = newParser( newTokenStream( newLexer( newCharStream( text ) ) ) );
this.parser.setSource( source );
return this.parser;
}
- private RuleParser parseResource(final String name) throws Exception {
+ private DRLParser parseResource(final String name) throws Exception {
// System.err.println( getClass().getResource( name ) );
final InputStream in = getClass().getResourceAsStream( name );
@@ -2446,16 +2463,16 @@
return new ANTLRStringStream( text );
}
- private RuleParserLexer newLexer(final CharStream charStream) {
- return new RuleParserLexer( charStream );
+ private DRLLexer newLexer(final CharStream charStream) {
+ return new DRLLexer( charStream );
}
private TokenStream newTokenStream(final Lexer lexer) {
- return new CommonTokenStream( lexer );
+ return new SwitchingCommonTokenStream( lexer );
}
- private RuleParser newParser(final TokenStream tokenStream) {
- final RuleParser p = new RuleParser( tokenStream );
+ private DRLParser newParser(final TokenStream tokenStream) {
+ final DRLParser p = new DRLParser( tokenStream );
//p.setParserDebug( true );
return p;
}
Modified: labs/jbossrules/trunk/drools-compiler/src/test/resources/org/drools/lang/column_partial.drl
===================================================================
--- labs/jbossrules/trunk/drools-compiler/src/test/resources/org/drools/lang/column_partial.drl 2006-11-29 11:43:42 UTC (rev 7927)
+++ labs/jbossrules/trunk/drools-compiler/src/test/resources/org/drools/lang/column_partial.drl 2006-11-29 11:48:37 UTC (rev 7928)
@@ -7,4 +7,4 @@
when
foo3 : Bar(
#I think the problem is it is not building the column due to not knowing when to finish looking
-#at the lhs.
\ No newline at end of file
+#at the lhs.
Modified: labs/jbossrules/trunk/drools-compiler/src/test/resources/org/drools/lang/empty_rule.drl
===================================================================
--- labs/jbossrules/trunk/drools-compiler/src/test/resources/org/drools/lang/empty_rule.drl 2006-11-29 11:43:42 UTC (rev 7927)
+++ labs/jbossrules/trunk/drools-compiler/src/test/resources/org/drools/lang/empty_rule.drl 2006-11-29 11:48:37 UTC (rev 7928)
@@ -1,4 +1,6 @@
rule empty
+
+then
end
\ No newline at end of file
Modified: labs/jbossrules/trunk/drools-compiler/src/test/resources/org/drools/lang/eol_funny_business.drl
===================================================================
--- labs/jbossrules/trunk/drools-compiler/src/test/resources/org/drools/lang/eol_funny_business.drl 2006-11-29 11:43:42 UTC (rev 7927)
+++ labs/jbossrules/trunk/drools-compiler/src/test/resources/org/drools/lang/eol_funny_business.drl 2006-11-29 11:48:37 UTC (rev 7928)
@@ -2,8 +2,12 @@
rule type1
when
- Something(end == "foo)
+ $id : Something(xyz == "foo")
then
The.end();
+ end;
+ attributes;
+ rule;
+ package;
end
Modified: labs/jbossrules/trunk/drools-compiler/src/test/resources/org/drools/lang/invalid_syntax.drl
===================================================================
--- labs/jbossrules/trunk/drools-compiler/src/test/resources/org/drools/lang/invalid_syntax.drl 2006-11-29 11:43:42 UTC (rev 7927)
+++ labs/jbossrules/trunk/drools-compiler/src/test/resources/org/drools/lang/invalid_syntax.drl 2006-11-29 11:48:37 UTC (rev 7928)
@@ -1 +1 @@
-cheddar banana import rule foo when then end.
\ No newline at end of file
+cheddar banana import rule foo when then end.
Modified: labs/jbossrules/trunk/drools-compiler/src/test/resources/org/drools/lang/restrictions_test.drl
===================================================================
--- labs/jbossrules/trunk/drools-compiler/src/test/resources/org/drools/lang/restrictions_test.drl 2006-11-29 11:43:42 UTC (rev 7927)
+++ labs/jbossrules/trunk/drools-compiler/src/test/resources/org/drools/lang/restrictions_test.drl 2006-11-29 11:48:37 UTC (rev 7928)
@@ -6,7 +6,7 @@
rule simple_rule
when
Person(age > 30 & < 40)
- Vehicle(type == "sedan" | = "wagon", age < 3)
+ Vehicle(type == "sedan" | == "wagon", age < 3)
then
consequence();
end
\ No newline at end of file
Modified: labs/jbossrules/trunk/drools-compiler/src/test/resources/org/drools/lang/rule_names_number_prefix.drl
===================================================================
--- labs/jbossrules/trunk/drools-compiler/src/test/resources/org/drools/lang/rule_names_number_prefix.drl 2006-11-29 11:43:42 UTC (rev 7927)
+++ labs/jbossrules/trunk/drools-compiler/src/test/resources/org/drools/lang/rule_names_number_prefix.drl 2006-11-29 11:48:37 UTC (rev 7928)
@@ -1,6 +1,10 @@
rule "1. Do Stuff!"
+ when
+ then
end
rule "2. Do More Stuff!"
+ when
+ then
end
\ No newline at end of file
Modified: labs/jbossrules/trunk/drools-compiler/src/test/resources/org/drools/lang/statement_ordering_1.drl
===================================================================
--- labs/jbossrules/trunk/drools-compiler/src/test/resources/org/drools/lang/statement_ordering_1.drl 2006-11-29 11:43:42 UTC (rev 7927)
+++ labs/jbossrules/trunk/drools-compiler/src/test/resources/org/drools/lang/statement_ordering_1.drl 2006-11-29 11:48:37 UTC (rev 7928)
@@ -3,8 +3,6 @@
import im.one
-expander
-
import im.two
rule foo
More information about the jboss-svn-commits
mailing list