Readme++
This commit is contained in:
18
README.md
18
README.md
@@ -5,23 +5,27 @@ A little brainfuck interpreter written in C.
|
|||||||
* Type "make"
|
* Type "make"
|
||||||
* Read [this](https://en.wikipedia.org/wiki/Brainf**k)
|
* Read [this](https://en.wikipedia.org/wiki/Brainf**k)
|
||||||
* Create your own brainfuck software
|
* Create your own brainfuck software
|
||||||
* ./bfckr "$yourstuff"
|
* let bfckr run your own .bf code
|
||||||
|
|
||||||
# Usage
|
# Usage
|
||||||
Usage: ./bfckr [OPTION] [FILE]
|
~~~~
|
||||||
|
Usage: ./bfckr [OPTION]
|
||||||
-h Show this help.
|
-h Show this help.
|
||||||
-d Enable debugger.
|
-d Enable debugger.
|
||||||
-f Execute brainfuck code given as file.
|
-f Execute brainfuck code given as file.
|
||||||
-e Execute brainfuck code given as argument.
|
-e Execute brainfuck code given as argument.
|
||||||
|
~~~~
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## examples:
|
## examples:
|
||||||
|
|
||||||
./bfckr -f examples/pi.bf
|
**./bfckr -f examples/pi.bf**
|
||||||
~~~~
|
~~~~
|
||||||
3.14070455282885
|
3.14070455282885
|
||||||
~~~~
|
~~~~
|
||||||
|
|
||||||
./bfckr -d -f examples/pi.bf
|
**./bfckr -d -f examples/pi.bf**
|
||||||
~~~~
|
~~~~
|
||||||
[ENTER]: single step [c]: continue
|
[ENTER]: single step [c]: continue
|
||||||
Source viewer:
|
Source viewer:
|
||||||
@@ -41,7 +45,7 @@ Memory viewer:
|
|||||||
------------------------------------------------------------
|
------------------------------------------------------------
|
||||||
~~~~
|
~~~~
|
||||||
|
|
||||||
./bfckr -e "----[---->+<]>++."
|
**./bfckr -e "----[---->+<]>++."**
|
||||||
~~~~
|
~~~~
|
||||||
A
|
A
|
||||||
~~~~
|
~~~~
|
||||||
@@ -50,7 +54,7 @@ A
|
|||||||
|
|
||||||
A # in the brainfuck source will be interpreted as breakpoint. You can use them if you want to stop the program flow at a specific point and start the debugger from there. If you are in debugger mode pressing c will get you back to executing the program.
|
A # in the brainfuck source will be interpreted as breakpoint. You can use them if you want to stop the program flow at a specific point and start the debugger from there. If you are in debugger mode pressing c will get you back to executing the program.
|
||||||
|
|
||||||
./bfckr -e "----[#---->+<]>++."
|
**./bfckr -e "----[#---->+<]>++."**
|
||||||
~~~~
|
~~~~
|
||||||
[ENTER]: single step [c]: continue
|
[ENTER]: single step [c]: continue
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user