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 Abundance

Date:04/20/05
Author:Anonymous
URL:n/a
Comments:2
Info:n/a
Score: (2.25 in 16 votes)
\ Abundance version of 99 bottles of beer   RG 2.0/1.0  97/03/08
                                                                
<<<DEFINE 1 99 SMALL All-Bottles DEFINE>>>

<<< Bottles ( count -- ) DUP WRITE
    CASE 0 OF DROP " No more bottles " ENDOF
         1 OF DROP " 1 bottle "        ENDOF
    OTHERS OF   .  " bottles "         ENDOF ENDCASE >>>

<<< Sing 
   WRITE                                           
   <<<RFOR All-Bottles
       I Bottles " of beer on the wall, "
       I Bottles " of beer" NL
       " Take one down and pass it around," NL
       I 1- Bottles " of beer on the wall." 2 NLS 
   RFOR>>> >>>

Download Source | Write Comment

Alternative Versions

Comments

>>  Sam Whaley said on 07/22/05 05:01:31

Sam Whaley Hey, where can I get an introduction to this Abundance programming language, and where can I get a interpreter/compiler?

>>  Karl said on 01/26/06 23:43:51

Karl @Sam Whaley,

Abundance was written by Roedy Green, of Canadian Mind Products.
This is the address: http://mindprod.com/products4.html#ABUNDANCE
It's based on BBL FORTH.

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: