|prolog and backtracking email@example.com (James Sison) (2007-09-22)|
|Re: prolog and backtracking firstname.lastname@example.org (Markus Triska) (2007-09-24)|
|Re: prolog and backtracking email@example.com (2007-09-24)|
|From:||firstname.lastname@example.org (Hans Aberg)|
|Date:||Mon, 24 Sep 2007 18:12:40 GMT|
|Posted-Date:||24 Sep 2007 14:15:49 EDT|
James Sison <email@example.com> wrote:
> I'M Trying To Write This Prolog Interpreter For A Subset Of The Prolog
> Grammar In Java And I Encountered Problems With Bakctracking.
There is a MiniProlog that comes with the Haskell interpreter Hugs
<http://haskell.org/hugs/>, which is OO, and therefore easy
to translate into languages like C++ and Java. For the Prolog interactive
query style, it relies on laze evaluation, so that goes out of the window
when translated into a strict language. And I recall the cut was wrongly
implemented (but easily fixed).
But you might take a look at that one, to see how this stuff is implemented.
Return to the
Search the comp.compilers archives again.