BrainInt

From Esolang
Jump to: navigation, search

Introduction

BrainInt is a language invented by NoOneIsHere from Programming Puzzles & Code Golf.

Basics

These are the current commands:

  1. +, increment current cell
  2. -, decrement current cell
  3. >, move one cell to the right
  4. <, move one cell to the left
  5. ., output current cell as ASCII char
  6.  !, output current cell as number
  7. *, multiply cell and cell to the right
  8. /, integer divide cell and cell on right
  9. [, start loop (while cell != 0)
  10. ], end loop
  11. {, start for loop (exec code, then move cell until cell is zero)
  12. }, end for loop
  13. $, add cell and cell on right, clearing cell on right
  14.  %, subtract cell and cell on right, clearing cell on right
  15. @, end program
  16. &, set current cell to input given from user
  17. (, exec code <current cell> number of times
  18. ), end exec loop


Interpreter

  1. In Python (Official)