From 4cb05a3959e823eeba0292799b8540f6812d1dc8 Mon Sep 17 00:00:00 2001 From: Ying-Chieh Liao Date: Fri, 22 Apr 2005 10:32:59 +0000 Subject: add re_graph 0.2 Regular Expression Graphing Program --- textproc/Makefile | 1 + textproc/re_graph/Makefile | 43 +++++++++++++++++++++++++++++++++++++++++++ textproc/re_graph/distinfo | 2 ++ textproc/re_graph/pkg-descr | 17 +++++++++++++++++ 4 files changed, 63 insertions(+) create mode 100644 textproc/re_graph/Makefile create mode 100644 textproc/re_graph/distinfo create mode 100644 textproc/re_graph/pkg-descr diff --git a/textproc/Makefile b/textproc/Makefile index b8658b712d01..74e71e817fec 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -554,6 +554,7 @@ SUBDIR += queequeg SUBDIR += rand SUBDIR += raptor + SUBDIR += re_graph SUBDIR += redland SUBDIR += redland-bindings SUBDIR += replaceit diff --git a/textproc/re_graph/Makefile b/textproc/re_graph/Makefile new file mode 100644 index 000000000000..2a43249aabe0 --- /dev/null +++ b/textproc/re_graph/Makefile @@ -0,0 +1,43 @@ +# ex:ts=8 +# Ports collection makefile for: re_graph +# Date created: Apr 22, 2005 +# Whom: ijliao +# +# $FreeBSD$ +# + +PORTNAME= re_graph +PORTVERSION= 0.2 +CATEGORIES= textproc +MASTER_SITES= http://www.oualline.com/sw/re/ +DISTNAME= ${PORTNAME:S/_/-/}_${PORTVERSION:S/.//} +EXTRACT_SUFX= .tar + +MAINTAINER= ports@FreeBSD.org +COMMENT= Regular Expression Graphing Program + +RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/GD.pm:${PORTSDIR}/graphics/p5-GD \ + ${SITE_PERL}/GD/Arrow.pm:${PORTSDIR}/graphics/p5-GD-Arrow + +NO_WRKSUBDIR= yes +EXTRACT_CMD= ${TAR} +EXTRACT_BEFORE_ARGS= -xf +EXTRACT_AFTER_ARGS= # empty +NO_BUILD= yes +USE_PERL5_RUN= yes + +PLIST_FILES= bin/re_graph + +.if !defined(NOPORTDOCS) +PORTDOCS= * +.endif + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/re_graph.pl ${PREFIX}/bin/re_graph +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/re_graph.html ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/tut* ${DOCSDIR} +.endif + +.include diff --git a/textproc/re_graph/distinfo b/textproc/re_graph/distinfo new file mode 100644 index 000000000000..79ada4c26fff --- /dev/null +++ b/textproc/re_graph/distinfo @@ -0,0 +1,2 @@ +MD5 (re-graph_02.tar) = e78e3d2237f0fac5726ad0d6ad6a31f1 +SIZE (re-graph_02.tar) = 4536320 diff --git a/textproc/re_graph/pkg-descr b/textproc/re_graph/pkg-descr new file mode 100644 index 000000000000..9b9901414afd --- /dev/null +++ b/textproc/re_graph/pkg-descr @@ -0,0 +1,17 @@ +The re_graph.pl program graphs regular expressions. The guts of the regular +expression engine is a simple state machine. The various states and operations +in the regular expression parser can be displayed using a surprisingly simple +diagram. + +A few notes on what you are looking at: + * The nodes Start and Stop denote the beginning and end of the regular + expression. + * The solid squares denote atoms. Lines indicate the next state. When a + line splits, the state machine will take the top line first. If it's + path is blocked it will backup and take the next lower line. This is + repeated until it finds a path to the end or all paths are exhausted. + * Brown boxes indicate a grouping operation, i.e. (). + * Green boxes indicate a zero with test. The state machine will perform the + test inside the box before moving ahead. + +WWW: http://www.oualline.com/sw/ -- cgit v1.2.3