Mercurial > baum
annotate examples/helloworld.baum @ 30:cd979b979610
fixed multiple (un)indentions in read_input; some better comments
author | meillo@marmaro.de |
---|---|
date | Fri, 22 Feb 2008 14:47:47 +0100 |
parents | 16934645036f |
children | 96e2d58bc346 |
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 |
16934645036f
added example directory with hello world program
meillo@marmaro.de
parents:
diff
changeset
|
3 |
16934645036f
added example directory with hello world program
meillo@marmaro.de
parents:
diff
changeset
|
4 sum(0) |
16934645036f
added example directory with hello world program
meillo@marmaro.de
parents:
diff
changeset
|
5 print(99) |
16934645036f
added example directory with hello world program
meillo@marmaro.de
parents:
diff
changeset
|
6 number(72) #H |
16934645036f
added example directory with hello world program
meillo@marmaro.de
parents:
diff
changeset
|
7 print(99) |
16934645036f
added example directory with hello world program
meillo@marmaro.de
parents:
diff
changeset
|
8 number(101) #e |
16934645036f
added example directory with hello world program
meillo@marmaro.de
parents:
diff
changeset
|
9 print(99) |
16934645036f
added example directory with hello world program
meillo@marmaro.de
parents:
diff
changeset
|
10 number(108) #l |
16934645036f
added example directory with hello world program
meillo@marmaro.de
parents:
diff
changeset
|
11 print(99) |
16934645036f
added example directory with hello world program
meillo@marmaro.de
parents:
diff
changeset
|
12 number(108) #l |
16934645036f
added example directory with hello world program
meillo@marmaro.de
parents:
diff
changeset
|
13 print(99) |
16934645036f
added example directory with hello world program
meillo@marmaro.de
parents:
diff
changeset
|
14 number(111) #o |
16934645036f
added example directory with hello world program
meillo@marmaro.de
parents:
diff
changeset
|
15 print(99) |
16934645036f
added example directory with hello world program
meillo@marmaro.de
parents:
diff
changeset
|
16 number(32) #space |
16934645036f
added example directory with hello world program
meillo@marmaro.de
parents:
diff
changeset
|
17 |
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(87) #W |
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(111) #o |
16934645036f
added example directory with hello world program
meillo@marmaro.de
parents:
diff
changeset
|
22 print(99) |
16934645036f
added example directory with hello world program
meillo@marmaro.de
parents:
diff
changeset
|
23 number(114) #r |
16934645036f
added example directory with hello world program
meillo@marmaro.de
parents:
diff
changeset
|
24 print(99) |
16934645036f
added example directory with hello world program
meillo@marmaro.de
parents:
diff
changeset
|
25 number(108) #l |
16934645036f
added example directory with hello world program
meillo@marmaro.de
parents:
diff
changeset
|
26 print(99) |
16934645036f
added example directory with hello world program
meillo@marmaro.de
parents:
diff
changeset
|
27 number(100) #d |
16934645036f
added example directory with hello world program
meillo@marmaro.de
parents:
diff
changeset
|
28 print(99) |
16934645036f
added example directory with hello world program
meillo@marmaro.de
parents:
diff
changeset
|
29 number(10) #\n |