예제 #1
0
 public override void ExitNot_op(lisp_gammarParser.Not_opContext context)
 {
     if (!_FuncExp)
     {
         if (!_IfExp)
         {
             bool a = false;
             if (context.GetChild(2).GetText()[0] == '#')
             {
                 a = (context.GetChild(2).GetText() == "#t");
             }
             else
             {
                 ParsingMessage.ErrorCode(4, context);
             }
             ClearCtx(context);
             AddCtx(context, (!a) ? "#t" : "#f");
         }
     }
     base.ExitNot_op(context);
 }
 /// <summary>
 /// Exit a parse tree produced by <see cref="lisp_gammarParser.not_op"/>.
 /// <para>The default implementation does nothing.</para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 public virtual void ExitNot_op([NotNull] lisp_gammarParser.Not_opContext context)
 {
 }
예제 #3
0
 /// <summary>
 /// Visit a parse tree produced by <see cref="lisp_gammarParser.not_op"/>.
 /// <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 VisitNot_op([NotNull] lisp_gammarParser.Not_opContext context)
 {
     return(VisitChildren(context));
 }