| Home | Trees | Index | Help |
|---|
| Module yeanpypa :: Class Combine |
|
Rule --+
|
Combine
| Method Summary | |
|---|---|
Initialize the rule with a subrule. | |
Return a human-readable description of the rule. | |
Recursivly combine all token into a single one. | |
Match this rule against the input. | |
| 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. The token generated by the
subrule are recursivly combined into one string.
|
__str__(self)
Return a human-readable description of the rule.
|
combine(self, token)Recursivly combine all token into a single one. This is an internal helper that recursivly combines a list of lists (or strings) into one string.
|
match(self, input_reader)Match this rule against the input. The rule matches the input against its subrule and combines the resulting token into a string.
|
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Sat Feb 10 16:11:43 2007 | http://epydoc.sf.net |