communicate with Prolog engine in Prolog



Hello,

Interfaces from other programming languages L to Prolog usually enable
the L programmer to say something like "give me the next n solutions
and then wait for more instructions" to Prolog. Usually you can use in
L a Prolog query object which has a method "nextSolution()" or the
like. Can I do this in Prolog itself, too? In other words, can I write
a Prolog program that uses ";" just as a human would use ";" in a
Prolog shell?

Simon
.



Relevant Pages

  • Re: free (or free variant) of Prolog for newbie
    ... I can't really recommend GNU Prolog for this task, due to lack of a heap ... Visual Prolog is not Prolog. ... If you're willing to consider logic programming languages other than Prolog, ... I would strongly recommend Mercury. ...
    (comp.lang.prolog)
  • Re: GNU prolog is not so reliable as SWI-prolog
    ... nothing about programming languages. ... Please refrain from posting here ... But the SWI prolog just can do well without needing manipulation. ...
    (comp.lang.prolog)
  • Re: Joining an open source project based on PROLOG.
    ... Select 'Programming Languages' under the 'Browse by:' heading, then 'prolog' under the 'Programming Languages' heading. ... Prolog+CG - Prolog+CG is a Java implementation of Prolog with extensions implementing a subset of the Conceptual Graph theory of John Sowa. ...
    (comp.lang.prolog)
  • Re: Programming Newbie: Ruby or Java?
    ... I've had to learn Lisp/Scheme and Prolog. ... I would *really* like to believe that having experience with Lisp and Prolog will make you a better programmer, even if you are not using a functional or logic language. ... Spending some time with a variety of programming languages is important for the same reason one should learn a foreign language and read fictional literature: It helps you understand and imagine how things might otherwise be, which is essential for understanding what is. ... http://www.rubystuff.com - The Ruby Store for Ruby Stuff http://www.jamesbritt.com - Playing with Better Toys http://www.30secondrule.com - Building Better Tools ...
    (comp.lang.ruby)
  • Re: TCL/TK
    ... > other programming languages. ... Haskell, Prolog (for school), Java, a homebrew language for controlling ...
    (alt.comp.lang.learn.c-cpp)