Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A macro processor #10

Open
hendrikboom3 opened this issue Nov 25, 2018 · 1 comment
Open

A macro processor #10

hendrikboom3 opened this issue Nov 25, 2018 · 1 comment

Comments

@hendrikboom3
Copy link

hendrikboom3 commented Nov 25, 2018

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.

@cpressey
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants