?? unit1.h
字號:
//---------------------------------------------------------------------------
#ifndef Unit1H
#define Unit1H
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include <Menus.hpp>
#include <ComCtrls.hpp>
#include <Grids.hpp>
#include <ImgList.hpp>
#include <Buttons.hpp>
//---------------------------------------------------------------------------
class TForm1 : public TForm
{
__published: // IDE-managed Components
TPanel *Panel1;
TMainMenu *MainMenu1;
TMenuItem *N1;
TMenuItem *N2;
TStringGrid *SLRGrid;
TComboBoxEx *ComboBoxEx1;
TImageList *ImageList1;
TLabel *Label1;
TMemo *Memo1;
TLabel *Label2;
TComboBoxEx *ComboBoxEx2;
TLabel *Label3;
TImageList *ImageList2;
TBitBtn *BitBtn1;
TImage *Image1;
TListBox *ListBox1;
TButton *Button1;
TLabel *Label4;
TStaticText *StaticText1;
void __fastcall N2Click(TObject *Sender);
void __fastcall ComboBoxEx1Change(TObject *Sender);
void __fastcall ComboBoxEx2Change(TObject *Sender);
void __fastcall BitBtn1Click(TObject *Sender);
void __fastcall Button1Click(TObject *Sender);
private: // User declarations
public: // User declarations
char first[100][100],follow[100][100];
char SetT[100],SetN[100];
int DA[100][100];//狀態集合
char TAB[100][100];//狀態轉換表
int N;//生成的狀態數
int K;//掃描到的狀態
int SetTnum,SetNnum;
char token[100];//分析表第一行的終結符和非終結符
char P[100][100];//文法
int Pnum;//文法條數
int table[100][100];
int X;
int Y;
__fastcall TForm1(TComponent* Owner);
void DrawDFA(int start, int end, char token, TImage * image);
void DFA(void);
void FirstS(void);
void FollowS(void);
void DFACon(void);
void IntProduction(void);
void ConNandTSet(void);
};
//---------------------------------------------------------------------------
extern PACKAGE TForm1 *Form1;
//---------------------------------------------------------------------------
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -