diff options
Diffstat (limited to 'projects/hackc/statements.py')
-rw-r--r-- | projects/hackc/statements.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/projects/hackc/statements.py b/projects/hackc/statements.py index e8bc0b3..16c123e 100644 --- a/projects/hackc/statements.py +++ b/projects/hackc/statements.py @@ -1,4 +1,5 @@ from .expressions import Expression +from .utils import * class Statement: def __init__(self): @@ -47,3 +48,5 @@ class LetStatement: t += 1 return (LetStatement(name, expr), t) + def print_verbose(self): + print(f"Let {self.name} be {self.expr}") |