initial import of lwc

ightweight C++ is a programming language that looks like C++ (a lightweight
C++ dialect) and is directly translated to readable C by the lwc preprocessor.
It's more "K&R" and, well, more lightweight.

Important thing about lightweight C++ is that by studying the generated C
code it is easy to understand how OOP features are implemented and what is
the cost of everything.

Adding new features and extensions is also very easy (much easier than adding
new C++ extensions to gcc at least), and this is one of lwc goals
This commit is contained in:
pancake ;) 2004-11-24 14:42:19 +00:00 committed by Thomas Klausner
parent ea61a6cb6c
commit 0e1836248d
4 changed files with 41 additions and 0 deletions

10
lwc/DESCR Normal file
View file

@ -0,0 +1,10 @@
ightweight C++ is a programming language that looks like C++ (a lightweight
C++ dialect) and is directly translated to readable C by the lwc preprocessor.
It's more "K&R" and, well, more lightweight.
Important thing about lightweight C++ is that by studying the generated C
code it is easy to understand how OOP features are implemented and what is
the cost of everything.
Adding new features and extensions is also very easy (much easier than adding
new C++ extensions to gcc at least), and this is one of lwc goals

25
lwc/Makefile Normal file
View file

@ -0,0 +1,25 @@
# $NetBSD: Makefile,v 1.1.1.1 2004/11/24 14:42:19 poppnk Exp $
#
DISTNAME= lwc-1.3.2
CATEGORIES= wip devel
MASTER_SITES= http://students.ceid.upatras.gr/~sxanth/lwc/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= pancake@phreaker.net
HOMEPAGE= http://students.ceid.upatras.gr/~sxanth/lwc/
COMMENT= Lightweight C++
USE_BUILDLINK3= yes
ALL_TARGET= objdir/lwc
SUBST_CLASSES=gcc
SUBST_STAGE.gcc=pre-build
SUBST_FILES.gcc=Makefile
SUBST_SED.gcc= -e 's,CCC\ \=,\#,g' -e 's,CC\ =\ ,CC+=-c ${CFLAGS}\#,' \
-e 's,$$(CCC),${CC},g'
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/objdir/lwc ${PREFIX}/bin
.include "../../mk/bsd.pkg.mk"

2
lwc/PLIST Normal file
View file

@ -0,0 +1,2 @@
@comment $NetBSD: PLIST,v 1.1.1.1 2004/11/24 14:42:19 poppnk Exp $
bin/lwc

4
lwc/distinfo Normal file
View file

@ -0,0 +1,4 @@
$NetBSD: distinfo,v 1.1.1.1 2004/11/24 14:42:19 poppnk Exp $
SHA1 (lwc-1.3.2.tar.bz2) = 442adf071c86262dfa67c33562187b8efba4bbe3
Size (lwc-1.3.2.tar.bz2) = 219749 bytes