br greater than

From Esolang
Jump to navigation Jump to search
The title of this article is not correct because of technical limitations. The correct title is actually br>.

br> is a stack-based esolang created by User:Ractangle and User:Ϫ.

Etymology

The name came from an mistake that User:Ϫ made by accident:

br><br>hehe whoops esolagn lol... wait that gives me an idea: <br> 

Syntax

The language uses a line based system, like Befunge but 1d. The first line is the program, the second line is the first item in the starting stack, and so on. The 'player' rebounds at the end of the line. The syntax for the initial starting stack lines are this:

"{string}" creates a string.
{number} creates a number.
T creates a boolean truth.
F creates a boolean falsehood.
I inserts whatever the person's input is, which can be any of the above (but not I, that's an infinite loop!).

Anything else does not get added to the stack.

Commands

All Commands
> Starts the cursor moving left. < does the opposite.
- Flips the cursor's direction.
? Pop value. If it is a boolean truth, do the next operation. Anything else skips it and pushes it back.
^ Skip the next instruction.
! Halts.
" Toggles input mode. In input mode all encountered objects are added to the stack, digits as 1-digit numbers and letters as 1-letter strings.
I Pushes the user's input, just like the initial stack call in the Syntax section.
t Pushes a boolean truth.
f Pushes a boolean not truth.
: Duplicates the top stack item.
O Pops a value and outputs it.
R Pops a value. If it is a 1-letter string, from now on this acts like that instruction.
o Outputs the top value without popping it.
M Pops two values. If they are the same, push a truth. If they are different, push a falsehood.
Any other letter (upper) Sets a jump point.
Any other letter (lower) Goes to the uppercase jump point.
{...} Skip to the } if the top two elements on stack are not equal.
~ Pop a value.

Programs

Truth Machine

by User:Ϫ

>tM?zx-Zo-Xo!

by User:Ractangle

{boB}~o!
I
1
0

Infinite Loop

->-