Anonymous user
Execute Brain****/Forth: Difference between revisions
m
moved RCBF/Forth to Execute Brain****/Forth
(→Usage: load from file) |
m (moved RCBF/Forth to Execute Brain****/Forth) |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 1:
{{implementation|Brainf***}}{{collection|RCBF}}
A Brainf*** compiler written by [[User:IanOsgood|Ian Osgood]] in [[Forth]].
==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 ⟶ 54:
;
: :bf
:
compile-bf-string ;
|