Beispiel #1
0
        private static SymbolType GetSymbolType(char value)
        {
            if (NumberFactory.CheckSymbol(value))
            {
                return(SymbolType.Number);
            }

            if (OperatorFactory.CheckSymbol(value))
            {
                return(SymbolType.Operator);
            }

            if (VariableFactory.CheckSymbol(value))
            {
                return(SymbolType.Identifier);
            }

            return(SymbolType.Undefined);
        }