Language Refal5
Date: | 04/20/05 |
Author: | Dendik |
URL: | n/a |
Comments: | 1 |
Info: | http://refal.org/index_e.htm |
Score: | (3.01 in 100 votes) |
* Refal5 version of famous lyrics * Created and debugged carefully by Dendik (ru.pochtamt[at]dendik) * You can get some info on Refal at http://refal.org/index_e.htm $ENTRY Go { = <Go 99>; t.n = <Go <Do t.n>>; }; Do { "next" t.n, <-(t.n)1> : { t.m = t.m; '-' 1 = 99; }; "look" t.n = <Prout <Do "Look" t.n>>; "drink" t.n = <Prout <Do "Drink" t.n>'\n'> t.n; "Look" t.n = <Do "Beer" t.n> <Do "wall"> ', ' <Do "beer" t.n>; "Drink" 99 = 'Go to the store, buy some more' <Do "beer" 99>; "Drink" t.n = 'Take one down, pass it around, ' <Do "beer" t.n>; "wall" = ' on the wall'; "Beer" 0 = 'No more ' <Do beer>; "Beer" t.n = t.n <Do beer>; "beer" 0 = 'no more ' <Do beer>; "beer" t.n = t.n <Do beer>; "beer" = 'bottles of beer'; t.n = <Do "look" t.n> <Do "drink" <Do "next" t.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
Bronikkk said on 05/16/08 19:03:40
Something like that, maybe?
$ENTRY Go { = <Go 99>; t.n = <Go <Do t.n>>; };
Do
{
"next" t.n, <-(t.n)1> : { t.m = t.m; '-' 1 = 99; };
"look" t.n = <Prout <Do "Look" t.n>>;
"drink" t.n = <Prout <Do "Drink" t.n>'\n'> t.n;
"Look" t.n = <Do "Beer" t.n> <Do "wall"> ', ' <Do "beer" t.n>;
"Drink" 99 = 'Go to the store, buy some more, ' <Do "beer" 99>;
"Drink" t.n = 'Take one down, pass it around, ' <Do "beer" t.n>;
"wall" = ' on the wall';
"Beer" 0 = 'No more ' <Do beer>;
"Beer" 1 = 1 <Do beer1>;
"Beer" t.n = t.n <Do beer>;
"beer" 0 = 'no more ' <Do beer>;
"beer" 1 = 1 <Do beer1>;
"beer" t.n = t.n <Do beer>;
"beer" = 'bottles of beer';
"beer1" = 'bottle of beer';
t.n = <Do "look" t.n> <Do "drink" <Do "next" t.n>>;
};