项目作者: yanlinlin82

项目描述 :
an interpreter for C++
高级语言: C++
项目地址: git://github.com/yanlinlin82/icpp.git
创建时间: 2020-01-23T20:15:08Z
项目社区:https://github.com/yanlinlin82/icpp

开源协议:MIT License

下载


icpp: an interpreter for C++

Motivation

This project is inspired by c4 - C in four functions.

I am trying to implement an interpreter for modern C++. This should be an efficient way to learn details of the language, as well as related compiler techniques. The goal is to make the interpreter interpret itself, and I am still on the way.

Quick Start

For quick start, try the following:

  1. g++ -Wall -std=c++17 icpp.cpp -o icpp
  2. ./icpp hello.cpp
  3. ./icpp icpp.cpp hello.cpp # (not finished yet)

The assembly code can be shown in two ways:

  1. ./icpp -s hello.cpp # as static parsing
  2. ./icpp -v hello.cpp # as runtime tracking

Screenshots

More Examples

More interpretable demo code can be found in tests/.