BF-it icon indicating copy to clipboard operation
BF-it copied to clipboard

Add an editor for BF-it

Open abhra2020-smart opened this issue 4 years ago • 7 comments

A basic editor for BF-it

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

abhra2020-smart avatar Apr 23 '21 20:04 abhra2020-smart

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.

NeeEoo avatar Apr 23 '21 20:04 NeeEoo

Does python3 also work?

abhra2020-smart avatar Apr 23 '21 20:04 abhra2020-smart

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

NeeEoo avatar Apr 23 '21 20:04 NeeEoo

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

NeeEoo avatar Apr 23 '21 21:04 NeeEoo

I mean you should use

import Interpreter
from Compiler import Compiler

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

NeeEoo avatar Apr 23 '21 21:04 NeeEoo

The command to run the BF file MUST be a command so subprocess.Popen() can run it

abhra2020-smart avatar Apr 24 '21 12:04 abhra2020-smart

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

elikaski avatar Apr 29 '21 22:04 elikaski