Writing An Interpreter In Go by Thorsten Ball

Writing An Interpreter In Go by Thorsten Ball

Author:Thorsten Ball [Ball, Thorsten]
Language: eng
Format: azw3, pdf
Published: 2016-12-10T16:00:00+00:00


Evaluation

3.1 - Giving Meaning to Symbols

We are finally here. Evaluation. The E in REPL and the last thing an interpreter has to do when processing source code. This is where code becomes meaningful. Without evaluation an expression like 1 + 2 is just a series of characters, tokens, or a tree structure that represents this expression. It doesn't mean anything. Evaluated, of course, 1 + 2 becomes 3. 5 > 1 becomes true, 5 < 1 becomes false and puts("Hello World!") becomes the friendly message we all know.

The evaluation process of an interpreter defines how the programming language being interpreted works.

let num = 5; if (num) { return a; } else { return b; }



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.