1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-10 07:04:03 +00:00

Import a port of The Purdue Compiler Construction Tool Set.

PR:		3950
Submitted by:	Andrey Zakhvatov <andy@icc.surw.chel.su>
This commit is contained in:
Thomas Gellekum 1997-07-01 07:48:26 +00:00
parent 973deb3116
commit 4a2a5b1f56
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=7158
20 changed files with 462 additions and 0 deletions

48
devel/pccts/Makefile Normal file
View File

@ -0,0 +1,48 @@
# New ports collection makefile for: pccts
# Version required: 1.33
# Date created: 22 June 1997
# Whom: Andrey Zakhvatov
#
# $Id$
#
DISTNAME= pccts
PKGNAME= pccts-1.33
CATEGORIES= devel
MASTER_SITES= ftp://ftp.parr-research.com/pub/pccts/1.33/
MAINTAINER= andy@icc.surw.chel.su
MAKEFILE= makefile
ALL_TARGET=
MAN1= antlr.1 dlg.1 pccts.1
do-install:
@ ${INSTALL_PROGRAM} ${WRKSRC}/bin/antlr ${PREFIX}/bin/antlr
@ ${INSTALL_PROGRAM} ${WRKSRC}/bin/dlg ${PREFIX}/bin/dlg
.for file in pccts antlr/antlr dlg/dlg
@ ${INSTALL_MAN} ${WRKSRC}/${file}.1 ${PREFIX}/man/man1
.endfor
@ ${MKDIR} ${PREFIX}/include/pccts
.for file in ast charptr
@ ${INSTALL_DATA} ${WRKSRC}/h/${file}.c ${PREFIX}/include/pccts/${file}.c
.endfor
.for file in AParser ASTBase ATokPtr ATokenBuffer DLexer DLexerBase PCCTSAST SList
@ ${INSTALL_DATA} ${WRKSRC}/h/${file}.cpp ${PREFIX}/include/pccts/${file}.cpp
.endfor
.for file in AParser ASTBase ATokPtr AToken ATokenBuffer ATokenStream DLexerBase PBlackBox PCCTSAST SList antlr ast charbuf charptr config dlgauto dlgdef err int
@ ${INSTALL_DATA} ${WRKSRC}/h/${file}.h ${PREFIX}/include/pccts/${file}.h
.endfor
@ ${MKDIR} ${PREFIX}/share/doc/pccts
.for file in BOOK README RIGHTS SERVICES history.ps history.txt
@ ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/pccts/${file}
.endfor
@ ${MKDIR} ${PREFIX}/share/examples/pccts
.for dir in 1 2 3 4 5 6 6/A 6/B 7 8 9 10 11 12 13
@ ${MKDIR} ${PREFIX}/share/examples/pccts/${dir}
.endfor
.for file in makefile 1/makefile 1/test.g 2/MyLexer.cpp 2/MyLexer.h 2/makefile 2/test.g 3/MyLexer.cpp 3/MyLexer.h 3/makefile 3/mytokens.h 3/test.g 4/makefile 4/mytokens.h 4/test.g 5/input.h 5/makefile 5/test.g 6/file1 6/file2 6/main.cpp 6/makefile 6/makefile2 6/test.g 6/test2.g 7/makefile 7/test.g 8/main.cpp 8/makefile 8/test.g 9/makefile 9/test.g 10/makefile 10/test.g 11/input.h 11/makefile 11/test.g 12/makefile 12/test.g 13/makefile 13/test.g
@ ${INSTALL_DATA} ${WRKSRC}/testcpp/${file} ${PREFIX}/share/examples/pccts/${file}
.endfor
.include <bsd.port.mk>

1
devel/pccts/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (pccts.tar.gz) = 3673c34fe74a9f7f5f3a481114b17e6e

View File

@ -0,0 +1,19 @@
*** testcpp/makefile Tue Oct 3 23:48:53 1995
--- /home/andy/tmp/wrk/testcpp/makefile Tue Jun 24 05:44:59 1997
***************
*** 5,11 ****
#
# For SGI machines, we recommend using "-woff 3262" in your CFLAGS
#
! #CCC = g++
make:
-(cd 1; make CCC=$(CCC))
-(cd 2; make CCC=$(CCC))
--- 5,11 ----
#
# For SGI machines, we recommend using "-woff 3262" in your CFLAGS
#
! CCC = g++
make:
-(cd 1; make CCC=$(CCC))
-(cd 2; make CCC=$(CCC))

View File

@ -0,0 +1,21 @@
*** testcpp/1/makefile Sat Sep 23 22:33:26 1995
--- /home/andy/tmp/wrk/testcpp/1/makefile Tue Jun 24 05:49:51 1997
***************
*** 16,23 ****
ERR = err
HDR_FILE =
SCAN = DLGLexer
! PCCTS = ../..
! ANTLR_H = $(PCCTS)/h
BIN = $(PCCTS)/bin
ANTLR = $(BIN)/antlr
DLG = $(BIN)/dlg
--- 16,23 ----
ERR = err
HDR_FILE =
SCAN = DLGLexer
! PCCTS = /usr/local
! ANTLR_H = $(PCCTS)/include/pccts
BIN = $(PCCTS)/bin
ANTLR = $(BIN)/antlr
DLG = $(BIN)/dlg

View File

@ -0,0 +1,21 @@
*** testcpp/2/makefile Sat Sep 23 22:53:10 1995
--- /home/andy/tmp/wrk/testcpp/2/makefile Tue Jun 24 05:50:47 1997
***************
*** 16,23 ****
ERR = err
HDR_FILE =
SCAN = DLGLexer
! PCCTS = ../..
! ANTLR_H = $(PCCTS)/h
BIN = $(PCCTS)/bin
ANTLR = $(BIN)/antlr
DLG = $(BIN)/dlg
--- 16,23 ----
ERR = err
HDR_FILE =
SCAN = DLGLexer
! PCCTS = /usr/local
! ANTLR_H = $(PCCTS)/include/pccts
BIN = $(PCCTS)/bin
ANTLR = $(BIN)/antlr
DLG = $(BIN)/dlg

View File

@ -0,0 +1,21 @@
*** testcpp/3/makefile Sat Sep 23 22:54:45 1995
--- /home/andy/tmp/wrk/testcpp/3/makefile Tue Jun 24 05:51:21 1997
***************
*** 17,24 ****
ERR = err
HDR_FILE =
SCAN = DLGLexer
! PCCTS = ../..
! ANTLR_H = $(PCCTS)/h
BIN = $(PCCTS)/bin
ANTLR = $(BIN)/antlr
DLG = $(BIN)/dlg
--- 17,24 ----
ERR = err
HDR_FILE =
SCAN = DLGLexer
! PCCTS = /usr/local
! ANTLR_H = $(PCCTS)/include/pccts
BIN = $(PCCTS)/bin
ANTLR = $(BIN)/antlr
DLG = $(BIN)/dlg

View File

@ -0,0 +1,21 @@
*** testcpp/4/makefile Tue Oct 3 18:52:25 1995
--- /home/andy/tmp/wrk/testcpp/4/makefile Tue Jun 24 05:51:58 1997
***************
*** 17,24 ****
ERR = err
HDR_FILE =
SCAN = DLGLexer
! PCCTS = ../..
! ANTLR_H = $(PCCTS)/h
BIN = $(PCCTS)/bin
ANTLR = $(BIN)/antlr
DLG = $(BIN)/dlg
--- 17,24 ----
ERR = err
HDR_FILE =
SCAN = DLGLexer
! PCCTS = /usr/local
! ANTLR_H = $(PCCTS)/include/pccts
BIN = $(PCCTS)/bin
ANTLR = $(BIN)/antlr
DLG = $(BIN)/dlg

View File

@ -0,0 +1,21 @@
*** testcpp/5/makefile Sat Sep 23 22:59:24 1995
--- /home/andy/tmp/wrk/testcpp/5/makefile Tue Jun 24 05:52:25 1997
***************
*** 16,23 ****
ERR = err
HDR_FILE =
SCAN = Lexer
! PCCTS = ../..
! ANTLR_H = $(PCCTS)/h
BIN = $(PCCTS)/bin
ANTLR = $(BIN)/antlr
DLG = $(BIN)/dlg
--- 16,23 ----
ERR = err
HDR_FILE =
SCAN = Lexer
! PCCTS = /usr/local
! ANTLR_H = $(PCCTS)/include/pccts
BIN = $(PCCTS)/bin
ANTLR = $(BIN)/antlr
DLG = $(BIN)/dlg

View File

@ -0,0 +1,21 @@
*** testcpp/6/makefile Tue Oct 3 23:31:24 1995
--- /home/andy/tmp/wrk/testcpp/6/makefile Tue Jun 24 05:53:19 1997
***************
*** 14,21 ****
ERR = A/err
HDR_FILE =
SCAN = A/ALexer
! PCCTS = ../..
! A_H = $(PCCTS)/h
BIN = $(PCCTS)/bin
A = $(BIN)/antlr
D = $(BIN)/dlg
--- 14,21 ----
ERR = A/err
HDR_FILE =
SCAN = A/ALexer
! PCCTS = /usr/local
! A_H = $(PCCTS)/include/pccts
BIN = $(PCCTS)/bin
A = $(BIN)/antlr
D = $(BIN)/dlg

View File

@ -0,0 +1,21 @@
*** testcpp/6/makefile2 Tue Oct 3 23:40:01 1995
--- /home/andy/tmp/wrk/testcpp/6/makefile2 Tue Jun 24 12:53:56 1997
***************
*** 14,21 ****
ERR = B/err
HDR_FILE =
SCAN = B/BLexer
! PCCTS = ../..
! A_H = $(PCCTS)/h
BIN = $(PCCTS)/bin
A = $(BIN)/antlr
D = $(BIN)/dlg
--- 14,21 ----
ERR = B/err
HDR_FILE =
SCAN = B/BLexer
! PCCTS = /usr/local
! A_H = $(PCCTS)/include/pccts
BIN = $(PCCTS)/bin
A = $(BIN)/antlr
D = $(BIN)/dlg

View File

@ -0,0 +1,21 @@
*** testcpp/7/makefile Sat Sep 23 23:11:34 1995
--- /home/andy/tmp/wrk/testcpp/7/makefile Tue Jun 24 05:54:51 1997
***************
*** 16,23 ****
ERR = err
HDR_FILE =
SCAN = DLGLexer
! PCCTS = ../..
! ANTLR_H = $(PCCTS)/h
BIN = $(PCCTS)/bin
ANTLR = $(BIN)/antlr
DLG = $(BIN)/dlg
--- 16,23 ----
ERR = err
HDR_FILE =
SCAN = DLGLexer
! PCCTS = /usr/local
! ANTLR_H = $(PCCTS)/include/pccts
BIN = $(PCCTS)/bin
ANTLR = $(BIN)/antlr
DLG = $(BIN)/dlg

View File

@ -0,0 +1,21 @@
*** testcpp/8/makefile Sat Sep 23 23:50:56 1995
--- /home/andy/tmp/wrk/testcpp/8/makefile Tue Jun 24 05:55:23 1997
***************
*** 16,23 ****
ERR = err
HDR_FILE =
SCAN = DLGLexer
! PCCTS = ../..
! ANTLR_H = $(PCCTS)/h
BIN = $(PCCTS)/bin
ANTLR = $(BIN)/antlr
DLG = $(BIN)/dlg
--- 16,23 ----
ERR = err
HDR_FILE =
SCAN = DLGLexer
! PCCTS = /usr/local
! ANTLR_H = $(PCCTS)/include/pccts
BIN = $(PCCTS)/bin
ANTLR = $(BIN)/antlr
DLG = $(BIN)/dlg

View File

@ -0,0 +1,21 @@
*** testcpp/9/makefile Sat Sep 23 23:52:19 1995
--- /home/andy/tmp/wrk/testcpp/9/makefile Tue Jun 24 05:55:54 1997
***************
*** 16,23 ****
ERR = err
HDR_FILE =
SCAN = DLGLexer
! PCCTS = ../..
! ANTLR_H = $(PCCTS)/h
BIN = $(PCCTS)/bin
ANTLR = $(BIN)/antlr
DLG = $(BIN)/dlg
--- 16,23 ----
ERR = err
HDR_FILE =
SCAN = DLGLexer
! PCCTS = /usr/local
! ANTLR_H = $(PCCTS)/include/pccts
BIN = $(PCCTS)/bin
ANTLR = $(BIN)/antlr
DLG = $(BIN)/dlg

View File

@ -0,0 +1,21 @@
*** testcpp/10/makefile Sun Sep 24 00:01:13 1995
--- /home/andy/tmp/wrk/testcpp/10/makefile Tue Jun 24 05:56:24 1997
***************
*** 16,23 ****
ERR = err
HDR_FILE =
SCAN = DLGLexer
! PCCTS = ../..
! ANTLR_H = $(PCCTS)/h
BIN = $(PCCTS)/bin
ANTLR = $(BIN)/antlr
DLG = $(BIN)/dlg
--- 16,23 ----
ERR = err
HDR_FILE =
SCAN = DLGLexer
! PCCTS = /usr/local
! ANTLR_H = $(PCCTS)/include/pccts
BIN = $(PCCTS)/bin
ANTLR = $(BIN)/antlr
DLG = $(BIN)/dlg

View File

@ -0,0 +1,21 @@
*** testcpp/11/makefile Sun Sep 24 00:02:11 1995
--- /home/andy/tmp/wrk/testcpp/11/makefile Tue Jun 24 05:57:50 1997
***************
*** 16,23 ****
ERR = err
HDR_FILE =
SCAN = Lexer
! PCCTS = ../..
! ANTLR_H = $(PCCTS)/h
BIN = $(PCCTS)/bin
ANTLR = $(BIN)/antlr
DLG = $(BIN)/dlg
--- 16,23 ----
ERR = err
HDR_FILE =
SCAN = Lexer
! PCCTS = /usr/local
! ANTLR_H = $(PCCTS)/include/pccts
BIN = $(PCCTS)/bin
ANTLR = $(BIN)/antlr
DLG = $(BIN)/dlg

View File

@ -0,0 +1,21 @@
*** testcpp/12/makefile Sun Sep 24 00:05:31 1995
--- /home/andy/tmp/wrk/testcpp/12/makefile Tue Jun 24 05:58:27 1997
***************
*** 16,23 ****
ERR = err
HDR_FILE =
SCAN = DLGLexer
! PCCTS = ../..
! ANTLR_H = $(PCCTS)/h
BIN = $(PCCTS)/bin
ANTLR = $(BIN)/antlr
DLG = $(BIN)/dlg
--- 16,23 ----
ERR = err
HDR_FILE =
SCAN = DLGLexer
! PCCTS = /usr/local
! ANTLR_H = $(PCCTS)/include/pccts
BIN = $(PCCTS)/bin
ANTLR = $(BIN)/antlr
DLG = $(BIN)/dlg

View File

@ -0,0 +1,21 @@
*** testcpp/13/makefile Sun Sep 24 00:08:42 1995
--- /home/andy/tmp/wrk/testcpp/13/makefile Tue Jun 24 05:58:53 1997
***************
*** 16,23 ****
ERR = err
HDR_FILE =
SCAN = DLGLexer
! PCCTS = ../..
! ANTLR_H = $(PCCTS)/h
BIN = $(PCCTS)/bin
ANTLR = $(BIN)/antlr
DLG = $(BIN)/dlg
--- 16,23 ----
ERR = err
HDR_FILE =
SCAN = DLGLexer
! PCCTS = /usr/local
! ANTLR_H = $(PCCTS)/include/pccts
BIN = $(PCCTS)/bin
ANTLR = $(BIN)/antlr
DLG = $(BIN)/dlg

1
devel/pccts/pkg-comment Normal file
View File

@ -0,0 +1 @@
The Purdue Compiler Construction Tool Set

13
devel/pccts/pkg-descr Normal file
View File

@ -0,0 +1,13 @@
PCCTS - The Purdue Compiler Construction Tool Set
PCCTS is a set of public domain software tools designed to
facilitate the implementation of compilers and other
translation systems. These tools currently include antlr,
and dlg.
In many ways, PCCTS is similar to a highly integrated
version of YACC [Joh78] and LEX [Les75]; where antlr (ANother
Tool for Language Recognition) corresponds to YACC and dlg
(DFA-based Lexical analyzer Generator) functions like LEX.
However, PCCTS has many additional features which
make it easier to use for a wider range of translation
problems.

86
devel/pccts/pkg-plist Normal file
View File

@ -0,0 +1,86 @@
bin/antlr
bin/dlg
include/pccts/charptr.c
include/pccts/ast.c
include/pccts/SList.cpp
include/pccts/PCCTSAST.cpp
include/pccts/DLexerBase.cpp
include/pccts/DLexer.cpp
include/pccts/ATokenBuffer.cpp
include/pccts/ATokPtr.cpp
include/pccts/ASTBase.cpp
include/pccts/AParser.cpp
include/pccts/int.h
include/pccts/err.h
include/pccts/dlgdef.h
include/pccts/dlgauto.h
include/pccts/config.h
include/pccts/charptr.h
include/pccts/charbuf.h
include/pccts/ast.h
include/pccts/antlr.h
include/pccts/SList.h
include/pccts/PCCTSAST.h
include/pccts/PBlackBox.h
include/pccts/DLexerBase.h
include/pccts/ATokenStream.h
include/pccts/ATokenBuffer.h
include/pccts/AToken.h
include/pccts/ATokPtr.h
include/pccts/ASTBase.h
include/pccts/AParser.h
man/man1/pccts.1.gz
man/man1/antlr.1.gz
man/man1/dlg.1.gz
share/doc/pccts/history.txt
share/doc/pccts/history.ps
share/doc/pccts/SERVICES
share/doc/pccts/RIGHTS
share/doc/pccts/README
share/doc/pccts/BOOK
share/examples/pccts/makefile
share/examples/pccts/1/makefile
share/examples/pccts/1/test.g
share/examples/pccts/2/makefile
share/examples/pccts/2/test.g
share/examples/pccts/2/MyLexer.h
share/examples/pccts/2/MyLexer.cpp
share/examples/pccts/3/test.g
share/examples/pccts/3/mytokens.h
share/examples/pccts/3/makefile
share/examples/pccts/3/MyLexer.h
share/examples/pccts/3/MyLexer.cpp
share/examples/pccts/4/test.g
share/examples/pccts/4/mytokens.h
share/examples/pccts/4/makefile
share/examples/pccts/5/test.g
share/examples/pccts/5/makefile
share/examples/pccts/5/input.h
share/examples/pccts/6/A
share/examples/pccts/6/B
share/examples/pccts/6/test2.g
share/examples/pccts/6/test.g
share/examples/pccts/6/makefile2
share/examples/pccts/6/makefile
share/examples/pccts/6/main.cpp
share/examples/pccts/6/file2
share/examples/pccts/6/file1
share/examples/pccts/7/test.g
share/examples/pccts/7/makefile
share/examples/pccts/8/test.g
share/examples/pccts/8/makefile
share/examples/pccts/8/main.cpp
share/examples/pccts/9/test.g
share/examples/pccts/9/makefile
share/examples/pccts/10/test.g
share/examples/pccts/10/makefile
share/examples/pccts/11/test.g
share/examples/pccts/11/makefile
share/examples/pccts/11/input.h
share/examples/pccts/12/makefile
share/examples/pccts/12/test.g
share/examples/pccts/13/makefile
share/examples/pccts/13/test.g
@dirrm include/pccts
@dirrm share/doc/pccts
@dirrm share/examples/pccts