38 lines
1.2 KiB
C#
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";
|
|
}
|