Package EasyExtend :: Module eecompiler :: Class EEModule
[hide private]
[frames] | no frames]

Class EEModule

      object --+    
               |    
eeoptions.EEShow --+
                   |
                  EEModule

Class used to represent a module object of the langlet.

Instance Methods [hide private]
 
__init__(self, tree, filename, langlet)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
write_to_file(self)
 
preprocess(self, **kwd)
 
compile(self, **kwd)
Create Python code object from transformed extension language parse tree.
 
dump(self, f)
Dump Python code-object into a binary file
 
getPycHeader(self)

Inherited from eeoptions.EEShow: maybe_grammar_check, maybe_show_cst_after, maybe_show_cst_before, maybe_show_python, maybe_show_scan, maybe_show_token

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

Class Methods [hide private]

Inherited from eeoptions.EEShow: show_tokenstream

Class Variables [hide private]
  mode = 'exec'
  MAGIC = '\xb3\xf2\r\n'
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, tree, filename, langlet)
(Constructor)

 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Parameters:
  • tree - parse tree of the extension language
  • filename - filename of the compiled module
  • langlet - Python module object containing relevant ext-language definitions.
Overrides: object.__init__