4 ms·
There's an in-between step, the "AST" (Abstract Syntax Tree), which is a better place to do this stuff than in the actual byte code. You still have context and
by deckiedan 12y ago
There's an in-between step, the "AST" (Abstract Syntax Tree), which is a better place to do this stuff than in the actual byte code. You still have context and a lot more useful information at that point, and can re-write the AST to use workarounds, etc.
That's the approach I took with https://github.com/danthedeckie/simpleeval https://github.com/danthedeckie/simpleeval .