You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the goal is to extend the syntax with a qname keyword
this keyword works similarly to uvar during matching
the idea is shortcut: p X :- name X into p (qname X)
this also gives benefit to mutual exclusion checker:
qname is different from any other rigid constructors
It is for quantified names.
I don't like it, and should be changed
In this first setup i didn't want to make collision with the already existsing name predicate
I think we can make it collide. I did not want to use var because "variable" is very generic, not necessarily unification. But I don't see any confusion with name. Also, I should have added a uvar builtin predicate, synonym of var.
make tests gives me the following error test not available, some build dependencies are missing
I tried the same command on master and get the same error.
This same error is thrown from launching the file ./tests/test.exe
EDIT: I found the problem, I should have installed ANSITerminal in my opam. With this dep it now works.
Should not opam install . -deps-only install this dep ?
I think we can make it collide. I did not want to use var because "variable" is very generic, not necessarily unification. But I don't see any confusion with name. Also, I should have added a uvar builtin predicate, synonym of var.
Going back to your comment, I'm not sure the typechecker is happy with this choice,
var is a predicate with at least one argument. While uvar can be used with 0 arguments.
Is this a source of problem?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
the goal is to extend the syntax with a qname keyword
this keyword works similarly to uvar during matching
the idea is shortcut:
p X :- name Xintop (qname X)this also gives benefit to mutual exclusion checker:
qname is different from any other rigid constructors