rename LogicQL->LogiQL
This commit is contained in:
parent
505d089767
commit
fd2191e76e
5 changed files with 7 additions and 7 deletions
16
demo/kitchen-sink/docs/logiql.logic
Normal file
16
demo/kitchen-sink/docs/logiql.logic
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
// ancestors
|
||||
parentof("douglas", "john").
|
||||
parentof("john", "bob").
|
||||
parentof("bob", "ebbon").
|
||||
|
||||
parentof("douglas", "jane").
|
||||
parentof("jane", "jan").
|
||||
|
||||
ancestorof(A, B) <- parentof(A, B).
|
||||
ancestorof(A, C) <- ancestorof(A, B), parentof(B,C).
|
||||
|
||||
grandparentof(A, B) <- parentof(A, C), parentof(C, B).
|
||||
|
||||
cousins(A,B) <- grandparentof(C,A), grandparentof(C,B).
|
||||
|
||||
parentof[`arg](A, B) -> int[32](A), !string(B).
|
||||
Loading…
Add table
Add a link
Reference in a new issue