Start up Martel to do the scanning of the file.
This initialzes the Martel based parser and connects it to a handler
that will generate events for a Consumer.
Methods
|
|
__init__
feed
|
|
__init__
|
__init__ ( self, debug=0 )
Initialize the scanner by setting up our caches.
Arguments:
o debug - The level of debugging that the parser should display.
Level 0 is no debugging, Level 2 displays the most
debugging info (but is much slower).
See Martel documentation for more info on this.
|
|
feed
|
feed (
self,
handle,
consumer,
)
Feed a set of data into the scanner.
Arguments:
o handle - A handle with the information to parse.
o consumer - The consumer that should be informed of events.
|
|