aboutsummaryrefslogtreecommitdiff
path: root/structs.py
diff options
context:
space:
mode:
Diffstat (limited to 'structs.py')
-rw-r--r--structs.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/structs.py b/structs.py
index bab9c13..0cd4a1e 100644
--- a/structs.py
+++ b/structs.py
@@ -97,8 +97,9 @@ class Type:
return self.name
class Symbol:
- def __init__(self, name):
+ def __init__(self, name, line):
self.name = name
+ self.line = line
def __str__(self):
return f"'{self.name}"
@@ -107,4 +108,4 @@ class List:
self.args = args
self.data = data
def __str__(self):
- return "(" + ",".join(f"{arg}" for arg in self.args) + ")"
+ return "(" + " ".join(f"{arg}" for arg in self.args) + ")"