module beers imports libstratego-lib strategies bottles = ?1; !"1 bottle" <+ ?0; !"no more bottle" <+ [, " bottles"] cap = string-as-chars([to-upper|id] <+ []) beers = !99 ; rec x( where( [, " of beer standing on the wall, ", , " of beer."]) ; ?0 <+ dec ; where( ["Take one down and pass it around, ", , " of beer on the wall."]) ; x) ; "Go to the store and buy some more, 99 bottles of beer on the wall." ; 0