bfx
An interpreter, compiler, and REPL for brainfuck-like languages
Loading...
Searching...
No Matches
brainfork.c File Reference
#include "brainfork.h"
#include "bfx.h"
#include "brainfuck.h"
#include "util.h"
#include <string.h>

Functions

BFX_Error bfx_brainfork_init (BFX *bfx)
 Initialize the Brainfork interpreter.
 
BFX_Error bfx_brainfork_run (BFX *bfx)
 Run the Brainfork interpreter.
 
void * bfx_brainfork_run_child (void *arg)
 Run the Brainfork interpreter in a child thread.
 
BFX_Error bfx_op_brainfork_fork (BFX *bfx, BFX_FileIndex *index)
 Fork (brainfork)
 

Function Documentation

◆ bfx_brainfork_init()

BFX_Error bfx_brainfork_init ( BFX bfx)

Initialize the Brainfork interpreter.

Parameters
bfxPointer to the already-allocated interpreter struct

◆ bfx_brainfork_run()

BFX_Error bfx_brainfork_run ( BFX bfx)

Run the Brainfork interpreter.

Parameters
bfxPointer to the interpreter struct

◆ bfx_brainfork_run_child()

void * bfx_brainfork_run_child ( void *  arg)

Run the Brainfork interpreter in a child thread.

Parameters
argPointer to the interpreter struct

◆ bfx_op_brainfork_fork()

BFX_Error bfx_op_brainfork_fork ( BFX bfx,
BFX_FileIndex index 
)

Fork (brainfork)