What language do they build other languages with?

后端 未结 8 1123
青春惊慌失措
青春惊慌失措 2021-01-31 09:31

What language is used to build low level languages like c++ and java?

How could you build the first language with no language?

8条回答
  •  别跟我提以往
    2021-01-31 10:22

    I think the key insight to your question is the notion of boot-strapping. The link will describe how a language can self-host.

    It is relatively common in the Lisp community. e.g. Some university classes will use Scheme to write a language subset (this is not a compiler class activity).

    That said, many compilers are written in other languages. For example, PUGS (Perl 6) is written in Haskell. Ruby is available in C or Java (as JRuby).

提交回复
热议问题