agentcooper / cpp-ast-example

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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


Languages

Language:C++ 93.8%Language:Makefile 6.2%