nojanath / SublimeKSP

Fork of Nils Liberg's SublimeKSP plugin. See README for details.
GNU General Public License v3.0
84 stars 18 forks source link

Additional branch optimization totally corrupts compiles that include TCM #437

Closed eitherys closed 5 months ago

eitherys commented 5 months ago

I've investigated a fix but the AST visitors in this codebase seem to return inconsistent data types depending on the stage of compiler, so there are layers and layers of complexity to tracing the code transformations and from what I was seeing they're big systemic design issues and can't be fixed with some one-liners or typecasts.

Closes #436.

eitherys commented 5 months ago

Also recommend adding compiler tests that use the branch optimization option, and with TCM, if there aren't any.