Package EasyExtend :: Module eeoptions :: Class EEShow
[hide private]
[frames] | no frames]

Class EEShow

object --+
         |
        EEShow
Known Subclasses:

EEShow is an abstract base class. It provides

Instance Methods [hide private]
 
maybe_show_token(self, source, filename=None)
Used to show token-stream created by tokenizer.
 
maybe_show_cst_before(self, cst)
Used to show CST created by the parser *before* transformation.
 
maybe_show_cst_after(self, cst)
Used to show CST created by the parser *after* transformation.
 
maybe_show_python(self, cst)
Used to show Python source code generated transformed cst.
 
maybe_grammar_check(self, cst)
Used to show Python source code generated transformed cst.
 
maybe_show_scan(self, scan)
show unfiltered token stream passed to the lexical post processor

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

Class Methods [hide private]
 
show_tokenstream(cls, langlet, tokenstream)
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

maybe_show_token(self, source, filename=None)

 

Used to show token-stream created by tokenizer. Call depends on show_token option -t.

Parameters:
  • source - source string to be tokenized
  • filename - if filename is available the source is read from a file.

maybe_show_cst_before(self, cst)

 

Used to show CST created by the parser *before* transformation. Call depends on show_cst_before option -b.

Parameters:
  • cst - cst to be printed.

maybe_show_cst_after(self, cst)

 

Used to show CST created by the parser *after* transformation. Call depends on show_cst_after option -a.

Parameters:
  • cst - cst to be printed.

maybe_show_python(self, cst)

 

Used to show Python source code generated transformed cst. Call depends on show_token option -p.

Parameters:
  • cst - cst to be unparsed.

maybe_grammar_check(self, cst)

 

Used to show Python source code generated transformed cst. Call depends on show_token option -p.

Parameters:
  • cst - cst to be unparsed.

maybe_show_scan(self, scan)

 

show unfiltered token stream passed to the lexical post processor

Parameters:
  • scan - list of token