|
bfx
An interpreter, compiler, and REPL for brainfuck-like languages
|
Language-independent utility function definitions. More...
#include "bfx.h"Go to the source code of this file.
Macros | |
| #define | BFX_MAX_THREADS 128 |
| Maximum number of threads allowed in multithreaded languages. | |
Functions | |
| BFX_Error | bfx_build_loops (BFX *) |
| Builds the loop structure for the BFX instance. | |
| BFX_Error | bfx_parse_ops (BFX *, BFX_Error(*[128])(BFX *, BFX_FileIndex *)) |
| Executes operations on the BFX instance. | |
Language-independent utility function definitions.
| #define BFX_MAX_THREADS 128 |
Maximum number of threads allowed in multithreaded languages.
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. |