Hello
Thank you for your response. I appreciate that the visitors and the listeners are running after the parsing, maybe bad use of terminology on mypart but what I am trying to understand is the operation of the existing functions.
At the moment, I am using the following code to visit children prior to processing a node's data:
U=[]
for aChild in ctx.getChildren():
if not type(aChild) is antlr4.tree.Tree.TerminalNodeImpl:
U.append(self.visit(aChild))
return U
My assumption though was that this is exactly what visitChildren does. But it doesn't work this way.
So my question is, shall I continue visiting nodes in this way or is there a "proper" use of the visitChildren function?