tree-gen
C++ code generator for tree structures
Namespaces | Functions
tree-gen-python.cpp File Reference

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...
 

Detailed Description

Python generation source file for tree-gen.

Definition in file tree-gen-python.cpp.

#include <fstream>
#include <iostream>
#include <unordered_set>
#include "tree-gen-python.hpp"
Include dependency graph for tree-gen-python.cpp: