[Synopsis-changes] Synopsis/Synopsis/demo/C++/Employee Makefile,NONE,1.1 synopsis.py,NONE,1.1 Employee.cc,1.3,1.4

Stefan Seefeld stefan at synopsis.fresco.org
Tue Nov 18 16:47:08 UTC 2003


Update of /cvs/synopsis/Synopsis/demo/C++/Employee
In directory frida:/tmp/cvs-serv13882/demo/C++/Employee

Modified Files:
	Employee.cc 
Added Files:
	Makefile synopsis.py 
Log Message:
more working demos

--- NEW FILE: Makefile ---
synopsis := python synopsis.py

all:	html

html: Employee-linked.syn
	$(synopsis) format --output=$@ $?

Employee-linked.syn: Employee.syn
	$(synopsis) link --output=$@ $?

Employee.syn: Employee.cc
	$(synopsis) parse --output=$@ $?

clean:
	rm -rf Employee.syn Employee-linked.syn *~ 

distclean: clean
	rm -rf html
--- 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 HTML

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.)
                   JavaComments(),     # only keep javadoc-like comments
                   JavaTags(),         # process javadoc-like tags
                   Summarizer(),       
                   EmptyNS(),          # skip empty namespaces
                   AccessRestrictor()) # filter out unwanted ('private', say) declarations

process(parse = Cxx.Parser(),
        link = linker,
        format = HTML.Formatter(stylesheet_file = '../../html.css'))

Index: Employee.cc
===================================================================
RCS file: /cvs/synopsis/Synopsis/demo/C++/Employee/Employee.cc,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -p -d -r1.3 -r1.4
--- Employee.cc	13 Feb 2001 05:25:42 -0000	1.3
+++ Employee.cc	18 Nov 2003 16:47:06 -0000	1.4
@@ -4,7 +4,7 @@
  * $changelog$
  */
 
-#include <iostream.h>
+#include <iostream>
 #include <string>
 
 /**





More information about the Synopsis-changes mailing list