gleitz / npiet Goto Github PK
View Code? Open in Web Editor NEWa language where the programs are works of modern art (updated for OSX)
Home Page: http://www.bertnase.de/npiet/
License: GNU General Public License v2.0
a language where the programs are works of modern art (updated for OSX)
Home Page: http://www.bertnase.de/npiet/
License: GNU General Public License v2.0
README.npiet: Jun 2004 ([email protected]) Nov 2009 ([email protected]) Oct 2013 - npiet is an interperter for the piet programming language and - npietedit is a very simple editor for small piet programs. - npietedit-foogol is a ``foogol to piet'' compiler. about the piet programming language please look at: http://www.dangermouse.net/esoteric/piet.html and you find more about npiet at: http://bertnase.de/npiet and a copy of the foogol (and cfoogol) postings, about a ``ALGOL-like language'' definition is avail here: http://bertnase.de/html/foogol.html to compile and install npiet and the additional programs and files run brew install libgd # mac os ./configure make make install this installs the binaries npiet, npietedit and npiet-foogol, together with the manpages npiet.1, npietedit.1 and npiet-foogol.1 . if compiled with gd-lib and png-lib support (if avail), graphical trace output can be created by npiet - great fun ;-) npietedit is a Tk/Tcl program, so you need Tk/Tcl installed to run it. npiet-foogil needs libgd to compile and run. a quick npiet-foogol and npiet test would be: echo 'begin prints ("Yo\n") end' | ./npiet-foogol - ./npiet npiet-foogol.png or additionally to create a trace picture named npiet-trace.png: ./npiet -tpic npiet-foogol.png Have fun! -- Fri Aug 5 23:14:42 CEST 2011
Apparently when the malloc.h lib is included I can not build this on modern distributions because it has been deprecated and has been made obsolete in favor of <stdlib.h>
, which is already included.
I am able to build this software on modern linux distro's by removing the
#include <sys/malloc.h>
line in both npiet-foogol.y and npiet-foogol.c
I'm trying to build these tools to be able to use all of the functionality within JohnHammonds katana package.
Please let me know if I can make a pull request to change this in the code?
after
./configure running make outputs:
gcc -g -o npiet npiet.o -lgd -lpng -lz -lm
gcc -g -o npiet-foogol npiet-foogol.o -lgd -lpng -lz -lm
but upon running npiet I get this header:
npiet v1.3e (without GD support, without GIF support, without PNG support)
./configure returns:
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking gd.h usability... yes
checking gd.h presence... yes
checking for gd.h... yes
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking gif_lib.h usability... no
checking gif_lib.h presence... no
checking for gif_lib.h... no
checking for main in -lgd... yes
checking for main in -lpng... yes
checking for main in -lgif... no
checking for main in -lz... yes
checking for main in -lm... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.