Execute Brain****/Haskell: Difference between revisions
Content added Content deleted
(Quick Haskell implementation) |
(templates, cats) |
||
Line 1: | Line 1: | ||
{{implementation|Brainf***}}{{collection|RCBF}}[[Category:Haskell]] |
|||
Quick implementation of a [[Brainfuck]] interpreter in Haskell. |
|||
Pairs of lists are used to implement both the two-side infinite band of cells, and the program storage. This means that it can also work on infinite Brainfuck programs (which could be generated lazily). |
Pairs of lists are used to implement both the two-side infinite band of cells, and the program storage. This means that it can also work on infinite Brainfuck programs (which could be generated lazily). |