4 ms·
I had a very similar revelation to the OP in the article. Coincidentally, I also happened to be writing semantic analysis for a compiler using the visitor patte
by exDM69 15y ago
I had a very similar revelation to the OP in the article. Coincidentally, I also happened to be writing semantic analysis for a compiler using the visitor pattern.
From this I can conclude two things:
- It's definitely the wrong choice to do abstract syntax tree traversal using the visitor pattern. But what would be a better choice? When using Java?
- Writing a compiler can be a life changing experience.
These days I call myself a recovering object oriented programmer.