Click here to Skip to main content
15,880,543 members
Articles / Programming Languages / C++

Writing own regular expression parser

Rate me:
Please Sign up or sign in to vote.
4.91/5 (132 votes)
14 Nov 200322 min read 976K   12.3K   237  
Explains principles behind writing regular expression parsers.
#if !defined(AFX_AG_FINDDIALOG_H__2CE336BF_3085_45BA_9E62_668EB0B5CF74__INCLUDED_)
#define AFX_AG_FINDDIALOG_H__2CE336BF_3085_45BA_9E62_668EB0B5CF74__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// AG_FindDialog.h : header file
//

#define WM_FIND_NEXT	WM_USER+1

/////////////////////////////////////////////////////////////////////////////
// CAG_FindDialog dialog

class CAG_FindDialog : public CDialog
{
// Construction
public:
	CAG_FindDialog(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CAG_FindDialog)
	enum { IDD = IDD_FIND_DIALOG };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CAG_FindDialog)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CAG_FindDialog)
		virtual void OnOK() {};
	afx_msg void OnCloseButton();
	afx_msg void OnFindNext();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_AG_FINDDIALOG_H__2CE336BF_3085_45BA_9E62_668EB0B5CF74__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
President Infinity Software Solutions, LLC.
United States United States
Originally from Bosnia and Herzegovina, but lived for 6 years in Germany where I did majority of education, then moved to US, where I live since 1999. I like programming, computers in general, but also Basketball, Soccer, Tennis, and many other things. Masters graduate from Grand Valley State University in CIS and working as a full time software developer. Please visit my website www.amergerzic.com

Comments and Discussions