You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-16Lines changed: 8 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ Brainfuck is an esoteric language, or joke language, that is turing-complete and
4
4
5
5
# HOW DO I BRAINFUCK?
6
6
7
-
Even though brainfuck is somewhat hard, it has only 8 instructions, and those are:
7
+
This version of brainfuck has only 10 instructions, and those are:
8
8
9
9
```
10
10
+ --> Adds 1 to the cell it's in.
@@ -15,28 +15,20 @@ Even though brainfuck is somewhat hard, it has only 8 instructions, and those ar
15
15
16
16
< --> Changes the cell it's in by -1.
17
17
18
-
, --> Allows for input.
18
+
, --> Allows for input(ONLY WITH NUMBERS FFS).
19
19
20
-
. --> Echoes the value of the cell.
20
+
; --> Gets ascii inputs.
21
21
22
-
[ --> Starts a loop.
23
-
24
-
] --> Goes to the last open bracket if it doesn't end on 0 / null.
25
-
```
22
+
. --> Echoes the value of the cell(IF DONE WITH ASCII VALUES, WILL THROW IT'S VALUE ON THE ASCII TABLE).
26
23
27
-
Every character other than those is ignored.
24
+
: --> Echoes the ascii value of the cell.
28
25
29
-
# HOW DOES THIS INTERPRETER WORK?
30
-
31
-
That's something easy to answer since I was the one to write it's source code.
32
-
You should enter a file as an argument, and it should end in .b / .bf (mainly for organisation), and the file structure should be as follows:
26
+
[ --> Starts a loop.
33
27
34
-
```
35
-
1 CELLS:[number of cells(defaults to 10)]/ASCII:[y/n(defaults to n)]
36
-
2 // Brainfuck code
28
+
] --> Goes to the last open bracket if it doesn't end on 0 / null.
37
29
```
38
30
39
-
Easy, right? As a side note, you should keep this structure as similar as possible. You could not add the CELLS and ASCII specificators, but if you do, you must keep it as shown before.
31
+
Every character other than those is(hopefully) ignored.
0 commit comments