summaryrefslogtreecommitdiff
path: root/projects/hackc/classes.py
diff options
context:
space:
mode:
authorFrederick Yin <fkfd@fkfd.me>2022-08-31 16:59:55 +0800
committerFrederick Yin <fkfd@fkfd.me>2022-08-31 16:59:55 +0800
commit482eed0ae339e977a618c4ab60525596426cf967 (patch)
tree080a8f912e81d4ea6da18a5eeda251938965dd0b /projects/hackc/classes.py
parent61f3490b9e6132cbad70c90637ed349a42fe7704 (diff)
hackc: idk, statements and expressions?
Diffstat (limited to 'projects/hackc/classes.py')
-rw-r--r--projects/hackc/classes.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/projects/hackc/classes.py b/projects/hackc/classes.py
index 8dc1dd5..a8d446a 100644
--- a/projects/hackc/classes.py
+++ b/projects/hackc/classes.py
@@ -311,3 +311,7 @@ class Subroutine:
def print_verbose(self):
print(f"Define {self.category} {self.type} {self.name}")
self.params.print_verbose()
+ for variable in self.variables:
+ variable.print_verbose()
+ for statement in self.statements:
+ statement.print_verbose()