0

What is an interpretion???can anyone explain the diff b/w compiler and interpreter

5th Jun 2019, 12:42 PM
Mounika Geddam
Mounika Geddam - avatar
6 ответов
+ 2
Sololearn has a code playground. Code playground is a compiler. It runs your code after writing the whole code. But an interpreter runs your code after you write just one line and press enter. An interpreter doesn't have buttons like compiler 😁 enter key is everything on a interpreter. Eg : CMD/PowerShell/Terminal/Termux >>> print('Hope you understand.') Hope you understand.
5th Jun 2019, 1:00 PM
Ayan Fox
Ayan Fox - avatar
+ 2
Paul sorry I donno. I just said what I know 😸
5th Jun 2019, 1:25 PM
Ayan Fox
Ayan Fox - avatar
0
A compiler will read your entire program and then generate a code that your machine can read and execute. Thus before execution, you'll know if there is major problem in your program (this is a simplified view). With an interpreter, the code read is immediately executed (again, this is a simplified view). Thus, you could have a running code for the first 100 lines of code and then a crash because you had a typo on line 101.
5th Jun 2019, 12:55 PM
Paul
0
okk fyn
5th Jun 2019, 12:56 PM
Mounika Geddam
Mounika Geddam - avatar
0
Ayan W41k3r [Exams] What you describe is a Repl (read-eval-print-loop) which is a different concept. Haskell has a Repl but it's a compiled language
5th Jun 2019, 1:13 PM
Paul
0
Ayan W41k3r [Exams] No problem and it was nice you mentioned Repl :)
5th Jun 2019, 1:26 PM
Paul