The bytecode interpreter in the second half of the book doesn't use the visitor pattern.
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...
the parser does
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...