⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 operand.cs

📁 编译原理语法分析和词法分析综合实验: 源程序、可执行程序、测试程序文件、程序运行说明文件、实验报告。
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;

namespace syn
{
    public class Operand
    {
        //private double _operand;
        private string _operand;

        public Operand(string word)
        {
            _operand = word;
            //TypeConverter converter = TypeDescriptor.GetConverter(this._operand);
            //this._operand = (double)converter.ConvertFromString(word);
            
        }

 
        //判断是否是操作数
        public static bool IsOperand(char ch)
        {
            if (char.IsLetterOrDigit(ch) || ch == '.'  || ch =='_')
                return true;
            else
                return false;
        }

        public override string ToString()
        {
            return this._operand.ToString();
        }

    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -