Skip to content
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

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

abhra2020-smart
Copy link
Contributor

A basic editor for BF-it

Bugs: readchar() won't work (editor won't respond)

A basic editor for BF-it

Bugs: readchar() won't work (editor won't respond)
@NeeEoo
Copy link
Contributor

NeeEoo commented Apr 23, 2021

It's better to not expect that python is named python for example for me it's called python3.8.

You might be able to call the functions directly.

@abhra2020-smart abhra2020-smart mentioned this pull request Apr 23, 2021
@abhra2020-smart
Copy link
Contributor Author

Does python3 also work?

@NeeEoo
Copy link
Contributor

NeeEoo commented Apr 23, 2021

You can replace the interpreter command call with an import to that and using the function. Look in BF-it.py

@NeeEoo
Copy link
Contributor

NeeEoo commented Apr 23, 2021

I wouldn't recommend renaming that file since the dash is part of the name

@NeeEoo
Copy link
Contributor

NeeEoo commented Apr 23, 2021

I mean you should use

import Interpreter
from Compiler import Compiler

Compiler.compile(code)
# and
Interpreter.brainfuck(code)

@abhra2020-smart
Copy link
Contributor Author

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]})
@elikaski
Copy link
Owner

Please import the interpreter function and use it, instead of calling subprocess. There is an example in BF-it.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants