Skip to content

Instantly share code, notes, and snippets.

View whizzter's full-sized avatar

Jonas Lund whizzter

View GitHub Profile
@whizzter
whizzter / cotmta.cpp
Created March 13, 2017 23:58 — forked from paniq/cotmta.cpp
Cheney on the MTA in C++11
// Syntax demo for writing Cheney on the MTA style code in C++11
// (see http://home.pipeline.com/~hbaker1/CheneyMTA.html for more info)
//
// Using variadic macros, I managed to design a syntax that is good enough
// to write in, as opposed to the automated code generation that COTMTA
// originally envisioned.
//
// key reasons why I intend to use this:
// * Writing a Scheme interpreter that keeps the C stack compact