tree-gen
C++ code generator for tree structures
|
Python generation source file for tree-gen. More...
Go to the source code of this file.
Namespaces | |
tree_gen | |
Namespace for the tree-gen program. | |
tree_gen::python | |
Namespace for Python code generation. | |
Functions | |
void | tree_gen::python::format_doc (std::ofstream &stream, const std::string &doc, const std::string &indent="") |
Formats a Python docstring. More... | |
void | tree_gen::python::generate_deserialize_mux (std::ofstream &output, Node &node) |
Recursive function to print a muxing if statement for all node classes derived from the given node class. More... | |
void | tree_gen::python::generate_node_class (std::ofstream &output, Specification &spec, Node &node) |
Generates the class for the given node. More... | |
void | tree_gen::python::generate (const std::string &python_filename, Specification &specification) |
Generates the complete Python code. More... | |
Python generation source file for tree-gen.
Definition in file tree-gen-python.cpp.