claimr 0.1.0

Claimr — a constraint logic programming language, Prolog III inspired, parsed with a rustemo-generated LR parser.
1
2
3
4
5
6
7
8
9
likes(mary, father(john)).
parent(father(john), john).
grandparent(X, Z) :- parent(X, Y), parent(Y, Z).

{ age(father(john)) > 60 }.
older(X, Y) :- { age(X) > age(Y) }.

?- likes(mary, Who).
?- older(father(john), john), { age(john) >= 18 }.