Introduction To Turbo Prolog

What is Prolog?

To many computer adventurers,Prolog  is the magical door of programming languages. The name turbo prolog was taken from the phrase”programming logic“.The language was originally developed in 1972 by Alin Colmerauer and P.turbo prolog at the University of Marseilles in France.

 A short History of Prolog:

During the 1970s prolog become popular in Europe for  artificial intelligence applications. In the United States,however, prolog remained a relatively minor computer languages.In the United States researchers preferred  the LIPS languages for artificial intelligence. That’s why LIPS was considered a more powerful languages for these applications, though it was more difficult to learn and use  than prolog.

How Prolog is Different:

Almost all languages developed for the computer during the last few decades are known generically as procedural languages.FORTRAN,COBOL,C,BASIC, and Pascal are all examples of procedural languages. An algorithm or procedure ,must first be defined to solve the problem at hand. A program is then written using the procedural language to implement the procedure.

Developing programs with prolog is dramatically different. Infact if you have  programmed in conventional languages and try to learn prolog,you will find you must go through an unlearning process before you can become proficient in prolog. Turbo prolog,like other implementations of prolog, is an object oriented language.It uses no procedures and essentially no program. prolog uses only data about object and their relationships. prolog also emphasizes symbolic processing.

Applications Of Prolog:

Prolog is useful for almost any application that requires formal reasoning.This includes applications in expert systems,natural languages processing,robotics and gaming and simulations.

Features of Turbo prolog:

Turbo Prolog is a Prolog compiler developed and marketed by Borland International for  the IBM PC and compatible computers.

Turbo prolog offers the following features:

1.You can compile stand-alone programs that will execute on a machine that is not running Turbo prolog.

2.A full complement of standard predicates for many functions such as string operations,random file access,cursor control,graphics, windowing and sound are available.

3.A Functional interface to other languages is provided,allowing procedural language support to be added to any prolog system.

4.Declare variables are used to provide more secure development control.

5.Both integer and real(floating-point) arithmetic are provided.

6. An integrated editor is provided,making program development,compilation and debugging very easy.

Limitation of turbo prolog:

1.Turbo prolog in some ways the structural aspect of the procedural languages.

2.The variable declaration requirement and the division of the program into sections impose some limitation on Turbo prolog symbolic processing that do not exist for more traditional prolog languages.

Image source: