An open API service indexing awesome lists of open source software.

https://github.com/agentcooper/cpp-ast-example

Examples of representing and traversing AST (Abstract Syntax Tree) in C++
https://github.com/agentcooper/cpp-ast-example

ast cpp

Last synced: about 1 year ago
JSON representation

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

Awesome Lists containing this project

README

          

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

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

# Build

```bash
make all
```