Contents:
Utilities for generating code.
CodeWriter
Bases: object
object
Class used to generate formatted text, i.e. text with control of indentation and scope. Useful for generating code.
al
Append code to the current line.
bl
Begin a line of code.
count_num_lines
Count number of lines in the code.
dec_indent
Decrease indent depth.
el
Append code to the current line and end line.
empty
Check if anything has been written.
get_scope
Get current scope.
inc_indent
Increase indent depth.
pop_first_line
Pop and return first line from code.
pop_scope
Pop scope.
print_trace
Insert debug information into code. Useful for tracing the origin of the code.
push_scope
Push scope.
reset
Reset code writer.
verbatim
Write code verbatim.
wc
Write several lines of code.
wl
Write a line of code.
ws
Output current scope.