Skip to content

Instantly share code, notes, and snippets.

View MarisaKirisame's full-sized avatar
💭
Trying to find some meaning in this absurd world. Iam14andthisisdeep.

霧雨魔理沙 MarisaKirisame

💭
Trying to find some meaning in this absurd world. Iam14andthisisdeep.
View GitHub Profile
@Kontinuation
Kontinuation / ski.cc
Last active August 29, 2015 13:56
SKI combinators generated by MetaLang
#include <iostream>
#include "metalang.hpp"
struct I {
template <typename x, typename _0>
struct apply {
typedef x value;
};
};
@Kontinuation
Kontinuation / schemelike.cc
Created October 9, 2013 13:44
Some scheme-like routines in C++
#include <iostream>
#include <functional>
using namespace std;
template<typename _CAR,typename _CDR>
pair<_CAR,_CDR> cons(_CAR car,_CDR cdr)
{
return std::make_pair(car,cdr);
@kiritsuku
kiritsuku / tmp_brainfuck_compiler.cpp
Created September 22, 2011 10:14
A brainfuck compiler implemented with TMP
/*
* TMP brainfuck compiler
*
* compile with: g++ -std=c++0x -Wall -Wextra -ftemplate-depth=2000 <file>.cpp
* compile version: g++ >= 4.6.1
*/
#include <cstddef>
#include <cstdio>
#include <utility>
#include <type_traits>