|
bfx
An interpreter, compiler, and REPL for brainfuck-like languages
|
Main logic for the brainfuck-like language interpreter/compiler. More...
#include "bfx.h"#include "interpret.h"#include <stdbool.h>#include <stdio.h>#include <stdlib.h>#include <string.h>Functions | |
| void | bfx_free (BFX *bfx) |
| Frees the memory allocated for the BFX instance. | |
| BFX_Error | bfx_run_file (const char *path, BFX *bfx) |
| Runs the program loaded from a file. | |
| BFX_Error | bfx_run_repl (BFX *bfx) |
| Runs the BFX interpreter in REPL (Read-Eval-Print Loop) mode. | |
Main logic for the brainfuck-like language interpreter/compiler.
Public definitions for main logic for the brainfuck-like language interpreter/compiler.
| void bfx_free | ( | BFX * | bfx | ) |
Runs the program loaded from a file.
This function builds the loop structure for the BFX instance, then iterates through the program instructions, interpreting each one until the end of the program is reached.