41 std::streambuf*
sbuf =
nullptr;
42 std::shared_ptr<std::ostream>
result;
47 :
result(new std::ostream(std::cout.rdbuf())) {}
49 :
result(new std::ostream(stream.rdbuf())) {}
Helper class for printing AST back to NMDOL test.
void pop_level()
end of current block scope (i.e.
NMODLPrinter(std::ostream &stream)
void add_indent()
print whitespaces for indentation
void add_element(const std::string &)
std::shared_ptr< std::ostream > result
void push_level()
start of new block scope (i.e.
encapsulates code generation backend implementations