Click here to Skip to main content
15,889,877 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: (untagged)
I am a programer for a few years now and I have learned a few programing languages (java,c,c++,python,assembly) but I have no idea how to create one. I want to learn how to create own from scratch, not based on some other existing language just by changing the commands. I want to create my own commands from zero and I want to learn how to create new commands that don't exist in any other language. Basically I want to know how could I create a language if there was no other language. Is there anyone that can help me?

What I have tried:

The only thing that I know about that is about parsers and lexers. I don't know much but from what I know they are used for doing something like that. But I think (I may be wrong) that they are not for exactly what I want, they are not for creating a completely new language. I don't know exactly how to use them, should I learn more about them?
Posted
Updated 11-May-20 7:23am
Comments
MadMyche 11-May-20 11:32am    
I think the title of your question pretty much says that this is not suitable for a Quick Answer forum

This question is impossible to answer, as it involves so many different aspects. You need to do a lot of research into language parsers which are used to break the program statements down. And after that things get really complicated as you then need to analyse each part on its own and in relation to the rest of the code in order to turn it into machine code. This is far from a trivial task, especially for a person working on their own. As mentioned ealier you will need to do a lot of research.
 
Share this answer
 
 
Share this answer
 
This is the book all us older programmers seemed to have read to understand how to create compilers.
Principles of Compiler Design by Aho and Ullman[^javascript:void(0)]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900