New port: The New Brainfuck Compiler

The New Brainfuck Compiler is an optimizing Brainfuck-to-C
and Bainfuck-to-Java compiler.

Approved by:	miwi (mentor)
This commit is contained in:
Pietro Cerutti 2008-05-29 19:14:47 +00:00
parent c2aa70a884
commit 3ff1fbb343
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=213890
6 changed files with 48 additions and 0 deletions

View file

@ -164,6 +164,7 @@
SUBDIR += munger
SUBDIR += nawk
SUBDIR += nbc
SUBDIR += nbfc
SUBDIR += neko
SUBDIR += nesasm
SUBDIR += newlisp

24
lang/nbfc/Makefile Normal file
View file

@ -0,0 +1,24 @@
# New ports collection Makefile for: nbfc
# Date created: 29 May 2008
# Whom: gahr
#
# $FreeBSD$
#
PORTNAME= nbfc
PORTVERSION= 0.1
CATEGORIES= lang
MASTER_SITES= http://koeln.ccc.de/ablage/brainfuck/
MAINTAINER= gahr@FreeBSD.org
COMMENT= New Brainfuck Compiler
MAN1= nbfc.1
PLIST_FILES= bin/nbfc
post-patch:
${REINPLACE_CMD} -e 's|/usr|${PREFIX}|g;s|bison -y|yacc -|g' \
${WRKSRC}/Makefile
.include <bsd.port.mk>

3
lang/nbfc/distinfo Normal file
View file

@ -0,0 +1,3 @@
MD5 (nbfc-0.1.tar.gz) = ce46f3f7df0a785f726942c413755596
SHA256 (nbfc-0.1.tar.gz) = 84c784642ec753d1b0ae4e775912d47879cb27c35536789a5661d1d127e31fc6
SIZE (nbfc-0.1.tar.gz) = 7644

View file

@ -0,0 +1,8 @@
--- bf.h.orig 2008-05-29 20:46:45.000000000 +0200
+++ bf.h 2008-05-29 20:47:02.000000000 +0200
@@ -1,3 +1,5 @@
+#include <stdio.h>
+
void emmit(char * s);
extern int yyparse();
extern FILE * yyin;

View file

@ -0,0 +1,8 @@
--- compiler.c.orig 2008-05-29 20:46:19.000000000 +0200
+++ compiler.c 2008-05-29 20:46:32.000000000 +0200
@@ -1,4 +1,5 @@
#include <stdio.h>
+#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include "bf.h"

4
lang/nbfc/pkg-descr Normal file
View file

@ -0,0 +1,4 @@
The New Brainfuck Compiler is an optimizing Brainfuck-C and
Bainfuck-Java compiler.
WWW: http://koeln.ccc.de/ablage/brainfuck/index.en.xml