From bf055c8086294adc4e0654e9825f446d35555a5b Mon Sep 17 00:00:00 2001 From: Iván Ávalos Date: Tue, 29 Nov 2022 02:52:25 -0600 Subject: Se grafica el 'type' de DeclFunc --- compilador/astree/decl.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/compilador/astree/decl.py b/compilador/astree/decl.py index 8a316cd..058d2b3 100644 --- a/compilador/astree/decl.py +++ b/compilador/astree/decl.py @@ -40,6 +40,9 @@ class DeclGlobal(Graphable): name_ident = uuid.uuid1().hex dot.node(name_ident, self.ident) dot.edge(name, name_ident, label = 'ident') + name_type = uuid.uuid1().hex + dot.node(name_type, self._type.value.value) + dot.edge(name, name_type, label = 'type') if isinstance(self.init, Graphable): self.init.graph(dot, name, 'init') -- cgit v1.2.3