version 0.8.2
This commit is contained in:
parent
581572b28c
commit
053309e60a
125 changed files with 6564 additions and 1308 deletions
|
|
@ -4,29 +4,29 @@ type
|
|||
tenum = enum eA, eB, eC
|
||||
|
||||
var
|
||||
x: string
|
||||
x: string = "yyy"
|
||||
y: Tenum = eA
|
||||
i: int
|
||||
|
||||
case y
|
||||
of eA: write(stdout, "a\n")
|
||||
of eB, eC: write(stdout, "b oder c\n")
|
||||
of eA: write(stdout, "a")
|
||||
of eB, eC: write(stdout, "b or c")
|
||||
|
||||
x = readLine(stdin)
|
||||
case x
|
||||
of "Andreas", "Rumpf": write(stdout, "Hallo Meister!\n")
|
||||
of "aa", "bb": write(stdout, "Du bist nicht mein Meister\n")
|
||||
of "Andreas", "Rumpf": write(stdout, "Hallo Meister!")
|
||||
of "aa", "bb": write(stdout, "Du bist nicht mein Meister")
|
||||
of "cc", "hash", "when": nil
|
||||
of "will", "it", "finally", "be", "generated": nil
|
||||
else: write(stdout, "das sollte nicht passieren!\N")
|
||||
|
||||
case i
|
||||
of 0..5, 8, 9: nil
|
||||
of 1..5, 8, 9: nil
|
||||
of 6, 7: nil
|
||||
elif x == "Ha":
|
||||
nil
|
||||
elif x == "Ho":
|
||||
nil
|
||||
elif x == "yyy":
|
||||
write(stdout, x)
|
||||
else:
|
||||
nil
|
||||
|
||||
#OUT ayyy
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue