ports/109038: [NEW PORT] devel/bnfc: A Labelled BNF converter

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

ports/109038: [NEW PORT] devel/bnfc: A Labelled BNF converter

Kai Wang

>Number:         109038
>Category:       ports
>Synopsis:       [NEW PORT] devel/bnfc: A Labelled BNF converter
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:      
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 11 02:00:12 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Kai Wang
>Release:        FreeBSD 6.2-RELEASE i386
>Organization:
>Environment:
System: FreeBSD plan0.kaiwan.csbnet.se 6.2-RELEASE FreeBSD 6.2-RELEASE #6: Sun Jan 14 20:14:39 CET 2007
>Description:
The BNF Converter is a compiler construction tool generating a
compiler front-end from a Labelled BNF grammar. It was originally
written to generate Haskell, but starting from Version 2.0, it can
also be used for generating Java, C++, and C.

Given a Labelled BNF grammar the tool produces:

  * an abstract syntax as a Haskell/C++/C module or Java directory
  * a case skeleton for the abstract syntax in the same language
  * an Alex, JLex, or Flex lexer generator file
  * a Happy, CUP, or Bison parser generator file
  * a pretty-printer as a Haskell/Java/C++/C module
  * a Latex file containing a readable specification of the language

WWW: http://www.cs.chalmers.se/~markus/BNFC/

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- bnfc-2.3b.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# bnfc
# bnfc/pkg-descr
# bnfc/Makefile
# bnfc/pkg-plist
# bnfc/distinfo
#
echo c - bnfc
mkdir -p bnfc > /dev/null 2>&1
echo x - bnfc/pkg-descr
sed 's/^X//' >bnfc/pkg-descr << 'END-of-bnfc/pkg-descr'
XThe BNF Converter is a compiler construction tool generating a
Xcompiler front-end from a Labelled BNF grammar. It was originally
Xwritten to generate Haskell, but starting from Version 2.0, it can
Xalso be used for generating Java, C++, and C.
X
XGiven a Labelled BNF grammar the tool produces:
X
X  * an abstract syntax as a Haskell/C++/C module or Java directory
X  * a case skeleton for the abstract syntax in the same language
X  * an Alex, JLex, or Flex lexer generator file
X  * a Happy, CUP, or Bison parser generator file
X  * a pretty-printer as a Haskell/Java/C++/C module
X  * a Latex file containing a readable specification of the language
X
XWWW: http://www.cs.chalmers.se/~markus/BNFC/
END-of-bnfc/pkg-descr
echo x - bnfc/Makefile
sed 's/^X//' >bnfc/Makefile << 'END-of-bnfc/Makefile'
X# New ports collection makefile for: bnfc
X# Date created: 2007-02-11
X# Whom: Kai Wang <[hidden email]>
X#
X# $FreeBSD$
X#
X
XPORTNAME= bnfc
XPORTVERSION= 2.3b
XCATEGORIES= devel
XMASTER_SITES= http://www.cs.chalmers.se/~markus/BNFC/ \
X http://www.cs.chalmers.se/Cs/Grundutb/Kurser/komp/current/resources/
XDISTNAME= BNFC_${PORTVERSION}
XEXTRACT_SUFX= .tgz
X
XMAINTAINER= [hidden email]
XCOMMENT= A Labelled BNF converter
X
XBUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc
X
XUSE_GMAKE= yes
X
X.include <bsd.port.pre.mk>
X
Xdo-install:
X ${INSTALL_DATA} ${WRKSRC}/bnfc ${PREFIX}/bin
X
X.if !defined(NOPORTDOCS)
Xpost-install:
X ${RM} -f ${WRKSRC}/examples/haskell-core/.cvsignore
X ${MKDIR} ${EXAMPLESDIR}
X ${CP} -pR ${WRKSRC}/examples/* ${EXAMPLESDIR}
X ${MKDIR} ${DOCSDIR}
X ${INSTALL_DATA} ${WRKSRC}/doc/LBNF-report.tex ${DOCSDIR}
X.endif
X
X.include <bsd.port.post.mk>
END-of-bnfc/Makefile
echo x - bnfc/pkg-plist
sed 's/^X//' >bnfc/pkg-plist << 'END-of-bnfc/pkg-plist'
Xbin/bnfc
X%%PORTDOCS%%%%DOCSDIR%%/LBNF-report.tex
X%%PORTDOCS%%%%EXAMPLESDIR%%/C4.cf
X%%PORTDOCS%%%%EXAMPLESDIR%%/JavaletteLight.cf
X%%PORTDOCS%%%%EXAMPLESDIR%%/OCL.cf
X%%PORTDOCS%%%%EXAMPLESDIR%%/Prolog.cf
X%%PORTDOCS%%%%EXAMPLESDIR%%/fstStudio.cf
X%%PORTDOCS%%%%EXAMPLESDIR%%/haskell-core/AbsCore.hcr
X%%PORTDOCS%%%%EXAMPLESDIR%%/haskell-core/Core.cf
X%%PORTDOCS%%%%EXAMPLESDIR%%/haskell-core/Hello.hcr
X%%PORTDOCS%%%%EXAMPLESDIR%%/haskell-core/ParCore.hcr
X%%PORTDOCS%%%%EXAMPLESDIR%%/haskell-core/README
X%%PORTDOCS%%%%EXAMPLESDIR%%/haskell-core/TopCore.hs
X%%PORTDOCS%%%%EXAMPLESDIR%%/haskell-core/notes.txt
X%%PORTDOCS%%%%EXAMPLESDIR%%/koe.jll
X%%PORTDOCS%%%%EXAMPLESDIR%%/koe2.c
X%%PORTDOCS%%%%EXAMPLESDIR%%/multi/Arithm.cf
X%%PORTDOCS%%%%EXAMPLESDIR%%/multi/TestArithm.hs
X%%PORTDOCS%%%%EXAMPLESDIR%%/multi/types/Types.cf
X%%PORTDOCS%%%%EXAMPLESDIR%%/multi/types/ex.old
X%%PORTDOCS%%%%EXAMPLESDIR%%/prolog.pl
X%%PORTDOCS%%%%EXAMPLESDIR%%/small.pl
X%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/multi/types
X%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/multi
X%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/haskell-core
X%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
END-of-bnfc/pkg-plist
echo x - bnfc/distinfo
sed 's/^X//' >bnfc/distinfo << 'END-of-bnfc/distinfo'
XMD5 (BNFC_2.3b.tgz) = 1c31e0ef06ed27032a0f50d1b0ea860d
XSHA256 (BNFC_2.3b.tgz) = 502245ca5624a1458f0a5ca1c928329a56e4da31c9fee496c327f0849f7361f7
XSIZE (BNFC_2.3b.tgz) = 338176
END-of-bnfc/distinfo
exit
--- bnfc-2.3b.shar ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: ports/109038: [NEW PORT] devel/bnfc: A Labelled BNF converter

Martin Wilke-9
Synopsis: [NEW PORT] devel/bnfc: A Labelled BNF converter

Responsible-Changed-From-To: freebsd-ports-bugs->miwi
Responsible-Changed-By: miwi
Responsible-Changed-When: Sun Feb 11 09:39:51 UTC 2007
Responsible-Changed-Why:
I'll take it.

http://www.freebsd.org/cgi/query-pr.cgi?pr=109038
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs
To unsubscribe, send any mail to "[hidden email]"