User:ORBAT
Jump to navigation
Jump to search
I'm the one who implemented a Brainfuck interpreter in TECO. The commented version can be found here, and the obfuscated version here. Those files might not display correctly in your browser, so be prepared to fire up a text editor. Oh, and be sure to read the "documentation".
Here's the non-commented, terse version.
@^UB#@S/{^EQQ,/#@^UC#@S/,^EQQ}/@-1S/{/#@^UR#.U1ZJQZ\^SC.,.+-^SXQ-^SDQ1J#@^U9/[]-+<>.,/<@:-FD/^N^EG9/;>J30000<0@I// >ZJZUL30000J0U10U20U30U60U7@^U4/[]/@^U5#<@:S/^EG4/U7Q7;-AU3(Q3-91)"=%1|Q1"=.U6ZJ@i/{/Q2\@i/,/Q6\@i/}/Q6J0;'-1%1'>#<@:S/[/ UT.U210^T13^TQT;QT"NM5Q2J'>0UP30000J.US.UI<(0A-43)"=QPJ0AUTDQT+1@I//QIJ@O/end/'(0A-45)"=QPJ0AUTDQT-1@I//QIJ@O/ end/'(0A-60)"=QP-1UP@O/end/'(0A-62)"=QP+1UP@O/end/'(0A-46)"=-.+QPA^T(-.+QPA-10)"=13^T'@O/end/'(0A-44)"=^TUT8^TQPJDQT@I//QIJ@O/ end/'(0A-91)"=-.+QPA"=QI+1UZQLJMRMB\-1J.UI'@O/end/'(0A-93)"=-.+QPA"NQI+1UZQLJMRMC\-1J.UI'@O/end/'!end!QI+1UI(.-Z)"=.=@^a/END/ ^c^c'C>
To actually use this, just fire up TECO, smack a BF program into the buffer and run the code (it's easier if you save the code into a file and run it with EIfilename$$)
It sure is beautiful, isn't it? Just think that TECO is the grandpappy of editors. I mean, for chrissakes, EMACS was made with TECO.
I can be reached via e-mail at tomeklof@[moc.liamg]