Trees | Indices | Help |
|
---|
|
BaseParser --+ | MultiParser
MultiParser is a simple container for any other parsers Usually parsers, such as BlockParser designed to parse homogeneous blocks in single source: file or string. But still it might be useful sometimes to parse multiple blocks of different syntax in single source. Thus, one can register some necessary parsers into MultiParser and go on.
|
|||
|
|||
|
|||
|
|||
|
|
|||
DEFAULT_OPT = {u"comment": u"#", u"tokens":(),}
|
|
@param parsers: dictionary containing string, list or compiled regexp of keywords as key and *Parser objects as values. @type parsers: dictionary with string or sequence keys @param opt: Options Available options: - comment: Comment character. Everything else ignored until EOL. Type: I{string (single char)} - tokens: List of tokens. Type: I{sequence} |
Register new parser. If parser for keyword given already registered replace it with new one.
|
Unregister parser. Ignore if was not registered. |
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu May 6 20:50:55 2010 | http://epydoc.sourceforge.net |