@@ -137,6 +137,7 @@ You need **OCaml >= 4.02** with [dune](https://github.com/ocaml/dune). Just type
137
137
138
138
``` sh non-deterministic
139
139
$ make
140
+ $ cp src/bottom_up_cli/datalog_cli.exe ./datalog_cli
140
141
```
141
142
142
143
## How to use it
@@ -147,7 +148,7 @@ There are two ways to use `datalog`:
147
148
installed it on your system; just type in
148
149
149
150
``` sh non-deterministic
150
- $ datalog_cli < problem_file>
151
+ $ ./src/ datalog_cli < problem_file>
151
152
```
152
153
153
154
- The libraries ` datalog ` , ` datalog.top_down ` , ` datalog.unix ` , ` datalog.caml_interface ` .
@@ -179,7 +180,7 @@ edge(7, 8).
179
180
edge(8, 9).
180
181
edge(9, 10).
181
182
edge(10, 7).
182
- $ datalog_cli tests/clique10.pl --pattern ' same_clique(1,X)'
183
+ $ ./ datalog_cli tests/clique10.pl --pattern ' same_clique(1,X)'
183
184
% start datalog
184
185
% parse file tests/clique10.pl
185
186
% process 15 clauses
@@ -198,7 +199,7 @@ $ datalog_cli tests/clique10.pl --pattern 'same_clique(1,X)'
198
199
Or
199
200
200
201
``` sh
201
- $ datalog_cli tests/graph200.pl --size --sum reachable
202
+ $ ./ datalog_cli tests/graph200.pl --size --sum reachable
202
203
% start datalog
203
204
% parse file tests/graph200.pl
204
205
% process 205 clauses
@@ -212,7 +213,7 @@ $ datalog_cli tests/graph200.pl --size --sum reachable
212
213
Or
213
214
214
215
``` sh
215
- $ datalog_cli tests/graph10.pl --goal ' increasing(3,7)' --pattern ' increasing(3,X)'
216
+ $ ./ datalog_cli tests/graph10.pl --goal ' increasing(3,7)' --pattern ' increasing(3,X)'
216
217
% start datalog
217
218
% parse file tests/graph10.pl
218
219
% process 15 clauses
@@ -232,7 +233,7 @@ $ datalog_cli tests/graph10.pl --goal 'increasing(3,7)' --pattern 'increasing(3,
232
233
Or
233
234
234
235
``` sh
235
- $ datalog_cli tests/small.pl --query ' (X,Y) :- ancestor(X,john), father(X,Y), not mother(Y,Z)'
236
+ $ ./ datalog_cli tests/small.pl --query ' (X,Y) :- ancestor(X,john), father(X,Y), not mother(Y,Z)'
236
237
% start datalog
237
238
% parse file tests/small.pl
238
239
% process 12 clauses
0 commit comments