Skip to content

A tiny compiler written in modern C++ that transpiles Lisp to C++

License

Notifications You must be signed in to change notification settings

amaiorano/TinyCompiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TinyCompiler

A tiny compiler written in modern C++ that transpiles Lisp to C++.

This is based on James Kyle's excellent "The Super Tiny Compiler", which I discovered from Jonathan Turner's really great programming languages and compilers reading list.

When working through James Kyle's code, I decided to try and implement the compiler in C++ to better understand it. It also gave me a chance to practice using modern C++11/14/17 features.

How to build it

Install:

  • CMake 3.6 or newer
  • On Windows, Visual Studio 2015 Update 3 with Clang with Microsoft CodeGen (v140_clang_c2)

On Windows, run build_msvc.bat

On Linux (maybe Mac), run build_gcc.sh or build_clang.sh

About

A tiny compiler written in modern C++ that transpiles Lisp to C++

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published