4 ms·
Ok, now I get what you mean. I was a bit confused, because it sounded like simply building an AST and processing that, which for me is the "obvious" form of an
by detaro 11y ago
Ok, now I get what you mean. I was a bit confused, because it sounded like simply building an AST and processing that, which for me is the "obvious" form of an interpreter (without the generating machine code)
- JoeAltmaier 11y agoAnother interpreter scheme: create a token form of the source, then pass over that constantly reinterpreting the tokens (re-parsing from tokens) and with massive switch() statements execute from a symbol table. That's the slowest, and how interpreters were done years ago.