view examples/sum3input_v2.baum @ 57:21ff1783f640

using function pointers now, instead of a large if-else
author meillo@marmaro.de
date Wed, 25 Jun 2008 09:20:16 +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)