parser: regenerate with lambda
[nit.git] / examples / rosettacode / bottles_of_beer.nit
1 #!/usr/bin/env nit
2 #
3 # This file is part of NIT ( http://www.nitlanguage.org ).
4 # This program is public domain
5
6 # Task: 99 Bottles of Beer
7 # SEE: <http://rosettacode.org/wiki/99_Bottles_of_Beer>
8 module bottles_of_beer
9
10 for i in [1..99].reverse_iterator do
11 print "{i} bottles of beer on the wall"
12 print "{i} bottles of beer"
13 print "Take one down, pass it around"
14 print "{i-1} bottles of beer on the wall\n"
15 end