aboutsummaryrefslogtreecommitdiff
path: root/compilador
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2022-11-29 02:52:25 -0600
committerIván Ávalos <avalos@disroot.org>2022-11-29 02:52:25 -0600
commitbf055c8086294adc4e0654e9825f446d35555a5b (patch)
treeb9098e5eb7c9666ab7ed7efb3ac76ac38adfb184 /compilador
parent3b94568c82fd19aae15fc13e3374241b3ef74eda (diff)
downloadjavanol-main.tar.gz
javanol-main.tar.bz2
javanol-main.zip
Se grafica el 'type' de DeclFuncmain
Diffstat (limited to 'compilador')
-rw-r--r--compilador/astree/decl.py3
1 files changed, 3 insertions, 0 deletions
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')