rrors
This commit is contained in:
@@ -20,10 +20,19 @@ class T(tuple):
|
||||
return str(self.name) + str(self.tuple)
|
||||
|
||||
|
||||
|
||||
def query_prolog(engine, s):
|
||||
|
||||
def answer( q ):
|
||||
# try:
|
||||
return q.next()
|
||||
# except yap.YAPPythonException e:
|
||||
# print e.text()
|
||||
# return False
|
||||
|
||||
q = engine.query(s)
|
||||
ask = True
|
||||
while q.next():
|
||||
while answer(q):
|
||||
vs = q.namedVarsCopy()
|
||||
if vs:
|
||||
i = 0
|
||||
|
Reference in New Issue
Block a user