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

Class EECompiler

      object --+    
               |    
eeoptions.EEShow --+
                   |
                  EECompiler

Instance Methods [hide private]
 
__init__(self, langlet)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
expr(self, source, no_transform=False)
 
suite(self, source, no_transform=False)
 
transform(self, cst, **kwd)
 
tokenize(self, source)
Returns: token stream.
 
tokenize_string(self, source)
 
old_tokenize_file(self, filename)
 
tokenize_file(self, filename)
 
parse(self, stream, start_symbol=None)
 
parse_file(self, filename)
 
new_parse_file(self, filename)
 
parse_source(self, source, start_symbol)
 
parse_expr(self, source)
 
parse_suite(self, source)
 
try_compile(self, cst, **kwd)
 
compile_cst(self, node, **kwd)
 
compile_suite(self, source, **kwd)
 
compile_expr(self, source, **kwd)
 
compile_file(self, filename, **kwd)
Compile file according to a specific extension language into a Python module.

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, langlet)
(Constructor)

 

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

Overrides: object.__init__
(inherited documentation)

tokenize(self, source)

 
Parameters:
  • source - text to be tokenized.
Returns:
token stream.

parse_file(self, filename)

 
Parameters:
  • filename - file to be parsed.

new_parse_file(self, filename)

 
Parameters:
  • filename - file to be parsed.

compile_suite(self, source, **kwd)

 
Parameters:
  • source - source in string form

compile_expr(self, source, **kwd)

 
Parameters:
  • source - source in string form

compile_file(self, filename, **kwd)

 

Compile file according to a specific extension language into a Python module.

Parameters:
  • filename - path to the destination file that will be compiled