Search the web
Sign In
New User? Sign Up
concatenative · Discuss the concatenative variety of computer languages: Joy, Forth, Postscript
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
ANN: Concatenative Macro Processor   Message List  
Reply | Forward Message #4624 of 4643 |
Minimac (http://freshmeat.net/projects/minimac-macro-processor) is a
minimalist, general purpose text macro processor.
It uses an explicit argument stack, and user functions are defined by
concatenation.
The software is currently in alpha release.

Example: 99 bottles of beer (http://99-bottles-of-beer.net/)

`drink! ( u -- ) `{continue}${#}
this-many-bottles of beer on the wall, this-many-bottles of beer.
Take one down and pass it around, fewer-bottles of beer on the wall.

{repeat}`

`oh-no! ( -- ) `No more bottles of beer on the wall, no more bottles of
beer.`

`please! ( u -- u ) `{#}
Go to the store and buy some more, this-many-bottles of beer on the wall.`

`this-many-bottles ( u -- u ) `[{dup} 0& ~no more bottles~& {case} 1& ~1
bottle~& {case} {.} ~ bottles~]`

`fewer-bottles ( u -- u-1 ) `{--}$this-many-bottles`

99& drink!
oh-no!
99& please!



Cheers,
Mark Humphries




Tue Jun 23, 2009 1:09 am

markwhumphries
Offline Offline
Send Email Send Email

Forward
Message #4624 of 4643 |
Expand Messages Author Sort by Date

Minimac (http://freshmeat.net/projects/minimac-macro-processor) is a minimalist, general purpose text macro processor. It uses an explicit argument stack, and...
Mark W. Humphries
markwhumphries
Offline Send Email
Jun 23, 2009
1:10 am

Just to keep the pipes exercised [I suspected that I'd been cut-off of cat-list [what's happening in the 1st-world/N-hemisphere 'for' no cat-list-traffic ?] ] ...
eas lab
lab.eas@...
Send Email
Jul 4, 2009
12:50 pm

... Hi, Thanks for your questions. Minimac has almost no syntax, basically a set of special characters that trigger behaviors (quoting, escaping, naming,...
Mark W. Humphries
markwhumphries
Offline Send Email
Jul 5, 2009
2:35 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help