BrainSoup

From Esolang
Jump to navigation Jump to search

BrainSoup is a language that translates any trivial bf substitution into bf. User:PixelatedStarfish is the author of this metalanguage. The first 8 lines of any BrainSoup program are reserved for bf command substitutions. Line 9 is a newline. Source code in the bf equivalent can be written from Line 10. The file extension for source is .bsou

Command Lines Table

Command Description Line
> Move the pointer to the right Line 1
< Move the pointer to the left Line 2
+ Increment the memory cell at the pointer Line 3
- Decrement the memory cell at the pointer Line 4
. Output the character signified by the cell at the pointer Line 5
, Input a character and store it in the cell at the pointer Line 6
[ Jump past the matching ] if the cell at the pointer is 0 Line 7
] Jump back to the matching [ if the cell at the pointer is nonzero Line 8

BrainSoup Examples

A Hello World in this Alphabet Based Substitution

a
c
e
i
j 
o
p
s

eeeeeeeepaeeeepaeeaeeeaeeeaeccccisaeaeaiaaepcscis
aajaiiijeeeeeeejjeeejaajcijcjeeejiiiiiijiiiiiiiijaaejaeej

Interpreter Specifications

The interpreter does the following:

  • Translates BrainSoup into bf.
  • Translates bf into a trivial substitution.
  • Runs bf code.


External Links

  • Java Interpreter
  • Repl
    • This REPL is currently not working (likely due to a change in Replit's system), but forking it will automatically upgrade the new fork and allow using it.