Language SASL - St Andrews Static Lang.
| Date: | 02/06/08 |
| Author: | Ian Fowler |
| URL: | n/a |
| Comments: | 0 |
| Info: | n/a |
| Score: |
song 99
where
song x =
bott x 'N' , otw , ", " ,
bott x 'n' , '.' , NL ,
(x>0)->
("Take one down and pass it around, ",
bott (x-1) 'n' , otw , ".",
NL , NL,
song (x-1) )
;
("Go to the store and buy some more, " ,
bott 99 'n' , otw , "." , NL )
and
bott n opt=
(((n=0)->(opt,"o more") ; n ),
" bottle", ( (n=1)->();'s' ) , " of beer")
and
otw = " on the wall"
?
Download Source | Write Comment
Download Source | Write Comment
Add Comment
Please provide a value for the fields Name,
Comment and Security Code.
This is a gravatar-friendly website.
E-mail addresses will never be shown.
Enter your e-mail address to use your gravatar.
Please don't post large portions of code here! Use the form to submit new examples or updates instead!
Comments