Get ast nodes using the default walker

12 views
Skip to first unread message

JustARandomCoder

unread,
Apr 30, 2024, 11:50:55 AMApr 30
to antlr-discussion
Here in the Go grammer in the production rule - returnStmt, I want to get the expressionList node or the node in the tree which has it, when walking the tree using the Listener and ParseTreeWalkerDefault.Walk(). In the context argument in the method, variables like "alias" in importSpec can be accessed, but how would i get this
Reply all
Reply to author
Forward
0 new messages