In this article we will be considering “How Programming Languages Are Made”. Programming languages is a language in which we use to interact with the computer and give it instructions, but how are these programming languages made? lets find out.
What Is A Programming Language?
A programming language is a vocabulary and set of grammatical rules for instructing a computer or computing device to perform specific tasks. The term programming language usually refers to high-level languages, such as BASIC, C, C++, COBOL, Java, FORTRAN, Ada, and Pascal.
Examples Of Programming Languages
Types Of Programming Language
There are five(5) major types of programming language that are commonly used, as listed below;
- Procedural programming languages
- Functional programming languages
- Object-oriented programming languages
- Scripting languages
- Logic programming languages
Procedural Programming Language
According to Wikipedia Procedural programming is a programming paradigm, derived from imperative programming, based on the concept of the procedure call. Procedures simply contain a series of computational steps to be carried out.
According to Hackr Procedural Programming may be the first programming paradigm that a new developer will learn. Fundamentally, the procedural code is the one that directly instructs a device on how to finish a task in logical steps.
Examples of Procedural Programming Language
- C and C++
Functional Programming Language
According Wikipedia In computer science, functional programming is a programming paradigm where programs are constructed by applying and composing functions.
Functional programming is a way of thinking about software construction by creating pure functions. It avoid concepts of shared state, mutable data observed in Object Oriented Programming.
Examples Of Functional Programming Language
Object-oriented programming languages
According to Wikipedia Object-oriented programming is a programming paradigm based on the concept of “objects”, which can contain data and code: data in the form of fields, and code, in the form of procedures. A common feature of objects is that procedures are attached to them and can access and modify the object’s data fields.
Object-oriented programming is a computer programming model that organizes software design around data, or objects, rather than functions and logic. An object can be defined as a data field that has unique attributes and behavior.
Examples Of Object-oriented programming languages
A scripting language allows programs to be accessed and utilized by other programs, as is the case with many modern apps and computer functions.
Examples Of Scripting Languages
Logic programming languages
According to Wikipedia logic programming is a 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.
Logic programming is a computer programming paradigm where program statements express facts and rules about problems within a system of formal logic.
How Programming Languages Are Made
- You have to come up with an idea of what you want your language to do.
- Programming languages are implemented by making one of two (2) types of programs, a compiler or an interpreter. They both accomplish the same thing, but a compiler translates the code of the language you write to code that a computer can read before your program runs (it outputs the binary file of your program), but an interpreter does it while your program runs.
- To make a programming language, you should design what you want it to look like, what features it should have, and exactly how you want it to work, and then you should implement a compiler and/or interpreter that can read your language. There’s lots of resources online about how to do that.