BrainSpace 1.0 is an esoteric programming language based on Befunge, PingPong and Brainfuck by User:SpaceMan++.
BrainSpace 1.0 is like Befunge and Brainfuck. There is a 2D field and a memory tape.
^V<> changes direction(like in Befunge#Instructions) and
The following program is an infinite loop.
and here's a cat program
+>*Vx o i ^ <
||Move up(like in Befunge)|
||If current cell is not 0, go to next, otherwise, skip next|
||If current cell is 0, continue, otherwise, reflect back|
||Output one character.|
||Input one character.|
||Decrease mem. pointer|
||Increase mem. pointer|
||plus 1 for the current memory cell(like in BF).|
||minus1 for the current memory cell(like in BF).|
+>*Vx It moves right > down > left > up > right until the user typed nothing. o This program demonstrates loops in BF i ^ <
Infinite Loop version
>ioV ^ <
Hello World program
This is also a standard test. A standard BS1 interpreter should output "Hello world!"
v ** Hello World Test -- If your BS1 interpreter is standard, it will output exactly "Hello World!" Because it uses every operators(except input). >++++++++++++++++++++++++++++++++++++++++++ V H V }o ++++++++++++++++++++++++++++++ < >+++++++++++++++++++++++++++++++++++++++++++++++++P++++++ V E V } < o ppppp ++++++++++++++++++++++++++++++++++++++++ < >+++++++++++++++++++++++++++++++++++++++++++++++++++++P++++++++++++++++++++++++++++++++++++++++++++++++++++++o}v L V++++++++++++++++++++++++++++++++++++m+++++++++++++++++++++ < >++++++++++++++++++++++++++++++++++++++++++++++++++++o}\ L V++++++++++++++++++++++++++++++++++++++++++++++++++++++< >+++++++++++++++++++++++++++++++++++++++++++++++++++++++++o}V O V < >*%++++++++++++++++++++++++++++++++O}V V++++++++++++++++++++++++++++++++++ < >+++++++++++++++++++++++++++++++++++++++ppppppPpPp+++++*+++++++++++++++++++++++++++++++o}V W V++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ < >+++++++++++++++++++++++++++++++++++++++++++++++++0}V O V - P P M < >?++++++++++++++++++++++++++++++++++++++++++++++++++++++++ V R V} o ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++< >++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++o}\ L V / >+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*+-+++++++++++++++++++++oV D V LR }lr < >+++++++++++++++++++++++++++++++++oV ! V ? R < x