diff options
author | Iván Ávalos <avalos@disroot.org> | 2022-11-29 02:52:25 -0600 |
---|---|---|
committer | Iván Ávalos <avalos@disroot.org> | 2022-11-29 02:52:25 -0600 |
commit | bf055c8086294adc4e0654e9825f446d35555a5b (patch) | |
tree | b9098e5eb7c9666ab7ed7efb3ac76ac38adfb184 | |
parent | 3b94568c82fd19aae15fc13e3374241b3ef74eda (diff) | |
download | javanol-bf055c8086294adc4e0654e9825f446d35555a5b.tar.gz javanol-bf055c8086294adc4e0654e9825f446d35555a5b.tar.bz2 javanol-bf055c8086294adc4e0654e9825f446d35555a5b.zip |
Se grafica el 'type' de DeclFuncmain
-rw-r--r-- | compilador/astree/decl.py | 3 |
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') |