summaryrefslogtreecommitdiff
path: root/devel/re2c
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2003-07-29 16:17:41 +0000
committeragc <agc@pkgsrc.org>2003-07-29 16:17:41 +0000
commit9b4688a576692e7635068df76230504ed0811130 (patch)
treef0f56b8cae983492c5cda6a42d58238ba330b501 /devel/re2c
parent0960eb4e11a40c878611fac8bfe4821cdeaf2859 (diff)
downloadpkgsrc-9b4688a576692e7635068df76230504ed0811130.tar.gz
Initial import of re2c-0.9.1 into the NetBSD Packages Collection.
re2c is a preprocessor that generates C-based recognizers from regular expressions. The input to re2c consists of C/C++ source interleaved with comments of the form /*!re2c ... */ which contain scanner specifications. In the output these comments are replaced with code that, when executed, will find the next input token and then execute some user-supplied token-specific code. re2c generates parsers which are not table-based, and can be twice as fast as flex.
Diffstat (limited to 'devel/re2c')
-rw-r--r--devel/re2c/DESCR6
-rw-r--r--devel/re2c/Makefile18
-rw-r--r--devel/re2c/PLIST3
-rw-r--r--devel/re2c/distinfo4
4 files changed, 31 insertions, 0 deletions
diff --git a/devel/re2c/DESCR b/devel/re2c/DESCR
new file mode 100644
index 00000000000..856718ce12b
--- /dev/null
+++ b/devel/re2c/DESCR
@@ -0,0 +1,6 @@
+re2c is a preprocessor that generates C-based recognizers from regular
+expressions. The input to re2c consists of C/C++ source interleaved
+with comments of the form /*!re2c ... */ which contain scanner
+specifications. In the output these comments are replaced with code
+that, when executed, will find the next input token and then execute
+some user-supplied token-specific code.
diff --git a/devel/re2c/Makefile b/devel/re2c/Makefile
new file mode 100644
index 00000000000..69bf2b0ee2d
--- /dev/null
+++ b/devel/re2c/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/07/29 16:17:41 agc Exp $
+
+DISTNAME= re2c-0.9.1
+CATEGORIES= devel
+MASTER_SITES= http://www.netsw.org/softeng/compilerconstruct/re2c/
+
+MAINTAINER= tech-pkg@NetBSD.org
+HOMEPAGE= http://www.tildeslash.org/
+COMMENT= Deterministic Finite State Automaton generator
+
+USE_GMAKE= yes
+ALL_TARGET= default
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/re2c ${PREFIX}/bin/
+ ${INSTALL_MAN} ${WRKSRC}/re2c.1 ${PREFIX}/man/man1/
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/re2c/PLIST b/devel/re2c/PLIST
new file mode 100644
index 00000000000..f975c4f567b
--- /dev/null
+++ b/devel/re2c/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/07/29 16:17:41 agc Exp $
+bin/re2c
+man/man1/re2c.1
diff --git a/devel/re2c/distinfo b/devel/re2c/distinfo
new file mode 100644
index 00000000000..f959ce8ad3a
--- /dev/null
+++ b/devel/re2c/distinfo
@@ -0,0 +1,4 @@
+$NetBSD: distinfo,v 1.1.1.1 2003/07/29 16:17:41 agc Exp $
+
+SHA1 (re2c-0.9.1.tar.gz) = 45b2d33348bc340d633e6f0aca7b1a5e5a75914e
+Size (re2c-0.9.1.tar.gz) = 115783 bytes