/cpp-ast-example

Examples of representing and traversing AST (Abstract Syntax Tree) in C++

Primary LanguageC++

Examples of representing and traversing AST (Abstract Syntax Tree) in C++:

  1. Using inheritance and visitor pattern (ast_inheritance.cpp)
  2. Using std::variant and std::visit (ast_variant_visit.cpp)

Build

make all