c_client::PreCode Class Reference
Public Member Functions |
def | __init__ |
def | start |
def | end |
def | output_tempvars |
def | code |
def | tempvar |
def | get_tempvarname |
def | push_indent |
def | push_addindent |
def | indent |
def | pop_indent |
def | redirect_start |
def | redirect_end |
Data Fields |
| nesting_level |
| tempvars |
| codelines |
| redirect_code |
| redirect_tempvars |
| indent_str |
| indent_stack |
| tempvar_num |
Detailed Description
For pre-code generated by expression generation
(for example, the for-loop of a sumof)
This has to account for recursiveness of the expression
generation, i.e., there may be pre-code for pre-code.
Therefore this is implemented as a stack of lists of lines.
If redirection is switched on, then all output is collected in
self.redirect_code and self.redirect_tempvars instead of
being sent to the output via _h und _c.
The documentation for this class was generated from the following file: