view examples/sum3input_v2.baum @ 58:f5f06d6f62b3

made Makefile much simpler (installs now to /usr/local)
author meillo@marmaro.de
date Wed, 25 Jun 2008 11:09:14 +0200
parents 6e46b106c334
children
line wrap: on
line source

# example program for baum
# http://prog.marmaro.de/baum
#
# echoes the sum and a newline afterwards
# then returns 0 to the shell
#
# see: sum3input.baum

number(0)
	sum(0)
		print(0)
			sum(0)
				create(0)
				create(0)
				create(0)
		print(99)
			number(10)