Skip to content

Companion repository for a blog post about Brainfuck, interpreters and VMs

License

Notifications You must be signed in to change notification settings

mrnugget/virtual_brainfuck_machine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brainfuck Interpreter & Virtual Machine

Interpreter

The ./interpreter folder contains a Brainfuck interpreter, that reads in a Brainfuck file and interprets it on the fly.

Virtual Machine

The ./virtualmachine folder contains a Brainfuck compiler, that compiles a Brainfuck file into a custom instruction set. This instruction set is then executed by a virtual Brainfuck machine.

Running the code

In each folder you can do the following:

go build -o machine && ./machine my_brainfuck_file.b

Tests

Both implementations come with tests. Running all tests just requires this command:

go test ./...

License

MIT. See the LICENSE file.

About

Companion repository for a blog post about Brainfuck, interpreters and VMs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages