+ 2

What is interpreter?

21st Jan 2018, 12:38 PM
Vikas Rathi
Vikas Rathi - avatar
3 odpowiedzi
0
An interpreter is a program that reads code one line at a time, decides what that line is trying to do, and gives the appropriate output. For example, if an interpreter read this: print(“hello”); Assuming that this is the correct syntax, here is what would happen: Keyword: print Parameters: “hello” Output: hello Then it goes on to repeat this process with the next line.
21st Jan 2018, 1:13 PM
Jacob Pembleton
Jacob Pembleton - avatar
+ 15
According to google: 1. a person who interprets, especially one who translates speech orally or into sign language. synonyms:translator, transcriber, transliterator, decipherer; More 2. COMPUTING a program that can analyse and execute a program line by line. It's basically like code playground here on SoloLearn. It analyses each line of your code and does what the code says it should do.
21st Jan 2018, 1:09 PM
Koketso Dithipe
Koketso Dithipe - avatar
- 1
It's also a pattern in OOP to handle syntax trees.
21st Jan 2018, 7:11 PM
1of3
1of3 - avatar