Modified: 
uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/core/parser/TextMarkerParser.tokens
URL: 
http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/core/parser/TextMarkerParser.tokens?rev=1186749&r1=1186748&r2=1186749&view=diff
==============================================================================
--- 
uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/core/parser/TextMarkerParser.tokens
 (original)
+++ 
uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/core/parser/TextMarkerParser.tokens
 Thu Oct 20 11:46:23 2011
@@ -1,150 +1,151 @@
-STAR=137
-FloatTypeSuffix=112
-OctalLiteral=110
-FILTERMARKUP=48
-LOG=38
-CONTAINS=8
-REMOVE=66
-GREATEREQUAL=150
-MARKFAST=42
-MATCHEDTEXT=72
-CONDITION=91
-COUNT=14
-LOGN=99
-NOT=64
-Identifier=122
-ACTION=92
-NOTEQUAL=147
-CLEAR=74
-VBAR=139
-DOUBLELIST=95
-ENDSWITH=63
-RPAREN=124
-CREATE=32
-GREATER=142
-SIN=100
-EXP=98
-CURRENTCOUNT=16
-COS=101
-TAN=102
-TYPELIST=97
-LESS=141
-REGEXP=26
-GET=69
-PARTOF=23
-UNMARK=55
-LAST=19
-COMMENT=152
-REMOVEDUPLICATE=67
-UNMARKALL=56
-RBRACK=126
-NEAR=21
-LINE_COMMENT=153
-IntegerTypeSuffix=107
-MARKSCORE=40
-REMOVESTRING=73
-TRANSFER=57
-LCURLY=127
-TRIE=7
-FILTERTYPE=49
-RETAINMARKUP=46
-STRINGLIST=96
-MARKONCE=41
-ScriptString=80
-EngineString=81
-WS=151
-WORDTABLE=11
-WORDLIST=10
-AutomataBlockString=83
-FloatingPointLiteral=113
-INTLIST=94
-OR=22
-JavaIDDigit=121
-CALL=50
-Annotation=5
-FALSE=105
-LESSEQUAL=149
-RessourceLiteral=117
-VOTE=28
-Letter=120
-EscapeSequence=114
-SIZE=71
-BasicAnnotationType=76
-LBRACK=125
-CharacterLiteral=115
-DEL=37
-ATTRIBUTE=35
-TypeString=84
-Exponent=111
-ASSIGN_EQUAL=143
-RETAINTYPE=47
-AND=12
-TypeSystemString=89
-EXPAND=58
-BlockString=82
-IntString=85
-HexDigit=106
-COLOR=36
-LPAREN=123
-POSITION=25
-IF=29
-AT=130
-LogLevel=77
-SLASH=138
-THEN=75
-FILL=34
-COMMA=133
-IS=61
-AMPER=140
-REPLACE=45
-GETLIST=70
-EQUAL=146
-GATHER=33
-INLIST=17
-PLUS=135
-BooleanString=88
-GETFEATURE=54
-DOT=131
-ListIdentifier=6
-PARTOFNEQ=24
-BOOLEANLIST=93
-ADD=65
-MARKTABLE=43
-HexLiteral=108
-XOR=103
-PERCENT=144
-MARK=39
-PARSE=31
-PackageString=79
-OldColor=78
-MARKLAST=44
-MERGE=68
-CONTEXTCOUNT=13
-BEFORE=59
-EXEC=51
-MINUS=136
-AFTER=60
-DecimalLiteral=109
-SEMI=134
-TRUE=104
-FEATURE=30
-SymbolString=90
-COLON=132
-StringLiteral=116
-StringString=87
-SCORE=27
-QUESTION=145
-UnicodeEscape=118
-RCURLY=128
-STARTSWITH=62
-ASSIGN=52
-TOTALCOUNT=15
-DECLARE=9
-DocComment=4
-ISINTAG=18
-MOFN=20
-OctalEscape=119
-SETFEATURE=53
-DoubleString=86
-CIRCUMFLEX=129
-ALT_NOTEQUAL=148
+ACTION=4
+ADD=5
+AFTER=6
+ALT_NOTEQUAL=7
+AMPER=8
+AND=9
+ASSIGN=10
+ASSIGN_EQUAL=11
+AT=12
+ATTRIBUTE=13
+Annotation=14
+AutomataBlockString=15
+BEFORE=16
+BOOLEANLIST=17
+BasicAnnotationType=18
+BlockString=19
+BooleanString=20
+CALL=21
+CIRCUMFLEX=22
+CLEAR=23
+COLON=24
+COLOR=25
+COMMA=26
+COMMENT=27
+CONDITION=28
+CONFIGURE=29
+CONTAINS=30
+CONTEXTCOUNT=31
+COS=32
+COUNT=33
+CREATE=34
+CURRENTCOUNT=35
+CharacterLiteral=36
+DECLARE=37
+DEL=38
+DOT=39
+DOUBLELIST=40
+DecimalLiteral=41
+DocComment=42
+DoubleString=43
+ENDSWITH=44
+EQUAL=45
+EXEC=46
+EXP=47
+EXPAND=48
+EngineString=49
+EscapeSequence=50
+Exponent=51
+FALSE=52
+FEATURE=53
+FILL=54
+FILTERMARKUP=55
+FILTERTYPE=56
+FloatTypeSuffix=57
+FloatingPointLiteral=58
+GATHER=59
+GET=60
+GETFEATURE=61
+GETLIST=62
+GREATER=63
+GREATEREQUAL=64
+HexDigit=65
+HexLiteral=66
+IF=67
+INLIST=68
+INTLIST=69
+IS=70
+ISINTAG=71
+Identifier=72
+IntString=73
+IntegerTypeSuffix=74
+JavaIDDigit=75
+LAST=76
+LBRACK=77
+LCURLY=78
+LESS=79
+LESSEQUAL=80
+LINE_COMMENT=81
+LOG=82
+LOGN=83
+LPAREN=84
+Letter=85
+ListIdentifier=86
+LogLevel=87
+MARK=88
+MARKFAST=89
+MARKLAST=90
+MARKONCE=91
+MARKSCORE=92
+MARKTABLE=93
+MATCHEDTEXT=94
+MERGE=95
+MINUS=96
+MOFN=97
+NEAR=98
+NOT=99
+NOTEQUAL=100
+OR=101
+OctalEscape=102
+OctalLiteral=103
+OldColor=104
+PARSE=105
+PARTOF=106
+PARTOFNEQ=107
+PERCENT=108
+PLUS=109
+POSITION=110
+PackageString=111
+QUESTION=112
+RBRACK=113
+RCURLY=114
+REGEXP=115
+REMOVE=116
+REMOVEDUPLICATE=117
+REMOVESTRING=118
+REPLACE=119
+RETAINMARKUP=120
+RETAINTYPE=121
+RPAREN=122
+RessourceLiteral=123
+SCORE=124
+SEMI=125
+SETFEATURE=126
+SIN=127
+SIZE=128
+SLASH=129
+STAR=130
+STARTSWITH=131
+STRINGLIST=132
+ScriptString=133
+StringLiteral=134
+StringString=135
+SymbolString=136
+TAN=137
+THEN=138
+TOTALCOUNT=139
+TRANSFER=140
+TRIE=141
+TRUE=142
+TYPELIST=143
+TypeString=144
+TypeSystemString=145
+UNMARK=146
+UNMARKALL=147
+UnicodeEscape=148
+VBAR=149
+VOTE=150
+WORDLIST=151
+WORDTABLE=152
+WS=153
+XOR=154

Modified: 
uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/parser/ast/ActionFactory.java
URL: 
http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/parser/ast/ActionFactory.java?rev=1186749&r1=1186748&r2=1186749&view=diff
==============================================================================
--- 
uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/parser/ast/ActionFactory.java
 (original)
+++ 
uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/parser/ast/ActionFactory.java
 Thu Oct 20 11:46:23 2011
@@ -15,7 +15,7 @@
  * KIND, either express or implied.  See the License for the
  * specific language governing permissions and limitations
  * under the License.
-*/
+ */
 
 package org.apache.uima.textmarker.ide.parser.ast;
 
@@ -29,7 +29,6 @@ import org.antlr.runtime.Token;
 import org.eclipse.dltk.ast.expressions.Expression;
 import org.eclipse.dltk.ast.expressions.ExpressionConstants;
 
-
 public class ActionFactory extends AbstractFactory {
 
   public static TextMarkerAction createAction(Token type, List exprsRaw) {
@@ -207,4 +206,16 @@ public class ActionFactory extends Abstr
     return createAction(name, complete);
   }
 
+  public static TextMarkerAction createConfigureAction(Token name, 
ComponentReference ns,
+          List<Expression> left, List<Expression> right) {
+    List<Expression> exprs = new ArrayList<Expression>();
+    exprs.add(ns);
+    if (left != null && right != null) {
+      for (int i = 0; i < Math.min(left.size(), right.size()); i++) {
+        exprs.add(left.get(i));
+        exprs.add(right.get(i));
+      }
+    }
+    return createAction(name, exprs);
+  }
 }


Reply via email to