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
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
Viper_SB said on 08/25/05 17:06:31
Ah cool Tyle got in your language seems to be getting around now.
michiel visser said on 11/26/06 19:04:55
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"}};