bfx
An interpreter, compiler, and REPL for brainfuck-like languages
Loading...
Searching...
No Matches
weave.h File Reference
#include "bfx.h"

Go to the source code of this file.

Functions

BFX_Error bfx_weave_init (BFX *)
 Initialize the Weave interpreter.
 
BFX_Error bfx_weave_run (BFX *)
 Run the Weave interpreter.
 
BFX_Error bfx_op_weave_toggle (BFX *, BFX_FileIndex *)
 Toggle between thread and global tape (weave).
 
BFX_Error bfx_op_weave_exit (BFX *, BFX_FileIndex *)
 Terminate current thread (weave).
 

Detailed Description

This file contains function definitions related to interpreting the Weave language.

Function Documentation

◆ bfx_op_weave_exit()

BFX_Error bfx_op_weave_exit ( BFX bfx,
BFX_FileIndex index 
)

Terminate current thread (weave).

◆ bfx_op_weave_toggle()

BFX_Error bfx_op_weave_toggle ( BFX bfx,
BFX_FileIndex index 
)

Toggle between thread and global tape (weave).

◆ bfx_weave_init()

BFX_Error bfx_weave_init ( BFX bfx)

Initialize the Weave interpreter.

Parameters
bfxPointer to the already-allocated interpreter struct

◆ bfx_weave_run()

BFX_Error bfx_weave_run ( BFX bfx)

Run the Weave interpreter.

This function initializes and runs the Weave interpreter threads. It creates and joins the threads, and frees the language-specific data.

Parameters
bfxPointer to the interpreter struct