Examples of representing and traversing AST (Abstract Syntax Tree) in C++:
- Using inheritance and visitor pattern (ast_inheritance.cpp)
- Using
std::variant
andstd::visit
(ast_variant_visit.cpp)
Build
make all
Examples of representing and traversing AST (Abstract Syntax Tree) in C++
Examples of representing and traversing AST (Abstract Syntax Tree) in C++:
std::variant
and std::visit
(ast_variant_visit.cpp)make all