11 ms·
That's pretty neat. Clearly some level of parsing needs to happen before run time, or else it couldn't even balance braces to know where the function body ends.
by normac 11y ago
That's pretty neat. Clearly some level of parsing needs to happen before run time, or else it couldn't even balance braces to know where the function body ends. So it must be that it parses the function body just enough to figure out where it starts and ends, then does a complete parse at runtime (probably building off the results from the first stage).
- munificent 11y ago> or else it couldn't even balance braces to know where the function body ends That's literally all it does. It tokenizes and counts braces.