资 源 简 介
The BrainSharp interpreter lets you use BrainF*ck as a scripting language in your .Net application. It uses the standard syntax but with one extension, the command |. | allows you to make a callback into a function table in the interpreter. The current memory cell should contain the index in the table and the cells to the left will be used as function arguments, counting left to right. The result of the function is put into the current memory cell
Example:
Memory layout:1 2 0Brainf*ck code:+>++>|Csharp method at index 0:byte Add(byte a, byte b);Result:1 2 3
The | command is not supported by the compiler.