Language Aurora Macro Language (AML)
| Date: | 04/20/05 |
| Author: | Danny Lawler |
| URL: | n/a |
| Comments: | 0 |
| Info: | n/a |
| Score: |
// 99 bottles written in AML (Aurora Macro Language) for the fantastic Aurora
// text editor. Although the latest version of the editor is still available
// for free download (Aurora Editor/32 v3.3 Beta 1) development is now defunct,
// and the author uncontactable.
//
// If you have experienced the beauty and power of this editor and want to
// support an open-source initiative, visit the biggest fan-site:
// http://www-personal.umich.edu/~knassen/aurora.html
//
// Author: Danny Lawler.
include bootpath "define.aml"
createbuf // Target buffer for text ops
for i = 99 downto 0 do
plural = if? i == 1 "" "s"
buff = if? i == 0 "No" i
addline buff + ' bottle' + plural + ' of beer on the wall,'
addline buff + ' bottle' + plural + ' of beer,'
plural = if? i-1 == 1 "" "s"
if not i then
addline 'First we weep, then we sleep.'
else
addline 'Take one down, pass it around,'
end
buff = if? (i-1 <= 0) "No" i-1
addline buff + ' bottle' + plural + ' of beer on the wall.'
addline
end
buff = ' * 99 Bottles of Beer * '
// Display output in popup menu
popup (getcurrbuf) buff length buff
destroybuf
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