ndless-nspire / Luna

Create TNS files from Lua and XML
Other
57 stars 13 forks source link

[Feature request] Ability to include python files instead of lua code for CX II/II-T #15

Closed dimaguy closed 1 month ago

dimaguy commented 1 year ago

I wonder if is feasible to use python code instead of lua to be more inclusive, the documentation on this seems pretty scarce

adriweb commented 1 year ago

Yeah it should be, and I've been meaning to add proper support for it, but I've kinda forgotten about it... I'll try to come back to that soon 👀

314gomes commented 10 months ago

It seems only a very simple Problem1.xml is needed for python support and it just needs to contain the filename for the plaintext python file. The student software adds aditional information on Problem1.xml but I was able to generate valid TNS python programs without them.

Would it be "proper support" to automatically generate this Problem1.xml?

dimaguy commented 10 months ago

I'm not exactly picky, as long as whatever path ends in a usable tns file it's all fair game

sasdallas commented 8 months ago

It seems only a very simple Problem1.xml is needed for python support and it just needs to contain the filename for the plaintext python file. The student software adds aditional information on Problem1.xml but I was able to generate valid TNS python programs without them.

Would it be "proper support" to automatically generate this Problem1.xml?

Any examples of this additional information? Most likely nothing, but just to be sure.

Legimet commented 1 month ago

Python support added in https://github.com/ndless-nspire/Luna/pull/22

dimaguy commented 1 month ago

I will be closing down this issue as it seems to be solved!