brainfuck  0.1
A full fledged brainfuck compiler
Macros | Functions
compiler.c File Reference

File containing the important compile function. More...

#include <stdlib.h>
#include "common.h"

Go to the source code of this file.

Macros

#define BUF_SIZE   256
 The size of the stack buffer.
 

Functions

int compile (FILE *in, FILE *out, int stack_size, int array_size)
 compiler function More...
 

Detailed Description

File containing the important compile function.

Author
Benjamin James
Date
15 September 2015

Definition in file compiler.c.

Function Documentation

int compile ( FILE *  in,
FILE *  out,
int  stack_size,
int  array_size 
)

compiler function

Parameters
inWhere to get the source code from
outWhere to print the assembly code
stack_sizeThe size of the loop stack
array_sizeThe size of the brainfuck internal array
Returns
the success of this function, 0 on success, -1 on failure

Definition at line 28 of file compiler.c.

References BUF_SIZE.

Referenced by main().