28 std::array<char, 1024> buf{};
29 while (curr !=
nullptr) {
33 sprintf(buf.data(),
"%*s", depth * 2,
" ");
34 std::cout << buf.data() <<
"'" << examinee->
toString() <<
"' " <<
typeid(*examinee).name()
std::string toString() const
Access to original string representation of current expression.
const ExprNode * parent() const
Access parent node - root node has no parent.
const ExprType & type() const
The type of the node.
std::string toString() const
Stringify the type into a printable string.
bool examine(const ExprNode *examinee) override
void post(const ExprNode *) override
KSeExpr::SPrintFuncX sprintf