Example usage for org.antlr.v4.runtime ParserRuleContext exitRule

List of usage examples for org.antlr.v4.runtime ParserRuleContext exitRule

Introduction

In this page you can find the example usage for org.antlr.v4.runtime ParserRuleContext exitRule.

Prototype

public void exitRule(ParseTreeListener listener) 

Source Link

Usage

From source file:parser.walkers.SnapTreeWalker.java

License:Open Source License

protected void exitRule(ParseTreeListener listener, RuleNode r) {
    ParserRuleContext ctx = (ParserRuleContext) r.getRuleContext();
    ctx.exitRule(listener);
    listener.exitEveryRule(ctx);/*from   w w  w .j  a va2s . c o  m*/
    GlobalInfo info = GlobalInfo.getInstance();
    info.exitRuleSetup();
}