Skip to content

Brainfuck Interpreter written in Golang supporting custom commands

License

Notifications You must be signed in to change notification settings

tewwwfik/BrainFuckInterpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brianfuck Interpreter

This is a Brainfuck interpreter written in Golang. It also allows you to add custom commands.

What is Brainfuck

Brainfuck is an esoteric programming language created in 1993 by Urban Müller, and notable for its extreme minimalism.
The language consists of only eight simple commands and an instruction pointer. While it is fully Turing complete, it is not intended for practical use, but to challenge and amuse programmers. Brainfuck simply requires one to break commands into microscopic steps.
The language's name is a reference to the slang term brainfuck, which refers to things so complicated or unusual that they exceed the limits of one's understanding.

--from Wikipedia

What does Brainfuck look like

A HelloWorld program looks like this, consisting of only eight types of commands.

>++++++++[<+++++++++>-]<.>++++[<+++++++>-]<+.+++++++..+++.>>++++++[<+++++++>-]<++.------------.>++++++[<+++++++++>-]<+.<.+++.------.--------.>>>++++[<++++++++>-]<+.

Features of this interpreter

  • Syntax errors detect
  • Native Brainfuck grammar interpretation
  • You can add your custom commands both for cell value and for pointer

Usage

Compile using go build and run:

./brainfuck filename.bf

You can check example.go or brainfuck_test.go for see usage as package and custom commands.

License: MIT

About

Brainfuck Interpreter written in Golang supporting custom commands

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published