The Basic visitor classes are mostly for demonstrative purposes, and follow the standard ANTLR runtime visitor pattern. With the other visitors we either provide our visitChildren method or iterate through the children objects of each object ourselves. This way, we have control of the order in which each child is visited. However, with the Basic visitor we don’t do that - we leave the default visiting pattern take control of the execution flow. If you are going to be developing a visitor for a Describe parser, you will do well to check out this visitor, as well as the Log visitor to begin with, as they use different design.

That aside, this visitor, much like the Log Visitor, logs text to the console.

Basic Visitor for Describe 0.6
Basic Visitor for Describe 0.7
Basic Visitor for Describe 0.8
Basic Visitor for Describe 0.9
Basic Visitor for Describe 1.0
Basic Visitor for Describe 1.1


Back