Skip to content

Add support for higher-order Prolog#1

Open
octurion wants to merge 1 commit into
acharal:masterfrom
octurion:master
Open

Add support for higher-order Prolog#1
octurion wants to merge 1 commit into
acharal:masterfrom
octurion:master

Conversation

@octurion
Copy link
Copy Markdown

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.

Comment thread src/WAM/Runtime/Mem.hs
| App WamAddress -- APP n
| AppStr Int -- APPSTR m
| Hov WamAddress -- HOV m
| Hovaty WamAddress -- HOVATY n
Copy link
Copy Markdown
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.

2 participants