Пример #1
0
 /* linecomment */
 public override Result VisitSt_linecomment([NotNull] STGrammerParser.St_linecommentContext context)
 {
     // 適当実装
     return(new Result(true, context.GetText().Replace("//", "'")));
 }
Пример #2
0
 /// <summary>
 /// Visit a parse tree produced by the <c>st_linecomment</c>
 /// labeled alternative in <see cref="STGrammerParser.block"/>.
 /// <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 VisitSt_linecomment([NotNull] STGrammerParser.St_linecommentContext context)
 {
     return(VisitChildren(context));
 }