Skip to content

Instantly share code, notes, and snippets.

@jdh30
Created April 6, 2017 01:03
Show Gist options
  • Select an option

  • Save jdh30/6c70af550c13e0f04bc678cf72ec60b2 to your computer and use it in GitHub Desktop.

Select an option

Save jdh30/6c70af550c13e0f04bc678cf72ec60b2 to your computer and use it in GitHub Desktop.
BF interpreter written in BF from "A very short self-interpreter" https://arxiv.org/html/cs/0311032
>>>+[[-]>>[-]++>+>+++++++[<++++>>++<-]++>>+>+>+++++[>
++>++++++<<-]+>>>,<++[[>[->>]<[>>]<<-]<[<]<+>>[>]>[<+
>-[[<+>-]>]<[[[-]<]++<-[<+++++++++>[<->-]>>]>>]]<<]<]
<
[[<]>[[>]>>[>>]+[<<]<[<]<+>>-]>[>]+[->>]<<<<[[<<]<[<]
+<<[+>+<<-[>-->+<<-[>+<[>>+<<-]]]>[<+>-]<]++>>-->[>]>
>[>>]]<<[>>+<[[<]<]>[[<<]<[<]+[-<+>>-[<<+>++>-[<->[<<
+>>-]]]<[>+<-]>]>[>]>]>[>>]>>]<<[>>+>>+>>]<<[->>>>>>>
>]<<[>.>>>>>>>]<<[>->>>>>]<<[>,>>>]<<[>+>]<<[+<<]<]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment