interface work

This commit is contained in:
Vitor Santos Costa
2016-09-27 12:28:54 -05:00
parent e39b1e0127
commit 97350da9bd
19 changed files with 1252 additions and 2441 deletions

View File

@@ -20,16 +20,15 @@ class T(tuple):
return str(self.name) + str(self.tuple)
def query_prolog(engine, s):
def answer( q ):
def answer(q):
try:
return q.next()
except Exception as e:
print( e.args[1] )
print(e.args[1])
return False
q = engine.query(s)
ask = True
while answer(q):