baum

changeset 17:16934645036f

added example directory with hello world program
author meillo@marmaro.de
date Wed, 13 Feb 2008 20:41:14 +0100
parents b62288419c1c
children 711aab4863cc
files examples/helloworld.baum
diffstat 1 files changed, 29 insertions(+), 0 deletions(-) [+]
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/examples/helloworld.baum	Wed Feb 13 20:41:14 2008 +0100
     1.3 @@ -0,0 +1,29 @@
     1.4 +# hello world program for baum
     1.5 +# http://prog.marmaro.de/baum
     1.6 +
     1.7 +sum(0)
     1.8 +	print(99)
     1.9 +		number(72)  #H
    1.10 +	print(99)
    1.11 +		number(101) #e
    1.12 +	print(99)
    1.13 +		number(108) #l
    1.14 +	print(99)
    1.15 +		number(108) #l
    1.16 +	print(99)
    1.17 +		number(111) #o
    1.18 +	print(99)
    1.19 +		number(32)  #space
    1.20 +
    1.21 +	print(99)
    1.22 +		number(87)  #W
    1.23 +	print(99)
    1.24 +		number(111) #o
    1.25 +	print(99)
    1.26 +		number(114) #r
    1.27 +	print(99)
    1.28 +		number(108) #l
    1.29 +	print(99)
    1.30 +		number(100) #d
    1.31 +	print(99)
    1.32 +		number(10)  #\n