diff options
author | Camil Staps | 2015-05-22 18:43:59 +0200 |
---|---|---|
committer | Camil Staps | 2015-05-22 18:43:59 +0200 |
commit | 1bf1aa2e333e0b006c561500e917c4e4322252db (patch) | |
tree | 091f89a35a6d156dd520f69dea5ba1bfd0dee71b /README.md | |
parent | Readme & License (diff) |
Readme
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 20 |
1 files changed, 19 insertions, 1 deletions
@@ -1,2 +1,20 @@ # CleanBrainfuck -Brainfuck interpreter in Clean +[Brainfuck](http://en.wikipedia.org/wiki/Brainfuck) interpreter in [Clean](http://wiki.clean.cs.ru.nl/Clean) + +`Brainfuck.dcl` and `Brainfuck.icl` give you everything you need to use the module. In `ExecBrainfuck.icl`, a basic usage example is given. + +## Compiling & running the example + +You're assumed to have a brainfuck program `program.bf` in the same directory. For an example, see [Wikipedia](http://en.wikipedia.org/wiki/Brainfuck). This program outputs `Hello world!\n`: + + ++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++. + +Compiling: + + clm ExecBrainfuck -o ExecBrainfuck + +Running: + + ./ExecBrainfuck < program.bf + +The example program expects the brainfuck program to be the first line on stdin. Any further lines are seen as input to the brainfuck program. |