Skip to content

Commit

Permalink
Add comments to ControlFlow constructors.
Browse files Browse the repository at this point in the history
  • Loading branch information
ahelsing authored and blakejohnson committed Sep 19, 2016
1 parent e620166 commit c36f6ca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions QGL/ControlFlow.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,13 @@ def promote(self):


class Goto(ControlInstruction):
# target is a BlockLabel
def __init__(self, target):
super(Goto, self).__init__("GOTO", target=target)


class Call(ControlInstruction):
# target is a BlockLabel
def __init__(self, target):
super(Call, self).__init__("CALL", target=target)

Expand All @@ -145,11 +147,13 @@ def __init__(self):


class LoadRepeat(ControlInstruction):
# n is an integer
def __init__(self, n):
super(LoadRepeat, self).__init__("LOAD", value=n)


class Repeat(ControlInstruction):
# target is a BlockLabel
def __init__(self, target):
super(Repeat, self).__init__("REPEAT", target=target)

Expand Down

0 comments on commit c36f6ca

Please sign in to comment.