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

Add support for higher-order Prolog #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

octurion
Copy link

This PR adds support for partial application and higher-order variables. The entirety of type-checking is done during runtime.

Examples are given in pl/hopes.

| App WamAddress -- APP n
| AppStr Int -- APPSTR m
| Hov WamAddress -- HOV m
| Hovaty WamAddress -- HOVATY n
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am guessing that there is a mistake in Hovaty WamAddress since the parameter of Hovaty corresponds to the number of arguments of the tuple if I am not mistaken. It should be Hovaty Int and since WamAddress is a type alias to Int (for now) the change should not cause any problem.

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.

None yet

2 participants