Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 923 Bytes

README.md

File metadata and controls

40 lines (27 loc) · 923 Bytes

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.