/// <summary>
 /// Visit a parse tree produced by <see cref="ANTLRv4Parser.lexerAltList"/>.
 /// <para>
 /// The default implementation returns the result of calling <see cref="AbstractParseTreeVisitor{Result}.VisitChildren(IRuleNode)"/>
 /// on <paramref name="context"/>.
 /// </para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 /// <return>The visitor result.</return>
 public virtual Result VisitLexerAltList([NotNull] ANTLRv4Parser.LexerAltListContext context)
 {
     return(VisitChildren(context));
 }
 /// <summary>
 /// Exit a parse tree produced by <see cref="ANTLRv4Parser.lexerAltList"/>.
 /// <para>The default implementation does nothing.</para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 public virtual void ExitLexerAltList([NotNull] ANTLRv4Parser.LexerAltListContext context)
 {
 }
示例#3
0
 private DiagramItem Transform(ANTLRv4Parser.LexerAltListContext context)
 => context.lexerAlt().Length == 1
         ? Transform(context.lexerAlt()[0])
         : new Choice(0, context.lexerAlt().Select(Transform).Select(FSharpChoice <DiagramItem, string> .NewChoice1Of2));