ndless-nspire / Luna

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

Allow specifiying api level #3

Closed droped closed 7 years ago

droped commented 7 years ago

Given some deprecations and additions between apis, it would be useful to be able to specify the api level.

Vogtinator commented 7 years ago

That's usually done in the ProblemX.xml itself, so luna does not need to implement this.

droped commented 7 years ago

How do I structure the Problem1.xml file to have purely the api reference I want? Can I instead put the api reference in the lua file or will luna ignore it and add the default reference itself?

adriweb commented 7 years ago

IIRC there's a "TARAL" attribute in the XML, but specifying platform.apilevel = '...' in the first line of the script itself should work just as well, Luna won't override it (it doesn't enforce one, AFAIK)