antlr/antlr4 — Issue #30: add rule context object factory?
Author: parrt
Created: 2012-03-01 01:14:06+00:00
State: open
Labels: comp:runtime, type:feature:1

public static class LExprBaseContextFactory {
public SContext createS(ParserRuleContext parent, int state) {
return new SContext(parent, state);
}
public EContext createE(ParserRuleContext parent, int state, int _p) {
return new EContext(parent, state, _p);
}
public MultContext createMult(EContext parent) { return new MultContext(parent); }
public AddContext createAdd(EContext parent) { return new AddContext(parent); }
public IntContext createInt(EContext parent) { return new IntContext(parent); }
}