summaryrefslogtreecommitdiff
path: root/projects/hackc/classes.py
diff options
context:
space:
mode:
Diffstat (limited to 'projects/hackc/classes.py')
-rw-r--r--projects/hackc/classes.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/projects/hackc/classes.py b/projects/hackc/classes.py
index b300d98..bd83cc4 100644
--- a/projects/hackc/classes.py
+++ b/projects/hackc/classes.py
@@ -180,7 +180,7 @@ class ParamList:
if tokens[0] == RIGHT_PAREN:
# empty param list, i.e. '(' ')'
- return (ParamList([]), 2)
+ return (ParamList([]), 0)
t = 0
params = []
@@ -313,3 +313,4 @@ class Subroutine:
variable.print_verbose()
for statement in self.statements:
statement.print_verbose()
+ print(f"End of {self.category} {self.name}")