DEV Community

Discussion on: Explain the difference between compiler and interpreter like I'm five

Collapse
 
ashertoqeer profile image
Asher Toqeer

Hey there, let's play a game
Here is a paper, You need to open it, there are some lines written on the paper, you have to read one line at a time and act as it says. For example:

Open eyes (open your eyes)
Smile (simple)
Say Hi (say Hi)
Close eyes (close your eyes)

Just one line at a time, one by one, got it? You are an interpreter

Let's play another game, here is a paper, read it and remember all of the acts, then give that paper back to me.
Now act as the paper said
You are now a compiler