17.5.5.12Class TagRule

Class representing a tag rule.

Class TagRule( token, action, tag, 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.

Token rules are simply fixed length rules matching the input text.

Properties
token
Methods
apply
match
Properties inherited from class Rule
action
lookAhead
matchLen
nextState
Methods inherited from class Rule
apply
match

Properties

token

Methods

apply

apply( ctx )

match

match( text, pos )
Made with http://www.falconpl.org