2 Take the *.framedata files from graph-frameclasses.js and combine them
3 into a single graphviz file.
5 stdin: a list of .framedata file names (e.g. from xargs)
6 stdout: a graphviz file
8 e.g. `find <objdir> -name "*.framedata" | python aggregate-frameclasses.py |
9 dot -Tpng -o frameclasses-graph.png -`
16 for line
in sys
.stdin
:
22 if line
.startswith('CLASS-DEF: '):
24 if cname
not in classdict
:
25 output
= classdict
[cname
] = []
28 elif output
is not None:
31 sys
.stdout
.write('digraph g {\n')
33 for olist
in classdict
.itervalues():
35 sys
.stdout
.write(line
)
37 sys
.stdout
.write('}\n')