Language RPL/2
| Date: | 05/22/06 |
| Author: | Kiyoshi Akima |
| URL: | http://kiyoshiakima.tripod.com |
| Comments: | 1 |
| Info: | http://www.makalis.fr/~bertrand/rpl2 |
| Score: |
#!/usr/local/bin/rpl
BEER
<<
99 do
dup ->str PLURAL " on the wall," + disp
dup ->str PLURAL "." + disp
"Take one down, pass it around," disp
1 -
if dup then
dup ->str
else
"No more"
end
PLURAL " on the wall." + disp
"" disp
until dup 0 == end
drop
>>
PLURAL
<<
" bottle" + over if 1 <> then "s" + end " of beer" +
>>
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
I'm a lover for both two languages, too. Yeah, I've got another which I might be fallen in forbidden love