Braincons is an Interlisp implementation of the Brainfuck esoteric programming language developed under Medley Interlisp.
It will eventually provide a minimal Brainfuck development environment with an editor and an interactive visualization of the execution environment, the virtual machine memory, and its state.
Braincons is in an early stage of development and largely incomplete, so there's no program, window, or command to run yet. Preliminary versions of some of the main functions and data structures are in place and can be called or inspected from the Lisp Executive.
Download the file BRAINCONS
from the project repo, copy it to a file system your Medley Interlisp installation has access to, and evaluate the following expression from the Lisp executive:
(FILESLOAD BRAINCONS)
Call the parser function BRC.PARSE
and pass it a source string representing a Brainfuck program:
(SETQ PARSED.PROGRAM (BRC.PARSE "<>[.,]+-"))
BRC.PARSE
returns the intermidiate representation of the source assigned the variable PARSED.PROGRAM
, which you can inspect as a BRC.PROGRAM
record with:
(INSPECT PARSED.PROGRAM)
The inspected record and its fields should look similar to the above screenshot.
Braincons is developed by Paolo Amoroso.
This code is distributed under the MIT license, see the LICENSE
file.