When someone writes a new programming language, what do they write it IN?

前端 未结 13 978
再見小時候
再見小時候 2020-12-07 06:57

Please excuse my ignorance. I\'m dabbling in PHP and getting my feet wet browsing SO, and feel compelled to ask a question that I\'ve been wondering about for years:

13条回答
  •  伪装坚强ぢ
    2020-12-07 07:42

    I too had this question few months back. And I read few articles and watched some videos which helped me to start writing my own language called soft. Its not complete yet but I learned a lot of stuff from this journey.

    Basic things you should know is how compiler works when it has to execute a code snippet. Compiler has a lot of phases like lexical analysis, semantic analyzer, AST(Abstract Syntax Tree) etc.

    What I did in my new language can be found here - http://www.singhajit.com/writing-a-new-programming-language/

    If you are writing a language for first time then all the best and you have a long way to go.

提交回复
热议问题