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 mp4h

Date:04/20/05
Author:Laurent Vogel
URL:http://lvogel.free.fr/
Comments:0
Info:http://www.engelschall.com/sw/mp4h/
Score: (1.67 in 3 votes)
;;;  mp4h version of 99 bottles of beer
;;;  Laurent Vogel,  http://lvogel.free.fr
;;;  (m4ph, see  http://www.engelschall.com/sw/mp4h/)
;;;
<define-tag p whitespace=delete>
<ifeq %0 0 "No" %0> bottle<ifeq <gt %0 1> true "s"> of beer%1
</define-tag><define-tag q><p %0 " on the wall,">
<p %0 ".">
Take one down, pass it around, 
<p <add %0 -1> " on the wall.">

</define-tag><set-var i=99 />;;;
<while <gt <get-var i /> 0 />><q <get-var i />><decrement i /></while>

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: