Removed # as interpreter treats it as a symbol for debugging (currently outputs memory, will build ability to control in future). Also removed erroroneous code at the bottom that was accidently left over from copy pasta

+++++ +++++             initialize counter (cell 0) to 10
[                       use loop to set the next four cells to 70/100/30/10
    > +++++ ++              add  7 to cell 1
    > +++++ +++++           add 10 to cell 2
    > +++                   add  3 to cell 3
    > +                     add  1 to cell 4
    <<<< -                  decrement counter (cell 0)
]
> ++ .                  print 'H'
> + .                   print 'e'
+++++ ++ .              print 'l'
.                       print 'l'
+++ .                   print 'o'
> ++ .                  print ' '
<< +++++ +++++ +++++ .  print 'W'
> .                     print 'o'
+++ .                   print 'r'
----- - .               print 'l'
----- --- .             print 'd'
> + .                   print '!'
> .                     print '\n'

+++++ +++++             initialize counter (cell #0) to 10
[                       use loop to set the next four cells to 70/100/30/10
    > +++++ ++              add  7 to cell #1
    > +++++ +++++           add 10 to cell #2
    > +++                   add  3 to cell #3
    > +                     add  1 to cell #4
    <<<< -                  decrement counter (cell #0)
]
> ++ .                  print 'H'
> + .                   print 'e'
+++++ ++ .              print 'l'
.                       print 'l'
+++ .                   print 'o'
> ++ .                  print ' '
<< +++++ +++++ +++++ .  print 'W'
> .                     print 'o'
+++ .                   print 'r'
----- - .               print 'l'
----- --- .             print 'd'
> + .                   print '!'
> .                     print '\n'";
            string test = @",>,
[
>+<-
]
>.


Next time, don't leave a random '!' in your code


Updated example.

Updated example.


Quine works!

Quine works!

error: pathspec 'examples/quine.bf' did not match any file(s) known to git


Create HelloWorldExample.bf

Create HelloWorldExample.bf

error: pathspec 'HelloWorldExample.bf' did not match any file(s) known to git


Add Brainfuck language

Add Brainfuck language

error: pathspec 'Languages/brainfuck.bf' did not match any file(s) known to git


added sample

added sample

error: pathspec 'sample/hello.bf' did not match any file(s) known to git


Add another example brainfuck program.

Add another example brainfuck program.

error: pathspec 'examples/cat.bf' did not match any file(s) known to git


Add a sample program (hello.bf).

Add a sample program (hello.bf).

From https://en.wikipedia.org/wiki/Brainfuck

error: pathspec 'programs/hello.bf' did not match any file(s) known to git


Create out202.bf

Create out202.bf

error: pathspec 'testing/out202.bf' did not match any file(s) known to git


add knight sample

add knight sample

error: pathspec 'testdata/knight.bf' did not match any file(s) known to git


Add mandelbrot test

Add mandelbrot test

error: pathspec 'tests/mandelbrot.bf' did not match any file(s) known to git


Add example: brainfpp.bf

Add example: brainfpp.bf

error: pathspec 'examples/brainfpp.bf' did not match any file(s) known to git


Add example file

Add example file

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/HTHSKK/BlueF.git/'


Add hello_world.bf example

Add hello_world.bf example

error: pathspec 'example/hello_world.bf' did not match any file(s) known to git


an experiment.

an experiment.

,    read character and store in cell 1
>    move pointer to cell 2
,    read character and store in cell 2
[    begin loop {
    <   move to cell 1
    +   increment value
    >   move to cell 2
    -   decrement value
]    exit loop when cell 2 is empty
<    go back to cell 1
------------------------------------------------    subtract 48
.    print value of cell 1

error: pathspec 'code/addTwoInputs.bf' did not match any file(s) known to git


Implemented roll

Implemented roll

The memory layout is to start in this form
 0x00   0x01   0x02   0x03   0x04   0x05   0x06   0x07   0x10   0x11   0x12   0x13
(0x01) (0x0N) (0x01) (0x1N) (0x01) (0x0M) (0x01) (0x1M) (0x01) (0x0U) (0x01) (0x1U)
                                                         ^
First clear 0x10 0x12 we need this to mark the top of the array
<<[-]>>[-]>>[-]<

Next we need to bridge into the stack
+[
  bridge
  >>[
    < << << [<<]
    +<< <<[-]>>
    [>>] >>>
  -]
  <<-

  here we implement the carry
  <+
  >[
    >>-<<
    we need to run bridge once more
    this does effectively the same as above
    <[<<]
    +<< <<[-]>> [>>] <       remember 0x10 is non zero here

    <-
    >[>+<-]
  ]
  >[<+>-]
  <<[
  -]>

]

Now perform the copying to top of the stack
First part
<<<[<<]<
[>>> [>>] > + <<<[<<]<-]
Second part
>>
[>[>>]>>>+ <<<<<[<<]>-]
Seal up the zeros
>[>>]+>>+[<<]+

now copy through
>>
[
  > [<<<<+>>>>-]
  >>[<<<<+>>>>-]
  >
]
<<-<<-<<<<

error: pathspec 'stack/roll.bf' did not match any file(s) known to git


echo.bf

echo.bf

error: pathspec 'samples/echo.bf' did not match any file(s) known to git


Hello World demo bf program added...

Hello World demo bf program added...

error: pathspec 'tests/hello_world.bf' did not match any file(s) known to git


adding rot13 brainfuck program

adding rot13 brainfuck program

{
    "type": "manual",
    "input": "../../input/network_cabling_1.txt",
    "output": "../../output/network_cabling_1.txt"
}

-,+[                         Read first character and start outer character reading loop
    -[                       Skip forward if character is 0
        >>++++[>++++++++<-]  Set up divisor (32) for division loop
                               (MEMORY LAYOUT: dividend copy remainder divisor quotient zero zero)
        <+<-[                Set up dividend (x minus 1) and enter division loop
            >+>+>-[>>>]      Increase copy and remainder / reduce divisor / Normal case: skip forward
            <[[>+<-]>>+>]    Special case: move remainder back to divisor and increase quotient
            <<<<<-           Decrement dividend
        ]                    End division loop
    ]>>>[-]+                 End skip loop; zero former divisor and reuse space for a flag
    >--[-[<->+++[-]]]<[         Zero that flag unless quotient was 2 or 3; zero quotient; check flag
        ++++++++++++<[       If flag then set up divisor (13) for second division loop
                               (MEMORY LAYOUT: zero copy dividend divisor remainder quotient zero zero)
            >-[>+>>]         Reduce divisor; Normal case: increase remainder
            >[+[<+>-]>+>>]   Special case: increase remainder / move it back to divisor / increase quotient
            <<<<<-           Decrease dividend
        ]                    End division loop
        >>[<+>-]             Add remainder back to divisor to get a useful 13
        >[                   Skip forward if quotient was 0
            -[               Decrement quotient and skip forward if quotient was 1
                -<<[-]>>     Zero quotient and divisor if quotient was 2
            ]<<[<<->>-]>>    Zero divisor and subtract 13 from copy if quotient was 1
        ]<<[<<+>>-]          Zero divisor and add 13 to copy if quotient was 0
    ]                        End outer skip loop (jump to here if ((character minus 1)/32) was not 2 or 3)
    <[-]                     Clear remainder from first division if second division was skipped
    <.[-]                    Output ROT13ed character from copy and clear it
    <-,+                     Read next character
]                            End character reading loop

error: pathspec 'solutions/brainfuck/rot13.bf' did not match any file(s) known to git


Added brainfck implementation of fibonnaci

[
  Fibonacci Program in Brainfuck
  Written by Sam Coppini
  Outputs arbitrarily many Fibonacci numbers. Never terminates.
  The program stores the result of the last two calculated Fibonacci numbers,
  always outputting the smaller one before it moves the larger fib number over
  it and replaces the larger number with the sum of the two numbers.
  The digits for the last two Fibonacci numbers are represented like so:
  b  a  1  b  a  1  b  a  1  0  0  0
  ^  ^  ^
  |  |  |
  |  |  +--- A boolean flag indicating whether the current Fibonacci numbers
  |  |       extend this far into the tape
  |  |
  |  +--- Digits for the second to last Fibonacci number
  |
  +--- Digits for the latest Fibonacci number
]
Sets up the tape and enters the main loop
++++++++++>>+>>+[
Goes through the tape and outputs each digit of the second to last calculated
Fibonacci number
[+++++[<++++++++>-]<.>++++++[<-------->-]+<<<]
Outputs a newline and moves to the last digits of the numbers and enters the
loop to add our current Fibonacci numbers
<.>>>>[
Moves the value of the smaller fib number to the flag cell
-<[>+<-]
Copies the larger fib number to the newly emptied cell while adding it to the
value stored in the flag cell
<[>+>+<<-]>>
Moves the value in the flag cell to where the larger fib number and while it's
moving the value it also checks to see if it's greater than nine
[<<+>>-[<<+>>-[<<+>>-[<<+>>-[<<+>>-[<<+>>-[<<+>>-[<<+>>-[<<+>>-[
If the value is greater than nine we move the remainder of the value in the flag
cell to the larger fib cell and carry the one and also make sure that the flag
bit of the next digit is set and then move back to where we were
-<<[-]>>[<<+>>-]>>>[-]+<+<<
Set the flag bit back to one and move to the next digit over
]]]]]]]]]]+>>>]
Move to the first digit in preparation of printing the number but also make sure
to move over a digit if the first digit would be a zero
<<<<[>>>]<<]

error: pathspec 'math/fibonacci/brainfck/fibonacci.bf' did not match any file(s) known to git


Implemented subtraction operation

Implemented subtraction operation

The memory layout is to start in this form
 0x00   0x01   0x02   0x03   0x04   0x05   0x06   0x07   0x10   0x11
(0x01) (0x1N) (0x01) (0x2N) (0x01) (0x1M) (0x01) (0x2M) (0x00) (0x00)
                             ^
We would like to implement a push subtraction on the stack leaving
 0x00   0x01   0x02   0x03   0x04   0x05
(0x01) (0x1L) (0x01) (0x2L) (0x00) (0x00)
 ^
Here we will subtract the two 16 bit big endian numbers L = N minus M

Set 0x04 and 0x06 to zero
Then move 0x05 to 0x06
Leave cursor over 0x07
[-]>>[-]<
[->+<]
>>

Our memory now looks like this
 0x00   0x01   0x02   0x03   0x04   0x05   0x06   0x07   0x10   0x11
(0x01) (0x1N) (0x01) (0x2N) (0x00) (0x00) (0x1M) (0x2M) (0x00) (0x00)
                                                  ^
Next we subtract 0x07 from 0x03
We must decrement 0x01 everytime 0x03 moves *pass* zero
To test this we check for 255 value by incrementing 0x03 before if statement
[-<<<+<-
  +
  [
    if code here
  >-]>[
    else code here
    <<<->>
  >->]<<
  -
  >>>>
]

Finally we can subtract 0x01 by 0x06
We can ignore the effects of overflow as this just wraps around
<
[-<<<<<->>>>>]
<<<<<<

error: pathspec 'arithmetic/sub.bf' did not match any file(s) known to git


Added DecoyBot.bf

Added DecoyBot.bf

>(+)*10		Set up a large defense in front of your flag
>(-)*10		Set up another one with different polarity
(>+>-)*3	Create some small decoys
(>[-]		  Move on and set the next cell to zero
.		    	Wait one round, in case it is the enemy's flag
)*21	  	Repeat this 21 times

error: pathspec 'BrainFuckedBotsForBattling/DecoyBot.bf' did not match any file(s) known to git


Create bubble_sort.bf

Create bubble_sort.bf

error: pathspec 'sort/bubble_sort/brainfuck/bubble_sort.bf' did not match any file(s) known to git


Add Hello World program

Add Hello World program

error: pathspec 'tests/HelloWorld.bf' did not match any file(s) known to git


beep beep (#901)

beep beep (#901)

error: pathspec 'code/purpzie/purpzie-sucks.bf' did not match any file(s) known to git


a calc.exe exploit for jitbf

a calc.exe exploit for jitbf

error: pathspec '019-jitbf/calc-exploit.bf' did not match any file(s) known to git


First Befunge program

First Befunge program

error: pathspec 'befunge/factorial.bf' did not match any file(s) known to git


added fib to tests

added fib to tests

error: pathspec 'tests/fib.bf' did not match any file(s) known to git


Hello World for Brainfuck (#31)

Hello World for Brainfuck (#31)

* Hello World for Brainfuck

Signed-off-by: Sanchit Sinha <d3a6d64c0730c6774926f289dcb92d018869dda1@iiitd.ac.in>

#Hello World for Brainfuck. This belongs to the class of esoteric languages. For Ubuntu do 'apt get install bf'. Similar for mint.
# For more details checkout https://en.wikipedia.org/wiki/Brainfuck
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.

error: pathspec 'hello_world.bf' did not match any file(s) known to git


Brainfuck sum

Brainfuck sum

error: pathspec 'mshp/bf_sum.bf' did not match any file(s) known to git


Added brainf*ck , a language which is aptly named

error: pathspec 'brainf*ck.bf' did not match any file(s) known to git


Create helloworldnaked.bf

Create helloworldnaked.bf

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/andycyca/supreme-octo-happiness.git/'


Create rot13.bf

Create rot13.bf

-,+[                         Read first character and start outer character reading loop
    -[                       Skip forward if character is 0
        >>++++[>++++++++<-]  Set up divisor (32) for division loop
                               (MEMORY LAYOUT: dividend copy remainder divisor quotient zero zero)
        <+<-[                Set up dividend (x minus 1) and enter division loop
            >+>+>-[>>>]      Increase copy and remainder / reduce divisor / Normal case: skip forward
            <[[>+<-]>>+>]    Special case: move remainder back to divisor and increase quotient
            <<<<<-           Decrement dividend
        ]                    End division loop
    ]>>>[-]+                 End skip loop; zero former divisor and reuse space for a flag
    >--[-[<->+++[-]]]<[         Zero that flag unless quotient was 2 or 3; zero quotient; check flag
        ++++++++++++<[       If flag then set up divisor (13) for second division loop
                               (MEMORY LAYOUT: zero copy dividend divisor remainder quotient zero zero)
            >-[>+>>]         Reduce divisor; Normal case: increase remainder
            >[+[<+>-]>+>>]   Special case: increase remainder / move it back to divisor / increase quotient
            <<<<<-           Decrease dividend
        ]                    End division loop
        >>[<+>-]             Add remainder back to divisor to get a useful 13
        >[                   Skip forward if quotient was 0
            -[               Decrement quotient and skip forward if quotient was 1
                -<<[-]>>     Zero quotient and divisor if quotient was 2
            ]<<[<<->>-]>>    Zero divisor and subtract 13 from copy if quotient was 1
        ]<<[<<+>>-]          Zero divisor and add 13 to copy if quotient was 0
    ]                        End outer skip loop (jump to here if ((character minus 1)/32) was not 2 or 3)
    <[-]                     Clear remainder from first division if second division was skipped
    <.[-]                    Output ROT13ed character from copy and clear it
    <-,+                     Read next character
]                            End character reading loop

error: pathspec 'testing/rot13.bf' did not match any file(s) known to git


add brainfuck example

add brainfuck example

error: pathspec 'BFRC-Run/hello.bf' did not match any file(s) known to git


example of reading in brainfuck

example of reading in brainfuck

error: pathspec 'read2.bf' did not match any file(s) known to git


Test file for loop subprompt

Test file for loop subprompt

error: pathspec 'code/tests/loopREPL.bf' did not match any file(s) known to git


Add helloworld/Befunge

Add helloworld/Befunge

error: pathspec 'helloworld/helloworld.befunge.bf' did not match any file(s) known to git


Delete index.bf

Delete index.bf

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/LewisMCYoutubes/spam.git/'


Create helloWorld.bf

Create helloWorld.bf

error: pathspec 'helloWorld.bf' did not match any file(s) known to git


Add test case.

Add test case.

error: pathspec 'test/pi.bf' did not match any file(s) known to git


Added cat.bf

Added cat.bf

error: pathspec 'bf/cat.bf' did not match any file(s) known to git


Create description in hello_world.bf

Create description in hello_world.bf

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/ReneHSZ/rbfc.git/'


Create helloworld.bf

Create helloworld.bf

Primer acercamiento a Brainfuck, seguramente puede ser muy optimizado


Needs some brainfuck

Needs some brainfuck

/bin/sh: 1: Syntax error: redirection unexpected


Adding Game example

Adding Game example

error: pathspec 'examples/game.bf' did not match any file(s) known to git


Delete Date_Need_to_add_ASCII_chars.bf

Delete Date_Need_to_add_ASCII_chars.bf

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/brennonramsey/Other_Test_Projects.git/'


add a new example

add a new example

error: pathspec 'examples/hanoi.bf' did not match any file(s) known to git


Added „Hello World“ example in Befunge

Added „Hello World“ example in Befunge

error: pathspec 'hello-befunge/hello-world.bf' did not match any file(s) known to git


Implemented digit lookup to be used as part of base decoder.

The goal of this script is to find the first index of a char in a given array
This allows conversion of a string into the number with the array used to
decode the base

The layout is given
0x00 to 0x03 is the output position; it also holds previous digit value
0x04 to 0x07 and 0x08 to 0x0B is the decimal place multiplier
0x10 to 0x13 is the char to be decoded
0x14 onwards is the char array where index gives decoding value

 0x00   0x01   0x02   0x03   0x04   0x05   0x06   0x07
(0x01) (0x1V) (0x01) (0x2V) (0x01) (0x1X) (0x01) (0x2X)

 0x08   0x09   0x0A   0x1B   0x0C   0x0D   0x0E   0x0F
(0x01) (0x1X) (0x01) (0x2X) (0x01) (0x1Y) (0x01) (0x2Y)

 0x10   0x11   0x12   0x13   0x14   0x15   0x16   0x17
(0x01) (0x00) (0x01) (0x2Z) (0x00) (0x00) (0x00) (0x30)
 ^
 0x18   0x19   0x1A   0x1B   0x1C   0x1D   0x1E   0x1F
(0x00) (0x00) (0x00) (0x31) (0x00) (0x00) (0x00) (0x32)  and so on

Start by zeroing out 0x0E 0x10 and 0x12
<<[-]>>[-]>>[-]

Copy 0x13 to 0x10 ending at 0x12
>[-<+<<+>>>]<[->+<]+

start a loop
[
  for ease of explanation we look at the case where index starts at 0x12
  [-]                            zero out 0x12
  go to 0x17 setting 0x15 to zero as we pass
  >>>[-]>>                       go to 0x17 set 0x15 to zero as we pass
  [-<+<+>>]<<[->>+<<]            copy 0x17 to 0x16 finish at 0x15
  <<<<<                          go to 0x10
  [->>>>+>>-<<<<<<]              sub value 0x2Z at index 0x10 from 0x16
                                 also set 0x14 to 0x2Z
                                 if 0x16 holds 0 then cell 0x13 == cell 0x17
				 end at 0x10
  >[->>>>+<<<<]                  move 0x11 to 0x15
  >>>>+                          increment 0x15
  now leave a trail of 1s to follow back
  <<<<+<<+>>>>>                  set 0x10 0x12 to 1
  >
]
remove original decode char
<<<<[<<]>>>>>[-]<[>>]
copy back
< [-<<<[<<]>>>>>+<[>>]<]

error: pathspec 'opcode/number/getcharvalue.bf' did not match any file(s) known to git


Program that echoes whatever is input to it

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/zsck/NeurOxi.git/'


added a COPYING.bf for giggles :smiley:

added a COPYING.bf for giggles :smiley:

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/cyphar/gbf.git/'


readString.bf takes  as terminator to end reading.

> +                                ; make cell #2 1 (helps the read loop to begin)
[
    ,                              ; read a character till null
    [ > + > + << -]                ; copy character to i plus 1th & i plus 2th cell
    >> [ << + >> - ]               ; move i plus 2th cell back to current position
    +++++ + [ < ----- --- > - ] <  ; subtract 48(ASCII to Num) from i plus 1th character
]
< [ - ]                              ; delete last character(Terminator 0)
<                                  ; goto last character(helps the loop to begin)
[ < ]                              ; goto next 0 cell (cell #1)
>                                  ; goto first character
[ . > ]                            ; print character

error: pathspec 'getting-brainfucked/readString2.bf' did not match any file(s) known to git


Added a very very simple hello world example

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/Bueddl/brainfuck.git/'


A little "Hi" program

A little "Hi" program

error: pathspec 'bf/hi.bf' did not match any file(s) known to git


Add kinaba's echo

Add kinaba's echo

error: pathspec 'samples/smallecho.bf' did not match any file(s) known to git


Input name of file then hit enter

Input name of file then hit enter

error: pathspec 'samples/readfile.bf' did not match any file(s) known to git


Added FastClearBot.bf

Added FastClearBot.bf

(>)*9		Since the tape length is at least 10, the first 9 cells can be easily ignored
([			Find a non-zero cell
+++			Increment at first, since it could be a decoy
[-]			Set the cell to zero
]>			Move on to the next cell
)*21		Repeat this 21 times

error: pathspec 'BrainFuckedBotsForBattling/FastClearBot.bf' did not match any file(s) known to git


Adding beep.bf

Adding beep.bf

error: pathspec 'srcbf/beep.bf' did not match any file(s) known to git


Compact Befunge code

Compact Befunge code

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/vilugao/fibonacci.git/'


Hello, world!

Hello, world!

error: pathspec 'bf/hello.bf' did not match any file(s) known to git


ifelse.bf

ifelse.bf

,                                              ; read a character
> +++++ + [ < ----- --- > - ] <                ; subtract 48 (ASCII to Number)
> + <                                          ; set temp to 1
[                                              ; IF Block
  >>                                           ; goto temp plus 1th cell
  +++++ ++++ [ > +++++ +++ < -] > . +  . [-]   ; print 'HI'
  <<<                                          ; goto back
  > -                                          ; make temp 0(break out & stop else block)
] >                                            ; end IF
[                                              ; ELSE Block
  >                                            ; goto temp plus 1th cell
  +++++ +++++ [                                ; loop to print 'bye'
    > +++++ +++++
    > +++++ +++++ ++
    > +++++ +++++
  <<< -
  ]
  > -- . [-]                                   ; print 'b'
  >  + . [-]                                   ; print 'y'
  >  + . [-]                                   ; print 'e'
  <<<< -                                       ; make temp 0(break out)
]
<                                              ; goto x

error: pathspec 'getting-brainfucked/ifelse.bf' did not match any file(s) known to git


Create bottles.bf

Create bottles.bf

error: pathspec 'samples/bottles.bf' did not match any file(s) known to git


reading example

reading example

error: pathspec 'read.bf' did not match any file(s) known to git


Create ROT13.bf

Create ROT13.bf

error: pathspec 'tests/ROT13.bf' did not match any file(s) known to git


readString.bf

readString.bf

> +                         ; make cell #2 1 (helps the read loop to begin)
[
    > ,                     ; read a character till null
]
<                           ; goto last character(helps the loop to begin)
[ < ]                       ; goto next 0 cell (cell #1)
>>                          ; goto first character
[ . > ]                     ; print character

error: pathspec 'getting-brainfucked/readString.bf' did not match any file(s) known to git


Super simple bf file.

Super simple bf file.

error: pathspec 'simple.bf' did not match any file(s) known to git


Completed the test

Completed the test

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/treyfrankboehm/bf.git/'


test file added

test file added

+++++ +++               Set Cell #0 to 8

[

    >++++               Add 4 to Cell #1; this will always set Cell #1 to 4

    [                   as the cell will be cleared by the loop

        >++             Add 2 to Cell #2

        >+++            Add 3 to Cell #3

        >+++            Add 3 to Cell #4

        >+              Add 1 to Cell #5

        <<<<-           Decrement the loop counter in Cell #1

    ]                   Loop till Cell #1 is zero; number of iterations is 4

    >+                  Add 1 to Cell #2

    >+                  Add 1 to Cell #3

    >-                  Subtract 1 from Cell #4

    >>+                 Add 1 to Cell #6

    [<]                 Move back to the first zero cell you find; this will

                        be Cell #1 which was cleared by the previous loop

    <-                  Decrement the loop Counter in Cell #0

]                       Loop till Cell #0 is zero; number of iterations is 8

The result of this is:

Cell No :   0   1   2   3   4   5   6

Contents:   0   0  72 104  88  32   8

Pointer :   ^

>>.                     Cell #2 has value 72 which is 'H'

>---.                   Subtract 3 from Cell #3 to get 101 which is 'e'

+++++ ++..+++.          Likewise for 'llo' from Cell #3

>>.                     Cell #5 is 32 for the space

<-.                     Subtract 1 from Cell #4 for 87 to give a 'W'

<.                      Cell #3 was set to 'o' from the end of 'Hello'

+++.----- -.----- ---.  Cell #3 for 'rl' and 'd'

>>+.                    Add 1 to Cell #5 gives us an exclamation point

>++.

error: pathspec 'test1.bf' did not match any file(s) known to git


remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/LewisMCYoutubes/spam.git/'


adding the hello_world brainfuck solution (with comments)

+++++ +++               Set Cell 0 to 8
[
    >++++               Add 4 to Cell 1; this will always set Cell 1 to 4
    [                   as the cell will be cleared by the loop
        >++             Add 2 to Cell 2
        >+++            Add 3 to Cell 3
        >+++            Add 3 to Cell 4
        >+              Add 1 to Cell 5
        <<<<-           Decrement the loop counter in Cell 1
    ]                   Loop till Cell 1 is zero; number of iterations is 4
    >+                  Add 1 to Cell 2
    >+                  Add 1 to Cell 3
    >-                  Subtract 1 from Cell 4
    >>+                 Add 1 to Cell 6
    [<]                 Move back to the first zero cell you find; this will
                        be Cell 1 which was cleared by the previous loop
    <-                  Decrement the loop Counter in Cell 0
]                       Loop till Cell 0 is zero; number of iterations is 8

The result of this is:
Cell No :   0   1   2   3   4   5   6
Contents:   0   0  72 104  88  32   8
Pointer :   ^

>>.                     Cell 2 has value 72 which is 'H'
>---.                   Subtract 3 from Cell 3 to get 101 which is 'e'
+++++ ++..+++.          Likewise for 'llo' from Cell 3
>>.                     Cell 5 is 32 for the space
<-.                     Subtract 1 from Cell 4 for 87 to give a 'W'
<.                      Cell 3 was set to 'o' from the end of 'Hello'
+++.----- -.----- ---.  Cell 3 for 'rl' and 'd'
>>+.                    Add 1 to Cell 5 gives us an exclamation point
>++.                    And finally a newline from Cell 6

error: pathspec 'solutions/brainfuck/hello_world.bf' did not match any file(s) known to git


101 plus signs

101 plus signs

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/Aroltd/e.git/'


variable names

variable names


adding echo.bf

adding echo.bf

error: pathspec 'srcbf/echo.bf' did not match any file(s) known to git


Second, more complex hello world test case

error: pathspec 'hello.bf' did not match any file(s) known to git


check in a copy of dbfi

check in a copy of dbfi

error: pathspec 'bf/test/dbfi.bf' did not match any file(s) known to git


Added hello, world

Added hello, world

error: pathspec 'test/hello.bf' did not match any file(s) known to git


Password based message protection in brainfuck

error: pathspec 'examples/passwordVault.bf' did not match any file(s) known to git


whiletrue.bf example

whiletrue.bf example

error: pathspec 'examples/whiletrue.bf' did not match any file(s) known to git


Add hello.bf

Add hello.bf

error: pathspec 'samples/hello.bf' did not match any file(s) known to git


Create CellSize.bf

Create CellSize.bf

error: pathspec 'tests/CellSize.bf' did not match any file(s) known to git


added hanoi.bf

added hanoi.bf

error: pathspec 'bf/hanoi.bf' did not match any file(s) known to git


Brainfuck edition

Brainfuck edition

error: pathspec 'thisisfreesoftware.bf' did not match any file(s) known to git


Rewrite Befunge code

Rewrite Befunge code

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/vilugao/fibonacci.git/'


Add Befunge implementation

Add Befunge implementation

error: pathspec 'Befunge/bkkcrypt.bf' did not match any file(s) known to git


Added Brainf**k to the repository!

Added Brainf**k to the repository!

error: pathspec 'main.bf' did not match any file(s) known to git


Remove old bf test file

Remove old bf test file

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/TacoCoder/rs-bf.git/'


Add Edgar Allen Poe's "The Raven"

Add Edgar Allen Poe's "The Raven"

.... in brainfuck.

error: pathspec 'the_raven.bf' did not match any file(s) known to git


Brainfuck subtraction

Brainfuck subtraction

error: pathspec 'mshp/bf_subtraction.bf' did not match any file(s) known to git


Implemented opcode for equality comparison

The memory layout is to start in this form
 0x00   0x01   0x02   0x03   0x04   0x05   0x06   0x07   0x08   0x09
(0x01) (0x1N) (0x01) (0x2N) (0x01) (0x1M) (0x01) (0x2M) (0x00) (0x00)
                             ^
We would like to implement an equality comparison on the stack leaving
 0x00   0x01   0x02   0x03   0x04   0x05
(0x01) (0x00) (0x01) (0x2L) (0x00) (0x00)
 ^
where index 0x03 contains either 0 or 1

we start by checking equality between 0x01 and 0x05
<<<                                    goto 0x01
[->>>>-<<<<]+>>>>[<<<<->>>>[-]]
next check equality between 0x03 and 0x07
<<                                     goto 0x03
[->>>>-<<<<]+>>>>[<<<<->>>>[-]]
check equality between 0x01 and 0x03
<<<<
[-<<->>]+<<[>>-<<[-]]

error: pathspec 'opcode/comparison/equals.bf' did not match any file(s) known to git


Create HelloWorld(Bf).bf

Create HelloWorld(Bf).bf

++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.

/bin/sh: 1: Syntax error: "(" unexpected


here's a hello world program, from wikipedia


Add debug program

Add debug program

error: pathspec 'programs/helloworld.bf' did not match any file(s) known to git


Added Fibonacci sample code to samples

Added Fibonacci sample code to samples

error: pathspec 'samples/fibonacci.bf' did not match any file(s) known to git


Created Example-CellSize.bf

Created Example-CellSize.bf

error: pathspec 'Example-CellSize.bf' did not match any file(s) known to git


Create addnext.bf

Create addnext.bf

This program initializes the first two cells to 5 and 3
Then it adds 5 into the cell with the 3

If compiled with "debug" extension will also print the first
10 memory cells before and after the computation

+++++ first cell = 5
>+++ second cell = 3
# debug print if debug extension is enabled
[->+<]
# and again debug print if available

error: pathspec 'testing/addnext.bf' did not match any file(s) known to git


Create moveval.bf

Create moveval.bf

++++ +++ 7 in 0th cell
>++      2 in 2nd cell

# (debug if debug extension enabled)

Code:   Pseudo code:
>>      Move the pointer to cell2
[-]     Set cell2 to 0
<<      Move the pointer back to cell0
[       While cell0 is not 0
  -       Subtract 1 from cell0
  >>      Move the pointer to cell2
  +       Add 1 to cell2
  <<      Move the pointer back to cell0
]       End while

# (debug if debug extension enabled)

error: pathspec 'testing/moveval.bf' did not match any file(s) known to git


Added bf.bf:

Added bf.bf:

[
Reads input, outputs bf which will print it.

Inspired by code to do the same at
http://www.hevanet.com/cristofd/brainfuck/short.b, but written without
reference to that.

Results in output much shorter than Daniel Cristofani's version due to
printing the [-] construct, rather than repeated -.
]

>>>+++[<+++++[<+++<++++++>>-]>-]<<--<+>>,[[-<.>]<+++.-<.++>.--<.-->>,]

error: pathspec 'src/bf.bf' did not match any file(s) known to git


Added sample file for Hello World using bools

error: pathspec 'samples/hi-bool.bf' did not match any file(s) known to git


fixed up COPYING.bf

fixed up COPYING.bf

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/cyphar/gbf.git/'


Start!

Start!

error: pathspec 'simplest.bf' did not match any file(s) known to git


Implemented stack creation

Implemented stack creation

Here we setup the stack for the rpn machine
Each element on our stack is implemented by an array with elements:
(1 0) for empty element
(0 n) for occupied element where n is the stored number
To simplify implementation we include a first element (0 0) at the base

begin by setting cell to 255 leave one zero to signify start of array
>>-
next we move this value over; reduce by one; and leave a one in previous spot;
repeat
the effect is to produce an array with 254 elements with elements (1 0)
[[->>+<<]+>>-]

we have now setup the stack
we chose (1 0) for empty spots as it allows us to easily move back to the start
of the stack by hopping off the ones
Example:
to move to the top of the stack we do this
<<[<<]
and to move back
>>[>>]


Add brainfuck solution

Add brainfuck solution

layout:
aaaabbbbcdefghhhhh
a = fizz string
b = buzz string
c = newline
d = main counter (counts down from 100)
e = fizz counter (counts down from 3 repeatedly)
f = buzz counter (counts down form 5 repeatedly)
g = fizzbuzz flag (set if this number has been fizzed or buzzed)
h = number printing workspace

write fizzbuzz\n string (touches next space but then sets to zero)
>>>>> >>>> go to space after string
+++++ +++++ loop 10x
[ <<<<< <<<< go to start
+++++ ++   > F = 70
+++++ ++   > I = 73
+++++ ++++ > Z = 90
+++++ ++++ > Z = 90
+++++ ++   > B = 66
+++++ +++  > U = 85
+++++ ++++ > Z = 90
+++++ ++++ > Z = 90
+          > newline = 10
- decrement loop counter
]
<<<<< <<< go to I (F alread okay)
+++   > fix I
      > Z okay
      > Z okay
----  > fix B
+++++ > fix U
      > Z okay
      > Z okay
      > newline okay
end at main counter

set main counter to 100 (touches next space but then sets to zero)
> +++++ +++++ [ < +++++ +++++ > - ]
ends at fizz counter

set fizz counter to 3
+++
> go to buzz counter

set buzz counter to 5
+++++
<< go to main counter

[ main loop (lasts until main counter is zero)

- decrement main counter

> go to fizz counter
- decrement fizz counter

if fizz counter zero print "fizz"
[ - >>> + > + <<<< ] >>>> [ - <<<< + >>>> ] copy fizz counter to h0 (end at h1)
+ < [ [-] > - < ] > set flag at h1 if h0 (copied fizz counter) is zero
[ - if (h1 is nonzero; ie h0 is zero; ie fizzing)
<< + set fizzbuzz flag
<<<<< <<<<< << go to "fizz"
. > . > . > . print fizz
>>>>> >> +++ go to fizz counter and restock
>>>> return to h1
] end of "fizzing" loop

<<< go to buzz counter
- decrement buzz counter

[ - >> + > + <<< ] >>> [ - <<< + >>> ] copy buzz counter to h0 (end at h1)
+ < [ [-] > - < ] > set flag at h1 if h0 (copied buzz counter) is zero
[ - if (h1 is nonzero; ie h0 is zero; ie buzzing)
<< + set fizzbuzz flag
<<<<< <<< go to "buzz"
. > . > . > . print buzz
>>>> +++++ go to buzz counter and restock
>>> return to h1
] end of "buzzing" loop

< go to h0 (one after fizzbuzz flag)
+ < [ [-] > - < ] > set flag at h0 if fizzbuzz flag nonzero

[ - if (h0 is nonzero; ie fizzbuzz flag not set; ie normal number)

set h0 to the number we want to print (namely 100 minus main counter):
<<<< go to main counter
copy main counter to h1 (end at h0)
[ - >>>> + > + <<<<< ] >>>> [ - <<<< + >>>> ]
>> +++++ +++++ [ - << +++++ +++++ >> ] set h0 = 100 (end at h2)
< [ - < - > ] set h0 = 100 minus h1 = 100 minus main counter
end at h1

move main counter into digits
each digit is initially stored as 10 minus that digit
set up digit registers at h1 to h3 (h1 is hundreds; h3 is ones)
+++++ +++++ > +++++ +++++ > +++++ +++++ initialize digits
<<< go back to copied main counter (h0)
[ - decrement h0
>>> - go to ones digit and decrement
[ - > + > + << ] >> [ - << + >> ] copy ones digit into h4
+ < [ [-] > - < ] > [ - if ones digit is zero
<<< - > +++++ +++++ decrement tens and restock ones
< go to tens digit
[ - >> + > + <<< ] >>> [ - <<< + >>> ] copy tens digit into h4
if tens digit is zero decrement hundreds and restock tens
+ < [ [-] > - < ] > [ - <<<< - > +++++ +++++ >>> ]
]
<<<<< go back to h0
]

subtract each digit from ten
+++++ +++++ make ten
> go to hundreds
[ - < - > ] subtract from ten
< [ - > + < ] copy over remainder
+++++ +++++ make ten
>> go to tens
[ - << - >> ] subtract from ten
<< [ - >> + << ] copy over remainder
+++++ +++++ make ten
>>> go to ones
[ - <<< - >>> ] subtract from ten
<<< [ - >>> + <<< ] copy over remainder
end at h0

print digits
>>>>> go to h4
+++++ +++ [ < +++++ + > - ] < set h4 to 8x6 = 48 = '0'
[ <<< + > + > + > - ] add this '0' to back digits
<<< .[-] > .[-] > .[-] print digits then set them to zero

<<< go back to h0 (where fizzbuzz flag loop started)

] end of "fizzbuzz flag not set" loop

<<<<<. go to newline and print

>return to main counter

] end of main loop

error: pathspec 'brainfuck/fizzbuzz.bf' did not match any file(s) known to git


sleep sort in brainfuck

sleep sort in brainfuck

why not

error: pathspec 'sleepsort.bf' did not match any file(s) known to git


added sample befunge program "helloworld.bf"

error: pathspec 'helloworld.bf' did not match any file(s) known to git


Add bf program that prints all ASCII chars

error: pathspec 'bf/all_chars.bf' did not match any file(s) known to git


update example program

update example program

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/hachibu/brainfuck-llvm.git/'