diff options
| author | Reiner Herrmann <reiner@reiner-h.de> | 2019-10-06 21:58:45 +0200 |
|---|---|---|
| committer | Reiner Herrmann <reiner@reiner-h.de> | 2019-10-06 22:03:27 +0200 |
| commit | c1f3921af8e14478f8769a72d3041cdfc4ca0e8f (patch) | |
| tree | 28da916587f17ca0a0cf0d3a601ca654d325b73a /README | |
| parent | c984c588095b8f73264e297090ef642183df6510 (diff) | |
Diffstat (limited to 'README')
| -rw-r--r-- | README | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -0,0 +1,25 @@ +BrainRust + +A simple Brainfuck interpreter, written in Rust. + +Usage: + $ cargo run filename.bf + + +Before running the program, it performs a few simple optimizations, +like eliminating commands with no effect (e.g. incrementing and decrementing +a value) and combining sequences of incrementing/decrementing commands +into single commands. + +A cell can hold one byte, and will wrap around after it reaches the maximum. +The pointer starts at position 0, but can also become negative. +There is no artificial limitation of the number of cells. Only cells with a value +different than 0 use up memory. + + +License: + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. |
