wurstscript / WurstScript

Programming language and toolkit to create Warcraft III Maps
https://wurstlang.org
Apache License 2.0
226 stars 28 forks source link

optimizers for lua #1004

Closed Jampi0n closed 3 years ago

Jampi0n commented 3 years ago

lua translation does not eliminate as many constructs from the intermediate language as JASS. As a result, the optimizers need to support these constructs: classes, methods, vararg loops

Frotty commented 3 years ago

Thanks, worked in my tests. The static variable for class type is not ideal, but I'm happy to merge working stuff.