Examples of using Prolog in English and their translations into Chinese
{-}
-
Political
-
Ecclesiastic
-
Programming
What is a prolog?
Prolog: You tell your program you want to be shot in the foot.
The most basic language is prolog.
PROLOG(acronym for PROgramming LOGic) is an example of a Logical Programming Language.
The two most common are LISP and PROLOG.
In many modern Prolog dialects and in first-order logic, a variable cannot be unified with a term that contains it;
A prototype Expert System in Prolog was implemented.
In four years' time, C will reach its 50th birthday,an anniversary also shared with PL/M and Prolog.
The approaches that used Lisp and Prolog are in this group, as well as the SemanticWeb, RDF, and OWL.
Note that in the terminology of first-order logic,an atom is a basic proposition and is unified similarly to a Prolog term.
And if you don't know Prolog, or the predicate logic, it's very difficult to discover this way of thinking by yourself.
Comprehensive set of built-in predicates, covering Part 1 of the ISO standard, the de-facto Edinburgh Prolog standard and important parts of Quintus and SICStus Prolog.
Prolog tried to do something similar to SQL, except the database could contain logical statements such as“If A then B”.
I' ve never- not even- realized that by skip the prolog I was missing some information I needed to get through the whole thing;
Prolog is one of the two classic languages for symbolic artificial intelligence programming(the other classic language being Lisp).
Tremendous effort has gone into improving Prolog implementations, most of which are based on the Warren Abstract Machine(WAM).
Prolog is known to be a rule-based and declarative programming language because it comprises of rules and facts that express its AI coding language.
Loads WordNet 3.0 in 14 seconds from the Prolog source or 0.4 seconds from quick load file format(see qcompile/1).
Any Prolog programmers will want to check out The First 10 Prolog Programming Contests(free PDF e-book) and Ninety-Nine Prolog Problems.
Burt taught himself the programming language Prolog because it can be used to represent the kind of logic-based rules that define data regulations.
Prolog has its roots in first-order logic, a formal logic, and unlike many other programming languages, Prolog is declarative.
Finally, we describe the PRO- PROLOG interpreter as a Horn clause inferencing system, and compare PROLOG computing to full logic programming.
Prolog is a logic-based language, allowing you to make logical assertions, define heuristics for validating those assertions, and make decisions based on them.
For instance, in Prolog, it is easier to express spatial relationships between object, like green triangle is behind the blue one.
Prolog was developed at the University of Marseilles, France by Alain Colmerauer in the early 1970s as a tool for PROgramming in LOGic.
In many modern Prolog dialects and in first-order logic, a variable cannot be unified with a term that contains it; this is the so-called occurs check.
Prolog supports many"extra-logical" or"non-logical" features, including cut, assert and retract, projection of variables for arithmetic using is, and so forth.
In short, both miniKanren and Prolog have interesting features, implementations, and uses, and I think it is worth learning the ideas from both languages.
Despite prolog old age, it has not been fully standardized in that some features differ in implementation making the work of the developer cumbersome.