📜  编译器与解释器 - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:38.591000             🧑  作者: Mango

代码示例2
A high level language(A language a machine and a human can understand),
include languages such as Java, Perl, C++, PHP, etc. C++ and Java are
"Compiled languages" because when you run the code, the IDE(Integrated Develope
ment Environment) will take all your 
syntax/program and convert it into a low level language
(Language a machine can understand but not human) by taking everything at once,
put for example: Perl and PHP, they are known as "Interpreter languages", as 
the IDE will read and convert every code one by one into binary code.
It is like you have to read all your books, and you are a compiler. You would go
and get all the books to your room first and then only you start reading them. 
If you were an interpreter, you would go and get one book, come back, read it, 
then go back and get another book, one by one. Hope you liked the explaination!