logoalt Hacker News

kevthecoder01/15/20262 repliesview on HN

The bytecode interpreter in the second half of the book doesn't use the visitor pattern.


Replies

HarHarVeryFunny01/15/2026

No, but his first "Tree-walk Interpreter" does - he builds an AST then uses the visitor pattern to interpret it.

https://craftinginterpreters.com/representing-code.html#work...

show 1 reply
jokoon01/15/2026

the parser does

show 2 replies