Package gavo :: Package grammars :: Module directgrammar :: Class SplitCodeGenerator
[frames] | no frames]

Class SplitCodeGenerator

source code

         object --+        
                  |        
     _CodeGenerator --+    
                      |    
_LineBasedCodeGenerator --+
                          |
                         SplitCodeGenerator

a code generator for parsing files with lineas and separators.

Instance Methods
 
__init__(self, grammar, tableDef)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
getPreamble(self)
returns a list of lines that make up the top of the booster.
source code
 
getSetupCode(self)
returns a sequence of C lines for code between an item parser.
source code
 
getItemParser(self, item, index)
returns code that parses item (a Column instance) at column index index.
source code

Inherited from _LineBasedCodeGenerator: getFooter

Inherited from _CodeGenerator: getPrototype

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

Properties

Inherited from object: __class__

Method Details

__init__(self, grammar, tableDef)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

getPreamble(self)

source code 

returns a list of lines that make up the top of the booster.

Overrides: _CodeGenerator.getPreamble
(inherited documentation)

getSetupCode(self)

source code 

returns a sequence of C lines for code between an item parser.

Overrides: _CodeGenerator.getSetupCode
(inherited documentation)

getItemParser(self, item, index)

source code 

returns code that parses item (a Column instance) at column index index.

You're free to igore index.

Overrides: _CodeGenerator.getItemParser
(inherited documentation)