antlr/antlr4 — Issue #10: Split parser / tree listener interfaces
Author: parrt
Created: 2012-02-12 18:04:45+00:00
State: open
Labels: code-gen, runtime, trees-contexts

we need to generate 2 interfaces:

interface XParserListener {
void enterR(); // if needs ctx, can get from parser.getCurrentContext()
void exit(RContext ctx);
…
}

interface XTreeListener {
void enterR(RContext ctx);
void exit(RContext ctx);
…
}

means we need both XBaseParserListener, XBaseTreeListener, right?

Starting to think we need a buffet menu of options:

-parser-listener (on by default?)
-tree-listener
-tree-visitor

can have none or all i suppose.