Voting

Category

real language

Bookmarking

Del.icio.us Digg Diigo DZone Earthlink Google Kick.ie
Windows Live LookLater Ma.gnolia Reddit Rojo StumbleUpon Technorati

Language SASL - St Andrews Static Lang.

Date:02/06/08
Author:Ian Fowler
URL:n/a
Comments:0
Info:n/a
Score: (2.92 in 12 votes)
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

Alternative Versions

Comments

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!

Name:

eMail:

URL:

Security Code:
  
Comment: