Execute Brain****/E: Difference between revisions
Content added Content deleted
m (moved RCBF/E to Execute Brain****/E) |
m (Fixed syntax highlighting.) |
||
Line 5: | Line 5: | ||
It has a fixed-size memory defined in terms of characters, not bytes, and initialized to the null character. It does not permit the BF program to notice EOF. |
It has a fixed-size memory defined in terms of characters, not bytes, and initialized to the null character. It does not permit the BF program to notice EOF. |
||
< |
<syntaxhighlight lang="e">pragma.syntax("0.9") |
||
pragma.enable("accumulator") |
pragma.enable("accumulator") |
||
Line 80: | Line 80: | ||
} |
} |
||
`.eval(safeScope) |
`.eval(safeScope) |
||
}</ |
}</syntaxhighlight> |
||
Example usage: |
Example usage: |
||
< |
<syntaxhighlight lang="e">? def incr3 := bfCompiler(",>,>,><<<[+.>]") |
||
# value: <BF function> |
# value: <BF function> |
||
? incr3("abc") |
? incr3("abc") |
||
# value: "bcd"</ |
# value: "bcd"</syntaxhighlight> |