Unnamed repository; edit this file 'description' to name the repository.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
proc greet(name: string): string =
  result = "hello, " & name

iterator items(n: int): int =
  for i in 0 .. n:
    yield i

for i in 0 .. 10:
  echo i

while running:
  step()

case n
of 1:
  echo "one"
of 2:
  echo "two"
else:
  echo "many"