home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.compilers      Compiler construction, theory, etc. (Mod      2,753 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 1,083 of 2,753   
   Hans Aberg to James Sison   
   Re: prolog and backtracking   
   24 Sep 07 18:12:40   
   
   From: haberg@math.su.se   
      
    James Sison  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   
   , 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.   
      
     Hans Aberg   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca