File: synopsis.py

package info (click to toggle)
synopsis 0.8.0-5
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 10,112 kB
  • ctags: 12,996
  • sloc: cpp: 34,254; ansic: 33,620; python: 10,975; sh: 7,261; xml: 6,369; makefile: 773; asm: 445
file content (14 lines) | stat: -rw-r--r-- 603 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from Synopsis.process import process
from Synopsis.Processor import Processor, Parameter, Composite
from Synopsis.Parsers import Cpp
from Synopsis.Parsers import Cxx
from Synopsis.Formatters import Dot

cpp = Cpp.Parser(base_path='../src/', flags=['-I../src'], main_file_only = False)
cxx = Cxx.Parser(base_path='../src/', cppflags=['-I../src'], main_file_only = False)
dot = Dot.Formatter(format='png', bgcolor='#ffcc99')

process(files = Composite(cpp, Dot.Formatter(type = 'file', format = 'png', bgcolor=(.1, 0.2, 0.8))),
        classes = Composite(cxx, dot),
        cxx = cxx,
        dot = dot)