diff --git a/spf.py b/spf.py index 8bed937..c8bd74d 100755 --- a/spf.py +++ b/spf.py @@ -29,8 +29,10 @@ class SPFInterpreter(lark.visitors.Interpreter): ligne += str(self.visit_children(toprint)[0]) + " " print(ligne) - # def append(self, el): - # (_, toadd, var) = self.visit_children(el); + def append(self, el): + (_, toadd, var) = self.visit_children(el); + var_val = self.variables.get(var.value) + var_val.append(toadd) def declaration(self, el): type = el.children[0].value