--- pccts-1.33MR33.orig/RIGHTS +++ pccts-1.33MR33/RIGHTS @@ -5,7 +5,7 @@ Set (PCCTS) -- PCCTS is in the public domain. An individual or company may do whatever they wish with source code distributed with PCCTS or the code generated by PCCTS, including the incorporation of -PCCTS, or its output, into commerical software. +PCCTS, or its output, into commercial software. We encourage users to develop software with PCCTS. However, we do ask that credit is given to us for developing PCCTS. By "credit", we mean --- pccts-1.33MR33.orig/antlr/gen.c +++ pccts-1.33MR33/antlr/gen.c @@ -1743,7 +1743,7 @@ Junction *q; #endif { - Junction * qOriginal = q; /* DEBUG */ + /* Junction * qOriginal = q; DEBUG */ /* MR14 Couldn't find aSubBlock which was a guess block when it lay behind aLoopBlk. The aLoopBlk only appear in conjunction with --- pccts-1.33MR33.orig/antlr/antlr.1 +++ pccts-1.33MR33/antlr/antlr.1 @@ -98,7 +98,7 @@ .IP \fB-gl\fP Generate line info about grammar actions in C parser of the form \fB#\ \fIline\fP\ "\fIfile\fP"\fR which makes error messages from -the C/C++ compiler make more sense as they will \*Qpoint\*U into the +the C/C++ compiler make more sense as they will point into the grammar file not the resulting C file. Debugging is easier as well, because you will step through the grammar not C file. .IP \fB-gs\fR --- pccts-1.33MR33.orig/dlg/dlg.1 +++ pccts-1.33MR33/dlg/dlg.1 @@ -30,7 +30,7 @@ of look ahead. .IP "\fB-cl\fP class Specify a class name for DLG to generate. The default is DLGLexer. -'class' will be a subclass of DLGLexerBase; only used for -CC. +"class" will be a subclass of DLGLexerBase; only used for -CC. .IP \fB-ci\fP The automaton will treat upper and lower case characters identically. This is accomplished in the automaton; the characters in the lexical --- pccts-1.33MR33.orig/sorcerer/makefile +++ pccts-1.33MR33/sorcerer/makefile @@ -43,6 +43,7 @@ clean: rm -f *.o core sor + $(MAKE) -C lib clean scrub: rm -f *.o core $(GENHFILES) parser.dlg scan.c err.c sor.c sor --- pccts-1.33MR33.orig/sorcerer/sor.c +++ pccts-1.33MR33/sorcerer/sor.c @@ -6,7 +6,7 @@ * With AHPCRC, University of Minnesota * ANTLR Version 1.33MR33 * - * ..\bin\antlr -gh -k 2 -gt sor.g + * ../bin/antlr -gh -k 2 -gt sor.g * */ --- pccts-1.33MR33.orig/sorcerer/lib/sintstack.c +++ pccts-1.33MR33/sorcerer/lib/sintstack.c @@ -29,6 +29,7 @@ #include #include +#include "pcctscfg.h" #ifdef PCCTS_USE_STDARG #include #else --- pccts-1.33MR33.orig/sorcerer/lib/sorlist.c +++ pccts-1.33MR33/sorcerer/lib/sorlist.c @@ -28,6 +28,7 @@ */ #include #include +#include "pcctscfg.h" #ifdef PCCTS_USE_STDARG #include --- pccts-1.33MR33.orig/sorcerer/lib/astlib.c +++ pccts-1.33MR33/sorcerer/lib/astlib.c @@ -217,7 +217,7 @@ SORAST *sib; if ( u==NULL ) return 1; - if ( t==NULL ) if ( u!=NULL ) return 0; else return 1; + if ( t==NULL ) { if ( u!=NULL ) return 0; } else return 1; for (sib=t; sib!=NULL&&u!=NULL; sib=sib->ast_right, u=u->ast_right) { @@ -310,7 +310,7 @@ { SORAST *sib; - if ( t==NULL ) if ( u!=NULL ) return 0; else return 1; + if ( t==NULL ) { if ( u!=NULL ) return 0; } else return 1; if ( u==NULL ) return 0; for (sib=t; sib!=NULL&&u!=NULL; sib=sib->ast_right, u=u->ast_right) @@ -335,7 +335,7 @@ { ScanAST *sib; - if ( t==NULL ) if ( u!=NULL ) return 0; else return 1; + if ( t==NULL ) { if ( u!=NULL ) return 0; } else return 1; if ( u==NULL ) return 0; for (sib=t; sib!=NULL&&u!=NULL; sib=sib->right, u=u->ast_right) --- pccts-1.33MR33.orig/sorcerer/test/makefile +++ pccts-1.33MR33/sorcerer/test/makefile @@ -2,9 +2,7 @@ # Makefile for simple 1.00B SORCERER examples # -PCCTS=../.. -BIN=$(PCCTS)/bin -SOR = $(BIN)/sor +SOR = sor CFLAGS = -I. -I../../h -I../h -I../lib -g -ansi DFLAGS = -C2 -i SRC = test.c --- pccts-1.33MR33.orig/support/genmk/genmk.c +++ pccts-1.33MR33/support/genmk/genmk.c @@ -79,6 +79,7 @@ void pfiles(); void fatal(); void warn(); +void pclasses(char **classes, int n, char *suffix); #endif typedef struct _Opt { @@ -966,8 +967,10 @@ } #ifdef __STDC__ +void pclasses(char **classes, int n, char *suffix) #else +void pclasses(classes, n, suffix) char **classes; int n; --- pccts-1.33MR33.orig/debian/README.Debian +++ pccts-1.33MR33/debian/README.Debian @@ -0,0 +1,22 @@ +pccts for DEBIAN +---------------------- + +The main components of this package, "antlr" and "dlg", were compiled and linked +"as is". No source changes were required. The "genmk" makefile generator, +was also compiled and linked without source changes. Several header files +are needed to compile sources generated by antlr and dlg. These will be +found in /usr/include/pccts. Also, various and sundry sources for support +functions are included in /usr/lib/pccts/support. Finally, some test program +sources are included in /usr/lib/pccts/testcpp. + +Ed Petron , Sat, 7 Feb 1998 15:19:26 -0500 + +The sources have been moved from /usr/lib/pccts to +/usr/share/doc/pccts/examples. + +Matej Vela , Fri, 10 Aug 2001 23:13:49 +0200 + +The upstream source of this package was downloaded from +http://www.polhode.com/pccts133mr.html. + +Dale Martin , Thu, 6 Sep 2001 08:50:38 EDT --- pccts-1.33MR33.orig/debian/changelog +++ pccts-1.33MR33/debian/changelog @@ -0,0 +1,161 @@ +pccts (1.33MR33-6) unstable; urgency=low + + * Updating to standards 3.8.3. + * Added ${misc:Depends} to dependencies. + * Removed call to dh_undocumented. + * Only copy *.h,*.cpp, and *.c files into /usr/include/pccts + * Fixed some problems that groff was complaining about. + + -- Dale E. Martin Sun, 14 Feb 2010 08:54:18 -0500 + +pccts (1.33MR33-5) unstable; urgency=low + + * Updating to the squeeze unstable. + + -- Dale E. Martin Sun, 27 Dec 2009 13:53:52 -0500 + +pccts (1.33MR33-4) unstable; urgency=low + + * Updating to the lenny-era unstable. + * DH_COMPAT=4 + * Need to create the directories in debian/* before we can install into them. + + -- Dale E. Martin Sun, 03 Feb 2008 13:52:14 -0500 + +pccts (1.33MR33-3) unstable; urgency=low + + * Moving to the etch-era unstable. + * Update to standards version 3.6.2. + + -- Dale E. Martin Wed, 13 Jul 2005 00:51:43 +0000 + +pccts (1.33MR33-2) unstable; urgency=low + + * Applied patch sent by Daniel Schepler for compilation under gcc 3.3. + + -- Dale E Martin Wed, 9 Jul 2003 10:12:55 -0400 + +pccts (1.33MR33-1) unstable; urgency=low + + * New upstream release. + + -- Dale E Martin Wed, 11 Dec 2002 20:29:08 -0500 + +pccts (1.33MR32-1) unstable; urgency=low + + * New upstream release. + + -- Dale E Martin Wed, 11 Dec 2002 20:29:08 -0500 + +pccts (1.33MR31-1) unstable; urgency=low + + * New upstream release. + + -- Dale E Martin Thu, 11 Oct 2001 15:24:31 -0400 + +pccts (1.33MR29-2) unstable; urgency=low + + * Changed the maintainer field of the control file to myself. + * Added the file STreeParser.cpp into the include directory. + + -- Dale E Martin Fri, 7 Sep 2001 16:38:34 -0400 + +pccts (1.33MR29-1) unstable; urgency=low + + * Adopting this package. Closes: #107783. + * New upstream release. + + -- Dale E Martin Thu, 6 Sep 2001 08:43:47 -0400 + +pccts (1.33MR25-2) unstable; urgency=low + + * debian/rules: Rename antlr.1 to antlr.1pccts to avoid conflicting + with antlr. Closes: #108694. + + -- Matej Vela Tue, 14 Aug 2001 20:28:08 +0200 + +pccts (1.33MR25-1) unstable; urgency=high + + * New upstream version. Fixes half of #98762... + * Converted to debhelper. Closes: #108154, #108230. + * Applied Jim Studt's patch, adding `Provides: sorcerer' and + SORCERER include files. Closes: #50049. + * debian/copyright: Updated upstream URL. + * Conforms to Standards version 3.5.6: + * Moved test, testcpp, and support directories to examples. + * debian/rules: Support the `debug' build option. + + -- Matej Vela Fri, 10 Aug 2001 23:13:49 +0200 + +pccts (1.33MR20a-1) unstable; urgency=low + + * Set maintainer to Debian QA Group + * FHS Transition + * moved docs and manpages to /usr/share (closes: #91010, #91608, #101823) + * added -isp flags to dpkg-gencontrol to generate section and priority + fields + * stripped .comment and .note sections from binaries + * added postinst and prerm scripts to create symlinks to /usr/doc + * filed bug about missing manpages for sor and genmk + + -- Bas Zoetekouw Mon, 05 Aug 2001 13:38:08 +0100 + +pccts (1.33MR20a-0.1) unstable; urgency=low + + * NMU. + * Added debian revision, as this is not a native package. + * Bugs fixed in preivous versions: + * glibc 2.1 initializer not constant. Closes: #37121, #45495 + + -- Adam Heath Sat, 23 Oct 1999 22:39:27 -0500 + +pccts (1.6) unstable; urgency=low + + * New upstream version plus various changes: + * Restructure debian/rules file, compress man pages, + * Fix package dependency, strip binaries + * Sorcerer package is now part of PCCTS + + -- Ed Petron Tue, 28 Sep 1999 08:56:31 -0400 + +pccts (1.5) unstable; urgency=low + + * Get rid of illegal file in /usr/include/pccts + + -- Ed Petron Mon, 9 Aug 1999 15:20:55 -0400 + +pccts (1.4) unstable; urgency=low + + * Apply patch to AParser.cpp + + -- Ed Petron Sun, 8 Aug 1999 14:26:56 -0400 + +pccts (1.3) unstable; urgency=low + + * New Upstream Version (MR12b) + + -- Ed Petron Sat, 4 Apr 1998 23:10:37 -0500 + +pccts (1.2) unstable; urgency=low + + * Correct typo in brief description + + -- Ed Petron Mon, 23 Feb 1998 09:01:57 -0500 + +pccts (1.1) unstable; urgency=low + + * Added missing copyright and other files + + -- Ed Petron Sun, 8 Feb 1998 22:16:47 -0500 + +pccts (1.0-1) unstable; urgency=low + + * --help + * + * Initial Release. + + -- Ed Petron Sat, 7 Feb 1998 15:19:26 -0500 + +Local variables: +mode: debian-changelog +End: --- pccts-1.33MR33.orig/debian/copyright.in +++ pccts-1.33MR33/debian/copyright.in @@ -0,0 +1,6 @@ +This package was debianized by Ed Petron epetron@leba.net on +Sat, 7 Feb 1998 15:19:26 -0500. + +It was downloaded from . + +Copyright: --- pccts-1.33MR33.orig/debian/dirs +++ pccts-1.33MR33/debian/dirs @@ -0,0 +1,3 @@ +usr/bin +usr/include/pccts +usr/include/pccts/sorcerer --- pccts-1.33MR33.orig/debian/compat +++ pccts-1.33MR33/debian/compat @@ -0,0 +1 @@ +5 --- pccts-1.33MR33.orig/debian/rules +++ pccts-1.33MR33/debian/rules @@ -0,0 +1,96 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatibility version to use. + +export COPT=-O2 -Wall -Wno-unused +ifneq ($(findstring debug,$(DEB_BUILD_OPTIONS)),) +COPT+=-g +endif + +build: build-stamp +build-stamp: + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp debian/copyright + + # Add here commands to clean up after the build process. + $(MAKE) clean + rm -f bin/antlr bin/dlg bin/sor bin/genmk + rm -rf debian/pccts + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/ + install -d debian/pccts/usr/bin + install bin/antlr bin/dlg bin/sor bin/genmk debian/pccts/usr/bin + install -d debian/pccts/usr/include/pccts + cp -a h/*.h h/*.cpp h/*.c debian/pccts/usr/include/pccts + install -d debian/pccts/usr/include/pccts/sorcerer + cp -a sorcerer/h/*.h sorcerer/lib/errsupport.c sorcerer/lib/STreeParser.cpp \ + debian/pccts/usr/include/pccts/sorcerer + +debian/copyright: debian/copyright.in RIGHTS + cat $^ > $@ + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install debian/copyright + dh_testdir + dh_testroot +# dh_installdebconf + install -d debian/pccts/usr/share/doc/pccts/examples + dh_installdocs CHANGES_FROM_131.txt \ + CHANGES_FROM_133_BEFORE_MR13.txt \ + CHANGES_SUMMARY.txt \ + KNOWN_PROBLEMS.txt README history.* + cp -a --parents sorcerer/README sorcerer/UPDATES \ + debian/pccts/usr/share/doc/pccts + dh_installexamples testcpp + cp -a --parents sorcerer/test sorcerer/testcpp \ + support/rexpr support/set support/sym \ + debian/pccts/usr/share/doc/pccts/examples + dh_installmenu +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron + install -d debian/pccts/usr/share/man/man1 + dh_installman antlr/antlr.1 dlg/dlg.1 + dh_installinfo + dh_installchangelogs -k CHANGES_FROM_133.txt + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_makeshlibs + dh_installdeb +# dh_perl + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- pccts-1.33MR33.orig/debian/control +++ pccts-1.33MR33/debian/control @@ -0,0 +1,25 @@ +Source: pccts +Section: devel +Priority: optional +Maintainer: Dale E. Martin +Standards-Version: 3.8.3 +Build-Depends: debhelper (>= 5) + +Package: pccts +Architecture: any +Replaces: sorcerer +Provides: sorcerer +Depends: ${shlibs:Depends}, ${misc:Depends} +Conflicts: sorcerer +Description: The Purdue Compiler Construction Tool Set (PCCTS). + PCCTS consists of ANother Tool for Language Recognition (ANTLR), a + DFA-based Lexical analyzer Generator (DLG) and assorted other utilities + designed for the construction of compilers and other language translators. + ANTLR is a parser generator which generates recursive descent parsers which + are easier to debug than the table driven bottom-up parsers created by YACC. + It also provides support for the automatic generation of Abstract Syntax + Trees (AST's). + Many projects have stopped using PCCTS and moved on to antlr, which is + also packaged for Debian. New projects should probably look there first. + However PCCTS will be maintained in Debian as long as there is interest in + doing so.