comparison examples/helloworld.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 16934645036f
children
comparison
equal deleted inserted replaced
38:ff01f0f076e4 39:96e2d58bc346
1 # hello world program for baum 1 # hello world program for baum
2 # http://prog.marmaro.de/baum 2 # http://prog.marmaro.de/baum
3 #
4 # prints "Hello World"
5 # and returns the answer to everything
6 #
7 # ... what fabulous program :-)
3 8
4 sum(0) 9 sum(0)
5 print(99) 10 print(99)
6 number(72) #H 11 number(72) #H
7 print(99) 12 print(99)
25 number(108) #l 30 number(108) #l
26 print(99) 31 print(99)
27 number(100) #d 32 number(100) #d
28 print(99) 33 print(99)
29 number(10) #\n 34 number(10) #\n
35
36 number(4)