20 const auto& statement =
node.get_statement();
22 block = statement->eval();
24 if (!block.empty() &&
verbose) {
25 std::cout <<
"BLOCK START" << block <<
"\nBLOCK END \n\n";
Represents a C code block.
void visit_verbatim(const ast::Verbatim &node) override
visit node of type ast::Verbatim
bool verbose
flag to enable/disable printing blocks as we visit them
std::vector< std::string > blocks
vector containing all verbatim blocks
encapsulates code generation backend implementations
static Node * node(Object *)
Auto generated AST classes declaration.
Auto generated AST classes declaration.
Visitor for verbatim blocks of AST