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

Rename _while and _repeat #19

Closed
szapp opened this issue Nov 8, 2019 · 1 comment
Closed

Rename _while and _repeat #19

szapp opened this issue Nov 8, 2019 · 1 comment

Comments

@szapp
Copy link
Owner

szapp commented Nov 8, 2019

Rename the symbols _while and _repeat to while and repeat, respectively, if they exist.

if symbol_exists("_while") and !symbol_exists("while")
    sym = get_symbol("_while")
    sym.name = "while"
if symbol_exists("_repeat") and !symbol_exists("repeat")
    sym = get_symbol("_repeat")
    sym.name = "repeat"
@szapp
Copy link
Owner Author

szapp commented Nov 8, 2019

Here could be a good place to do it:

reportToSpy NINJA_SYMBOL_ADD_DIV

Code to write

  1. If not content parser, jump to 8.
  2. If "_while" does not exist, jump to 5.
  3. If "while" does exist, jump to 5.
  4. Rename "_while" to "while"
  5. If "_repeat" does not exist, jump to 8.
  6. If "repeat" does exist, jump to 8.
  7. Rename "_repeat" to "repeat"
  8. Continue

@szapp szapp closed this as completed in f9c0584 Nov 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant