1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

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.
This commit is contained in:
Eivind Eklund 1998-05-16 17:41:25 +00:00
parent 7974511db0
commit a070b1eb31
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=11012
7 changed files with 60 additions and 0 deletions

26
devel/re2c/Makefile Normal file
View File

@ -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>

1
devel/re2c/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (re2c.0.5.tar.gz) = 5c00e8e554d4b650895ecfc3e63338b2

13
devel/re2c/files/patch-aa Normal file
View File

@ -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;

11
devel/re2c/files/patch-ab Normal file
View File

@ -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 =

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

@ -0,0 +1 @@
Compile regular expression to C (much faster final code than flex)

6
devel/re2c/pkg-descr Normal file
View File

@ -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.

2
devel/re2c/pkg-plist Normal file
View File

@ -0,0 +1,2 @@
bin/re2c
man/man1/re2c.1.gz