Language Yodl
| Date: | 04/20/08 |
| Author: | Anonymous |
| URL: | n/a |
| Comments: | 0 |
| Info: | http://yodl.sourceforge.net/ |
| Score: |
COMMENT(
Your Own Document Language
http://yodl.sourceforge.net/
)
DEFINECOUNTER(beer)(99)
DEFINEMACRO(bottles)(0)(\
IFGREATER(beer)(1)(\
COUNTERVALUE(beer) bottles\
)(\
IFGREATER(beer)(0)(\
1 bottle\
)(\
no more bottles\
)\
)\
)
DEFINEMACRO(lines)(0)(
bottles() of beer on the wall, bottles() of beer.\
ADDTOCOUNTER(beer)(-1)
Take one down and pass it aound, bottles() of beer on the wall.
IFGREATER(beer)(0)(\
lines()\
)(\
)\
)
lines()
No more bottles of beer on the wall, no more bottles of beer.
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