Skip to content

Instantly share code, notes, and snippets.

@ckjbgames
Last active June 29, 2017 19:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ckjbgames/d72069b8636d50bbad83f77e853c2a2d to your computer and use it in GitHub Desktop.
Save ckjbgames/d72069b8636d50bbad83f77e853c2a2d to your computer and use it in GitHub Desktop.
Temporary Gist for Brain-Flak Wiki

#Debug Flags

Brain-Flak has the useful feature of debug flagsd, which can be enabled by running then enterpreter with -d or --debug.
This page provides info on said debug flags, which can also be found by running Brain-Flak with the -H option. All debug flags in code must be preceded with an @ sign.


Flag Action
ac Print the current stack as ASCII characters.
al Print the left stack as ASCII characters.
av Print the current value of the scope as an ASCII character.
ar Print the right stack as ASCII characters.
cy Print the number of elapsed execution cycles.
dc Print the current stack in decimal.
dh Print the height of the current stack.
dl Print the left stack in decimal.
dv Print the current value of the scope as decimal.
dr Print the right stack in decimal.
ex Terminate execution.
ij Pause execution and prompt for code to be run at the flag position.
lt When passed with a number (e.g @lt6), evaluates to that number.
pu Pause until the return key is hit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment