Package Martel :: Module Parser
[show private | hide private]
[frames | no frames]

Module Martel.Parser

Implement Martel parsers.

The classes in this module are used by other Martel modules and not typically by external users.

There are two major parsers, 'Parser' and 'RecordParser.' The first is the standard one, which parses the file as one string in memory then generates the SAX events. The other reads a record at a time using a RecordReader and generates events after each read. The generated event callbacks are identical.

At some level, both parsers use "_do_callback" to convert mxTextTools tags into SAX events.

XXX finish this documentation

XXX need a better way to get closer to the likely error position when parsing.

XXX need to implement Locator
Classes
HeaderFooterParser Header followed by 0 or more records followed by a footer
MartelAttributeList  
Parser Parse the input data all in memory
RecordParser Parse the input data a record at a time

Exceptions
ParserException used when a parse cannot be done
ParserIncompleteException  
ParserPositionException  
ParserRecordException used by the RecordParser when it can't read a record

Generated by Epydoc 2.1 on Thu Aug 10 20:01:05 2006 http://epydoc.sf.net