repl.it
@pyelias/

state-f interpreter

Python

intermediate lang designed to compile to brainf

fork
loading
Files
  • main.py
  • common.py
  • env.py
  • example.stf
  • op.py
  • parser.py
  • state.py
  • test.stf
main.py
1
2
3
4
5
6
7
8
from env import Env
import parser

with open("test.stf", "r") as f:
	states = parser.parse(f.readlines())

e = Env()
e.run(states["main"])
?