yyyyyyyan / rockstar-py

Python transpiler for the esoteric language Rockstar
MIT License
95 stars 26 forks source link

Created Transpiler class to avoid globals. #22

Closed matthew-nm closed 6 years ago

matthew-nm commented 6 years ago

I thought I checked this before the last pull request, but it seems that the global variables create an issue when translating multiple files (as when testing). This is because the global ident value is not reset between files.

Now, multiple transpiler objects can be created from the Transpiler class, each with their own local ident values.