Anonymous user
Execute Brain****/Haskell: Difference between revisions
m
<code>
(unsafePerformIO sounds scary) |
m (<code>) |
||
Line 8:
A more efficient implementation could for example only admit well-bracketed brainfuck programs, and parse bracket blocks first, to replace the ''matchLeft'' and ''matchRight'' which need linear time.
Example session:
<pre>: *Main> dialog ",[>+<-].>."
: ''5''
: 0
: 5</pre>
|