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

Experiment with a macro system inspired by KL1 language. #2716

Draft
wants to merge 24 commits into
base: master
Choose a base branch
from

Conversation

hurufu
Copy link
Contributor

@hurufu hurufu commented Dec 17, 2024

Some time ago I've stumbled on some interesting historical code, and couldn't help myself but implement it for Scryer.

I still don't know how useful it might be, I barely see any really useful use-case, but at least it gives a sense of locality for goal expansion. By locality I mean that only explicitly marked terms are expanded.

More information about macro system in the comments in macros.pl. The easiest way to understand how it works it to check unit tests and compare them to macros_tests.stdout.

What do you think does it make sense?

@hurufu
Copy link
Contributor Author

hurufu commented Dec 19, 2024

Very strange, all tests pass on my local machine...

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

Successfully merging this pull request may close these issues.

1 participant