About 50 results
Open links in new tab
  1. What does \\+ mean in Prolog? - Stack Overflow

    Nov 10, 2009 · What does \+ mean in Prolog? Ask Question Asked 16 years, 5 months ago Modified 7 years, 11 months ago

  2. What is the difference between == and = in Prolog?

    May 25, 2015 · The = "operator" in Prolog is actually a predicate (with infix notation) =/2 that succeeds when the two terms are unified. Thus X = 2 or 2 = X amount to the same thing, a goal to unify X with 2.

  3. 'if' in prolog? - Stack Overflow

    May 17, 2010 · Is there a way to do an if in prolog, e.g. if a variable is 0, then to do some actions (write text to the terminal). An else isn't even needed, but I can't find any documentation of if.

  4. math - Prolog =:= operator - Stack Overflow

    Jan 25, 2021 · There are some special operators in Prolog, one of them is is, however, recently I came across the =:= operator and have no idea how it works. Can someone explain what this operator …

  5. How does Prolog technically work? What's under the hood?

    Feb 26, 2013 · What are the names of the algorithms and concepts used in Prolog? Logic programming Depth-first, backtracking search Unification See Sterling & Shapiro, The Art of Prolog (MIT Press) for …

  6. java - "Content is not allowed in prolog" when parsing perfectly valid ...

    Jun 13, 2010 · XML with and without the prolog With and without newlines With and without the "encoding=" attribute in the prolog Both newline styles With and without the chunking information …

  7. How to run prolog queries from within the prolog file in swi-prolog ...

    May 29, 2017 · If I have a prolog file defining the rules, and open it in a prolog terminal in windows, it loads the facts. However, then it shows the ?- prompt for me to manually type something. How can I …

  8. How add SWI-Prolog terminal in VSCode? - Stack Overflow

    Dec 13, 2020 · To create an SWI-Prolog terminal within Visual Studio Code, the process is the same as starting an SWI-Prolog terminal from a DOS prompt but you just start by creating an initial terminal in …

  9. Sorting a list in Prolog - Stack Overflow

    Dec 8, 2011 · Prolog has a unique way of handling things, especially since practically every operation involves recursion of one sort or another. One of the classic examples every language has is sorting …

  10. org.xml.sax.SAXParseException: Content is not allowed in prolog

    Feb 28, 2011 · 28 Try adding a space between the encoding="UTF-8" string in the prolog and the terminating ?>. In XML the prolog designates this bracket-question mark delimited element at the …