3 ms·
How do you do one-symbol-lookahead with things like function hoisting? https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function#Fu
by timdorr 9y ago
How do you do one-symbol-lookahead with things like function hoisting?
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function#Function_declaration_hoisting https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
- c-smile 9y agoNot clear how hoisting is related to parsing really ... Compiler builds table of variables (registers map) of the function to generate proper bytecodes to access registers. At this point hoisting has some effect. But it has nothing with parse/AST phase.