Giter Site home page Giter Site logo

gleitz / npiet Goto Github PK

View Code? Open in Web Editor NEW
28.0 4.0 8.0 323 KB

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

Shell 2.42% C 66.22% Makefile 2.16% Yacc 18.73% Tcl 7.33% Roff 3.14%

npiet's Introduction


	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

npiet's People

Contributors

gleitz avatar shinh avatar simbaclaws avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

npiet's Issues

#include <sys/malloc.h>?

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?

PNG support(1.13e)

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.