Re:A Brainfuck interpreter written in PostScript
by lakpan on Tuesday December 05, 2023 @11:49AM
(#38533343)
How do you implement a compiler in 6 lines of code, let alone 6 lines of BF code?
[ Parent
| on HN ]
Re:A Brainfuck interpreter written in PostScript
by matslina on Tuesday December 05, 2023 @01:13PM
(#38534743)
Whitespace is ignored in Brainfuck, so just write the compiler in brainfuck and then strip all but 6 newlines.