Raisin is a bytecode-compiled superset of Brain****
Character | Description |
---|---|
Standard Branflakes | |
+ |
Increments the current cell by 1 |
- |
Decrements the current cell by 1 |
> |
Increments the current cell position by 1 |
< |
Decrements the current cell position by 1 |
[ |
Jumps to the corresponding ] if the current cell is 0 |
] |
Jumps to the corresponding [ if the current cell is not 0 |
. |
Prints the current cell |
, |
Takes in a single byte value as user input and sets the current cell to it |
Added by Raisin | |
_ |
Stops the program |
' |
Jumps ahead by the amount in the current cell |
``` | Jumps back by the amount in the current cell |
In normal Branflakes, comments are any character that isn't one of the commands
Raisin has actual comments
/ this is a comment /
/ this prints '2' /
++.
In normal Branflakes, a lot of duplicate code is created because of the lack of any abstraction
In Raisin, this is fixed(for sure, totally) by adding macros
#add3{+++}
++
#add3
.
/ this prints '5' /