Skip to content

Instantly share code, notes, and snippets.

View beraldo's full-sized avatar

Roberto Beraldo beraldo

View GitHub Profile
@netojoaobatista
netojoaobatista / brainfuck.js
Created April 18, 2012 17:16
A brainfuck programming language interpreter written in Javascript
var Context = function() {};
Object.defineProperty(Context,"create",{
writable: false, configurable: false, enumerable: true,
value: function(size,initializer) {
return Object.create(Context.prototype,(function(){
var data = (new Array(size?size:0)).join("|").split("|").map(
initializer||function(){}
);
var pointer = 0;