资源简介
实现了将算术表达式、for语句、while语句转换成四元式的c++程序。除实现以上功能外,还配有图形化界面,设计文档等内容。

代码片段和文件信息
// CompilerDesign.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “CompilerDesign.h“
#include “CompilerDesignDlg.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCompilerDesignApp
BEGIN_MESSAGE_MAP(CCompilerDesignApp CWinApp)
//{{AFX_MSG_MAP(CCompilerDesignApp)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG
ON_COMMAND(ID_HELP CWinApp::onhelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CCompilerDesignApp construction
CCompilerDesignApp::CCompilerDesignApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CCompilerDesignApp object
CCompilerDesignApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CCompilerDesignApp initialization
BOOL CCompilerDesignApp::InitInstance()
{
AfxEnableControlContainer();
// Standard initialization
// If you are not using these features and wish to reduce the size
// of your final executable you should remove from the following
// the specific initialization routines you do not need.
#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif
CCompilerDesignDlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
// dismissed with OK
}
else if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
// dismissed with Cancel
}
// Since the dialog has been closed return FALSE so that we exit the
// application rather than start the application‘s message pump.
return FALSE;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 3348 2014-07-14 18:46 编译原理课程设计——算术表达式、for、while语句转换为四元式\编译原理源代码\CompilerDesign.clw
文件 2175 2014-07-05 18:32 编译原理课程设计——算术表达式、for、while语句转换为四元式\编译原理源代码\CompilerDesign.cpp
文件 4660 2014-07-10 11:29 编译原理课程设计——算术表达式、for、while语句转换为四元式\编译原理源代码\CompilerDesign.dsp
文件 536 2014-07-05 18:32 编译原理课程设计——算术表达式、for、while语句转换为四元式\编译原理源代码\CompilerDesign.dsw
文件 1412 2014-07-05 18:32 编译原理课程设计——算术表达式、for、while语句转换为四元式\编译原理源代码\CompilerDesign.h
文件 91136 2014-07-16 17:27 编译原理课程设计——算术表达式、for、while语句转换为四元式\编译原理源代码\CompilerDesign.ncb
文件 48640 2014-07-16 17:27 编译原理课程设计——算术表达式、for、while语句转换为四元式\编译原理源代码\CompilerDesign.opt
文件 2124 2014-07-16 17:27 编译原理课程设计——算术表达式、for、while语句转换为四元式\编译原理源代码\CompilerDesign.plg
文件 8959 2014-07-09 14:17 编译原理课程设计——算术表达式、for、while语句转换为四元式\编译原理源代码\CompilerDesign.rc
文件 5753 2014-07-09 14:17 编译原理课程设计——算术表达式、for、while语句转换为四元式\编译原理源代码\CompilerDesignDlg.cpp
文件 1600 2014-07-09 14:17 编译原理课程设计——算术表达式、for、while语句转换为四元式\编译原理源代码\CompilerDesignDlg.h
文件 6285 2014-07-13 10:46 编译原理课程设计——算术表达式、for、while语句转换为四元式\编译原理源代码\Dlg1.cpp
文件 1317 2014-07-13 10:46 编译原理课程设计——算术表达式、for、while语句转换为四元式\编译原理源代码\Dlg1.h
文件 21786 2014-07-14 09:41 编译原理课程设计——算术表达式、for、while语句转换为四元式\编译原理源代码\Dlg2.cpp
文件 1176 2014-07-06 12:42 编译原理课程设计——算术表达式、for、while语句转换为四元式\编译原理源代码\Dlg2.h
文件 11805 2014-07-14 12:55 编译原理课程设计——算术表达式、for、while语句转换为四元式\编译原理源代码\Dlg3.cpp
文件 1233 2014-07-07 15:19 编译原理课程设计——算术表达式、for、while语句转换为四元式\编译原理源代码\Dlg3.h
文件 969 2014-07-05 18:35 编译原理课程设计——算术表达式、for、while语句转换为四元式\编译原理源代码\Dlg4.cpp
文件 1201 2014-07-10 10:29 编译原理课程设计——算术表达式、for、while语句转换为四元式\编译原理源代码\Dlg4.h
文件 0 2014-07-07 16:22 编译原理课程设计——算术表达式、for、while语句转换为四元式\编译原理源代码\obj.txt
文件 3723 2014-07-05 18:32 编译原理课程设计——算术表达式、for、while语句转换为四元式\编译原理源代码\ReadMe.txt
文件 1078 2014-07-05 18:32 编译原理课程设计——算术表达式、for、while语句转换为四元式\编译原理源代码\res\CompilerDesign.ico
文件 406 2014-07-05 18:32 编译原理课程设计——算术表达式、for、while语句转换为四元式\编译原理源代码\res\CompilerDesign.rc2
文件 1149 2014-07-09 14:17 编译原理课程设计——算术表达式、for、while语句转换为四元式\编译原理源代码\resource.h
文件 216 2014-07-05 18:32 编译原理课程设计——算术表达式、for、while语句转换为四元式\编译原理源代码\StdAfx.cpp
文件 1054 2014-07-05 18:32 编译原理课程设计——算术表达式、for、while语句转换为四元式\编译原理源代码\StdAfx.h
文件 24 2014-07-06 12:46 编译原理课程设计——算术表达式、for、while语句转换为四元式\编译原理源代码\test_for1.txt
文件 21 2014-07-13 18:05 编译原理课程设计——算术表达式、for、while语句转换为四元式\编译原理源代码\test_for2error.txt
文件 24 2014-07-10 10:20 编译原理课程设计——算术表达式、for、while语句转换为四元式\编译原理源代码\test_for3.txt
文件 21 2014-07-13 17:52 编译原理课程设计——算术表达式、for、while语句转换为四元式\编译原理源代码\test_math1.txt
............此处省略13个文件信息
- 上一篇:vigenere算法C语言实现
- 下一篇:C++程序设计杨长兴、刘卫国答案
相关资源
- 编译原理c语言编译器
- 编译原理实验-词法分析(c语言代码)
- 北邮-编译原理-词法分析
- 现代编译原理-C语言描述
- 编译原理实验报告+代码+使用说明
- 编译原理课程设计-C语言子集编译器
- 赋值语句翻译c语言实现四元式
- 编译原理用C++消除左递归
- 编译原理简易C编译器
- 实现语法分析器-编译原理
- 编译原理 LR分析器 c++代码
- 设计并实现TINYC语言的扫描程序TINYC
- LL(1)文法分析全过程(FIRST/FLLOW/S
- 编译原理 LR0项目集规范族的构造 L
- 山东大学编译原理实验源代码c++版
- 简单函数绘图语言的解释器
- Lex和Yacc从入门到精通.pdf
- 简易词法分析器——基于C语言
- LL(1)文法的实现-mfc-编译原理学习
- 词法分析代码内有报告
- 编译原理LL1文法的mfc实现含消除左递
- 编译原理词法分析实验
- pl/0语言的编译器
- C++实现编译原理自动机、LL1文法、及
- 编译原理语义分析程序 c++实现
- 编译原理 课程设计 DAG 报告+源码C++版
- 编译原理课程设计----语法分析器(
- 编译原理简单的编译器源码
- C语言实现一个编译器-编译原理南开大
- 编译原理课程实验报告词法分析器及
评论
共有 条评论