📄 scannerdlg.h
字号:
// ScannerDlg.h : header file
//
#if !defined(AFX_SCANNERDLG_H__0D57675C_356F_46C4_92F5_E158FED34103__INCLUDED_)
#define AFX_SCANNERDLG_H__0D57675C_356F_46C4_92F5_E158FED34103__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
//#include "Scan.h"
#include "head.h"
/////////////////////////////////////////////////////////////////////////////
// CScannerDlg dialog
class Scan;
class CScannerDlg : public CDialog
{
// Construction
public:
void LookUp(int type,VALUE value);
void PutError(int hang,int lie,CString error);
void FormatToken(token del);
BOOL IsKeyWord(CString str,token &key);
void InitKeyWord();
void callerror(char ch);
void RecogDel(char ch);
void RecogStr(char ch);
void HandleCom(char ch);
void RecogDig(char ch);
void RecogID(char ch);
int CharType(char ch);
void Scan(CString str);
void ReadLine(); //获取当前分析的程序的行数
BOOL GetChar(CString str,int index,char &curch);
void ExpandDlg(int flag); //窗体伸缩实现函数
void SaveFile(CString path);//源程序保存函数
CScannerDlg(CWnd* pParent = NULL); // standard constructor
int flag; //窗体伸缩标志
//CScan *pscan;
int totalline,curhang,coloumn;
CString curline;
////////////////////////////////////
token keyword[61]; //
signlist list; //字符串表
VALUE value;
////////////////////////////////////
// Dialog Data
//{{AFX_DATA(CScannerDlg)
enum { IDD = IDD_SCANNER_DIALOG };
CEdit m_ctoken;
CEdit m_csourfile;
CListBox m_listerror;
CStatic m_tag;
CString m_sourcefile;
CString m_stoken;
CString m_filepath;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CScannerDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CScannerDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnExit();
afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
afx_msg void OnOpenfile();
afx_msg void OnSavefile();
afx_msg void OnClear();
afx_msg void OnScan();
afx_msg void OnHidetoken();
afx_msg void OnHideerror();
afx_msg void OnShowerror();
afx_msg void OnButton1();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SCANNERDLG_H__0D57675C_356F_46C4_92F5_E158FED34103__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -