Samovar
Samovar copied to clipboard
A macro processor
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.
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.