How to write the Visitor Pattern for Abstract Syntax Tree in Python?
How to write the Visitor Pattern for Abstract Syntax Tree in Python? Question: My collegue suggested me to write a visitor pattern to navigate the AST. Can anyone tell me more how would I start writing it? As far as I understand, each Node in AST would have visit() method (?) that would somehow get …
Total answers: 3