simpleparse.printers
index
s:\sp\simpleparse\printers.py

 
Modules
            
string
 
Classes
            
_GeneratorFormatter
 
class _GeneratorFormatter
      Singleton Class to give a generator's element tokens as a source string
 
Call this as:
        printers.asGenerator( generator ) to get a Python source string
        that tries to recreate the generator as a set of objectgenerator
        element token objects (as seen in simpleparsegrammar).
 
   Methods defined here:
__call__(self, generator)
reprObject(self, obj, depth=0, indent=' ')
Return a recognisable version of an objectgenerator element token

Data and non-method functions defined here:
HEAD = 'from simpleparse import generator\nfrom simplepar...return GENERATOR.buildParser( name, processor )\n\n'
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
ITEM = 'GENERATOR.addDefinition(\n %(name)s,\n %(element)s,\n)\n'
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
__doc__ = "Singleton Class to give a generator's element to... token objects (as seen in simpleparsegrammar).\n\t"
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
__module__ = 'simpleparse.printers'
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
 
Functions
            
asObject = reprObject(self, obj, depth=0, indent=' ') method of _GeneratorFormatter instance
Return a recognisable version of an objectgenerator element token
 
Data
             __file__ = r'S:\sp\simpleparse\printers.pyc'
__name__ = 'simpleparse.printers'
asGenerator = <simpleparse.printers._GeneratorFormatter instance at 0x007B7840>