| Home | Trees | Index | Help |
|---|
| Module yeanpypa :: Class IgnoreWhite |
|
Rule --+
|
IgnoreWhite
| Method Summary | |
|---|---|
Initialize the rule with a subrule. | |
Return a human-readable representation of this rule. | |
Match the input against this rule. | |
| Inherited from Rule | |
Define an operator to concat two rules. | |
Define an operator to concat two rules via OR. | |
Call the action attached to this rule. | |
Tell this rule to not produce any token output. | |
Helper function encapsulating the hide()-functionality. | |
Set the action to execute on a rule match. | |
| Class Variable Summary | |
|---|---|
| Inherited from Rule | |
NoneType |
action = None |
bool |
hide_token = False
|
| Method Details |
|---|
__init__(self,
rule)
Initialize the rule with a subrule.
|
__str__(self)
Return a human-readable representation of this rule.
|
match(self, input_reader)Match the input against this rule. The input reader is set to 'ignore whitespace' mode, the subrule is matched, the ignore state of the input reader is reset and the result of the subrule is returned.
|
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Sat Feb 10 16:11:43 2007 | http://epydoc.sf.net |