|
bfx
An interpreter, compiler, and REPL for brainfuck-like languages
|
Functions | |
| BFX_Error | bfx_pbrain_init (BFX *bfx) |
| Initialize the P-Brain interpreter. | |
| BFX_Error | bfx_pbrain_run (BFX *bfx) |
| Run the P-Brain interpreter. | |
| BFX_Error | bfx_op_pbrain_start_procedure (BFX *bfx, BFX_FileIndex *idx) |
| Begin procedure definition (pbrain). | |
| BFX_Error | bfx_op_pbrain_call (BFX *bfx, BFX_FileIndex *index) |
| Call a procedure by its identifier (pbrain). | |
| BFX_Error | bfx_op_pbrain_ret (BFX *bfx, BFX_FileIndex *index) |
| Return from a procedure (pbrain). | |
This file contains the implementation of the P-Brain interpreter.
| BFX_Error bfx_op_pbrain_call | ( | BFX * | bfx, |
| BFX_FileIndex * | index | ||
| ) |
Call a procedure by its identifier (pbrain).
| BFX_Error bfx_op_pbrain_ret | ( | BFX * | bfx, |
| BFX_FileIndex * | index | ||
| ) |
Return from a procedure (pbrain).
| BFX_Error bfx_op_pbrain_start_procedure | ( | BFX * | bfx, |
| BFX_FileIndex * | idx | ||
| ) |
Begin procedure definition (pbrain).
| bf | Pointer to the interpreter struct |
| idx | Pointer to the file index struct |
Initialize the P-Brain interpreter.
| bfx | Pointer to the already-allocated interpreter struct |