一个用C#写的词法分析程序

猫咪香蒲

猫咪香蒲

2016-01-29 13:46

一个用C#写的词法分析程序,一个用C#写的词法分析程序

源文件内容:

using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;

(本文来源于图老师网站,更多请访问https://m.tulaoshi.com)

namespace wzy2
{
 /// <summary
 /// Form1 的摘要说明。
 /// </summary
 public class Form1 : System.Windows.Forms.Form
 {
  private System.Windows.Forms.Label label1;

  private System.Windows.Forms.Button button1;
  private System.Windows.Forms.Button button2;
  private System.Windows.Forms.Button button3;

  private System.Windows.Forms.RichTextBox richTextBox1;
  private System.Windows.Forms.RichTextBox richTextBox2;

  private System.Windows.Forms.OpenFileDialog openFileDialog1;
  private System.Windows.Forms.SaveFileDialog saveFileDialog1;
 
  /// <summary
  /// 必需的设计器变量。
  /// </summary
  private System.ComponentModel.Container components = null;

(本文来源于图老师网站,更多请访问https://m.tulaoshi.com)

  public Form1()
  {
   //
   // Windows 窗体设计器支持所必需的
   //
   InitializeComponent();

   //
   // TODO: 在 InitializeComponent 调用后添加任何构造函数代码
   //
  }

  /// <summary
  /// 清理所有正在使用的资源。
  /// </summary
  protected override void Dispose( bool disposing )
  {
   if( disposing )
   {
    if (components != null)
    {
     components.Dispose();
    }
   }
   base.Dispose( disposing );
  }

  #region Windows 窗体设计器生成的代码
  /// <summary
  /// 设计器支持所需的方法 - 不要使用代码编辑器修改
  /// 此方法的内容。
  /// </summary
  private void InitializeComponent()
  {
   this.label1 = new System.Windows.Forms.Label();
   this.button1 = new System.Windows.Forms.Button();
   this.richTextBox1 = new System.Windows.Forms.RichTextBox();
   this.button2 = new System.Windows.Forms.Button();
   this.richTextBox2 = new System.Windows.Forms.RichTextBox();
   this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
   this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog();
   this.button3 = new System.Windows.Forms.Button();
   this.SuspendLayout();
   //
   // label1
   //
   this.label1.Location = new System.Drawing.Point(8, 8);
   this.label1.Name = "label1";
   this.label1.Size = new System.Drawing.Size(72, 24);
   this.label1.TabIndex = 0;
   this.label1.Text = "词法分析";
   //
   // button1
   //
   this.button1.Location = new System.Drawing.Point(240, 8);
   this.button1.Name = "button1";
   this.button1.Size = new System.Drawing.Size(64, 23);
   this.button1.TabIndex = 1;
   this.button1.Text = "分析";
   this.button1.Click += new System.EventHandler(this.button1_Click);
   //
   // richTextBox1
   //
   this.richTextBox1.Location = new System.Drawing.Point(24, 48);
   this.richTextBox1.Name = "richTextBox1";
   this.richTextBox1.Size = new System.Drawing.Size(240, 352);
   this.richTextBox1.TabIndex = 2;
   this.richTextBox1.Text = "";
  // this.richTextBox1.TextChanged += new System.EventHandler(this.richTextBox1_TextChanged);
   //
   // button2
   //
   this.button2.Location = new System.Drawing.Point(96, 8);
   this.button2.Name = "button2";
   this.

展开更多 50%)
分享

猜你喜欢

一个用C#写的词法分析程序

电脑网络
一个用C#写的词法分析程序

用C#写的一个简单屏幕保护程序

电脑网络
用C#写的一个简单屏幕保护程序

s8lol主宰符文怎么配

英雄联盟 网络游戏
s8lol主宰符文怎么配

一个小语言的词法分析程序

C语言教程 C语言函数
一个小语言的词法分析程序

一个用c#写的扫描asp源码漏洞的应用程序

电脑网络
一个用c#写的扫描asp源码漏洞的应用程序

lol偷钱流符文搭配推荐

英雄联盟 网络游戏
lol偷钱流符文搭配推荐

一个用c#写的扫描asp源码漏洞的应用程序(续)

电脑网络
一个用c#写的扫描asp源码漏洞的应用程序(续)

展现C#(3):第一个C#应用程序

ASP
展现C#(3):第一个C#应用程序

lolAD刺客新符文搭配推荐

英雄联盟
lolAD刺客新符文搭配推荐

Flash5键盘鼠标应用(二)

Flash5键盘鼠标应用(二)

MySQL手册版本 5.0.20-MySQL优化(四) (1)(4)

MySQL手册版本 5.0.20-MySQL优化(四)  (1)(4)
下拉加载更多内容 ↓