r-fxxk

A Brainfuck implementation, and generator for your own Brainfuck-like interpreter.

Example of Ook! (ja.wikipedia.org/wiki/Ook!)

class Ook < Brainfuck
 nxt 'Ook. Ook?'
 prv 'Ook? Ook.'
 inc 'Ook. Ook.'
 dec 'Ook! Ook!'
 put 'Ook! Ook.'
 get 'Ook. Ook!'
 opn 'Ook! Ook?'
 cls 'Ook? Ook!'
end

and you can run:

Ook.new.fuck(read('hello.ook'))

you can generate with initialize options:

Brainfuck.new(nxt: 'M', prv: 'O', inc: 'N', dec: 'A', get: 'm', put: 'o', opn: 'n', cls: 'a').fuck(read('hello.mona'))

SEE ALSO spec/r-fxxk_spec.rb

Contributing to r-fxxk

Copyright © 2011 masarakki. See LICENSE.txt for further details.