Nice; it's also interesting that you use a definition of an (execution)
"context" for the "environment". This makes it similar to JS's execution
contexts. Though, IMO, "environment" fits better in this case, since
exactly it stores variables of a context, which in turn, may keep some
additional information required for code execution/evaluation (such as
e.g. `this` value in JS which is not a property of the environment and
isn't participate in scope-chain look-ups).
But in general -- yes, it's turned out also a good tutorial. Congrats!
P.S.: I'll also have to find the time for my next lecture which will
cover user-defined functions and blocks (that is sequences of expressions).
Dmitry.
On 29.08.2011 22:01, Ariya Hidayat wrote:
And the final part is published:
http://ariya.ofilabs.com/2011/08/math-expression-evaluator-in-javascript-part-3.html
This covers the last missing piece: the interpreter itself.
Best regards,
--
To view archived discussions from the original JSMentors Mailman list:
http://www.mail-archive.com/[email protected]/
To search via a non-Google archive, visit here:
http://www.mail-archive.com/[email protected]/
To unsubscribe from this group, send email to
[email protected]