Home | Trees | Index | Help |
|
---|
Module bison :: Class ParserEngine |
|
object
--+
|
ParserEngine
Wraps the interface to the binary bison/lex-generated parser engine dynamic library.
You shouldn't need to deal with this at all.
Takes care of:Method Summary | |
---|---|
x.__init__(...) initializes x; see x.__class__.__doc__ for signature | |
Clean up and bail | |
Creates the parser engine lib | |
Does the necessary cleanups and closes the parser library | |
Tests if library exists and is current. | |
Loads the parser engine's dynamic library, and extracts the following symbols: | |
Runs the binary parser engine, as loaded from the lib | |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) | |
Inherited from type | |
T.__new__(S, ...) -> a new object with type S, a subtype of T |
Method Details |
---|
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for
signature
|
__del__(...)
Clean up and bail
|
buildLib(...)Creates the parser engine lib This consists of:
|
closeLib(...)Does the necessary cleanups and closes the parser library |
openCurrentLib(...)Tests if library exists and is current. If not, builds a fresh one Opens the library |
openLib(...)Loads the parser engine's dynamic library, and extracts the following symbols:
Returns lib handle, plus pointer to do_parse() function, as long ints (which later need to be cast to pointers) Important note -this is totally linux-specific. If you want windows support, you'll have to modify these funcs to use glib instead (or create windows equivalents), in which case I'd greatly appreciate you sending me a patch. |
runEngine(...)Runs the binary parser engine, as loaded from the lib |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Fri Apr 23 19:00:01 2004 | http://epydoc.sf.net |