What is The Difference Between Component Pascal And Prolog, Programming Languages
Component Pascal is a Procedural Programming Language, while Prolog is a Logic-based Programming Language
What are Procedural Programming Languages
Procedural (imperative) programming implies specifying the steps that the programs should take to reach to an intended state. A procedure is a group of statements that can be referenced through a procedure call. Procedures help in the reuse of code. Procedural programming makes the programs structured and easily traceable for program flow.
What are Logic-based Programming Languages
Logic programming is a type of programming paradigm which is largely based on formal logic. Any program written in a logic programming language is a set of sentences in logical form, expressing facts and rules about some problem domain. (Wikipedia)
While Component Pascal is a Procedural Programming Language, and Prolog is a Logic-based Programming Language
Let us now look at the difference between the two:
What is Component Pascal Programming Language – A brief synopsis
It is a programming language that seems to be related to Pascal, but is actually incompatible with it. It is actually a variant of Oberon-2. Lagoona is an experimental programming language that supports component-oriented programming, a paradigm of decomposing a system into logical or functional components. Michael Franz, a student of Niklaus Wirth developed Lagoona. Seneca, better known as Oberon-2 is an extension of the Oberon programming language.
What is Prolog Programming Language – A brief synopsis
It is a general-purpose programming language that supports logic programming and is often linked with artificial intelligence and computational linguistics. The language is declarative and the program logic is expressed in the form of relations. Mercury is a functional logic programming language that is based on Prolog. Strawberry Prolog is a dialect of Prolog, which is supposed to be easy to use. Visual Prolog is a strongly typed extension of Prolog that supports object-oriented programming. It is a compiled logic-based programming language.
Sources
A Complete List of Computer Programming Languages
Other Posts