Modified: 
uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-engine/src/main/java/org/apache/uima/textmarker/parser/TextMarkerParser.tokens
URL: 
http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-engine/src/main/java/org/apache/uima/textmarker/parser/TextMarkerParser.tokens?rev=1187332&r1=1187331&r2=1187332&view=diff
==============================================================================
--- 
uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-engine/src/main/java/org/apache/uima/textmarker/parser/TextMarkerParser.tokens
 (original)
+++ 
uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-engine/src/main/java/org/apache/uima/textmarker/parser/TextMarkerParser.tokens
 Fri Oct 21 13:29:24 2011
@@ -35,117 +35,118 @@ 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
+DYNAMICANCHORING=41
+DecimalLiteral=42
+DocComment=43
+DoubleString=44
+ENDSWITH=45
+EQUAL=46
+EXEC=47
+EXP=48
+EXPAND=49
+EngineString=50
+EscapeSequence=51
+Exponent=52
+FALSE=53
+FEATURE=54
+FILL=55
+FILTERMARKUP=56
+FILTERTYPE=57
+FloatTypeSuffix=58
+FloatingPointLiteral=59
+GATHER=60
+GET=61
+GETFEATURE=62
+GETLIST=63
+GREATER=64
+GREATEREQUAL=65
+HexDigit=66
+HexLiteral=67
+IF=68
+INLIST=69
+INTLIST=70
+IS=71
+ISINTAG=72
+Identifier=73
+IntString=74
+IntegerTypeSuffix=75
+JavaIDDigit=76
+LAST=77
+LBRACK=78
+LCURLY=79
+LESS=80
+LESSEQUAL=81
+LINE_COMMENT=82
+LOG=83
+LOGN=84
+LPAREN=85
+Letter=86
+ListIdentifier=87
+LogLevel=88
+MARK=89
+MARKFAST=90
+MARKLAST=91
+MARKONCE=92
+MARKSCORE=93
+MARKTABLE=94
+MATCHEDTEXT=95
+MERGE=96
+MINUS=97
+MOFN=98
+NEAR=99
+NOT=100
+NOTEQUAL=101
+OR=102
+OctalEscape=103
+OctalLiteral=104
+OldColor=105
+PARSE=106
+PARTOF=107
+PARTOFNEQ=108
+PERCENT=109
+PLUS=110
+POSITION=111
+PackageString=112
+QUESTION=113
+RBRACK=114
+RCURLY=115
+REGEXP=116
+REMOVE=117
+REMOVEDUPLICATE=118
+REMOVESTRING=119
+REPLACE=120
+RETAINMARKUP=121
+RETAINTYPE=122
+RPAREN=123
+RessourceLiteral=124
+SCORE=125
+SEMI=126
+SETFEATURE=127
+SIN=128
+SIZE=129
+SLASH=130
+STAR=131
+STARTSWITH=132
+STRINGLIST=133
+ScriptString=134
+StringLiteral=135
+StringString=136
+SymbolString=137
+TAN=138
+THEN=139
+TOTALCOUNT=140
+TRANSFER=141
+TRIE=142
+TRUE=143
+TYPELIST=144
+TypeString=145
+TypeSystemString=146
+UNMARK=147
+UNMARKALL=148
+UnicodeEscape=149
+VBAR=150
+VOTE=151
+WORDLIST=152
+WORDTABLE=153
+WS=154
+XOR=155

Modified: 
uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/core/TextMarkerKeywords.java
URL: 
http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/core/TextMarkerKeywords.java?rev=1187332&r1=1187331&r2=1187332&view=diff
==============================================================================
--- 
uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/core/TextMarkerKeywords.java
 (original)
+++ 
uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/core/TextMarkerKeywords.java
 Fri Oct 21 13:29:24 2011
@@ -36,7 +36,7 @@ public class TextMarkerKeywords implemen
       "ATTRIBUTE", "MARKFAST", "FILTERTYPE", "FILTERMARKUP", "CREATE", "FILL", 
"MARKTABLE",
       "UNMARK", "TRANSFER", "MARKONCE", "TRIE", "GATHER", "EXEC", "MARKLAST", 
"ADD", "REMOVE",
       "MERGE", "GET", "GETLIST", "REMOVEDUPLICATE", "GETFEATURE", 
"MATCHEDTEXT", "CLEAR",
-      "UNMARKALL", "EXPAND", "CONFIGURE" };
+      "UNMARKALL", "EXPAND", "CONFIGURE", "DYNAMICANCHORING" };
 
   private static String[] basic = { "ALL", "ANY", "AMP", "BREAK", "W", "NUM", 
"PM", "Document",
       "MARKUP", "SW", "CW", "CAP", "PERIOD", "NBSP", "SENTENCEEND", "COLON", 
"COMMA", "SEMICOLON",

Modified: 
uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/core/parser/TextMarkerParser.g
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.g?rev=1187332&r1=1187331&r2=1187332&view=diff
==============================================================================
--- 
uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/core/parser/TextMarkerParser.g
 (original)
+++ 
uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/core/parser/TextMarkerParser.g
 Fri Oct 21 13:29:24 2011
@@ -1126,6 +1126,7 @@ action returns [TextMarkerAction result 
        | a = actionClear
        | a = actionExpand
        | a = actionConfigure
+       | a = actionDynamicAnchoring
        | (a = externalAction)=> a = externalAction
        | a = variableAction
        ) {result = a;}
@@ -1482,6 +1483,18 @@ actionGetFeature returns [TextMarkerActi
     ;
 
 //unknown
+actionDynamicAnchoring returns [TextMarkerAction action = null]
+    :
+    name = DYNAMICANCHORING LPAREN active = booleanExpression 
+     {action = ActionFactory.createAction(name, active);}
+    (COMMA penalty = numberExpression 
+    {action = ActionFactory.createAction(name, active, penalty);}
+    (COMMA factor = numberExpression)?)? 
+    {action = ActionFactory.createAction(name, active, penalty, factor);}
+    RPAREN
+    ;
+
+//unknown
 actionUnmark returns [TextMarkerAction action = null]
     :
     name = UNMARK LPAREN f = typeExpression


Reply via email to