Mercurial > baum
annotate 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 |
rev | line source |
---|---|
17
16934645036f
added example directory with hello world program
meillo@marmaro.de
parents:
diff
changeset
|
1 # hello world program for baum |
16934645036f
added example directory with hello world program
meillo@marmaro.de
parents:
diff
changeset
|
2 # http://prog.marmaro.de/baum |
39
96e2d58bc346
added new example program; added comments to example programs
meillo@marmaro.de
parents:
17
diff
changeset
|
3 # |
96e2d58bc346
added new example program; added comments to example programs
meillo@marmaro.de
parents:
17
diff
changeset
|
4 # prints "Hello World" |
96e2d58bc346
added new example program; added comments to example programs
meillo@marmaro.de
parents:
17
diff
changeset
|
5 # and returns the answer to everything |
96e2d58bc346
added new example program; added comments to example programs
meillo@marmaro.de
parents:
17
diff
changeset
|
6 # |
96e2d58bc346
added new example program; added comments to example programs
meillo@marmaro.de
parents:
17
diff
changeset
|
7 # ... what fabulous program :-) |
17
16934645036f
added example directory with hello world program
meillo@marmaro.de
parents:
diff
changeset
|
8 |
16934645036f
added example directory with hello world program
meillo@marmaro.de
parents:
diff
changeset
|
9 sum(0) |
16934645036f
added example directory with hello world program
meillo@marmaro.de
parents:
diff
changeset
|
10 print(99) |
16934645036f
added example directory with hello world program
meillo@marmaro.de
parents:
diff
changeset
|
11 number(72) #H |
16934645036f
added example directory with hello world program
meillo@marmaro.de
parents:
diff
changeset
|
12 print(99) |
16934645036f
added example directory with hello world program
meillo@marmaro.de
parents:
diff
changeset
|
13 number(101) #e |
16934645036f
added example directory with hello world program
meillo@marmaro.de
parents:
diff
changeset
|
14 print(99) |
16934645036f
added example directory with hello world program
meillo@marmaro.de
parents:
diff
changeset
|
15 number(108) #l |
16934645036f
added example directory with hello world program
meillo@marmaro.de
parents:
diff
changeset
|
16 print(99) |
16934645036f
added example directory with hello world program
meillo@marmaro.de
parents:
diff
changeset
|
17 number(108) #l |
16934645036f
added example directory with hello world program
meillo@marmaro.de
parents:
diff
changeset
|
18 print(99) |
16934645036f
added example directory with hello world program
meillo@marmaro.de
parents:
diff
changeset
|
19 number(111) #o |
16934645036f
added example directory with hello world program
meillo@marmaro.de
parents:
diff
changeset
|
20 print(99) |
16934645036f
added example directory with hello world program
meillo@marmaro.de
parents:
diff
changeset
|
21 number(32) #space |
16934645036f
added example directory with hello world program
meillo@marmaro.de
parents:
diff
changeset
|
22 |
16934645036f
added example directory with hello world program
meillo@marmaro.de
parents:
diff
changeset
|
23 print(99) |
16934645036f
added example directory with hello world program
meillo@marmaro.de
parents:
diff
changeset
|
24 number(87) #W |
16934645036f
added example directory with hello world program
meillo@marmaro.de
parents:
diff
changeset
|
25 print(99) |
16934645036f
added example directory with hello world program
meillo@marmaro.de
parents:
diff
changeset
|
26 number(111) #o |
16934645036f
added example directory with hello world program
meillo@marmaro.de
parents:
diff
changeset
|
27 print(99) |
16934645036f
added example directory with hello world program
meillo@marmaro.de
parents:
diff
changeset
|
28 number(114) #r |
16934645036f
added example directory with hello world program
meillo@marmaro.de
parents:
diff
changeset
|
29 print(99) |
16934645036f
added example directory with hello world program
meillo@marmaro.de
parents:
diff
changeset
|
30 number(108) #l |
16934645036f
added example directory with hello world program
meillo@marmaro.de
parents:
diff
changeset
|
31 print(99) |
16934645036f
added example directory with hello world program
meillo@marmaro.de
parents:
diff
changeset
|
32 number(100) #d |
16934645036f
added example directory with hello world program
meillo@marmaro.de
parents:
diff
changeset
|
33 print(99) |
16934645036f
added example directory with hello world program
meillo@marmaro.de
parents:
diff
changeset
|
34 number(10) #\n |
39
96e2d58bc346
added new example program; added comments to example programs
meillo@marmaro.de
parents:
17
diff
changeset
|
35 |
96e2d58bc346
added new example program; added comments to example programs
meillo@marmaro.de
parents:
17
diff
changeset
|
36 number(4) |