in reply to Inline::Brainfck
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;
--
જલધર
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Inline::Brainfck
by RMGir (Prior) on Aug 29, 2002 at 12:47 UTC | |
by jaldhar (Vicar) on Aug 29, 2002 at 15:31 UTC |