[Synopsis-changes] Synopsis/Synopsis/demo/Boost synopsis.py,NONE,1.1
Stefan Seefeld stefan at synopsis.fresco.orgSun Nov 16 22:24:15 UTC 2003
- Previous message: [Synopsis-changes] Synopsis/Synopsis/Synopsis/Formatters/HTML/Pages NameIndex.py,1.15,1.16 XRef.py,1.16,1.17
- Next message: [Synopsis-changes] Synopsis/Synopsis/share/Synopsis dump.css,NONE,1.1
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Update of /cvs/synopsis/Synopsis/demo/Boost
In directory frida:/tmp/cvs-serv10320/demo/Boost
Added Files:
synopsis.py
Log Message:
driver using the new frontend
--- NEW FILE: synopsis.py ---
#! /usr/bin/env python
from Synopsis.process import process
from Synopsis.Processor import *
from Synopsis.Parsers import Cxx
from Synopsis.Processors import *
from Synopsis.Formatters import Dump
from Synopsis.Formatters import HTML
# this is actually only here as a hack for backward compatibility.
import glob
extra_input = glob.glob('boost/boost/python/*.hpp')
parser = Cxx.Parser(cppflags = ['-DPYTHON_INCLUDE=<python2.2/Python.h>',
'-DBOOST_PYTHON_SYNOPSIS',
'-Iboost',
'-I/usr/include/python2.2'],
base_path = 'boost/',
main_file_only = True,
syntax_prefix = 'BoostLinks/',
xref_prefix = 'BoostXRef/',
extract_tails = True,
emulate_compiler = 'g++',
# 'extra_files' will go away shortly
extra_files = extra_input)
linker = Composite(Unduplicator(), # remove duplicate and forward declarations
Stripper(), # strip prefix (see Linker.Stripper.Stripper docs)
NameMapper(), # apply name mapping if any (prefix adding, etc.)
SSComments(), # filter out any non-'//' comments
Grouper1(), # group declarations according to '@group' tags
CommentStripper(), # strip any 'suspicious' comments
Previous(), # attach '//<-' comments
Dummies(), # drop 'dummy' declarations
EmptyNS(), # skip empty namespaces
#XRefCompiler(), # compile xref dictionary
AccessRestrictor()) # filter out unwanted ('private', say) declarations
dump = Dump.Formatter(show_declarations = True,
show_types = True,
show_files = True)
formatter = HTML.Formatter()
process(parse=parser,
link=linker,
format=formatter,
dump=dump,
all=Composite(parser, linker, formatter))
- Previous message: [Synopsis-changes] Synopsis/Synopsis/Synopsis/Formatters/HTML/Pages NameIndex.py,1.15,1.16 XRef.py,1.16,1.17
- Next message: [Synopsis-changes] Synopsis/Synopsis/share/Synopsis dump.css,NONE,1.1
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Synopsis-changes mailing list