We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Current (incorrect) behaviour when the predicate name is the same as an infix operator:
?- X = +(1,1). Error parsing query: Expected . but got: ,(1, 1) after: ?-(=(X, +)) ?-X = +(1,1). ^
Current (incorrect) behaviour when the predicate name is not the same as an infix operator:
?- X = ~(1,1). Error parsing query: invalid command: ~( ?-X = ~(1,1). ^
Correct behaviour:
?- X = +(1, 1). X = 1 + 1 yes (0 ms)
Note: it does currently work if the predicate name is quoted (e.g. ?- X = '+'(1,1).).
?- X = '+'(1,1).
The text was updated successfully, but these errors were encountered:
9cc3126
Previous commit deals with queries of form ?- X = ~(1,1). (i.e. where predicate name is not also the name of an infix operator).
?- X = ~(1,1).
Reopening as still work required to parse queries like ?- X = +(1,1).
?- X = +(1,1).
Sorry, something went wrong.
f249847
code to parse Prolog syntax - resolves #36
1937540
s-webber
No branches or pull requests
Current (incorrect) behaviour when the predicate name is the same as an infix operator:
Current (incorrect) behaviour when the predicate name is not the same as an infix operator:
Correct behaviour:
Note: it does currently work if the predicate name is quoted (e.g.
?- X = '+'(1,1).
).The text was updated successfully, but these errors were encountered: