loganzartman / befx

simple Befunge-93 interpreter in Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

befx

Execute Befunge code. "beef-ex".

demo image

what

This is a mostly complete Befunge-93 interpreter! Befunge is an esoteric language that executes in two dimensions!

usage

Run with visualization

python befx.py examples/helloworld.befunge

Run faster

python befx.py -f 100 examples/helloworld.befunge

Headless mode; no visualization or delays

python befx.py -H examples/helloworld.befunge

Piped input

echo -e "3\n6\n7\n0\n" | python befx.py examples/calculator.befunge -H

as a library

Probably don't do this, but if you insist:

from befx import exec_befunge

output = exec_befunge('"!dlroW olleH">:#,_@')
print(output)

About

simple Befunge-93 interpreter in Python

License:MIT License


Languages

Language:Python 100.0%