Class AbstractEK9PhaseListener

java.lang.Object
org.ek9lang.antlr.EK9BaseListener
org.ek9lang.compiler.common.AbstractEK9PhaseListener
All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeListener, EK9Listener
Direct Known Subclasses:
DefinitionListener, ScopeStackConsistencyListener

public abstract class AbstractEK9PhaseListener extends EK9BaseListener
The abstract base on most antlr listeners. This class does little except ensure that the way ANTLR is designed we have to listen to events and push our constructed symbols into a stack and also pop them off again. As they are processed it records them in a more permanent manner. A stack is used to help build the aggregates and other constructs. But in the end they are all 'popped off' - our main permanent holding area is the parsedModule! But this code does pull symbols into other scopes, and also checks for exception only paths through code (to a limited static-analysis extent).