[Synopsis-changes] Synopsis/Synopsis/demo/IDL synopsis.py,NONE,1.1 Makefile,1.15,1.16

Stefan Seefeld stefan at synopsis.fresco.org
Tue Nov 18 21:32:21 UTC 2003


Update of /cvs/synopsis/Synopsis/demo/IDL
In directory frida:/tmp/cvs-serv20537/demo/IDL

Modified Files:
	Makefile 
Added Files:
	synopsis.py 
Log Message:
IDL demo update

--- NEW FILE: synopsis.py ---
#! /usr/bin/env python

from Synopsis.process import process
from Synopsis.Processor import *
from Synopsis.Parsers import IDL
from Synopsis.Processors import *
from Synopsis.Formatters import HTML
from Synopsis.Formatters.HTML.TreeFormatterJS import TreeFormatterJS

parser = IDL.Parser(include_paths=['.'])

linker = Composite(Unduplicator(),     # remove duplicate and forward declarations
                   SSDComments())      # filter out any non-'//.' comments

format = HTML.Formatter(stylesheet_file = '../html.css',
                        tree_formatter = TreeFormatterJS())

process(parse = parser,
        link = linker,
        format = format)

Index: Makefile
===================================================================
RCS file: /cvs/synopsis/Synopsis/demo/IDL/Makefile,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -p -d -r1.15 -r1.16
--- Makefile	21 Jul 2002 09:34:35 -0000	1.15
+++ Makefile	18 Nov 2003 21:32:19 -0000	1.16
@@ -1,20 +1,20 @@
-synopsis	:= ../../bin/synopsis -c config.py -I. -Wc,parser=IDL,linker=Linker,formatter=HTML
+synopsis := python synopsis.py
 
-all: CosNaming Types Graphic Input
+#-Wc,parser=IDL,linker=Linker,formatter=HTML
 
-CosNaming:	CosNaming.idl
-		$(synopsis) -o CosNaming $?
+all: html
 
-Types:		Types.idl
-		$(synopsis) -o Types $?
+html: tmp.syn
+	$(synopsis) format --output=$@ $?
 
-Graphic:	Graphic.idl
-		$(synopsis) -o Graphic $?
+tmp.syn:	CosNaming.syn Types.syn Graphic.syn Input.syn
+	$(synopsis) link --output=$@ $?
 
-Input:		Input.idl
-		../../bin/synopsis -c config.py -Wc,parser=IDL,linker=Linker,formatter=DocBook -o Input.xml $?
+%.syn: %.idl
+	$(synopsis) parse --output=$@ $?
 
 clean:
-		rm -fr *~ *.html *.syn CosNaming Types Graphic Input *.pyc *.pyo
+	rm -fr *.syn *~
 
 distclean:	clean
+	rm -rf html





More information about the Synopsis-changes mailing list