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 Maple V3

Date:04/20/05
Author:Hill and Burstall
URL:n/a
Comments:0
Info:n/a
Score: (2.50 in 6 votes)
#
# Vanilla (non-graphical) version of 99 Bottles as sung 
# reluctantly by Maple V3, and only under the agreement that it
# will be called on to perform the song properly, in color, and with 
# appropriate animation... someday
#
# Authors: Hill and Burstall (handb@ionet.net)
#
lyrics:=(` Bottle`,` of beer on the wall! ` ,` of beer!  Take`, 
         ` down, pass it around...`):  
for i from 99 by -1 to 3 do   
     print(cat ( i ,lyrics[1],`s`,lyrics[2]), 
           cat(i, lyrics[1],`s`,lyrics[3],` one`,lyrics[4]), 
           cat(i-1,lyrics[1],`s`,lyrics[2]))   
                        od;
print(cat ( i ,lyrics[1],`s`,lyrics[2]), cat(i, lyrics[1],`s`,lyrics[3],` one`,
      lyrics[4]), cat(i-1,lyrics[1],lyrics[2]));
print(cat ( `1` ,lyrics[1],lyrics[2]), cat(`1`, lyrics[1],lyrics[3],` it`,
      lyrics[4]), cat(`0`,lyrics[1],`s`,lyrics[2]));

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: