This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include "metalang.hpp" | |
struct I { | |
template <typename x, typename _0> | |
struct apply { | |
typedef x value; | |
}; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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> |