you are in a brainforest

From Esolang
Jump to navigation Jump to search

you are in a brainforest is a non-turing complete esolang that compiles into brainfuck. its only sole purpose is to make text adventures.

commands

out() - prints characters in brackets
in - stores input as temporary variable
if(?|) - do things between | and ) only if temporary variable is ?
inc - adds 1 to temporary variable
dec - subtracts 1 to temporary variable

compilation to brainfuck

out(?):
(number of pluses as needed).[-]
in:
>,<
inc:
>+<
dec:
>-<
if(?|!):
>[>+>+<<-]>[<+>-]>(number of minuses as needed)>+<[>-<[-]]>[<<<!>>>[-]]