2023-08-24 20:06:29 +02:00
|
|
|
* ob-pasp
|
|
|
|
Org-Babel mode to execute Clingo Potassco code within Org-mode
|
|
|
|
|
|
|
|
#+begin_src pasp
|
|
|
|
child(C, P) :- parent(P, C).
|
|
|
|
parent(vader, luke).
|
|
|
|
#show child/2.
|
|
|
|
#+end_src
|
|
|
|
|
|
|
|
#+RESULTS:
|
|
|
|
#+begin_example
|
|
|
|
clingo version 5.6.2
|
2023-08-24 20:11:37 +02:00
|
|
|
Reading from /tmp/babel-kEapMk/clingo-4cyjcS
|
2023-08-24 20:06:29 +02:00
|
|
|
Solving...
|
|
|
|
Answer: 1
|
|
|
|
child(luke,vader)
|
|
|
|
SATISFIABLE
|
|
|
|
|
|
|
|
Models : 1
|
|
|
|
Calls : 1
|
|
|
|
Time : 0.000s (Solving: 0.00s 1st Model: 0.00s Unsat: 0.00s)
|
|
|
|
CPU Time : 0.000s
|
|
|
|
#+end_example
|