News for hackers. Stuff that matters.
Re:Step-by-step JavaScript interpreter, written in JavaScript by jaz303 on Thursday October 09, 2014 @06:51PM (#8435419)
It uses a small-step interpreter [1]. Rather than capturing the interpreter's state on the native call stack, small-step interpreters explicitly model said state using stacks of objects - one per active AST node - and environments. Because they're no longer bound to the stack of the implementation language, execution may be cycled, paused and resumed at will.

[1] http://matt.might.net/articles/writing-an-interpreter-substi...

There are no comments on this comment yet.