Samovar icon indicating copy to clipboard operation
Samovar copied to clipboard

A macro processor

Open hendrikboom3 opened this issue 6 years ago • 1 comments

If you'd like a macro processor for Samovar, you might have a look at ML/1, one of the more long-lived programs around. I first used it in 1968, and still like its elegant design. See http://www.ml1.org.uk/ for details. There's a lot more sophistication in that package than appears at first glance.

hendrikboom3 avatar Nov 25 '18 15:11 hendrikboom3

Interesting, thanks. I hadn't heard of it before.

For the macros, I was thinking of something in-language to compensate for the lack of rules. Something like can-move(?A) = !asleep(?A),!unconscious(?A),!tied-down(?A), expanded before the scenario runs, just so you don't have to repeat saying all those things every time you want to check if an actor can move.

But my need for it, in the novel I was generating, wasn't actually very pressing, and if it could be done with an external macro processor, that's even less reason to add macros to the language.

cpressey avatar Nov 28 '18 09:11 cpressey