| Method Summary |
| |
__init__(self,
string)
Initialize the rule with the string to match. |
| |
__str__(self)
Return a string representation of this rule. |
| |
match(self,
input_reader)
Match this rule against the input. |
| Inherited from Rule |
| |
__add__(self,
second_rule)
Define an operator to concat two rules. |
| |
__or__(self,
second_rule)
Define an operator to concat two rules via OR. |
| |
callAction(self,
param)
Call the action attached to this rule. |
| |
hide(self)
Tell this rule to not produce any token output. |
| |
returnToken(self,
token)
Helper function encapsulating the hide()-functionality. |
| |
setAction(self,
action)
Set the action to execute on a rule match. |