How to create your own programming language? [closed]

-1

How to create your own programming language? How can I convert text to commands?

    
asked by anonymous 20.05.2017 / 05:13

1 answer

1

Livia, this depends on some things, but it works like this: 1 - You need to create a compiler that supports your language. It must recognize tokens (as reserved words), syntactic and semantic rules, and be able to generate the corresponding assembly. 2-To which OS you will create. Different OSs have different system calls for memory control, buses, etc ... 3-For what hardware you will create. Intel processors have different AMD routines, which are different from ARM processors.

Even simple language is not trivial to do. If it is some college work, a tool that helps is Yacc for Linux. There are some for Windows and Mac too, but I do not know to tell you.

    
20.05.2017 / 05:36