0
What is an interpretion???can anyone explain the diff b/w compiler and interpreter
6 Antworten
+ 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.
+ 2
Paul sorry I donno. I just said what I know 😸
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.
0
okk fyn
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
0
Ayan W41k3r [Exams] No problem and it was nice you mentioned Repl :)