Custom actions are implemented by calling Antlr4.Runtime.Recognizer{Symbol, ATNInterpreter}.Action(Antlr4.Runtime.RuleContext, int, int) with the appropriate rule and action indexes.
public void Execute(Lexer lexer) { lexer.Action(null, ruleIndex, actionIndex); }