Click here to Skip to main content
11,631,796 members (74,077 online)
Click here to Skip to main content
Add your own
alternative version

Tokenizer and analyzer package supporting precedence prioritized rules

, 1 Jan 2002 147.1K 2.5K 54
A library allowing you to conveniently build a custom tokenizer and analyzer supporting precedence priorized rules
cxtpackagetut_win32vc.zip
cxTokenizer
cxTokenizer.dsp
cxTokenizer.plg
cxtPackage
cxtPackage.plg
cxtPackage.dsp
mathTok
mathTok.plg
mathTok.dsp
simpleCalc
simpleCalc.bmp
simpleCalc.dsp
simpleCalc.plg
tkCommon
cxAnalyzer
cxAnalyzer.dsp
cxAnalyzer.plg
COPYING
cpAbsd.dsw
cxtpackage_win32vc.zip
cxTokenizer.dsp
cxTokenizer.plg
Debug
cxAnalyzer.dsp
cxAnalyzer.plg
cxtPackage.plg
cxtPackage.dsp
COPYING
cpAbsd.dsw
grammaride.zip
stlport_vc645.dll
grammarIDE.exe
pkgcomplete.zip
cxTokenizerMatchTokenRule.inl
cxTokenizer.dsp
cxtPackage.dsp
emptyTestApp
emptyTestApp.clw
res
emptyTestApp.ico
emptyTestApp.dsp
grammarIDE
grammarIDE.clw
res
grammarIDEDoc.ico
icon1.ico
zoomable.ico
Toolbar.bmp
grammarIDE.ico
vssver.scc
grammarIDE.dsp
simpleCalc.bmp
simpleCalc.dsp
vssver.scc
cxaToken.inl
cxAnalyzer.dsp
COPYING
cpAbsd.dsw
pkgsrconly.zip
cxTokenizerMatchTokenRule.inl
cxTokenizer.dsp
cxtPackage.dsp
emptyTestApp.clw
emptyTestApp.ico
emptyTestApp.dsp
vssver.scc
cxaToken.inl
cxAnalyzer.dsp
COPYING
cpAbsd.dsw
#if !defined(AFX_PANEEDITORWND_H__A642FFF0_0BC3_4CC8_9C00_A968EC8A3C35__INCLUDED_)
#define AFX_PANEEDITORWND_H__A642FFF0_0BC3_4CC8_9C00_A968EC8A3C35__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CPaneEditorWnd dialog

enum	esection
	{
	section_tokens,
	section_seperators,
	section_rules,
	section_grammar
	};

class CGrammarIDEDoc;
class CPaneEditorWnd : public CDialog
{
// Construction
public:
	CPaneEditorWnd(CGrammarIDEDoc* pDoc, CWnd* pParent = NULL);   // standard constructor

// Operations
public:
	void			Renumber(bool fStrict);
	bool			IsInIdRange(int pos);
	bool			IsLineWellFormed(int nLine);
	bool			IsSectionLine(int nLine);
	void			FormatLine(int nLine);
	BOOL			Create(CWnd *pParentWnd) { return CDialog::Create(IDD,pParentWnd); };
	void			SetSection(esection eSection);
	void			OnUpdate();
	void			UpdateDocStatus();
	bool			IsModified() const { return m_fModified; };

// Attributes
protected:
	int				m_nFmtMin, m_nFmtMax;
	CGrammarIDEDoc* m_pDoc;
	bool			m_fModified;
	static UINT		WMU_FORMATLINES;

public:
// Dialog Data
	//{{AFX_DATA(CPaneEditorWnd)
	enum { IDD = IDD_EDITOR_PANE };
	CRichEditCtrl	m_richEdit;
	int		m_nSection;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CPaneEditorWnd)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL
	virtual void OnCancel();

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CPaneEditorWnd)
	afx_msg void OnSize(UINT nType, int cx, int cy);
	virtual BOOL OnInitDialog();
	afx_msg void OnProtectedRichEdit(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnTimer(UINT nIDEvent);
	//}}AFX_MSG
	afx_msg LRESULT OnFormatLines(WPARAM wP, LPARAM lP);
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_PANEEDITORWND_H__A642FFF0_0BC3_4CC8_9C00_A968EC8A3C35__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

Share

About the Author

Alexander Berthold
Web Developer
Germany Germany
No Biography provided

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150728.1 | Last Updated 2 Jan 2002
Article Copyright 2001 by Alexander Berthold
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid