Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-rename symbols that use reserved words #5

Open
phobos2077 opened this issue Jun 27, 2023 · 0 comments
Open

Auto-rename symbols that use reserved words #5

phobos2077 opened this issue Jun 27, 2023 · 0 comments

Comments

@phobos2077
Copy link
Collaborator

Due to sfall sslc adding a bunch of new reserved words (like div), sometimes older scripts use this name for procedures and variables. So such scripts can't be re-compiled again without renaming those symbols.

There are 2 ways to fix this:

  • Add "legacy" mode to sfall sslc, so for older scripts you can just disable new fancy syntax and compile without the new reserved words.
  • Add auto-rename after decompile to int2ssl (just add some random number to procedure name to avoid collisions).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant