コード例 #1
0
 public override void ExitNegative([NotNull] NegativeContext context)
 {
     base.ExitNegative(context);
     Log("ExitNegative");
     if (phase == Phase.Building)
     {
         symbolTableCreator.ExitNegative(context);
     }
     else
     {
         symbolTableTraverser.ExitNegative(context);
         semanticErrorChecker.ExitNegative(context);
     }
 }
コード例 #2
0
    public NegativeContext negative()
    {
        NegativeContext _localctx = new NegativeContext(Context, State);

        EnterRule(_localctx, 10, RULE_negative);
        try {
            EnterOuterAlt(_localctx, 1);
            {
                State = 28; Match(NEGATIVE_NUMBER);
            }
        }
        catch (RecognitionException re) {
            _localctx.exception = re;
            ErrorHandler.ReportError(this, re);
            ErrorHandler.Recover(this, re);
        }
        finally {
            ExitRule();
        }
        return(_localctx);
    }