Defining common behaviour for antlr4 visit methods
I have an antlr4 grammar with dozens of rules. There’s code I want to run as the Visitor
enters each node, i.e. shared behaviour across all node types. For example, I might have a grammar like this…