BrainInt
Jump to navigation
Jump to search
Introduction
BrainInt is a language invented by NoOneIsHere from Programming Puzzles & Code Golf.
Basics
These are the current commands:
- +, increment current cell
- -, decrement current cell
- >, move one cell to the right
- <, move one cell to the left
- ., output current cell as ASCII char
- !, output current cell as number
- *, multiply cell and cell to the right
- /, integer divide cell and cell on right
- [, start loop (while cell != 0)
- ], end loop
- {, start for loop (exec code, then move cell until cell is zero)
- }, end for loop
- $, add cell and cell on right, clearing cell on right
- %, subtract cell and cell on right, clearing cell on right
- @, end program
- &, set current cell to input given from user
- (, exec code <current cell> number of times
- ), end exec loop