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

.

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