Re: prolog with python

2009-12-03 Thread Sandy
you can also look at swi-prolog and python bridge: pyswip. I am using it and its very nice though it has some issues with 64-bit os. http://code.google.com/p/pyswip/ - dksr On Dec 3, 2:56 am, Chris Rebert wrote: > On Wed, Dec 2, 2009 at 6:47 PM, William Heath wrote: > > Hi All, > > > I have t

Re: prolog with python

2009-12-02 Thread Chris Rebert
On Wed, Dec 2, 2009 at 6:47 PM, William Heath wrote: > Hi All, > > I have the following prolog program that I would really like to be able to > run in python in some elegant way: >From googling: http://pyke.sourceforge.net/ http://code.activestate.com/recipes/303057/ Cheers, Chris -- http://blo

prolog with python

2009-12-02 Thread William Heath
Hi All, I have the following prolog program that I would really like to be able to run in python in some elegant way: q00(X01, R):- write('Are you over 80?'), read(INPUT), write(''), q11(INPUT, R). q11(X11, R):- X11=y, write(' You are passed the hardest year'), !. q00(X01, R):- write('You are