All Projects → zk-phi → bfbuilder

zk-phi / bfbuilder

Licence: other
A brainfuck development environment with interactive debugger

Programming Languages

emacs lisp
2029 projects

Labels

bfbuilder.el

Emacs 用の Brainfuck 開発環境

A brainfuck development environment with interactive debugger

Screenshot

./bfbuilder.png

Features

  • syntax highlighting
  • automatic indentation
  • interactive debugger
  • abbrev for repetition

Installation

Load “bfbuilder.el” and setup auto-mode-alist

(require 'bfbuilder)
(add-to-list 'auto-mode-alist '("\\.bf$" . bfbuilder-mode))

then bfbuilder-mode is activated when opening “.bf” files.

Keybindings

TAB expands the last abbrev if it exists, or indents current line otherwise. Abbrev is something like +10, or (+-)3 and they expand to ++++++++++ and +-+-+- respectively.

C-c C-c opens the debugger. You can execute the program step by step with following keybindings. Any other key closes the debugger.

l
execute an instruction
j
execute a line
L
execute a group of instructions like ++++++
g
initialize the debugger state
G
execute forward until it reaches a breakpoint (@ by default)

TODOs

  • implement undo (backward execution) feature for the debugger
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].