Change: fixed incorrect code.
Bah. I just discovered this thread which includes a Brainfuck interpreter and a link to another Inline::Brainfuck module. Mine isn't redundant however because it has more features and uses the cool source filtering abilities of recent versions of perl. (Now standard in 5.8.0) It also integrates better into perl IMHO as you can assign brainfuck code to a variable etc.
I'm working this up into a proper CPAN module but before I do so, I need some advice. I would like to add some optimization i.e right now
becomes+++++
when it should beP++; P++; P++; P++; P++;
etc. What would be a good way of doing that with just regexes?P += 5;
--
જલધર
In reply to Re: Inline::Brainfuck
by jaldhar
in thread Inline::Brainfck
by jaldhar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |