Braimproved

From Esolang
Jump to navigation Jump to search

Braimproved is BF but improved.

Commands

Command Description
> Moves the pointer right
< Moves the pointer left
+ Increments the cell at the pointer
- Decrements the cell at the pointer
, Asks for user input in ASCII character form and save its character code to the cell at the pointer
. Outputs the cell at the pointer as an ASCII character
? Asks for user input in numeric form and saves it to the cell at the pointer
! Outputs the cell at the pointer as a number
[ Goes to the corresponding ] if the cell at the pointer is 0
] Goes to the corresponding [ if the cell at the pointer is nonzero
( Goes to the corresponding ) if the cell at the pointer is nonzero
) Goes to the corresponding ( if the cell at the pointer is 0
O Gives you a donut
h Halts the program

Examples

Cat

ASCII

+[,.]

Numbers

+[?!]

Hello World

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

Kiwiscript

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

Truth Machine

?(!h)[!]

Interpreter

  • Common Lisp implementation of the Braimproved programming language.