marcofiset / migraine

A set of projects related to the Brainfuck programming language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Migraine - Unfuck Your Brain

A set of projects related to Brainfuck

What is it / What will it be

Migraine is a Brainfuck interpreter, debugger and will eventually feature a programming language that compiles down to Brainfuck. I created this project for learning purposes only and I have a lot of fun writing it. It is still in early development.

Migraine - The custom Brainfuck interpreter

What currently works

  • Fully functional interpreter which uses integers as memory cells.

Migraine - The Brainfuck debugger

What currently works

  • Load/save a Brainfuck program from/to a file
  • Execute the program (!)
  • Supply input to the program as we go
  • Pre-supply inputs to the program
  • Display the output

Plans for the future

  • Step-by-step execution
  • Display the memory cells and their values
  • Live editing of the memory cells

Migraine - The programming language

What currently works

  • Grammar for simple mathematical expressions (numbers, + - * / operators, parenthesis and operator precedence)
  • Abstract Syntax Tree generation
  • Provides an interface for AST manipulation (through the Visitor pattern)
  • Variable assignment
  • Functions
  • If statements with conditions and equality operators : == >= <= > <

Plans for the future

  • Multiple conditions with || and &&
  • Support for other primitive types (strings, booleans)
  • Other assignement operators (+= -= *= /=)

About

A set of projects related to the Brainfuck programming language


Languages

Language:C# 100.0%