Commit 5d7c4811 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 315fa2df
...@@ -459,8 +459,13 @@ def graphviz(t): ...@@ -459,8 +459,13 @@ def graphviz(t):
# approach based on https://github.com/Felerius/btree-generator # approach based on https://github.com/Felerius/btree-generator
emit(' %s' % qq(symtab[node])) emit(' %s' % qq(symtab[node]))
emit(' [') emit(' [')
emit(' shape = none') emit(' shape = box')
emit(' label = <<table border="1" cellborder="0" cellspacing="0">') emit(' margin = 0')
emit(' height = 0')
emit(' width = 0')
if kind == 'T':
emit(' style = rounded')
emit(' label = <<table border="0" cellborder="0" cellspacing="0">')
emit(' <tr>') emit(' <tr>')
for (j,key) in enumerate(node.keyv): for (j,key) in enumerate(node.keyv):
if kind == 'T': if kind == 'T':
...@@ -484,7 +489,7 @@ def graphviz(t): ...@@ -484,7 +489,7 @@ def graphviz(t):
if not isinstance(node, Tree): if not isinstance(node, Tree):
continue continue
for (j,child) in enumerate(node.children): for (j,child) in enumerate(node.children):
emit('%s:"con%d" -> %s' % (qq(symtab[node]), j, qq(symtab[child]))) emit(' %s:"con%d" -> %s' % (qq(symtab[node]), j, qq(symtab[child])))
emit('}') emit('}')
emit('') emit('')
......
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