You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by jo...@apache.org on 2011/09/22 14:49:53 UTC

svn commit: r1174099 [5/8] - in /uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-engine/src/main/java/org/apache/uima/textmarker: ./ action/ condition/ constraint/ engine/ parser/ resource/ rule/ rule/quantifier/ type/ verbalize/ visitor/

Modified: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-engine/src/main/java/org/apache/uima/textmarker/parser/TextMarkerParser.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-engine/src/main/java/org/apache/uima/textmarker/parser/TextMarkerParser.java?rev=1174099&r1=1174098&r2=1174099&view=diff
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-engine/src/main/java/org/apache/uima/textmarker/parser/TextMarkerParser.java (original)
+++ uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-engine/src/main/java/org/apache/uima/textmarker/parser/TextMarkerParser.java Thu Sep 22 12:49:48 2011
@@ -1,4 +1,4 @@
-// $ANTLR 3.2 Sep 23, 2009 12:02:23 D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g 2011-08-09 16:40:59
+// $ANTLR 3.4 D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g 2011-09-19 18:00:27
 
 /*
  * Licensed to the Apache Software Foundation (ASF) under one
@@ -45,17 +45,18 @@ import org.apache.uima.cas.CASException;
 import org.apache.uima.cas.Type;
 import org.apache.uima.jcas.tcas.DocumentAnnotation;
 import org.apache.uima.resource.metadata.TypeSystemDescription;
+
+import org.apache.uima.textmarker.action.AbstractTextMarkerAction;
+import org.apache.uima.textmarker.action.ActionFactory;
+import org.apache.uima.textmarker.condition.AbstractTextMarkerCondition;
+import org.apache.uima.textmarker.condition.ConditionFactory;
 import org.apache.uima.textmarker.TextMarkerAutomataBlock;
-import org.apache.uima.textmarker.TextMarkerAutomataFactory;
 import org.apache.uima.textmarker.TextMarkerBlock;
 import org.apache.uima.textmarker.TextMarkerModule;
 import org.apache.uima.textmarker.TextMarkerScriptBlock;
 import org.apache.uima.textmarker.TextMarkerScriptFactory;
+import org.apache.uima.textmarker.TextMarkerAutomataFactory;
 import org.apache.uima.textmarker.TextMarkerStatement;
-import org.apache.uima.textmarker.action.AbstractTextMarkerAction;
-import org.apache.uima.textmarker.action.ActionFactory;
-import org.apache.uima.textmarker.condition.AbstractTextMarkerCondition;
-import org.apache.uima.textmarker.condition.ConditionFactory;
 import org.apache.uima.textmarker.expression.ExpressionFactory;
 import org.apache.uima.textmarker.expression.TextMarkerExpression;
 import org.apache.uima.textmarker.expression.bool.BooleanExpression;
@@ -73,13 +74,27 @@ import org.apache.uima.textmarker.expres
 import org.apache.uima.textmarker.extensions.TextMarkerExternalFactory;
 import org.apache.uima.textmarker.rule.ComposedRuleElement;
 import org.apache.uima.textmarker.rule.RuleElement;
+import org.apache.uima.textmarker.rule.RuleElementContainer;
+import org.apache.uima.textmarker.rule.RuleElementIsolator;
 import org.apache.uima.textmarker.rule.TextMarkerRule;
 import org.apache.uima.textmarker.rule.TextMarkerRuleElement;
 import org.apache.uima.textmarker.rule.quantifier.RuleElementQuantifier;
+
+
+import org.antlr.runtime.*;
+import java.util.Stack;
+import java.util.List;
+import java.util.ArrayList;
+import java.util.Map;
+import java.util.HashMap;
+
+@SuppressWarnings({"all", "warnings", "unchecked"})
 public class TextMarkerParser extends Parser {
     public static final String[] tokenNames = new String[] {
         "<invalid>", "<EOR>", "<DOWN>", "<UP>", "DocComment", "Annotation", "ListIdentifier", "TRIE", "CONTAINS", "DECLARE", "WORDLIST", "WORDTABLE", "AND", "CONTEXTCOUNT", "COUNT", "TOTALCOUNT", "CURRENTCOUNT", "INLIST", "ISINTAG", "LAST", "MOFN", "NEAR", "OR", "PARTOF", "PARTOFNEQ", "POSITION", "REGEXP", "SCORE", "VOTE", "IF", "FEATURE", "PARSE", "CREATE", "GATHER", "FILL", "ATTRIBUTE", "COLOR", "DEL", "LOG", "MARK", "MARKSCORE", "MARKONCE", "MARKFAST", "MARKTABLE", "MARKLAST", "REPLACE", "RETAINMARKUP", "RETAINTYPE", "FILTERMARKUP", "FILTERTYPE", "CALL", "EXEC", "ASSIGN", "SETFEATURE", "GETFEATURE", "UNMARK", "UNMARKALL", "TRANSFER", "EXPAND", "BEFORE", "AFTER", "IS", "STARTSWITH", "ENDSWITH", "NOT", "ADD", "REMOVE", "REMOVEDUPLICATE", "MERGE", "GET", "GETLIST", "SIZE", "MATCHEDTEXT", "REMOVESTRING", "CLEAR", "THEN", "BasicAnnotationType", "LogLevel", "OldColor", "PackageString", "ScriptString", "EngineString", "BlockString", "AutomataBlockString", "TypeString", "IntStrin
 g", "DoubleString", "StringString", "BooleanString", "TypeSystemString", "SymbolString", "CONDITION", "ACTION", "BOOLEANLIST", "INTLIST", "DOUBLELIST", "STRINGLIST", "TYPELIST", "EXP", "LOGN", "SIN", "COS", "TAN", "XOR", "TRUE", "FALSE", "HexDigit", "IntegerTypeSuffix", "HexLiteral", "DecimalLiteral", "OctalLiteral", "Exponent", "FloatTypeSuffix", "FloatingPointLiteral", "EscapeSequence", "CharacterLiteral", "StringLiteral", "RessourceLiteral", "UnicodeEscape", "OctalEscape", "Letter", "JavaIDDigit", "Identifier", "LPAREN", "RPAREN", "LBRACK", "RBRACK", "LCURLY", "RCURLY", "CIRCUMFLEX", "AT", "DOT", "COLON", "COMMA", "SEMI", "PLUS", "MINUS", "STAR", "SLASH", "VBAR", "AMPER", "LESS", "GREATER", "ASSIGN_EQUAL", "PERCENT", "QUESTION", "EQUAL", "NOTEQUAL", "ALT_NOTEQUAL", "LESSEQUAL", "GREATEREQUAL", "WS", "COMMENT", "LINE_COMMENT"
     };
+
+    public static final int EOF=-1;
     public static final int STAR=137;
     public static final int FloatTypeSuffix=112;
     public static final int OctalLiteral=110;
@@ -94,14 +109,13 @@ public class TextMarkerParser extends Pa
     public static final int COUNT=14;
     public static final int LOGN=99;
     public static final int NOT=64;
-    public static final int EOF=-1;
     public static final int Identifier=122;
     public static final int ACTION=92;
-    public static final int CLEAR=74;
     public static final int NOTEQUAL=147;
-    public static final int ENDSWITH=63;
-    public static final int DOUBLELIST=95;
+    public static final int CLEAR=74;
     public static final int VBAR=139;
+    public static final int DOUBLELIST=95;
+    public static final int ENDSWITH=63;
     public static final int RPAREN=124;
     public static final int CREATE=32;
     public static final int GREATER=142;
@@ -114,8 +128,8 @@ public class TextMarkerParser extends Pa
     public static final int LESS=141;
     public static final int REGEXP=26;
     public static final int GET=69;
-    public static final int UNMARK=55;
     public static final int PARTOF=23;
+    public static final int UNMARK=55;
     public static final int LAST=19;
     public static final int COMMENT=152;
     public static final int REMOVEDUPLICATE=67;
@@ -168,8 +182,8 @@ public class TextMarkerParser extends Pa
     public static final int IntString=85;
     public static final int HexDigit=106;
     public static final int COLOR=36;
-    public static final int POSITION=25;
     public static final int LPAREN=123;
+    public static final int POSITION=25;
     public static final int IF=29;
     public static final int AT=130;
     public static final int LogLevel=77;
@@ -178,9 +192,9 @@ public class TextMarkerParser extends Pa
     public static final int FILL=34;
     public static final int COMMA=133;
     public static final int IS=61;
-    public static final int GETLIST=70;
-    public static final int REPLACE=45;
     public static final int AMPER=140;
+    public static final int REPLACE=45;
+    public static final int GETLIST=70;
     public static final int EQUAL=146;
     public static final int GATHER=33;
     public static final int INLIST=17;
@@ -190,63 +204,65 @@ public class TextMarkerParser extends Pa
     public static final int DOT=131;
     public static final int ListIdentifier=6;
     public static final int PARTOFNEQ=24;
-    public static final int ADD=65;
     public static final int BOOLEANLIST=93;
+    public static final int ADD=65;
     public static final int MARKTABLE=43;
     public static final int HexLiteral=108;
     public static final int XOR=103;
-    public static final int MARK=39;
     public static final int PERCENT=144;
-    public static final int PackageString=79;
+    public static final int MARK=39;
     public static final int PARSE=31;
+    public static final int PackageString=79;
     public static final int OldColor=78;
-    public static final int MERGE=68;
     public static final int MARKLAST=44;
+    public static final int MERGE=68;
     public static final int CONTEXTCOUNT=13;
     public static final int BEFORE=59;
     public static final int EXEC=51;
-    public static final int AFTER=60;
     public static final int MINUS=136;
+    public static final int AFTER=60;
     public static final int DecimalLiteral=109;
-    public static final int TRUE=104;
     public static final int SEMI=134;
+    public static final int TRUE=104;
     public static final int FEATURE=30;
     public static final int SymbolString=90;
-    public static final int StringString=87;
-    public static final int StringLiteral=116;
     public static final int COLON=132;
+    public static final int StringLiteral=116;
+    public static final int StringString=87;
     public static final int SCORE=27;
     public static final int QUESTION=145;
     public static final int UnicodeEscape=118;
-    public static final int STARTSWITH=62;
     public static final int RCURLY=128;
+    public static final int STARTSWITH=62;
     public static final int ASSIGN=52;
     public static final int TOTALCOUNT=15;
     public static final int DECLARE=9;
-    public static final int ISINTAG=18;
     public static final int DocComment=4;
+    public static final int ISINTAG=18;
     public static final int MOFN=20;
-    public static final int SETFEATURE=53;
     public static final int OctalEscape=119;
+    public static final int SETFEATURE=53;
     public static final int DoubleString=86;
     public static final int CIRCUMFLEX=129;
     public static final int ALT_NOTEQUAL=148;
 
     // delegates
+    public Parser[] getDelegates() {
+        return new Parser[] {};
+    }
+
     // delegators
 
 
-        public TextMarkerParser(TokenStream input) {
-            this(input, new RecognizerSharedState());
-        }
-        public TextMarkerParser(TokenStream input, RecognizerSharedState state) {
-            super(input, state);
-             
-        }
-        
+    public TextMarkerParser(TokenStream input) {
+        this(input, new RecognizerSharedState());
+    }
+    public TextMarkerParser(TokenStream input, RecognizerSharedState state) {
+        super(input, state);
+    }
 
     public String[] getTokenNames() { return TextMarkerParser.tokenNames; }
-    public String getGrammarFileName() { return "D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g"; }
+    public String getGrammarFileName() { return "D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g"; }
 
 
     private List vars = new ArrayList();	
@@ -354,15 +370,16 @@ public class TextMarkerParser extends Pa
 
 
     // $ANTLR start "file_input"
-    // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:204:1: file_input[String moduleName] returns [TextMarkerModule module] : p= packageDeclaration gs= globalStatements s= statements EOF ;
+    // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:206:1: file_input[String moduleName] returns [TextMarkerModule module] : p= packageDeclaration gs= globalStatements s= statements EOF ;
     public final TextMarkerModule file_input(String moduleName) throws RecognitionException {
         TextMarkerModule module = null;
 
-        String p = null;
 
-        List<TextMarkerStatement> gs = null;
+        String p =null;
 
-        List<TextMarkerStatement> s = null;
+        List<TextMarkerStatement> gs =null;
+
+        List<TextMarkerStatement> s =null;
 
 
 
@@ -370,51 +387,50 @@ public class TextMarkerParser extends Pa
         List<TextMarkerStatement> stmts = new ArrayList<TextMarkerStatement>();
 
         try {
-            // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:209:2: (p= packageDeclaration gs= globalStatements s= statements EOF )
-            // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:210:2: p= packageDeclaration gs= globalStatements s= statements EOF
+            // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:211:2: (p= packageDeclaration gs= globalStatements s= statements EOF )
+            // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:212:2: p= packageDeclaration gs= globalStatements s= statements EOF
             {
             pushFollow(FOLLOW_packageDeclaration_in_file_input76);
             p=packageDeclaration();
 
             state._fsp--;
             if (state.failed) return module;
-            if ( state.backtracking==0 ) {
 
-              	rootBlock = factory.createRootScriptBlock(moduleName, p, cas, localTSD);
-                     	
-                      try {
-                      	Type documentType = cas.getJCas().getCasType(DocumentAnnotation.type);
-                      	rootBlock.getEnvironment().addType("Document", documentType);
-                      	Type annotationType = cas.getJCas().getCasType(org.apache.uima.jcas.tcas.Annotation.type);
-                      	rootBlock.getEnvironment().addType("Annotation", annotationType);
-                      	rootBlock.getEnvironment().setResourcePaths(resourcePaths);
-                      	} catch (CASException e) {
-                      		e.printStackTrace();
-                     	}
-              	rootBlock.setElements(stmts);
-              	module = new TextMarkerModule(rootBlock);
-              	rootBlock.setScript(module);
-              	
-            }
             if ( state.backtracking==0 ) {
-              blockDeclaration_stack.push(new blockDeclaration_scope());((blockDeclaration_scope)blockDeclaration_stack.peek()).env = rootBlock;
-            }
+            	rootBlock = factory.createRootScriptBlock(moduleName, p, cas, localTSD);
+                   	
+                    try {
+                    	Type documentType = cas.getJCas().getCasType(DocumentAnnotation.type);
+                    	rootBlock.getEnvironment().addType("Document", documentType);
+                    	Type annotationType = cas.getJCas().getCasType(org.apache.uima.jcas.tcas.Annotation.type);
+                    	rootBlock.getEnvironment().addType("Annotation", annotationType);
+                    	rootBlock.getEnvironment().setResourcePaths(resourcePaths);
+                    	} catch (CASException e) {
+                    		e.printStackTrace();
+                   	}
+            	rootBlock.setElements(stmts);
+            	module = new TextMarkerModule(rootBlock);
+            	rootBlock.setScript(module);
+            	}
+
+            if ( state.backtracking==0 ) {blockDeclaration_stack.push(new blockDeclaration_scope());((blockDeclaration_scope)blockDeclaration_stack.peek()).env = rootBlock;}
+
             pushFollow(FOLLOW_globalStatements_in_file_input92);
             gs=globalStatements();
 
             state._fsp--;
             if (state.failed) return module;
-            if ( state.backtracking==0 ) {
-              stmts.addAll(gs);
-            }
+
+            if ( state.backtracking==0 ) {stmts.addAll(gs);}
+
             pushFollow(FOLLOW_statements_in_file_input101);
             s=statements();
 
             state._fsp--;
             if (state.failed) return module;
-            if ( state.backtracking==0 ) {
-              stmts.addAll(s);
-            }
+
+            if ( state.backtracking==0 ) {stmts.addAll(s);}
+
             match(input,EOF,FOLLOW_EOF_in_file_input109); if (state.failed) return module;
 
             }
@@ -427,35 +443,40 @@ public class TextMarkerParser extends Pa
         	catch (Throwable exception2) {
         		emitErrorMessage(exception2.toString());
         	}
+
         finally {
+        	// do for sure before leaving
         }
         return module;
     }
     // $ANTLR end "file_input"
 
 
+
     // $ANTLR start "packageDeclaration"
-    // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:235:1: packageDeclaration returns [String pack = \"\"] : PackageString p= dottedIdentifier SEMI ;
+    // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:237:1: packageDeclaration returns [String pack = \"\"] : PackageString p= dottedIdentifier SEMI ;
     public final String packageDeclaration() throws RecognitionException {
         String pack =  "";
 
-        String p = null;
+
+        String p =null;
 
 
         try {
-            // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:236:2: ( PackageString p= dottedIdentifier SEMI )
-            // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:236:4: PackageString p= dottedIdentifier SEMI
+            // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:238:2: ( PackageString p= dottedIdentifier SEMI )
+            // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:238:4: PackageString p= dottedIdentifier SEMI
             {
             match(input,PackageString,FOLLOW_PackageString_in_packageDeclaration124); if (state.failed) return pack;
+
             pushFollow(FOLLOW_dottedIdentifier_in_packageDeclaration130);
             p=dottedIdentifier();
 
             state._fsp--;
             if (state.failed) return pack;
+
             match(input,SEMI,FOLLOW_SEMI_in_packageDeclaration132); if (state.failed) return pack;
-            if ( state.backtracking==0 ) {
-              pack = p;
-            }
+
+            if ( state.backtracking==0 ) {pack = p;}
 
             }
 
@@ -467,45 +488,50 @@ public class TextMarkerParser extends Pa
         	catch (Throwable exception2) {
         		emitErrorMessage(exception2.toString());
         	}
+
         finally {
+        	// do for sure before leaving
         }
         return pack;
     }
     // $ANTLR end "packageDeclaration"
 
 
+
     // $ANTLR start "statements"
-    // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:239:1: statements returns [List<TextMarkerStatement> stmts = new ArrayList<TextMarkerStatement>()] : (stmt= statement )* ;
+    // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:241:1: statements returns [List<TextMarkerStatement> stmts = new ArrayList<TextMarkerStatement>()] : (stmt= statement )* ;
     public final List<TextMarkerStatement> statements() throws RecognitionException {
         List<TextMarkerStatement> stmts =  new ArrayList<TextMarkerStatement>();
 
-        TextMarkerStatement stmt = null;
+
+        TextMarkerStatement stmt =null;
 
 
         try {
-            // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:240:2: ( (stmt= statement )* )
-            // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:241:2: (stmt= statement )*
+            // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:242:2: ( (stmt= statement )* )
+            // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:243:2: (stmt= statement )*
             {
-            // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:241:2: (stmt= statement )*
+            // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:243:2: (stmt= statement )*
             loop1:
             do {
                 int alt1=2;
                 int LA1_0 = input.LA(1);
 
-                if ( ((LA1_0>=DECLARE && LA1_0<=WORDTABLE)||LA1_0==BasicAnnotationType||(LA1_0>=BlockString && LA1_0<=BooleanString)||(LA1_0>=CONDITION && LA1_0<=TYPELIST)||LA1_0==StringLiteral||(LA1_0>=Identifier && LA1_0<=LPAREN)) ) {
+                if ( ((LA1_0 >= DECLARE && LA1_0 <= WORDTABLE)||LA1_0==BasicAnnotationType||(LA1_0 >= BlockString && LA1_0 <= BooleanString)||(LA1_0 >= CONDITION && LA1_0 <= TYPELIST)||LA1_0==StringLiteral||(LA1_0 >= Identifier && LA1_0 <= LPAREN)) ) {
                     alt1=1;
                 }
 
 
                 switch (alt1) {
             	case 1 :
-            	    // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:241:3: stmt= statement
+            	    // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:243:3: stmt= statement
             	    {
             	    pushFollow(FOLLOW_statement_in_statements155);
             	    stmt=statement();
 
             	    state._fsp--;
             	    if (state.failed) return stmts;
+
             	    if(stmt != null) {stmts.add(stmt);}
 
             	    }
@@ -527,48 +553,51 @@ public class TextMarkerParser extends Pa
         	catch (Throwable exception2) {
         		emitErrorMessage(exception2.toString());
         	}
+
         finally {
+        	// do for sure before leaving
         }
         return stmts;
     }
     // $ANTLR end "statements"
 
 
+
     // $ANTLR start "globalStatements"
-    // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:244:1: globalStatements returns [List<TextMarkerStatement> stmts = new ArrayList<TextMarkerStatement>()] : (morestmts= globalStatement )* ;
+    // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:246:1: globalStatements returns [List<TextMarkerStatement> stmts = new ArrayList<TextMarkerStatement>()] : (morestmts= globalStatement )* ;
     public final List<TextMarkerStatement> globalStatements() throws RecognitionException {
         List<TextMarkerStatement> stmts =  new ArrayList<TextMarkerStatement>();
 
-        List<TextMarkerStatement> morestmts = null;
+
+        List<TextMarkerStatement> morestmts =null;
 
 
         try {
-            // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:245:2: ( (morestmts= globalStatement )* )
-            // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:246:2: (morestmts= globalStatement )*
+            // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:247:2: ( (morestmts= globalStatement )* )
+            // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:248:2: (morestmts= globalStatement )*
             {
-            // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:246:2: (morestmts= globalStatement )*
+            // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:248:2: (morestmts= globalStatement )*
             loop2:
             do {
                 int alt2=2;
                 int LA2_0 = input.LA(1);
 
-                if ( ((LA2_0>=ScriptString && LA2_0<=EngineString)||LA2_0==TypeSystemString) ) {
+                if ( ((LA2_0 >= ScriptString && LA2_0 <= EngineString)||LA2_0==TypeSystemString) ) {
                     alt2=1;
                 }
 
 
                 switch (alt2) {
             	case 1 :
-            	    // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:246:3: morestmts= globalStatement
+            	    // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:248:3: morestmts= globalStatement
             	    {
             	    pushFollow(FOLLOW_globalStatement_in_globalStatements180);
             	    morestmts=globalStatement();
 
             	    state._fsp--;
             	    if (state.failed) return stmts;
-            	    if ( state.backtracking==0 ) {
-            	      if(morestmts != null) {stmts.addAll(morestmts);}
-            	    }
+
+            	    if ( state.backtracking==0 ) {if(morestmts != null) {stmts.addAll(morestmts);}}
 
             	    }
             	    break;
@@ -589,33 +618,36 @@ public class TextMarkerParser extends Pa
         	catch (Throwable exception2) {
         		emitErrorMessage(exception2.toString());
         	}
+
         finally {
+        	// do for sure before leaving
         }
         return stmts;
     }
     // $ANTLR end "globalStatements"
 
 
+
     // $ANTLR start "globalStatement"
-    // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:249:1: globalStatement returns [List<TextMarkerStatement> stmts = new ArrayList<TextMarkerStatement>()] : stmtImport= importStatement ;
+    // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:251:1: globalStatement returns [List<TextMarkerStatement> stmts = new ArrayList<TextMarkerStatement>()] : stmtImport= importStatement ;
     public final List<TextMarkerStatement> globalStatement() throws RecognitionException {
         List<TextMarkerStatement> stmts =  new ArrayList<TextMarkerStatement>();
 
-        TextMarkerStatement stmtImport = null;
+
+        TextMarkerStatement stmtImport =null;
 
 
         try {
-            // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:250:2: (stmtImport= importStatement )
-            // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:251:2: stmtImport= importStatement
+            // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:252:2: (stmtImport= importStatement )
+            // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:253:2: stmtImport= importStatement
             {
             pushFollow(FOLLOW_importStatement_in_globalStatement204);
             stmtImport=importStatement();
 
             state._fsp--;
             if (state.failed) return stmts;
-            if ( state.backtracking==0 ) {
-              stmts.add(stmtImport);
-            }
+
+            if ( state.backtracking==0 ) {stmts.add(stmtImport);}
 
             }
 
@@ -627,34 +659,38 @@ public class TextMarkerParser extends Pa
         	catch (Throwable exception2) {
         		emitErrorMessage(exception2.toString());
         	}
+
         finally {
+        	// do for sure before leaving
         }
         return stmts;
     }
     // $ANTLR end "globalStatement"
 
 
+
     // $ANTLR start "statement"
-    // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:254:1: statement returns [TextMarkerStatement stmt = null] : (stmtDecl= declaration | stmtVariable= variableDeclaration | stmtRule= simpleStatement | stmtBlock= blockDeclaration | stmtAutomata= automataDeclaration ) ;
+    // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:256:1: statement returns [TextMarkerStatement stmt = null] : (stmtDecl= declaration |stmtVariable= variableDeclaration |stmtRule= simpleStatement |stmtBlock= blockDeclaration |stmtAutomata= automataDeclaration ) ;
     public final TextMarkerStatement statement() throws RecognitionException {
         TextMarkerStatement stmt =  null;
 
-        TextMarkerStatement stmtDecl = null;
 
-        TextMarkerStatement stmtVariable = null;
+        TextMarkerStatement stmtDecl =null;
+
+        TextMarkerStatement stmtVariable =null;
 
-        TextMarkerRule stmtRule = null;
+        TextMarkerRule stmtRule =null;
 
-        TextMarkerBlock stmtBlock = null;
+        TextMarkerBlock stmtBlock =null;
 
-        TextMarkerBlock stmtAutomata = null;
+        TextMarkerBlock stmtAutomata =null;
 
 
         try {
-            // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:255:2: ( (stmtDecl= declaration | stmtVariable= variableDeclaration | stmtRule= simpleStatement | stmtBlock= blockDeclaration | stmtAutomata= automataDeclaration ) )
-            // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:256:2: (stmtDecl= declaration | stmtVariable= variableDeclaration | stmtRule= simpleStatement | stmtBlock= blockDeclaration | stmtAutomata= automataDeclaration )
+            // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:257:2: ( (stmtDecl= declaration |stmtVariable= variableDeclaration |stmtRule= simpleStatement |stmtBlock= blockDeclaration |stmtAutomata= automataDeclaration ) )
+            // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:258:2: (stmtDecl= declaration |stmtVariable= variableDeclaration |stmtRule= simpleStatement |stmtBlock= blockDeclaration |stmtAutomata= automataDeclaration )
             {
-            // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:256:2: (stmtDecl= declaration | stmtVariable= variableDeclaration | stmtRule= simpleStatement | stmtBlock= blockDeclaration | stmtAutomata= automataDeclaration )
+            // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:258:2: (stmtDecl= declaration |stmtVariable= variableDeclaration |stmtRule= simpleStatement |stmtBlock= blockDeclaration |stmtAutomata= automataDeclaration )
             int alt3=5;
             switch ( input.LA(1) ) {
             case DECLARE:
@@ -704,76 +740,72 @@ public class TextMarkerParser extends Pa
                     new NoViableAltException("", 3, 0, input);
 
                 throw nvae;
+
             }
 
             switch (alt3) {
                 case 1 :
-                    // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:256:4: stmtDecl= declaration
+                    // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:258:4: stmtDecl= declaration
                     {
                     pushFollow(FOLLOW_declaration_in_statement230);
                     stmtDecl=declaration();
 
                     state._fsp--;
                     if (state.failed) return stmt;
-                    if ( state.backtracking==0 ) {
-                      stmt = stmtDecl;
-                    }
+
+                    if ( state.backtracking==0 ) {stmt = stmtDecl;}
 
                     }
                     break;
                 case 2 :
-                    // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:257:4: stmtVariable= variableDeclaration
+                    // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:259:4: stmtVariable= variableDeclaration
                     {
                     pushFollow(FOLLOW_variableDeclaration_in_statement241);
                     stmtVariable=variableDeclaration();
 
                     state._fsp--;
                     if (state.failed) return stmt;
-                    if ( state.backtracking==0 ) {
-                      stmt = stmtVariable;
-                    }
+
+                    if ( state.backtracking==0 ) {stmt = stmtVariable;}
 
                     }
                     break;
                 case 3 :
-                    // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:258:4: stmtRule= simpleStatement
+                    // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:260:4: stmtRule= simpleStatement
                     {
                     pushFollow(FOLLOW_simpleStatement_in_statement252);
                     stmtRule=simpleStatement();
 
                     state._fsp--;
                     if (state.failed) return stmt;
-                    if ( state.backtracking==0 ) {
-                      stmt = stmtRule;
-                    }
+
+                    if ( state.backtracking==0 ) {stmt = stmtRule;}
 
                     }
                     break;
                 case 4 :
-                    // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:259:4: stmtBlock= blockDeclaration
+                    // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:261:4: stmtBlock= blockDeclaration
                     {
                     pushFollow(FOLLOW_blockDeclaration_in_statement263);
                     stmtBlock=blockDeclaration();
 
                     state._fsp--;
                     if (state.failed) return stmt;
-                    if ( state.backtracking==0 ) {
-                      stmt = stmtBlock;
-                    }
+
+                    if ( state.backtracking==0 ) {stmt = stmtBlock;}
 
                     }
                     break;
                 case 5 :
-                    // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:260:4: stmtAutomata= automataDeclaration
+                    // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:262:4: stmtAutomata= automataDeclaration
                     {
                     pushFollow(FOLLOW_automataDeclaration_in_statement274);
                     stmtAutomata=automataDeclaration();
 
                     state._fsp--;
                     if (state.failed) return stmt;
-                    if ( state.backtracking==0 ) {
-                      stmt = stmtBlock;
-                    }
+
+                    if ( state.backtracking==0 ) {stmt = stmtBlock;}
 
                     }
                     break;
@@ -791,52 +823,56 @@ public class TextMarkerParser extends Pa
         	catch (Throwable exception2) {
         		emitErrorMessage(exception2.toString());
         	}
+
         finally {
+        	// do for sure before leaving
         }
         return stmt;
     }
     // $ANTLR end "statement"
 
 
+
     // $ANTLR start "variableDeclaration"
-    // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:264:1: variableDeclaration returns [TextMarkerStatement stmt = null] : (type= IntString {...}?id= Identifier ( COMMA {...}?id= Identifier )* ( ASSIGN_EQUAL value1= numberExpression )? SEMI | type= DoubleString {...}?id= Identifier ( COMMA {...}?id= Identifier )* ( ASSIGN_EQUAL value2= numberExpression )? SEMI | type= StringString {...}?id= Identifier ( COMMA {...}?id= Identifier )* ( ASSIGN_EQUAL value3= stringExpression )? SEMI | type= BooleanString {...}?id= Identifier ( COMMA {...}?id= Identifier )* ( ASSIGN_EQUAL value4= booleanExpression )? SEMI | type= TypeString {...}?id= Identifier ( COMMA {...}?id= Identifier )* ( ASSIGN_EQUAL value5= annotationType )? SEMI | type= WORDLIST {...}?name= Identifier ( ASSIGN_EQUAL list= wordListExpression )? SEMI | type= WORDTABLE {...}?name= Identifier ( ASSIGN_EQUAL table= wordTableExpression )? SEM
 I | type= BOOLEANLIST {...}?name= Identifier ( ASSIGN_EQUAL bl= booleanListExpression )? SEMI | type= STRINGLIST {...}?name= Identifier ( ASSIGN_EQUAL sl= stringListExpression )? SEMI | type= INTLIST {...}?name= Identifier ( ASSIGN_EQUAL il= numberListExpression )? SEMI | type= DOUBLELIST {...}?name= Identifier ( ASSIGN_EQUAL dl= numberListExpression )? SEMI | type= TYPELIST {...}?name= Identifier ( ASSIGN_EQUAL tl= typeListExpression )? SEMI | stmt1= conditionDeclaration | stmt2= actionDeclaration );
+    // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:266:1: variableDeclaration returns [TextMarkerStatement stmt = null] : (type= IntString {...}?id= Identifier ( COMMA {...}?id= Identifier )* ( ASSIGN_EQUAL value1= numberExpression )? SEMI |type= DoubleString {...}?id= Identifier ( COMMA {...}?id= Identifier )* ( ASSIGN_EQUAL value2= numberExpression )? SEMI |type= StringString {...}?id= Identifier ( COMMA {...}?id= Identifier )* ( ASSIGN_EQUAL value3= stringExpression )? SEMI |type= BooleanString {...}?id= Identifier ( COMMA {...}?id= Identifier )* ( ASSIGN_EQUAL value4= booleanExpression )? SEMI |type= TypeString {...}?id= Identifier ( COMMA {...}?id= Identifier )* ( ASSIGN_EQUAL value5= annotationType )? SEMI |type= WORDLIST {...}?name= Identifier ( ASSIGN_EQUAL list= wordListExpression )? SEMI |type= WORDTABLE {...}?name= Identifier ( ASSIGN_EQUAL table= wordTableExpression )? SEMI |typ
 e= BOOLEANLIST {...}?name= Identifier ( ASSIGN_EQUAL bl= booleanListExpression )? SEMI |type= STRINGLIST {...}?name= Identifier ( ASSIGN_EQUAL sl= stringListExpression )? SEMI |type= INTLIST {...}?name= Identifier ( ASSIGN_EQUAL il= numberListExpression )? SEMI |type= DOUBLELIST {...}?name= Identifier ( ASSIGN_EQUAL dl= numberListExpression )? SEMI |type= TYPELIST {...}?name= Identifier ( ASSIGN_EQUAL tl= typeListExpression )? SEMI |stmt1= conditionDeclaration |stmt2= actionDeclaration );
     public final TextMarkerStatement variableDeclaration() throws RecognitionException {
         TextMarkerStatement stmt =  null;
 
+
         Token type=null;
         Token id=null;
         Token name=null;
-        NumberExpression value1 = null;
+        NumberExpression value1 =null;
 
-        NumberExpression value2 = null;
+        NumberExpression value2 =null;
 
-        StringExpression value3 = null;
+        StringExpression value3 =null;
 
-        BooleanExpression value4 = null;
+        BooleanExpression value4 =null;
 
-        Token value5 = null;
+        Token value5 =null;
 
-        WordListExpression list = null;
+        WordListExpression list =null;
 
-        WordTableExpression table = null;
+        WordTableExpression table =null;
 
-        BooleanListExpression bl = null;
+        BooleanListExpression bl =null;
 
-        StringListExpression sl = null;
+        StringListExpression sl =null;
 
-        NumberListExpression il = null;
+        NumberListExpression il =null;
 
-        NumberListExpression dl = null;
+        NumberListExpression dl =null;
 
-        TypeListExpression tl = null;
+        TypeListExpression tl =null;
 
-        TextMarkerStatement stmt1 = null;
+        TextMarkerStatement stmt1 =null;
 
-        TextMarkerStatement stmt2 = null;
+        TextMarkerStatement stmt2 =null;
 
 
         try {
-            // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:265:2: (type= IntString {...}?id= Identifier ( COMMA {...}?id= Identifier )* ( ASSIGN_EQUAL value1= numberExpression )? SEMI | type= DoubleString {...}?id= Identifier ( COMMA {...}?id= Identifier )* ( ASSIGN_EQUAL value2= numberExpression )? SEMI | type= StringString {...}?id= Identifier ( COMMA {...}?id= Identifier )* ( ASSIGN_EQUAL value3= stringExpression )? SEMI | type= BooleanString {...}?id= Identifier ( COMMA {...}?id= Identifier )* ( ASSIGN_EQUAL value4= booleanExpression )? SEMI | type= TypeString {...}?id= Identifier ( COMMA {...}?id= Identifier )* ( ASSIGN_EQUAL value5= annotationType )? SEMI | type= WORDLIST {...}?name= Identifier ( ASSIGN_EQUAL list= wordListExpression )? SEMI | type= WORDTABLE {...}?name= Identifier ( ASSIGN_EQUAL table= wordTableExpression )? SEMI | type= BOOLEANLIST {...}?name= Identifier ( ASSIGN_EQ
 UAL bl= booleanListExpression )? SEMI | type= STRINGLIST {...}?name= Identifier ( ASSIGN_EQUAL sl= stringListExpression )? SEMI | type= INTLIST {...}?name= Identifier ( ASSIGN_EQUAL il= numberListExpression )? SEMI | type= DOUBLELIST {...}?name= Identifier ( ASSIGN_EQUAL dl= numberListExpression )? SEMI | type= TYPELIST {...}?name= Identifier ( ASSIGN_EQUAL tl= typeListExpression )? SEMI | stmt1= conditionDeclaration | stmt2= actionDeclaration )
+            // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:267:2: (type= IntString {...}?id= Identifier ( COMMA {...}?id= Identifier )* ( ASSIGN_EQUAL value1= numberExpression )? SEMI |type= DoubleString {...}?id= Identifier ( COMMA {...}?id= Identifier )* ( ASSIGN_EQUAL value2= numberExpression )? SEMI |type= StringString {...}?id= Identifier ( COMMA {...}?id= Identifier )* ( ASSIGN_EQUAL value3= stringExpression )? SEMI |type= BooleanString {...}?id= Identifier ( COMMA {...}?id= Identifier )* ( ASSIGN_EQUAL value4= booleanExpression )? SEMI |type= TypeString {...}?id= Identifier ( COMMA {...}?id= Identifier )* ( ASSIGN_EQUAL value5= annotationType )? SEMI |type= WORDLIST {...}?name= Identifier ( ASSIGN_EQUAL list= wordListExpression )? SEMI |type= WORDTABLE {...}?name= Identifier ( ASSIGN_EQUAL table= wordTableExpression )? SEMI |type= BOOLEANLIST {...}?name= Identifier ( ASSIGN_EQUAL bl=
  booleanListExpression )? SEMI |type= STRINGLIST {...}?name= Identifier ( ASSIGN_EQUAL sl= stringListExpression )? SEMI |type= INTLIST {...}?name= Identifier ( ASSIGN_EQUAL il= numberListExpression )? SEMI |type= DOUBLELIST {...}?name= Identifier ( ASSIGN_EQUAL dl= numberListExpression )? SEMI |type= TYPELIST {...}?name= Identifier ( ASSIGN_EQUAL tl= typeListExpression )? SEMI |stmt1= conditionDeclaration |stmt2= actionDeclaration )
             int alt21=14;
             switch ( input.LA(1) ) {
             case IntString:
@@ -915,22 +951,25 @@ public class TextMarkerParser extends Pa
                     new NoViableAltException("", 21, 0, input);
 
                 throw nvae;
+
             }
 
             switch (alt21) {
                 case 1 :
-                    // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:266:2: type= IntString {...}?id= Identifier ( COMMA {...}?id= Identifier )* ( ASSIGN_EQUAL value1= numberExpression )? SEMI
+                    // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:268:2: type= IntString {...}?id= Identifier ( COMMA {...}?id= Identifier )* ( ASSIGN_EQUAL value1= numberExpression )? SEMI
                     {
                     type=(Token)match(input,IntString,FOLLOW_IntString_in_variableDeclaration299); if (state.failed) return stmt;
+
                     if ( !((!ownsVariable(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, input.LT(1).getText()))) ) {
                         if (state.backtracking>0) {state.failed=true; return stmt;}
                         throw new FailedPredicateException(input, "variableDeclaration", "!ownsVariable($blockDeclaration::env, input.LT(1).getText())");
                     }
+
                     id=(Token)match(input,Identifier,FOLLOW_Identifier_in_variableDeclaration308); if (state.failed) return stmt;
-                    if ( state.backtracking==0 ) {
-                      addVariable(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, id.getText(), type.getText());
-                    }
-                    // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:268:3: ( COMMA {...}?id= Identifier )*
+
+                    if ( state.backtracking==0 ) {addVariable(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, id.getText(), type.getText());}
+
+                    // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:270:3: ( COMMA {...}?id= Identifier )*
                     loop4:
                     do {
                         int alt4=2;
@@ -943,17 +982,18 @@ public class TextMarkerParser extends Pa
 
                         switch (alt4) {
                     	case 1 :
-                    	    // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:268:4: COMMA {...}?id= Identifier
+                    	    // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:270:4: COMMA {...}?id= Identifier
                     	    {
                     	    match(input,COMMA,FOLLOW_COMMA_in_variableDeclaration315); if (state.failed) return stmt;
+
                     	    if ( !((!ownsVariable(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, input.LT(1).getText()))) ) {
                     	        if (state.backtracking>0) {state.failed=true; return stmt;}
                     	        throw new FailedPredicateException(input, "variableDeclaration", "!ownsVariable($blockDeclaration::env, input.LT(1).getText())");
                     	    }
+
                     	    id=(Token)match(input,Identifier,FOLLOW_Identifier_in_variableDeclaration323); if (state.failed) return stmt;
-                    	    if ( state.backtracking==0 ) {
-                    	      addVariable(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, id.getText(), type.getText());
-                    	    }
+
+                    	    if ( state.backtracking==0 ) {addVariable(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, id.getText(), type.getText());}
 
                     	    }
                     	    break;
@@ -963,7 +1003,8 @@ public class TextMarkerParser extends Pa
                         }
                     } while (true);
 
-                    // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:269:6: ( ASSIGN_EQUAL value1= numberExpression )?
+
+                    // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:271:6: ( ASSIGN_EQUAL value1= numberExpression )?
                     int alt5=2;
                     int LA5_0 = input.LA(1);
 
@@ -972,9 +1013,10 @@ public class TextMarkerParser extends Pa
                     }
                     switch (alt5) {
                         case 1 :
-                            // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:269:7: ASSIGN_EQUAL value1= numberExpression
+                            // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:271:7: ASSIGN_EQUAL value1= numberExpression
                             {
                             match(input,ASSIGN_EQUAL,FOLLOW_ASSIGN_EQUAL_in_variableDeclaration333); if (state.failed) return stmt;
+
                             pushFollow(FOLLOW_numberExpression_in_variableDeclaration339);
                             value1=numberExpression();
 
@@ -986,26 +1028,28 @@ public class TextMarkerParser extends Pa
 
                     }
 
-                    if ( state.backtracking==0 ) {
-                      setValue(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, id.getText(), value1);
-                    }
+
+                    if ( state.backtracking==0 ) {setValue(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, id.getText(), value1);}
+
                     match(input,SEMI,FOLLOW_SEMI_in_variableDeclaration346); if (state.failed) return stmt;
 
                     }
                     break;
                 case 2 :
-                    // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:271:2: type= DoubleString {...}?id= Identifier ( COMMA {...}?id= Identifier )* ( ASSIGN_EQUAL value2= numberExpression )? SEMI
+                    // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:273:2: type= DoubleString {...}?id= Identifier ( COMMA {...}?id= Identifier )* ( ASSIGN_EQUAL value2= numberExpression )? SEMI
                     {
                     type=(Token)match(input,DoubleString,FOLLOW_DoubleString_in_variableDeclaration356); if (state.failed) return stmt;
+
                     if ( !((!ownsVariable(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, input.LT(1).getText()))) ) {
                         if (state.backtracking>0) {state.failed=true; return stmt;}
                         throw new FailedPredicateException(input, "variableDeclaration", "!ownsVariable($blockDeclaration::env, input.LT(1).getText())");
                     }
+
                     id=(Token)match(input,Identifier,FOLLOW_Identifier_in_variableDeclaration365); if (state.failed) return stmt;
-                    if ( state.backtracking==0 ) {
-                      addVariable(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, id.getText(), type.getText());
-                    }
-                    // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:273:3: ( COMMA {...}?id= Identifier )*
+
+                    if ( state.backtracking==0 ) {addVariable(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, id.getText(), type.getText());}
+
+                    // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:275:3: ( COMMA {...}?id= Identifier )*
                     loop6:
                     do {
                         int alt6=2;
@@ -1018,17 +1062,18 @@ public class TextMarkerParser extends Pa
 
                         switch (alt6) {
                     	case 1 :
-                    	    // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:273:4: COMMA {...}?id= Identifier
+                    	    // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:275:4: COMMA {...}?id= Identifier
                     	    {
                     	    match(input,COMMA,FOLLOW_COMMA_in_variableDeclaration372); if (state.failed) return stmt;
+
                     	    if ( !((!ownsVariable(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, input.LT(1).getText()))) ) {
                     	        if (state.backtracking>0) {state.failed=true; return stmt;}
                     	        throw new FailedPredicateException(input, "variableDeclaration", "!ownsVariable($blockDeclaration::env, input.LT(1).getText())");
                     	    }
+
                     	    id=(Token)match(input,Identifier,FOLLOW_Identifier_in_variableDeclaration380); if (state.failed) return stmt;
-                    	    if ( state.backtracking==0 ) {
-                    	      addVariable(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, id.getText(), type.getText());
-                    	    }
+
+                    	    if ( state.backtracking==0 ) {addVariable(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, id.getText(), type.getText());}
 
                     	    }
                     	    break;
@@ -1038,7 +1083,8 @@ public class TextMarkerParser extends Pa
                         }
                     } while (true);
 
-                    // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:274:7: ( ASSIGN_EQUAL value2= numberExpression )?
+
+                    // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:276:7: ( ASSIGN_EQUAL value2= numberExpression )?
                     int alt7=2;
                     int LA7_0 = input.LA(1);
 
@@ -1047,9 +1093,10 @@ public class TextMarkerParser extends Pa
                     }
                     switch (alt7) {
                         case 1 :
-                            // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:274:8: ASSIGN_EQUAL value2= numberExpression
+                            // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:276:8: ASSIGN_EQUAL value2= numberExpression
                             {
                             match(input,ASSIGN_EQUAL,FOLLOW_ASSIGN_EQUAL_in_variableDeclaration391); if (state.failed) return stmt;
+
                             pushFollow(FOLLOW_numberExpression_in_variableDeclaration397);
                             value2=numberExpression();
 
@@ -1061,26 +1108,28 @@ public class TextMarkerParser extends Pa
 
                     }
 
-                    if ( state.backtracking==0 ) {
-                      setValue(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, id.getText(), value2);
-                    }
+
+                    if ( state.backtracking==0 ) {setValue(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, id.getText(), value2);}
+
                     match(input,SEMI,FOLLOW_SEMI_in_variableDeclaration403); if (state.failed) return stmt;
 
                     }
                     break;
                 case 3 :
-                    // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:276:2: type= StringString {...}?id= Identifier ( COMMA {...}?id= Identifier )* ( ASSIGN_EQUAL value3= stringExpression )? SEMI
+                    // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:278:2: type= StringString {...}?id= Identifier ( COMMA {...}?id= Identifier )* ( ASSIGN_EQUAL value3= stringExpression )? SEMI
                     {
                     type=(Token)match(input,StringString,FOLLOW_StringString_in_variableDeclaration413); if (state.failed) return stmt;
+
                     if ( !((!ownsVariable(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, input.LT(1).getText()))) ) {
                         if (state.backtracking>0) {state.failed=true; return stmt;}
                         throw new FailedPredicateException(input, "variableDeclaration", "!ownsVariable($blockDeclaration::env, input.LT(1).getText())");
                     }
+
                     id=(Token)match(input,Identifier,FOLLOW_Identifier_in_variableDeclaration422); if (state.failed) return stmt;
-                    if ( state.backtracking==0 ) {
-                      addVariable(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, id.getText(), type.getText());
-                    }
-                    // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:278:3: ( COMMA {...}?id= Identifier )*
+
+                    if ( state.backtracking==0 ) {addVariable(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, id.getText(), type.getText());}
+
+                    // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:280:3: ( COMMA {...}?id= Identifier )*
                     loop8:
                     do {
                         int alt8=2;
@@ -1093,17 +1142,18 @@ public class TextMarkerParser extends Pa
 
                         switch (alt8) {
                     	case 1 :
-                    	    // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:278:4: COMMA {...}?id= Identifier
+                    	    // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:280:4: COMMA {...}?id= Identifier
                     	    {
                     	    match(input,COMMA,FOLLOW_COMMA_in_variableDeclaration429); if (state.failed) return stmt;
+
                     	    if ( !((!ownsVariable(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, input.LT(1).getText()))) ) {
                     	        if (state.backtracking>0) {state.failed=true; return stmt;}
                     	        throw new FailedPredicateException(input, "variableDeclaration", "!ownsVariable($blockDeclaration::env, input.LT(1).getText())");
                     	    }
+
                     	    id=(Token)match(input,Identifier,FOLLOW_Identifier_in_variableDeclaration437); if (state.failed) return stmt;
-                    	    if ( state.backtracking==0 ) {
-                    	      addVariable(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, id.getText(), type.getText());
-                    	    }
+
+                    	    if ( state.backtracking==0 ) {addVariable(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, id.getText(), type.getText());}
 
                     	    }
                     	    break;
@@ -1113,7 +1163,8 @@ public class TextMarkerParser extends Pa
                         }
                     } while (true);
 
-                    // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:279:7: ( ASSIGN_EQUAL value3= stringExpression )?
+
+                    // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:281:7: ( ASSIGN_EQUAL value3= stringExpression )?
                     int alt9=2;
                     int LA9_0 = input.LA(1);
 
@@ -1122,9 +1173,10 @@ public class TextMarkerParser extends Pa
                     }
                     switch (alt9) {
                         case 1 :
-                            // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:279:8: ASSIGN_EQUAL value3= stringExpression
+                            // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:281:8: ASSIGN_EQUAL value3= stringExpression
                             {
                             match(input,ASSIGN_EQUAL,FOLLOW_ASSIGN_EQUAL_in_variableDeclaration448); if (state.failed) return stmt;
+
                             pushFollow(FOLLOW_stringExpression_in_variableDeclaration454);
                             value3=stringExpression();
 
@@ -1136,26 +1188,28 @@ public class TextMarkerParser extends Pa
 
                     }
 
-                    if ( state.backtracking==0 ) {
-                      setValue(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, id.getText(), value3);
-                    }
+
+                    if ( state.backtracking==0 ) {setValue(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, id.getText(), value3);}
+
                     match(input,SEMI,FOLLOW_SEMI_in_variableDeclaration460); if (state.failed) return stmt;
 
                     }
                     break;
                 case 4 :
-                    // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:281:2: type= BooleanString {...}?id= Identifier ( COMMA {...}?id= Identifier )* ( ASSIGN_EQUAL value4= booleanExpression )? SEMI
+                    // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:283:2: type= BooleanString {...}?id= Identifier ( COMMA {...}?id= Identifier )* ( ASSIGN_EQUAL value4= booleanExpression )? SEMI
                     {
                     type=(Token)match(input,BooleanString,FOLLOW_BooleanString_in_variableDeclaration470); if (state.failed) return stmt;
+
                     if ( !((!ownsVariable(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, input.LT(1).getText()))) ) {
                         if (state.backtracking>0) {state.failed=true; return stmt;}
                         throw new FailedPredicateException(input, "variableDeclaration", "!ownsVariable($blockDeclaration::env, input.LT(1).getText())");
                     }
+
                     id=(Token)match(input,Identifier,FOLLOW_Identifier_in_variableDeclaration479); if (state.failed) return stmt;
-                    if ( state.backtracking==0 ) {
-                      addVariable(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, id.getText(), type.getText());
-                    }
-                    // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:283:3: ( COMMA {...}?id= Identifier )*
+
+                    if ( state.backtracking==0 ) {addVariable(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, id.getText(), type.getText());}
+
+                    // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:285:3: ( COMMA {...}?id= Identifier )*
                     loop10:
                     do {
                         int alt10=2;
@@ -1168,17 +1222,18 @@ public class TextMarkerParser extends Pa
 
                         switch (alt10) {
                     	case 1 :
-                    	    // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:283:4: COMMA {...}?id= Identifier
+                    	    // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:285:4: COMMA {...}?id= Identifier
                     	    {
                     	    match(input,COMMA,FOLLOW_COMMA_in_variableDeclaration486); if (state.failed) return stmt;
+
                     	    if ( !((!ownsVariable(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, input.LT(1).getText()))) ) {
                     	        if (state.backtracking>0) {state.failed=true; return stmt;}
                     	        throw new FailedPredicateException(input, "variableDeclaration", "!ownsVariable($blockDeclaration::env, input.LT(1).getText())");
                     	    }
+
                     	    id=(Token)match(input,Identifier,FOLLOW_Identifier_in_variableDeclaration494); if (state.failed) return stmt;
-                    	    if ( state.backtracking==0 ) {
-                    	      addVariable(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, id.getText(), type.getText());
-                    	    }
+
+                    	    if ( state.backtracking==0 ) {addVariable(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, id.getText(), type.getText());}
 
                     	    }
                     	    break;
@@ -1188,7 +1243,8 @@ public class TextMarkerParser extends Pa
                         }
                     } while (true);
 
-                    // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:284:7: ( ASSIGN_EQUAL value4= booleanExpression )?
+
+                    // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:286:7: ( ASSIGN_EQUAL value4= booleanExpression )?
                     int alt11=2;
                     int LA11_0 = input.LA(1);
 
@@ -1197,9 +1253,10 @@ public class TextMarkerParser extends Pa
                     }
                     switch (alt11) {
                         case 1 :
-                            // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:284:8: ASSIGN_EQUAL value4= booleanExpression
+                            // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:286:8: ASSIGN_EQUAL value4= booleanExpression
                             {
                             match(input,ASSIGN_EQUAL,FOLLOW_ASSIGN_EQUAL_in_variableDeclaration505); if (state.failed) return stmt;
+
                             pushFollow(FOLLOW_booleanExpression_in_variableDeclaration511);
                             value4=booleanExpression();
 
@@ -1211,26 +1268,28 @@ public class TextMarkerParser extends Pa
 
                     }
 
-                    if ( state.backtracking==0 ) {
-                      setValue(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, id.getText(), value4);
-                    }
+
+                    if ( state.backtracking==0 ) {setValue(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, id.getText(), value4);}
+
                     match(input,SEMI,FOLLOW_SEMI_in_variableDeclaration517); if (state.failed) return stmt;
 
                     }
                     break;
                 case 5 :
-                    // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:286:2: type= TypeString {...}?id= Identifier ( COMMA {...}?id= Identifier )* ( ASSIGN_EQUAL value5= annotationType )? SEMI
+                    // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:288:2: type= TypeString {...}?id= Identifier ( COMMA {...}?id= Identifier )* ( ASSIGN_EQUAL value5= annotationType )? SEMI
                     {
                     type=(Token)match(input,TypeString,FOLLOW_TypeString_in_variableDeclaration527); if (state.failed) return stmt;
+
                     if ( !((!ownsVariable(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, input.LT(1).getText()))) ) {
                         if (state.backtracking>0) {state.failed=true; return stmt;}
                         throw new FailedPredicateException(input, "variableDeclaration", "!ownsVariable($blockDeclaration::env, input.LT(1).getText())");
                     }
+
                     id=(Token)match(input,Identifier,FOLLOW_Identifier_in_variableDeclaration536); if (state.failed) return stmt;
-                    if ( state.backtracking==0 ) {
-                      addVariable(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, id.getText(), type.getText());
-                    }
-                    // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:288:3: ( COMMA {...}?id= Identifier )*
+
+                    if ( state.backtracking==0 ) {addVariable(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, id.getText(), type.getText());}
+
+                    // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:290:3: ( COMMA {...}?id= Identifier )*
                     loop12:
                     do {
                         int alt12=2;
@@ -1243,17 +1302,18 @@ public class TextMarkerParser extends Pa
 
                         switch (alt12) {
                     	case 1 :
-                    	    // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:288:4: COMMA {...}?id= Identifier
+                    	    // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:290:4: COMMA {...}?id= Identifier
                     	    {
                     	    match(input,COMMA,FOLLOW_COMMA_in_variableDeclaration543); if (state.failed) return stmt;
+
                     	    if ( !((!ownsVariable(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, input.LT(1).getText()))) ) {
                     	        if (state.backtracking>0) {state.failed=true; return stmt;}
                     	        throw new FailedPredicateException(input, "variableDeclaration", "!ownsVariable($blockDeclaration::env, input.LT(1).getText())");
                     	    }
+
                     	    id=(Token)match(input,Identifier,FOLLOW_Identifier_in_variableDeclaration551); if (state.failed) return stmt;
-                    	    if ( state.backtracking==0 ) {
-                    	      addVariable(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, id.getText(), type.getText());
-                    	    }
+
+                    	    if ( state.backtracking==0 ) {addVariable(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, id.getText(), type.getText());}
 
                     	    }
                     	    break;
@@ -1263,7 +1323,8 @@ public class TextMarkerParser extends Pa
                         }
                     } while (true);
 
-                    // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:289:7: ( ASSIGN_EQUAL value5= annotationType )?
+
+                    // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:291:7: ( ASSIGN_EQUAL value5= annotationType )?
                     int alt13=2;
                     int LA13_0 = input.LA(1);
 
@@ -1272,9 +1333,10 @@ public class TextMarkerParser extends Pa
                     }
                     switch (alt13) {
                         case 1 :
-                            // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:289:8: ASSIGN_EQUAL value5= annotationType
+                            // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:291:8: ASSIGN_EQUAL value5= annotationType
                             {
                             match(input,ASSIGN_EQUAL,FOLLOW_ASSIGN_EQUAL_in_variableDeclaration562); if (state.failed) return stmt;
+
                             pushFollow(FOLLOW_annotationType_in_variableDeclaration568);
                             value5=annotationType();
 
@@ -1286,23 +1348,26 @@ public class TextMarkerParser extends Pa
 
                     }
 
-                    if ( state.backtracking==0 ) {
-                      setValue(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, id.getText(), value5);
-                    }
+
+                    if ( state.backtracking==0 ) {setValue(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, id.getText(), value5);}
+
                     match(input,SEMI,FOLLOW_SEMI_in_variableDeclaration574); if (state.failed) return stmt;
 
                     }
                     break;
                 case 6 :
-                    // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:291:2: type= WORDLIST {...}?name= Identifier ( ASSIGN_EQUAL list= wordListExpression )? SEMI
+                    // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:293:2: type= WORDLIST {...}?name= Identifier ( ASSIGN_EQUAL list= wordListExpression )? SEMI
                     {
                     type=(Token)match(input,WORDLIST,FOLLOW_WORDLIST_in_variableDeclaration585); if (state.failed) return stmt;
+
                     if ( !((!isVariableOfType(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, input.LT(1).getText(), type.getText()))) ) {
                         if (state.backtracking>0) {state.failed=true; return stmt;}
                         throw new FailedPredicateException(input, "variableDeclaration", "!isVariableOfType($blockDeclaration::env, input.LT(1).getText(), type.getText())");
                     }
+
                     name=(Token)match(input,Identifier,FOLLOW_Identifier_in_variableDeclaration597); if (state.failed) return stmt;
-                    // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:293:20: ( ASSIGN_EQUAL list= wordListExpression )?
+
+                    // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:295:20: ( ASSIGN_EQUAL list= wordListExpression )?
                     int alt14=2;
                     int LA14_0 = input.LA(1);
 
@@ -1311,9 +1376,10 @@ public class TextMarkerParser extends Pa
                     }
                     switch (alt14) {
                         case 1 :
-                            // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:293:21: ASSIGN_EQUAL list= wordListExpression
+                            // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:295:21: ASSIGN_EQUAL list= wordListExpression
                             {
                             match(input,ASSIGN_EQUAL,FOLLOW_ASSIGN_EQUAL_in_variableDeclaration600); if (state.failed) return stmt;
+
                             pushFollow(FOLLOW_wordListExpression_in_variableDeclaration606);
                             list=wordListExpression();
 
@@ -1325,23 +1391,26 @@ public class TextMarkerParser extends Pa
 
                     }
 
+
                     match(input,SEMI,FOLLOW_SEMI_in_variableDeclaration610); if (state.failed) return stmt;
-                    if ( state.backtracking==0 ) {
-                      addVariable(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, name.getText(), type.getText());if(list != null){setValue(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, name.getText(), list);}
-                    }
+
+                    if ( state.backtracking==0 ) {addVariable(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, name.getText(), type.getText());if(list != null){setValue(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, name.getText(), list);}}
 
                     }
                     break;
                 case 7 :
-                    // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:295:2: type= WORDTABLE {...}?name= Identifier ( ASSIGN_EQUAL table= wordTableExpression )? SEMI
+                    // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:297:2: type= WORDTABLE {...}?name= Identifier ( ASSIGN_EQUAL table= wordTableExpression )? SEMI
                     {
                     type=(Token)match(input,WORDTABLE,FOLLOW_WORDTABLE_in_variableDeclaration624); if (state.failed) return stmt;
+
                     if ( !((!isVariableOfType(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, input.LT(1).getText(), type.getText()))) ) {
                         if (state.backtracking>0) {state.failed=true; return stmt;}
                         throw new FailedPredicateException(input, "variableDeclaration", "!isVariableOfType($blockDeclaration::env, input.LT(1).getText(), type.getText())");
                     }
+
                     name=(Token)match(input,Identifier,FOLLOW_Identifier_in_variableDeclaration636); if (state.failed) return stmt;
-                    // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:297:20: ( ASSIGN_EQUAL table= wordTableExpression )?
+
+                    // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:299:20: ( ASSIGN_EQUAL table= wordTableExpression )?
                     int alt15=2;
                     int LA15_0 = input.LA(1);
 
@@ -1350,9 +1419,10 @@ public class TextMarkerParser extends Pa
                     }
                     switch (alt15) {
                         case 1 :
-                            // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:297:21: ASSIGN_EQUAL table= wordTableExpression
+                            // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:299:21: ASSIGN_EQUAL table= wordTableExpression
                             {
                             match(input,ASSIGN_EQUAL,FOLLOW_ASSIGN_EQUAL_in_variableDeclaration639); if (state.failed) return stmt;
+
                             pushFollow(FOLLOW_wordTableExpression_in_variableDeclaration645);
                             table=wordTableExpression();
 
@@ -1364,23 +1434,26 @@ public class TextMarkerParser extends Pa
 
                     }
 
+
                     match(input,SEMI,FOLLOW_SEMI_in_variableDeclaration649); if (state.failed) return stmt;
-                    if ( state.backtracking==0 ) {
-                      addVariable(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, name.getText(), type.getText());if(table != null){setValue(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, name.getText(), table);}
-                    }
+
+                    if ( state.backtracking==0 ) {addVariable(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, name.getText(), type.getText());if(table != null){setValue(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, name.getText(), table);}}
 
                     }
                     break;
                 case 8 :
-                    // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:299:2: type= BOOLEANLIST {...}?name= Identifier ( ASSIGN_EQUAL bl= booleanListExpression )? SEMI
+                    // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:301:2: type= BOOLEANLIST {...}?name= Identifier ( ASSIGN_EQUAL bl= booleanListExpression )? SEMI
                     {
                     type=(Token)match(input,BOOLEANLIST,FOLLOW_BOOLEANLIST_in_variableDeclaration661); if (state.failed) return stmt;
+
                     if ( !((!isVariableOfType(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, input.LT(1).getText(), type.getText()))) ) {
                         if (state.backtracking>0) {state.failed=true; return stmt;}
                         throw new FailedPredicateException(input, "variableDeclaration", "!isVariableOfType($blockDeclaration::env, input.LT(1).getText(), type.getText())");
                     }
+
                     name=(Token)match(input,Identifier,FOLLOW_Identifier_in_variableDeclaration673); if (state.failed) return stmt;
-                    // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:301:20: ( ASSIGN_EQUAL bl= booleanListExpression )?
+
+                    // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:303:20: ( ASSIGN_EQUAL bl= booleanListExpression )?
                     int alt16=2;
                     int LA16_0 = input.LA(1);
 
@@ -1389,9 +1462,10 @@ public class TextMarkerParser extends Pa
                     }
                     switch (alt16) {
                         case 1 :
-                            // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:301:21: ASSIGN_EQUAL bl= booleanListExpression
+                            // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:303:21: ASSIGN_EQUAL bl= booleanListExpression
                             {
                             match(input,ASSIGN_EQUAL,FOLLOW_ASSIGN_EQUAL_in_variableDeclaration676); if (state.failed) return stmt;
+
                             pushFollow(FOLLOW_booleanListExpression_in_variableDeclaration682);
                             bl=booleanListExpression();
 
@@ -1403,23 +1477,26 @@ public class TextMarkerParser extends Pa
 
                     }
 
+
                     match(input,SEMI,FOLLOW_SEMI_in_variableDeclaration686); if (state.failed) return stmt;
-                    if ( state.backtracking==0 ) {
-                      addVariable(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, name.getText(), type.getText());if(bl != null){setValue(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, name.getText(), bl);}
-                    }
+
+                    if ( state.backtracking==0 ) {addVariable(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, name.getText(), type.getText());if(bl != null){setValue(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, name.getText(), bl);}}
 
                     }
                     break;
                 case 9 :
-                    // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:303:2: type= STRINGLIST {...}?name= Identifier ( ASSIGN_EQUAL sl= stringListExpression )? SEMI
+                    // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:305:2: type= STRINGLIST {...}?name= Identifier ( ASSIGN_EQUAL sl= stringListExpression )? SEMI
                     {
                     type=(Token)match(input,STRINGLIST,FOLLOW_STRINGLIST_in_variableDeclaration699); if (state.failed) return stmt;
+
                     if ( !((!isVariableOfType(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, input.LT(1).getText(), type.getText()))) ) {
                         if (state.backtracking>0) {state.failed=true; return stmt;}
                         throw new FailedPredicateException(input, "variableDeclaration", "!isVariableOfType($blockDeclaration::env, input.LT(1).getText(), type.getText())");
                     }
+
                     name=(Token)match(input,Identifier,FOLLOW_Identifier_in_variableDeclaration711); if (state.failed) return stmt;
-                    // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:305:20: ( ASSIGN_EQUAL sl= stringListExpression )?
+
+                    // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:307:20: ( ASSIGN_EQUAL sl= stringListExpression )?
                     int alt17=2;
                     int LA17_0 = input.LA(1);
 
@@ -1428,9 +1505,10 @@ public class TextMarkerParser extends Pa
                     }
                     switch (alt17) {
                         case 1 :
-                            // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:305:21: ASSIGN_EQUAL sl= stringListExpression
+                            // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:307:21: ASSIGN_EQUAL sl= stringListExpression
                             {
                             match(input,ASSIGN_EQUAL,FOLLOW_ASSIGN_EQUAL_in_variableDeclaration714); if (state.failed) return stmt;
+
                             pushFollow(FOLLOW_stringListExpression_in_variableDeclaration720);
                             sl=stringListExpression();
 
@@ -1442,23 +1520,26 @@ public class TextMarkerParser extends Pa
 
                     }
 
+
                     match(input,SEMI,FOLLOW_SEMI_in_variableDeclaration724); if (state.failed) return stmt;
-                    if ( state.backtracking==0 ) {
-                      addVariable(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, name.getText(), type.getText());if(sl != null){setValue(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, name.getText(), sl);}
-                    }
+
+                    if ( state.backtracking==0 ) {addVariable(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, name.getText(), type.getText());if(sl != null){setValue(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, name.getText(), sl);}}
 
                     }
                     break;
                 case 10 :
-                    // D:\\work\\workspace-uima2\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:307:2: type= INTLIST {...}?name= Identifier ( ASSIGN_EQUAL il= numberListExpression )? SEMI
+                    // D:\\work\\workspace-uima3\\uimaj-ep-textmarker-engine\\src\\main\\java\\org\\apache\\uima\\textmarker\\parser\\TextMarkerParser.g:309:2: type= INTLIST {...}?name= Identifier ( ASSIGN_EQUAL il= numberListExpression )? SEMI
                     {
                     type=(Token)match(input,INTLIST,FOLLOW_INTLIST_in_variableDeclaration737); if (state.failed) return stmt;
+
                     if ( !((!isVariableOfType(((blockDeclaration_scope)blockDeclaration_stack.peek()).env, input.LT(1).getText(), type.getText()))) ) {
                         if (state.backtracking>0) {state.failed=true; return stmt;}
                         throw new FailedPredicateException(input, "variableDeclaration", "!isVariableOfType($blockDeclaration::env, input.LT(1).getText(), type.getText())");

[... 20877 lines stripped ...]