Package tdi :: Module interfaces :: Class ParserInterface
[frames] | no frames]

Class ParserInterface

source code

object --+
         |
        ParserInterface

Interface for template parsers
Instance Methods
 
feed(self, food)
Take a chunk of data and generate parser events out of it
source code
 
finalize(self)
Finish the parser
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

feed(self, food)

source code 
Take a chunk of data and generate parser events out of it
Parameters:
  • food (str) - The data to process

finalize(self)

source code 

Finish the parser

Calling finalize indicates that feed is not called any more and advises the parser to flush all pending events.