Skip to content

Instantly share code, notes, and snippets.

@tana
Created September 29, 2012 13:46
Show Gist options
  • Save tana/3804039 to your computer and use it in GitHub Desktop.
Save tana/3804039 to your computer and use it in GitHub Desktop.
自作言語のコンパイラ出力(標準ライブラリ除く)
function hoge(){
var arr = [1, 2, 3, 4];
var c = (arr).length;
return (function() {
while (c) {
((console).log)((arr)[($$mn$$)(c, 1)]);
$$result$$ = c = ($$mn$$)(c, 1);
}
return $$result$$;
})();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment