public override object VisitNumber(CurrencyComputerParser.NumberContext context) { try { var str = context.GetText(); return(decimal.Parse(str)); } catch (Exception e) { throw new Exception("TODO: some messages"); } }
public override object VisitNumber(CurrencyComputerParser.NumberContext context) { var str = context.GetText(); return(decimal.Parse(str)); }