This is a functioning Brain-Flak interpreter, written in Javascript. The source is available here.
Notes on this implementation:
- Only the 8 command characters, spaces and newlines are accepted. This means no comments - otherwise, an error will be thrown.
- This implementation uses standard JavaScript integer sizes, so try not to do anything greater than 2^32.
- Output is interpreted as a UTF-16 character code, so if your browser refuses to show some of the output properly that's why - this font doesn't support every single character. The converter below can convert any UTF-16 character to its code for your use in a program. Some characters with higher codepoints to mess around with are the emojis β β¨π₯Ίπ.
- This program makes sound. Character code
U+0007
treated as a bell character, and will make noise instead of displaying in the output area. - Hitting enter will attempt to run the code - if you want a second line in the editor, use shift-enter.
Here's a convenient UTF-16 character table for your perusal.There's also an ASCII character table at the bottom of the page.