Fully functional Brainf*ck interpreters have been done before, but I've only seen it as a golf problem - not intentional obfuscation. So here it is: my first attempt at a JAPH.
$/=$u;$_=<DATA>;y;-<[.]>+;;cd;s:.:($t=qw=while%{ ++$p %||last} %}++ ++% %-- --% print(chr%) --$p=[ord($&)%13%9])=~s'%'($m[$p])';"$t;\n" :gex;eval __DATA__ ,>>++++[>++++++++<-]+++++++++++[>>+++++++++++<<-]++++++++++[>>>++++ ++++++<<<-]++++++++[>>>>+++++++++<<<<-]>>>>++.<<----.--.+.<.>>---.< ------.+.+++++.>+++++++.---.<--.<.>>>++++++.<.<.>+++++++.<<.>>----. -------.++.++++++++.------.<.<++++++++++++.<<++++++++++.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Functional Brainf*ck JAPH
by ambrus (Abbot) on Jul 06, 2004 at 09:07 UTC | |
by etcshadow (Priest) on Jul 12, 2004 at 22:01 UTC | |
|
Re: Functional Brainf*ck JAPH
by Anonymous Monk on Jul 09, 2004 at 21:40 UTC |