BrainF#ck with additional features that makes it easier, which eliminates the entire point of the BrainF#ck language.. ๐ Cell values are stored as char and the value range is between Char.MinValue and Char.MaxValue, not 0 and 255. Therefore it does not work well for now
>
Go to next cell<
Go to previous cell+
Add 1 to current cell-
Subtract 1 from current cellM
Max the value of the current cellO
Zero the value of the current cell.
Print the current cell value as ascii,
Take input from the user
Basic syntax of an if statement:
[A Comparison Symbol][Number]?(execute here if so)|(executed here if not so)K
You must put K at the end of an if-else statement. |(pipe) seperates the if and else part.
i.e. V10?-|+K
if value of the current cell is less than 10, subtract it by one (-). Else(|) add one to it (+). And end the if-else statement (K)
^
: Greater thanV
: Less than=
: Equal to
@*
: Prints the cell no@.
: Prints the cell value@ฤ
: ๐คฆโโ๏ธ
Anything between two #
are not executed. #This is a comment#