![]() |
User Guide
|
Visitor for verbatim blocks of AST More...
Visitor for verbatim blocks of AST
This is simple example of visitor that uses base AstVisitor interface. We override visitVerbatim method and store all verbatim blocks that we encounter. This could be used for generating report of all verbatim blocks from all mod files in ModelDB.
Definition at line 38 of file verbatim_visitor.hpp.
#include <verbatim_visitor.hpp>
Private Attributes | |
bool | verbose = false |
flag to enable/disable printing blocks as we visit them More... | |
std::vector< std::string > | blocks |
vector containing all verbatim blocks More... | |
|
default |
|
inlineexplicit |
Definition at line 49 of file verbatim_visitor.hpp.
|
inlinenoexcept |
Definition at line 55 of file verbatim_visitor.hpp.
|
overridevirtual |
visit node of type ast::Verbatim
Implements nmodl::visitor::ConstVisitor.
Definition at line 18 of file verbatim_visitor.cpp.
|
private |
vector containing all verbatim blocks
Definition at line 44 of file verbatim_visitor.hpp.
|
private |
flag to enable/disable printing blocks as we visit them
Definition at line 41 of file verbatim_visitor.hpp.