Skip to content

Commit

Permalink
Support screen language continue and break
Browse files Browse the repository at this point in the history
  • Loading branch information
CensoredUsername committed Feb 12, 2024
1 parent c781b3c commit d544f3e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions decompiler/sl2decompiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,16 @@ def print_for(self, ast):
# Interestingly, for doesn't contain a block, but just a list of child nodes
self.print_nodes(children, 1)

@dispatch(sl2.slast.SLContinue)
def print_continue(self, ast):
self.indent()
self.write("continue")

@dispatch(sl2.slast.SLBreak)
def print_break(self, ast):
self.indent()
self.write("break")

@dispatch(sl2.slast.SLPython)
def print_python(self, ast):
self.indent()
Expand Down

0 comments on commit d544f3e

Please sign in to comment.