Add new examples, update Readme
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
# bfckr [](https://travis-ci.org/id101010/bfckr)
|
# bfckr [](https://travis-ci.org/id101010/bfckr)
|
||||||
A little brainfuck interpreter written in C.
|
A simple to use brainfuck interpreter with built in debugger written in C.
|
||||||
|
|
||||||
# How to run
|
# How to run
|
||||||
* Type "make"
|
* Type "make"
|
||||||
@@ -13,11 +13,9 @@ 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 expression given as argument.
|
||||||
~~~~
|
~~~~
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## examples:
|
## examples:
|
||||||
|
|
||||||
**./bfckr -f examples/pi.bf**
|
**./bfckr -f examples/pi.bf**
|
||||||
|
|||||||
1
examples/bintodec.bf
Normal file
1
examples/bintodec.bf
Normal file
@@ -0,0 +1 @@
|
|||||||
|
++++++[>++++++++<-]>[>+++[>++++[>+++++<-]<-],.[>+>-<<-]>>+[[-]<[<+>-]>]<[-]<]<[<]->[-]>[>]>>+>+<<<<[<]>[[>]->>[>]+[[>+<-]<]>>[[[>]>[>]>+<<[<]<[<]>-]<+>>[>]>[>]+>-[<+[<]<[<]<+>>[>]>[>]<-]<[<]<[<]>]>[[<+>-]>]+<+[<]<[[>>[>]<+[<]<-]>>[>]<-[>+<-]<[<]<<[[>+<-]<]>>[>]<]>>[>]>[[<+>-]>]<<[-[-[-[>+<-]<+>>-<]>+<]>+<<]>>-[+<]+<<+[<+]>->>->[>]>[-[<<[<]<+>>[>]>-]<+[<]+>->[>]>]<<[-<]<-<[<]<<[<]++++++[>--------<-]>[[>]>+<<[<]>-]>[>]>[<+>-]<[>>[>]>>+<<<[>>[>]>[<<[<]<--[+>+[>]>>-<<<[<]]>+[<+>-]>[>]>->+<]>[<+>-]<<<[<]<[>+<-]<]>>-[+[>]<[[>+<-]<]>]+[[<+>-]>]<<[<]<-]<[<]>]>>[>]++[<]>--[>--]++<++<[+<[<]>[+>]]<+[<+]>>->[>]>[-[<<[<]<+>>[>]>-]<+[<]+>->[>]>]<<[-<]<-<--<[<]>>[<<+>>-]+<<[-[>>+<<-]]>[>]>++++++[<++++++++>-]<-[<[+<]>[>]<-]<[<]>>[.>]
|
||||||
5
examples/tree.bf
Normal file
5
examples/tree.bf
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
>++++[<++++++++>-]>++++++[<++++++++>-]<->>++++++++
|
||||||
|
[<++++++++++++>-]<---->++++++++++>++++++++++[>+>+<
|
||||||
|
<-]>>[<<+>>-]<[[>+>+<<-]>>[<<+>>-]<[<<<<<<.>>>>>>-
|
||||||
|
]<[>+>+<<-]>>[<<+>>-]<<<[>>>+>+<<<<-]>>>>[<<<<+>>>
|
||||||
|
>-]<<[>-<-]>+[<<<<<<.>.>>>>>-]<<<.>-]
|
||||||
Reference in New Issue
Block a user