How to create a new programming language?

Ever thought of how a programming language has been invented? Any thoughts of creating an own programming language? Do you have any idea like how it should be started?

Either compiler or interpreter should be created to introduce a new programming language. Compiler/Interpreter executes the program statements written in your programming language. Compiler transforms the programs to machine code from which your machine processor (like Intel) can execute it to get output (C Programming).Interpreter comes with it’s own virtual machine to interpret the code and for execution (Python, Java).

Creating an interpreter or compiler depends on your need for developing a programming language. Each has it’s own advantages. For example, dynamic typing is supported in Python interpreter, while compiler used in C executes code comparatively faster than Interpreter.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store