23 lines
1.2 KiB
Markdown
23 lines
1.2 KiB
Markdown
|
---
|
|||
|
title: Interpreters
|
|||
|
localeTitle: 口译
|
|||
|
---
|
|||
|
## 口译
|
|||
|
|
|||
|
口译员是一种翻译。口译员采用源代码 - 用JavaScript,Python和其他语言编写的代码。然后他们将其翻译成计算机理解的代码。
|
|||
|
|
|||
|
这个翻译的代码是二进制代码。它只不过是1和0。解释器在运行二进制代码的同时逐行翻译源代码。程序将一直运行,直到解释器在源代码中发现错误。然后它将停止翻译/运行程序并标记错误。
|
|||
|
|
|||
|
为了进行比较,编译器将所有源代码一次转换为二进制代码,然后运行二进制代码。
|
|||
|
|
|||
|
#### 更多信息:
|
|||
|
|
|||
|
[Matt Adesanya的“A Gentler Programming to Programming”](https://medium.freecodecamp.org/a-gentler-introduction-to-programming-707453a79ee8)比较了编译器和解释器,并介绍了其他基本的编程概念。
|
|||
|
|
|||
|
一些口译语言:
|
|||
|
|
|||
|
* [蟒蛇](https://en.wikipedia.org/wiki/Python_(programming_language))
|
|||
|
* [JavaScript的](https://en.wikipedia.org/wiki/JavaScript)
|
|||
|
* [红宝石](https://en.wikipedia.org/wiki/Ruby_(programming_language))
|
|||
|
* [向前](https://en.wikipedia.org/wiki/Forth_(programming_language))
|
|||
|
* [Perl的](https://en.wikipedia.org/wiki/Perl)
|