Furball-Engine_Furball_Volpe/Furball.Volpe/LexicalAnalysis/CharExtensions.cs
namespace Furball.Volpe.LexicalAnalysis; 

public static class CharExtensions
{
    public static bool IsVolpeOperator(this char character)
    {
        return character is ('+' or '-' or '/' or '*' or '!' or '&' or '|' or '~' or '^' or '.' or '='
                   or '>' or '<' or ':');
    }

    public static bool IsVolpeDigit(this char character)
    {
        return character is >= '0' and <= '9';
    }

    public static bool CanBeInVolpeLiteral(this char character)
    {
        return character is
                   ((>= 'ยก' or (>= 'a' and <= 'z') or (>= '@' and <= 'Z') or (>= '0' and <= '9'))
                   or '_' and not '$');
    }
}