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

Go to the source code of this file.

Data Structures

struct  BFX_BrainforkData
 Data structure for managing Brainfork threads. More...
 

Functions

BFX_Error bfx_brainfork_init (BFX *)
 Initialize the Brainfork interpreter.
 
BFX_Error bfx_brainfork_run (BFX *)
 Run the Brainfork interpreter.
 
void * bfx_brainfork_run_child (void *)
 Run the Brainfork interpreter in a child thread.
 
BFX_Error bfx_op_brainfork_fork (BFX *, BFX_FileIndex *)
 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)