O'Reilly logo
  • Ravinder Matte thinks this is interesting:

we could write code by hand to perform a depth-first walk of the tree. We could perform whatever actions we wanted as we discovered and finished nodes.

From

Cover of The Definitive ANTLR 4 Reference, 2nd Edition

Note

ParseTreeWalker.DEFAULT.walk