add highlighting for LogicBlox
This commit is contained in:
parent
bc7d8a2ab2
commit
2fc8ffcc38
5 changed files with 204 additions and 0 deletions
16
demo/kitchen-sink/docs/logicblox.logic
Normal file
16
demo/kitchen-sink/docs/logicblox.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