ex-ex-01-math-interpreter/MathInterpreter/Core/Const.cs
github-classroom[bot] 4b1294b32d
Initial commit
2025-06-03 15:18:01 +00:00

38 lines
1.2 KiB
C#

namespace MathInterpreter.Core;
/// <summary>
/// Collection of constants used throughout the project
/// </summary>
public static class Const
{
/// <summary>
/// The plus (+) character used both as sign and operator
/// </summary>
public const char PlusSign = '+';
/// <summary>
/// The minus (-) character used both as sign and operator
/// </summary>
public const char MinusSign = '-';
/// <summary>
/// The times (*) character used as operator
/// </summary>
public const char TimesSign = '*';
/// <summary>
/// The division (/) character used as operator
/// </summary>
public const char DivSign = '/';
/// <summary>
/// The decimal separator (.) character used in numbers to separate the integral from the fractional part
/// </summary>
public const char DecimalSeparator = '.';
/// <summary>
/// An error message used when a part of the code is reached that should never be reached due to
/// previous, proper validation
/// </summary>
public const string ImpossibleErrorMessage = "If validation works as intended, this should never happen";
}