Skip to content

This is my code for studying how to write a simple interpreter and a simple compiler called Monkey in cpp

License

Notifications You must be signed in to change notification settings

shejialuo/cppmpiler

Repository files navigation

cppmpiler

This is my implementation of Writing An Interpreter In Go and Writing A Compiler In Go in cpp.

Development Setup

For setting up the development environment. You must develop in the UNIX-like environment with the following requirements:

  • Latest gcc or clang for compilation.
  • Latest cmake for building the project.
  • clang-format for formatting the code.
  • Doxygen and graphviz for building the docs.

Build

It is easy to build for this project:

git clone https://github.com/shejialuo/cppmpiler
cd cppmpiler && mkdir build && cd build
cmake ..
make -j12

Run

There are tow modes:

  • i: interpreter
  • c: compiler
./cppmpiler i # run with interpreter mode
./cppmpiler c # run with compiler mode

Documentation

You could look at docs for documentation.

About

This is my code for studying how to write a simple interpreter and a simple compiler called Monkey in cpp

Resources

License

Stars

Watchers

Forks

Releases

No releases published