[Synopsis-changes] Synopsis/Synopsis/demo/Python synopsis.py,NONE,1.1 AST.py,1.2,1.3 Makefile,1.6,1.7
Stefan Seefeld stefan at synopsis.fresco.orgTue Nov 18 21:57:35 UTC 2003
- Previous message: [Synopsis-changes] Synopsis/Synopsis/Synopsis/Parsers/Python Parser.py,1.4,1.5
- Next message: [Synopsis-changes] Synopsis/Synopsis/demo/Perceps synopsis.py,NONE,1.1 Makefile,1.3,1.4
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Update of /cvs/synopsis/Synopsis/demo/Python
In directory frida:/tmp/cvs-serv21197/demo/Python
Modified Files:
AST.py Makefile
Added Files:
synopsis.py
Log Message:
get Python demo up to speed
--- NEW FILE: synopsis.py ---
#! /usr/bin/env python
from Synopsis.process import process
from Synopsis.Parsers import Python
from Synopsis.Formatters import HTML
process(parse = Python.Parser(),
format = HTML.Formatter(stylesheet_file = '../html.css'))
Index: AST.py
===================================================================
RCS file: /cvs/synopsis/Synopsis/demo/Python/AST.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -p -d -r1.2 -r1.3
--- AST.py 6 Apr 2001 01:29:03 -0000 1.2
+++ AST.py 18 Nov 2003 21:57:33 -0000 1.3
@@ -1,43 +1,10 @@
# $Id$
#
-# This file is a part of Synopsis.
-# Copyright (C) 2000, 2001 Stefan Seefeld
-# Copyright (C) 2000, 2001 Stephen Davies
-#
-# Synopsis is free software; you can redistribute it and/or modify it
-# under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-# 02111-1307, USA.
-#
-# $Log$
-# Revision 1.2 2001/04/06 01:29:03 chalky
-# Use latest AST.py and use config instead of options
-#
-# Revision 1.9 2001/02/07 09:56:59 chalky
-# Support for "previous comments" in C++ parser and Comments linker.
-#
-# Revision 1.8 2001/01/25 18:27:47 stefan
-# added Type.Array type and removed AST.Declarator. Adjusted the IDL parser to that.
-#
-# Revision 1.7 2001/01/24 12:47:28 chalky
-# Reapplied old behaviour of Visitor of passing the call up to visitDeclaration
-# so that all the places that broke work again.
-#
-# Revision 1.6 2001/01/23 19:47:45 stefan
-# fix Visitor class such that only desired methods need to be redefined
-#
-# Revision 1.5 2001/01/22 17:06:15 stefan
-# added copyright notice, and switched on logging
+# Copyright (C) 2000 Stefan Seefeld
+# Copyright (C) 2000 Stephen Davies
+# All rights reserved.
+# Licensed to the public under the terms of the GNU LGPL (>= 2),
+# see the file COPYING for details.
#
"""Abstract Syntax Tree classes.
Index: Makefile
===================================================================
RCS file: /cvs/synopsis/Synopsis/demo/Python/Makefile,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -p -d -r1.6 -r1.7
--- Makefile 21 Jul 2002 09:34:35 -0000 1.6
+++ Makefile 18 Nov 2003 21:57:33 -0000 1.7
@@ -1,14 +1,15 @@
-synopsis := ../../bin/synopsis -Wc,parser=Python,formatter=HTML -Wf,-s,style.css,-S,../html.css
+synopsis := python synopsis.py
-all: ast #test
+all: html
-ast: AST.py
- $(synopsis) -o ast $?
+html: AST.syn
+ $(synopsis) format --output=$@ $?
-#test: test.py
-# $(synopsis) -o test $?
+AST.syn: AST.py
+ $(synopsis) parse --output=$@ $?
clean:
- rm -fr *~ *.html *.syn ast *.pyc *.pyo
+ rm -fr *.syn *~
distclean: clean
+ rm -rf html
\ No newline at end of file
- Previous message: [Synopsis-changes] Synopsis/Synopsis/Synopsis/Parsers/Python Parser.py,1.4,1.5
- Next message: [Synopsis-changes] Synopsis/Synopsis/demo/Perceps synopsis.py,NONE,1.1 Makefile,1.3,1.4
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Synopsis-changes mailing list