|
bfx
An interpreter, compiler, and REPL for brainfuck-like languages
|
Structure to store generic data for a brainfuck-like esolang interpreter. More...
#include <bfx.h>
Data Fields | |
| uint16_t | flags |
| Flags to control compilation and execution behavior. | |
| bool | receiving |
| Indicates whether the interpreter is receiving input. | |
| char * | program |
| Pointer to the program string. | |
| size_t | program_len |
| Length of the program string (not including the input buffer). | |
| size_t | program_size |
| Size of the program string. | |
| size_t | input_start |
| Start index of the input buffer in the program string. | |
| size_t | input_ptr |
| Current index of the input buffer in the program string. | |
| size_t | input_len |
| Length of the input buffer in the program string. | |
| uint8_t * | tape |
| Pointer to the tape array. | |
| size_t | tape_size |
| Size of the tape array. | |
| int | ip |
| Instruction pointer. | |
| int | tp |
| Tape pointer. | |
| BFX_Block * | loops |
| Pointer to the loop block array. | |
| size_t | loops_len |
| Length of the loop array. | |
| size_t | loops_size |
| Size of the loop array. | |
| size_t | input_max |
| Maximum size of the input buffer. | |
| int | eof_behavior |
| Behavior when encountering EOF. | |
| BFX_Language | lang |
| Language identifier for the brainfuck-like esolang. | |
| void * | lang_data |
| Pointer to language-specific data structure. | |
Structure to store generic data for a brainfuck-like esolang interpreter.
| int eof_behavior |
Behavior when encountering EOF.
| uint16_t flags |
Flags to control compilation and execution behavior.
| size_t input_len |
Length of the input buffer in the program string.
| size_t input_max |
Maximum size of the input buffer.
| size_t input_ptr |
Current index of the input buffer in the program string.
| size_t input_start |
Start index of the input buffer in the program string.
| int ip |
Instruction pointer.
| BFX_Language lang |
Language identifier for the brainfuck-like esolang.
| void* lang_data |
Pointer to language-specific data structure.
| BFX_Block* loops |
Pointer to the loop block array.
| size_t loops_len |
Length of the loop array.
| size_t loops_size |
Size of the loop array.
| char* program |
Pointer to the program string.
| size_t program_len |
Length of the program string (not including the input buffer).
| size_t program_size |
Size of the program string.
| bool receiving |
Indicates whether the interpreter is receiving input.
| uint8_t* tape |
Pointer to the tape array.
| size_t tape_size |
Size of the tape array.
| int tp |
Tape pointer.