SyntaxFix
Write A Post
Hire A Developer
Questions
Depending on what you are doing in the switch statement, the correct answer is polymorphism. Just put a virtual function in the interface/base class and override for each node type.