| Home | Trees | Index | Help |
|---|
| Package ZestyParser :: Module DebuggingParser :: Class DebuggingParser |
|
ZestyParser --+
|
DebuggingParser
Parser.ZestyParser subclass which is useful
for debugging parsers. It parses as usual, but it also prints a
comprehensive trace to stderr.
| Method Summary | |
|---|---|
__init__(self,
*a,
**k)
| |
iter(self,
token,
*args,
**kwargs)
| |
| object |
Scan for one token. |
| bool |
A convenience method that skips one token and returns whether it matched. |
| Inherited from ZestyParser | |
| tuple |
Returns row/column coordinates for a given point in the input stream, or cursor by default. |
Begin parsing a stream of data | |
| Instance Variable Summary | |
|---|---|
| Inherited from ZestyParser | |
| dict | context: A dictionary which can be used for storing any necessary state
information. |
| int | cursor: The current position of the parser in data. |
| sequence | data: The sequence being parsed (probably a string). |
token |
last: The last matched token. |
| Class Variable Summary | |
|---|---|
int |
depth = -1 |
| Inherited from ZestyParser | |
int |
len = 0 |
NoneType |
whitespace = None |
| Method Details |
|---|
scan(self, token)Scan for one token.
|
skip(self, token)A convenience method that skips one token and returns whether it matched.
|
| Class Variable Details |
|---|
depth
|
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Thu Apr 26 01:32:22 2007 | http://epydoc.sf.net |