|
bfx
An interpreter, compiler, and REPL for brainfuck-like languages
|
Functions | |
| BFX_Error | bfx_brainfuck_init (BFX *bfx) |
| Initialize the Brainfuck interpreter. | |
| BFX_Error | bfx_brainfuck_run (BFX *bfx) |
| Run the Brainfuck interpreter. | |
| BFX_Error | bfx_op_brainfuck_inc_tp (BFX *bfx, BFX_FileIndex *index) |
| Increment tape pointer (brainfuck). | |
| BFX_Error | bfx_op_brainfuck_dec_tp (BFX *bfx, BFX_FileIndex *index) |
| Decrement tape pointer (brainfuck). | |
| BFX_Error | bfx_op_brainfuck_inc_t (BFX *bfx, BFX_FileIndex *index) |
| Increment tape value (brainfuck). | |
| BFX_Error | bfx_op_brainfuck_dec_t (BFX *bfx, BFX_FileIndex *index) |
| Decrement tape value (brainfuck). | |
| BFX_Error | bfx_op_brainfuck_loop_start (BFX *bfx, BFX_FileIndex *index) |
| Start of loop (brainfuck). | |
| BFX_Error | bfx_op_brainfuck_loop_end (BFX *bfx, BFX_FileIndex *index) |
| End of loop (brainfuck). | |
| BFX_Error | bfx_op_brainfuck_getchar (BFX *bfx, BFX_FileIndex *index) |
| Get character from input or stdin (brainfuck). | |
| BFX_Error | bfx_op_brainfuck_putchar (BFX *bf, BFX_FileIndex *index) |
| Output the current cell value as a character (brainfuck). | |
Initialize the Brainfuck interpreter.
| bfx | Pointer to the already-allocated interpreter struct |
Run the Brainfuck interpreter.
| bfx | Pointer to the interpreter struct |
| BFX_Error bfx_op_brainfuck_dec_t | ( | BFX * | bfx, |
| BFX_FileIndex * | index | ||
| ) |
Decrement tape value (brainfuck).
| BFX_Error bfx_op_brainfuck_dec_tp | ( | BFX * | bfx, |
| BFX_FileIndex * | index | ||
| ) |
Decrement tape pointer (brainfuck).
| BFX_Error bfx_op_brainfuck_getchar | ( | BFX * | bfx, |
| BFX_FileIndex * | index | ||
| ) |
Get character from input or stdin (brainfuck).
| BFX_Error bfx_op_brainfuck_inc_t | ( | BFX * | bfx, |
| BFX_FileIndex * | index | ||
| ) |
Increment tape value (brainfuck).
| BFX_Error bfx_op_brainfuck_inc_tp | ( | BFX * | bfx, |
| BFX_FileIndex * | index | ||
| ) |
Increment tape pointer (brainfuck).
| BFX_Error bfx_op_brainfuck_loop_end | ( | BFX * | bfx, |
| BFX_FileIndex * | index | ||
| ) |
End of loop (brainfuck).
| BFX_Error bfx_op_brainfuck_loop_start | ( | BFX * | bfx, |
| BFX_FileIndex * | index | ||
| ) |
Start of loop (brainfuck).
| BFX_Error bfx_op_brainfuck_putchar | ( | BFX * | bf, |
| BFX_FileIndex * | index | ||
| ) |
Output the current cell value as a character (brainfuck).