Commit a4fdbfa9 authored by Dominik Luntzer's avatar Dominik Luntzer

Close generated address space files once the code generation is done

Not closing the generated files may cause some errors when trying
to interpret the files in the same script later on (i.e. parsing errors due
to half written files).
parent e46d352b
......@@ -39,6 +39,7 @@ class CodeGenerator(object):
self.make_method_code(node)
else:
sys.stderr.write("Not implemented node type: " + node.nodetype + "\n")
self.output_file.close()
def writecode(self, *args):
self.output_file.write(" ".join(args) + "\n")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment