/// <summary> /// Exit a parse tree produced by <see cref="BibleReferenceParser.verse"/>. /// <para>The default implementation does nothing.</para> /// </summary> /// <param name="context">The parse tree.</param> public override void ExitVerse([NotNull] BibleReferenceParser.Grammar.Generated.BibleReferenceParser.VerseContext context) { }
/// <summary> /// Enter a parse tree produced by <see cref="BibleReferenceParser.verse"/>. /// <para>The default implementation does nothing.</para> /// </summary> /// <param name="context">The parse tree.</param> public override void EnterVerse([NotNull] BibleReferenceParser.Grammar.Generated.BibleReferenceParser.VerseContext context) { ReferenceBuilder.SetVerse(int.Parse(context.GetChild(0).GetText())); }