summaryrefslogtreecommitdiff
path: root/projects/hackc/classes.py
diff options
context:
space:
mode:
authorFrederick Yin <fkfd@fkfd.me>2022-09-01 12:56:25 +0800
committerFrederick Yin <fkfd@fkfd.me>2022-09-01 12:56:25 +0800
commitbed429a1d17b43678a70bc286aac12a0bd6e387d (patch)
treecb691145f5daf3c7f19b5ac0b2e3c83deb4722d9 /projects/hackc/classes.py
parent1328887bb78ba034fe3d496ad8029382c1ec678e (diff)
hackc: more terms
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}")