Skip to content

Light-of-Hers/GeneralVisitor

Repository files navigation

A General Visitor-Pattern Interface for C++

Introduction

An example for general_visitor.h.

Learn more about it in an article published in Zhihu.

Build & Run

Require flex and bison for parser.

$ mkdir build
$ cd build
$ cmake ..
$ make
$ ./calculator
1 + 1;
2
(1 + 3) * 3 / 4;
3

About

A General Visitor-Pattern Interface for C++

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published