compile: Compiles a brainfuck program to a function

Description Usage Arguments Value

View source: R/compiler.R

Description

Compiles a brainfuck program to a function

Usage

1
compile(brainfuck_code)

Arguments

brainfuck_code

the brainfuck code

Value

It returns a function that expects a raw vectors which is the internal memory of the brainfuck program. According to Wikipedia you should pass in a raw vector of size 30,000 or larger.


dirkschumacher/RcppBrainfuck documentation built on Nov. 4, 2019, 10:32 a.m.