Avoid complaining from strlen
`
This commit is contained in:
14
example.py
Normal file
14
example.py
Normal file
@@ -0,0 +1,14 @@
|
||||
# python commands
|
||||
|
||||
import yap
|
||||
|
||||
engine = yap.YAPEngine();
|
||||
# engine = yap.YAPEngine(yap.YAPParams());
|
||||
|
||||
while True:
|
||||
s = raw_input("Prolog Query: ")
|
||||
q = engine.query(s)
|
||||
print "success"
|
||||
while q.next():
|
||||
ar = q.namedVars();
|
||||
print ar
|
||||
Reference in New Issue
Block a user