105 ast->visit(
this,
nullptr);
111 for(std::size_t
i = 0;
i <
astList.size(); ++
i) {
#define DECLARATION_VISIT_PROC(CLASS_NAME)
Definition Visitor.hpp:88
static decltype(auto) from(U value, Args &&... args)
Converts a value into it's string representation.
Definition String.hpp:386
Definition ASTPrinter.hpp:27
std::size_t mMaxColStrLen
Definition ASTPrinter.hpp:42
const String & topMemberName() const
Stack< String > mMemberNameStack
Definition ASTPrinter.hpp:40
PrintableTree * topPrintable()
void print(const PrintableTree &tree, std::ostream &output)
void visitMember(T ast, const String &name)
Definition ASTPrinter.hpp:102
String writeLabel(const String &astName, TypedAST *ast=nullptr)
std::size_t mMaxRowStrLen
Definition ASTPrinter.hpp:42
Vector< bool > mLastSubNodeStack
Definition ASTPrinter.hpp:39
bool pushPrintable(const AST *ast, const String &label, const String &value="")
void printAST(Program *program, std::ostream &output=std::cout)
PrintableTree mTreeRoot
Definition ASTPrinter.hpp:37
Stack< PrintableTree * > mParentNodeStack
Definition ASTPrinter.hpp:38
void visitMember(const Vector< T > &astList, const String &name)
Definition ASTPrinter.hpp:110
void printable(const AST *ast, const String &label, const String &value="")
void pushMemberName(const String &name)
Definition Visitor.hpp:92
std::stack< T, Container > Stack
The Stack class is a container adapter that gives the programmer the functionality of a stack - speci...
Definition Stack.hpp:18
std::uint64_t UInt64
Definition DataTypes.hpp:26
std::vector< T, ScopedAllocatorAdaptor< StdAllocator< T, RawAllocator > > > Vector
Vector is a sequence container that encapsulates dynamic size arrays.
Definition Vector.hpp:17
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25
Definition ASTPrinter.hpp:29
String value
Definition ASTPrinter.hpp:33
Vector< PrintableTree > children
Definition ASTPrinter.hpp:34
String col
Definition ASTPrinter.hpp:31
String label
Definition ASTPrinter.hpp:32
String row
Definition ASTPrinter.hpp:30