baum

diff examples/sum3input_v2.baum @ 39:96e2d58bc346

added new example program; added comments to example programs
author meillo@marmaro.de
date Sat, 01 Mar 2008 20:10:02 +0100
parents
children 6e46b106c334
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/examples/sum3input_v2.baum	Sat Mar 01 20:10:02 2008 +0100
     1.3 @@ -0,0 +1,17 @@
     1.4 +# example program for baum
     1.5 +# http://prog.marmaro.de/baum
     1.6 +#
     1.7 +# echoes the sum and a newline afterwards
     1.8 +# then returns 0 to the shell
     1.9 +#
    1.10 +# see: sum3input.baum
    1.11 +
    1.12 +number(0)
    1.13 +	sum(0)
    1.14 +		print(0)
    1.15 +			sum(0)
    1.16 +				input(0)
    1.17 +				input(0)
    1.18 +				input(0)
    1.19 +		print(99)
    1.20 +			number(10)