Anonymous user
Execute Brain****/Forth: Difference between revisions
slightly less confusing syntax for :bf
(→Usage: load from file) |
(slightly less confusing syntax for :bf) |
||
Line 3:
==Usage==
Load the code your preferred Forth environment. The code will define the words ''':bf
===Compiling Brainf*** code===
Let's say you have this sequence that prints a capital A:
++++++[>+++++++++++<-]>-.
You can compile it by using the ''':bf
:bf
Your Brainf*** code is now compiled in your Forth environment as the word '''printA'''. If you want to use a different name, replace printA with your preferred name.
Line 53:
;
: :bf
:
compile-bf-string ;
|