Skip to content

a simple brainfuck interpreter written in porth.

License

Notifications You must be signed in to change notification settings

Levev/porthduck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PorthDuck 🦆

A simple brainfuck interpreter written in porth.
Cells in PorthDuck are one byte long, but we can have many cells, which is always a good thing to have.

Usage

$ porth sim ./main.porth ',[.,]>++++++++++.' 'Hello, Github!'
PORTHDUCK INFO: finished parsing
Hello, Github!

PorthDuck accepts two arguments.
The first one is the brainfuck code to be interpreted, the second one is the input buffer from which the code can read.

How To Run

For starters, you'll need to clone the Porth repository, or if you've already cloned it, pull the new changes.
(I linked porth/porth.py into /usr/local/bin for convenience's sake, but you dont need to do that)
And to finish it all off, you'll have to copy the standard library from porth/std/ into porthduck/
Now, you're able to compile, or simulate porthduck on your machine (hopefully 😅)

About

a simple brainfuck interpreter written in porth.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published