Execute Brain****/E: Difference between revisions

Content added Content deleted
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.


<lang e>pragma.syntax("0.9")
<syntaxhighlight lang="e">pragma.syntax("0.9")
pragma.enable("accumulator")
pragma.enable("accumulator")


Line 80: Line 80:
}
}
`.eval(safeScope)
`.eval(safeScope)
}</lang>
}</syntaxhighlight>


Example usage:
Example usage:


<lang e>? def incr3 := bfCompiler(",>,>,><<<[+.>]")
<syntaxhighlight lang="e">? def incr3 := bfCompiler(",>,>,><<<[+.>]")
# value: <BF function>
# value: <BF function>


? incr3("abc")
? incr3("abc")
# value: "bcd"</lang>
# value: "bcd"</syntaxhighlight>