Language RXS
| Date: | 01/13/06 |
| Author: | Morten Bøgh |
| URL: | n/a |
| Comments: | 0 |
| Info: | http://kmboegh.dk/ |
| Score: |
)nop RXS is a scripting language for IBM S/390 mainframe
)nop Notice: This is a correct solution, establishing the full semantic richness of the song!
)nop
99 bottles of beer on the wall, 99 bottles of beer
)action
do i = 98 to 0 by -1
select
when i = 1 then txt = '1 bottle'
when i = 0 then txt = 'no more bottles'
otherwise txt = i 'bottles'
end
'Take one down, pass it around, 'txt' of beer on the wall.'
' '
translate(left(txt,1))''substr(txt,2) 'of beer on the wall, 'txt' of beer.'
end
)endaction
Go to the store and buy some more, 99 bottles of beer on the wall.
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