Prolog and evaluating expressions

James Sison <>
Thu, 4 Oct 2007 17:47:49 -0700 (PDT)

          From comp.compilers

Related articles
Prolog and evaluating expressions (James Sison) (2007-10-04)
Re: Prolog and evaluating expressions (Nils M Holm) (2007-10-05)
| List of all articles for this month |

From: James Sison <>
Newsgroups: comp.compilers
Date: Thu, 4 Oct 2007 17:47:49 -0700 (PDT)
Organization: Compilers Central
Keywords: prolog, question
Posted-Date: 04 Oct 2007 22:16:24 EDT

I'm trying to write this prolog interpreter but i encountered a
problem. Let's say i'm evaluating a rule and i found a possible
solution. How will i store my current position in the parse tree of
the rule if i'm going back to it when i backtrack? I'm thinking of
using a stack but then, i have no idea how to use it for this
application. Do you guys have any opinions on the matter?

Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.