Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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.

3 participants