Regular expression enabled ruler matcher.
Class ReRule( token, action, re, nextState ) from \ Rule(( nextState, action))
token | the string matching a fixed token |
action | the action (function) that should be done when hitting the token. |
The function will be called with the token as last parameter.
Properties | |
anchored | |
eol | |
grabs | |
re | |
token | |
Methods | |
apply | |
match |
Properties inherited from class Rule | |
action | |
lookAhead | |
matchLen | |
nextState | |
Methods inherited from class Rule | |
apply | |
match |
apply( context )
match( text, pos )