|
bfx
An interpreter, compiler, and REPL for brainfuck-like languages
|
Language-independent utility functions. More...
Functions | |
| BFX_Error | bfx_build_loops (BFX *bfx) |
| Builds the loop structure for the BFX instance. | |
| BFX_Error | bfx_parse_ops (BFX *bfx, BFX_Error(*ops[128])(BFX *, BFX_FileIndex *)) |
| Executes operations on the BFX instance. | |
Language-independent utility functions.
Builds the loop structure for the BFX instance.
This function scans the BFX program and constructs the necessary data structures to efficiently handle loop constructs ('[' and ']'). It ensures that matching brackets are correctly paired, allowing for proper execution flow during interpretation.
| bfx | The BFX instance to build loops for. |