OILS
/
deps
/
source.medo
/
souffle
/ smoke-test.dl
View on Github
|
oilshell.org
10 lines, 7 significant
1
.decl edge(u: number, v: number)
2
3
edge(1, 2).
4
edge(2, 3).
5
6
.decl path(u: number, v: number)
7
.output path(filename="path.tsv")
8
9
path(u, v) :- edge(u, v).
10
path(u, w) :- edge(u, v), path(v, w).