-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an editor for BF-it #69
base: master
Are you sure you want to change the base?
Conversation
A basic editor for BF-it Bugs: readchar() won't work (editor won't respond)
It's better to not expect that python is named You might be able to call the functions directly. |
Does python3 also work? |
You can replace the interpreter command call with an import to that and using the function. Look in BF-it.py |
I wouldn't recommend renaming that file since the dash is part of the name |
I mean you should use import Interpreter
from Compiler import Compiler
Compiler.compile(code)
# and
Interpreter.brainfuck(code) |
The command to run the BF file MUST be a command so subprocess.Popen() can run it |
Try every python executable the user could have (python, python3, python3.{sys.version[1]})
Please import the interpreter function and use it, instead of calling subprocess. There is an example in BF-it.py |
A basic editor for BF-it
Bugs: readchar() won't work (editor won't respond)