Crafting Interpreters (Robert Nystrom)
2 flashcards · Computer Science · by lakesare
Visually imagine compilers VS interpreters.
compiler - "code string" to "code string" When we say a language implementation “is a compiler”, we mean it translates source code to some other form but doesn’t execute it. The user has to take the resulting output and run it themselves.interpreter - "code string" to RUN Conversely, when we say an implementation “is an interpreter”, we mean it takes in source code and executes it immediately. It runs programs “from source”. Compiling is an implementation technique that involves translating a s…
Scanning
Syntax tree