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 Tyle

Date:05/30/05
Author:Michiel Visser
URL:http://www.parkserver.net/michiel/
Comments:2
Info:n/a
Score: (2.92 in 126 votes)
// 99 Bottles of beer, in Tyle (www.parkserver.net/michiel), using no libraries.

b = ?{" bottle",$!=1?"s"," of beer"};
c = ?{=$,!b};
puts{" on the wall, ".! { 99 .! $>0 ?! {!c,$2,!c,".\n Take one down, pass 
it around, ",$-=1;!c," on the wall.\n"}, 
  "No more",b(0),$2,"\ngo to the store and buy some 
more.\n",c(99),".\n"}};

Download Source | Write Comment

Alternative Versions

Comments

>>  Viper_SB said on 08/25/05 17:06:31

Viper_SB Ah cool Tyle got in :) your language seems to be getting around now.

>>  michiel visser said on 11/26/06 19:04:55

michiel visser The mentioned code was from an early version of Tyle. The following one will work on the one that you can download from www.xs4all.nl/~vissermc:

b = ?{" bottle", $!=1 ? "s", " of beer"};
c = ?{ $, b! };
puts{" on the wall, ".! { 99 .! $>0 ?! {c!, $2, c!, ".\n Take one down, pass it around, ", $-=1; c!, " on the wall.\n" }, "No more", b(0), $2, "\ngo to the store and buy some more.\n", c(99), ".\n"}};

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: