diff options
author | eivind <eivind@FreeBSD.org> | 1998-05-16 17:41:25 +0000 |
---|---|---|
committer | eivind <eivind@FreeBSD.org> | 1998-05-16 17:41:25 +0000 |
commit | 0808ae9ad33a4dbefca69e06be77115496dfdf8d (patch) | |
tree | c1a6993b980c5a8eed374b583a53a919f4a8e70b /devel/re2c | |
parent | a821e94fd66c1cd9f91f9f5983a6db6dddc0bd49 (diff) | |
download | FreeBSD-ports-0808ae9ad33a4dbefca69e06be77115496dfdf8d.zip FreeBSD-ports-0808ae9ad33a4dbefca69e06be77115496dfdf8d.tar.gz |
Initial import of re2c, a program to compile regular expression to C.
This is basically the same concept as lex, except this time it doesn't
turn your code inside out, and it generates actual C code to parse the
expressions (not tables), and the resulting code is usually about 2
times faster than flex.
Diffstat (limited to 'devel/re2c')
-rw-r--r-- | devel/re2c/Makefile | 26 | ||||
-rw-r--r-- | devel/re2c/distinfo | 1 | ||||
-rw-r--r-- | devel/re2c/files/patch-aa | 13 | ||||
-rw-r--r-- | devel/re2c/files/patch-ab | 11 | ||||
-rw-r--r-- | devel/re2c/pkg-comment | 1 | ||||
-rw-r--r-- | devel/re2c/pkg-descr | 6 | ||||
-rw-r--r-- | devel/re2c/pkg-plist | 2 |
7 files changed, 60 insertions, 0 deletions
diff --git a/devel/re2c/Makefile b/devel/re2c/Makefile new file mode 100644 index 0000000..3ab40c3 --- /dev/null +++ b/devel/re2c/Makefile @@ -0,0 +1,26 @@ +# New ports collection makefile for: re2c +# Version required: 0.5 +# Date created: 14 May 1998 +# Whom: Eivind Eklund <eivind@FreeBSD.ORG> +# +# $Id$ +# + +DISTNAME= re2c.0.5 +PKGNAME= re2c-0.5 +CATEGORIES= devel +MASTER_SITES= ftp://csg.uwaterloo.ca/pub/peter/ \ + ftp://ftp.uni-trier.de/pub/unix/compiler-toolkit/re2c/ \ + ftp://ftp.tut.ac.jp/.h3/UNIX/lib/ + +MAINTAINER= eivind@FreeBSD.ORG + +MAN1= re2c.1 + +ALL_TARGET= default + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/re2c ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/re2c.1 ${PREFIX}/man/man1 + +.include <bsd.port.mk> diff --git a/devel/re2c/distinfo b/devel/re2c/distinfo new file mode 100644 index 0000000..83d5aa4 --- /dev/null +++ b/devel/re2c/distinfo @@ -0,0 +1 @@ +MD5 (re2c.0.5.tar.gz) = 5c00e8e554d4b650895ecfc3e63338b2 diff --git a/devel/re2c/files/patch-aa b/devel/re2c/files/patch-aa new file mode 100644 index 0000000..338eec1 --- /dev/null +++ b/devel/re2c/files/patch-aa @@ -0,0 +1,13 @@ +--- basics.h.orig Thu May 14 16:35:56 1998 ++++ basics.h Thu May 14 16:36:18 1998 +@@ -6,10 +6,6 @@ + //Initial revision + // + +-typedef unsigned int bool; +-const bool true = (0 == 0); +-const bool false = (!true); +- + typedef unsigned int uint; + typedef unsigned char uchar, byte; + typedef unsigned short ushort, word; diff --git a/devel/re2c/files/patch-ab b/devel/re2c/files/patch-ab new file mode 100644 index 0000000..3aa754b --- /dev/null +++ b/devel/re2c/files/patch-ab @@ -0,0 +1,11 @@ +--- Makefile.orig Thu May 14 16:36:54 1998 ++++ Makefile Thu May 14 16:37:14 1998 +@@ -15,7 +15,7 @@ + OBJS = code.o dfa.o main.o parser.o actions.o scanner.o substr.o\ + translate.o + +-CC = gcc ++CC = c++ + CFLAGS = -O2 -Wall -I. + YFLAGS = -d + LDFLAGS = diff --git a/devel/re2c/pkg-comment b/devel/re2c/pkg-comment new file mode 100644 index 0000000..2f05cca --- /dev/null +++ b/devel/re2c/pkg-comment @@ -0,0 +1 @@ +Compile regular expression to C (much faster final code than flex) diff --git a/devel/re2c/pkg-descr b/devel/re2c/pkg-descr new file mode 100644 index 0000000..f0a0269 --- /dev/null +++ b/devel/re2c/pkg-descr @@ -0,0 +1,6 @@ +re2c is a tool for generating C-based recognizers from regular +expressions. re2c-based scanners are efficient: for programming +languages, given similar specifications, an re2c-based scanner is +typically almost twice as fast as a flex-based scanner with little or no +increase in size (possibly a decrease on cisc architectures). Indeed, +re2c-based scanners are quite competitive with hand-crafted ones. diff --git a/devel/re2c/pkg-plist b/devel/re2c/pkg-plist new file mode 100644 index 0000000..d9ef1b0 --- /dev/null +++ b/devel/re2c/pkg-plist @@ -0,0 +1,2 @@ +bin/re2c +man/man1/re2c.1.gz |