Posted 12 December 2015 - 10:14 PM
Since Brainf*** is so amazingly simple, I gave it a go. 20 seconds later this happened.
Same syntax, but I added a few other things so its a bit more fun to play around with.
Characters:
< decrement data pointer
+ increment current data value from current data pointer
- decrement current data value from current data pointer
, current data pointer is now 1 character input as numerical code
. show current data pointer as character
[ open loop
] close loop
* (not in regular Brainfudge) Terminates program
% (not regular) Sets current loop to a for loop. Make a normal loop, but it will loop only as many times as the current data pointer was.
^ (not regular) Sets current loop to a while loop. (Default loop type is while, btw)
~ (not regular) Program sleeps depending on the current data pointer.
Character numerical codes are:
Alphabet in UPPERCASE, 27-52
Numbers 1-9 then 0, 53-63
Shift codes, aka !@#$%^&*() going from 64-73
And then just regular space, as 74"Grammar":
Pastebin: pastebin get mmjv002n brainf
Same syntax, but I added a few other things so its a bit more fun to play around with.
Characters:
Spoiler
> increment data pointer< decrement data pointer
+ increment current data value from current data pointer
- decrement current data value from current data pointer
, current data pointer is now 1 character input as numerical code
. show current data pointer as character
[ open loop
] close loop
* (not in regular Brainfudge) Terminates program
% (not regular) Sets current loop to a for loop. Make a normal loop, but it will loop only as many times as the current data pointer was.
^ (not regular) Sets current loop to a while loop. (Default loop type is while, btw)
~ (not regular) Program sleeps depending on the current data pointer.
Character numerical codes are:
Spoiler
Alphabet in lowercase, 1-26Alphabet in UPPERCASE, 27-52
Numbers 1-9 then 0, 53-63
Shift codes, aka !@#$%^&*() going from 64-73
And then just regular space, as 74
Spoiler
Only real thing to know is: While loops only exit until current byte is equal to zero.Pastebin: pastebin get mmjv002n brainf
Edited on 13 December 2015 - 08:25 AM