Gidsss / UwUIDE

A compiler made to be cute uwu >~<
6 stars 0 forks source link

`quick run` button to skip compiling and run transpiled python directly #314

Closed am-cid closed 3 months ago

Gidsss commented 3 months ago

https://github.com/Gidsss/UwUIDE/pull/219

I think its closely related here

am-cid commented 3 months ago

yes but this will not use Compiler.compile() then Compiler.run(). Instead, it will use Compiler.run_python() for quicker outputs

Gidsss commented 3 months ago

yes but this will not use Compiler.compile() then Compiler.run(). Instead, it will use Compiler.run_python() for quicker outputs

I did this pero sa VS terminal lalabas yung result is that fine? like transpiled python na

am-cid commented 3 months ago

Thats good enough but much better if you can:

  1. use import tempfile to create a temp python file
  2. write Compiler.source there and get the file path
  3. open up cmd and python <file path>

for more information, see how Compiler.run_python() is implemented. you can just replicate that behavior since Compiler.run_python() does not open up a cmd, hence maybe why its outputting to VS Terminal. You can fill in the opening up cmd part on your replication.