M
Matt
For example, we want to produce a new language called NewLang. When we
implement
the compiler of NewLang, we should use languages other than NewLang.
Correct?
But I heard Java is implemented in C/C++. More specifically, does it
mean
the Java compiler is written in C/C++? But the Java API is written in
Java itself.
This is the confusing part.
How about C++? I always heard people saying C++ is written in C++
itself. I think it
means C++ libaries are written in C++. But C++ compiler is written in
pure C.
Is that correct?
My conclusion is that a language's compiler should be written in
another language.
But a language's libraries can be written in its own language. Then it
makes the
implementation language definition little bit tricky.
Please advise and discuss. thanks!!
implement
the compiler of NewLang, we should use languages other than NewLang.
Correct?
But I heard Java is implemented in C/C++. More specifically, does it
mean
the Java compiler is written in C/C++? But the Java API is written in
Java itself.
This is the confusing part.
How about C++? I always heard people saying C++ is written in C++
itself. I think it
means C++ libaries are written in C++. But C++ compiler is written in
pure C.
Is that correct?
My conclusion is that a language's compiler should be written in
another language.
But a language's libraries can be written in its own language. Then it
makes the
implementation language definition little bit tricky.
Please advise and discuss. thanks!!