C#源码_编译器

上传者: liaojiangtu | 上传时间: 2022-04-20 10:24:13 | 文件大小: 1.86MB | 文件类型: ZIP
一、功能简介 本编译器主要有四部分功能: 1、词法分析 编制一个读单词过程,从输入的源程序中,识别出各个具有独立意义的单词,即基本保留字、标识符、常数、运算符、分隔符五大类。并依次输出各个单词的内部编码及单词符号自身值。(遇到错误时可显示“Error”,然后跳过错误部分继续显示)。 2、语法分析之递归下降分析 递归下降分析法的前提是文法必需为LL(1)文法,此功能为验证性功能,已经给出文法,输入一符号串,验证是否属于该文法的句子即可。 3、语法分析之LL(1)预测分析 此功能为验证性功能,已经给出文法,对任意输入的符号串进行分析验证是否属于该文法的句子即可。 4、逆波兰式的生成及计算 从键盘输入一个表达式符号串(中缀算术表达式),根据算符优先分析表对表达式符号串进行堆栈(或其他)操作,输出分析结果,并对生成的逆波兰式进行计算。 5、 另外,本编译器具备基本的记事本编辑操作功能,此部分功能不做具体介绍。 6、“源程序”“对比”“分析结果”显示工作区域的不同状态。 7、编译器下方有状态栏,显示当前状态。 二、操作 1、功能的选择 点击菜单栏“编译(B)”,继而进行功能的选择;或者直接点击相对于的图标也可。 2、运行 在编辑区,右键点击出现的菜单中选择对应的功能运行;或者点击‘红色羽毛’的图标运行。 3、点击最后一个图标,可以显示或者隐藏编译器右边的说明区域。 4、状态栏可以通过菜单:“其它”->“状态栏”操作显示和隐藏。

文件下载

资源详情

[{"title":"( 64 个子文件 1.86MB ) C#源码_编译器","children":[{"title":"编译器","children":[{"title":"Mycompiler.sln <span style='color:#111;'> 919B </span>","children":null,"spread":false},{"title":"Mynotepad","children":[{"title":"Form4.cs <span style='color:#111;'> 462B </span>","children":null,"spread":false},{"title":"Mynotepad_TemporaryKey.pfx <span style='color:#111;'> 1.64KB </span>","children":null,"spread":false},{"title":"Form4.resx <span style='color:#111;'> 7.55KB </span>","children":null,"spread":false},{"title":"Form1.cs <span style='color:#111;'> 31.21KB </span>","children":null,"spread":false},{"title":"About.resx <span style='color:#111;'> 17.74KB </span>","children":null,"spread":false},{"title":"About.cs <span style='color:#111;'> 450B </span>","children":null,"spread":false},{"title":"Mycompiler.csproj.user <span style='color:#111;'> 577B </span>","children":null,"spread":false},{"title":"Form3.Designer.cs <span style='color:#111;'> 9.07KB </span>","children":null,"spread":false},{"title":"Goto.resx <span style='color:#111;'> 8.47KB </span>","children":null,"spread":false},{"title":"Form1.resx <span style='color:#111;'> 311.09KB </span>","children":null,"spread":false},{"title":"About.Designer.cs <span style='color:#111;'> 8.93KB </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"Settings.settings <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"Resources.Designer.cs <span style='color:#111;'> 2.79KB </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.14KB </span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"Resources.resx <span style='color:#111;'> 5.48KB </span>","children":null,"spread":false}],"spread":false},{"title":"DEUS EX.ico <span style='color:#111;'> 134.52KB </span>","children":null,"spread":false},{"title":"Goto.cs <span style='color:#111;'> 4.17KB </span>","children":null,"spread":false},{"title":"Mycompiler.csproj <span style='color:#111;'> 6.67KB </span>","children":null,"spread":false},{"title":"Form3.resx <span style='color:#111;'> 8.03KB </span>","children":null,"spread":false},{"title":"Form1.Designer.cs <span style='color:#111;'> 59.71KB </span>","children":null,"spread":false},{"title":"Form3.cs <span style='color:#111;'> 7.08KB </span>","children":null,"spread":false},{"title":"Folder","children":[{"title":"RPN.cs <span style='color:#111;'> 6.65KB </span>","children":null,"spread":false},{"title":"GrammarLL.cs <span style='color:#111;'> 12.12KB </span>","children":null,"spread":false},{"title":"LPascal.cs <span style='color:#111;'> 5.77KB </span>","children":null,"spread":false},{"title":"GrammarRD.cs <span style='color:#111;'> 3.25KB </span>","children":null,"spread":false}],"spread":false},{"title":"ClassDiagram1.cd <span style='color:#111;'> 2.97KB </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"Debug","children":[{"title":"Mycompiler.pdb <span style='color:#111;'> 103.50KB </span>","children":null,"spread":false},{"title":"Mynotepad.Form4.resources <span style='color:#111;'> 2.00KB </span>","children":null,"spread":false},{"title":"GenerateResource-ResGen.read.1.tlog <span style='color:#111;'> 848B </span>","children":null,"spread":false},{"title":"Mynotepad.About.resources <span style='color:#111;'> 8.59KB </span>","children":null,"spread":false},{"title":"Mycompiler.FrmMain.resources <span style='color:#111;'> 231.71KB </span>","children":null,"spread":false},{"title":"TempPE","children":[{"title":"Properties.Resources.Designer.cs.dll <span style='color:#111;'> 4.50KB </span>","children":null,"spread":false}],"spread":false},{"title":"Mycompiler.Goto.resources <span style='color:#111;'> 4.68KB </span>","children":null,"spread":false},{"title":"Mycompiler.About.resources <span style='color:#111;'> 8.59KB </span>","children":null,"spread":false},{"title":"GenerateResource-ResGen.write.4.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"Mycompiler.exe <span style='color:#111;'> 445.50KB </span>","children":null,"spread":false},{"title":"Mynotepad.Goto.resources <span style='color:#111;'> 4.68KB </span>","children":null,"spread":false},{"title":"Mycompiler.csproj.FileListAbsolute.txt <span style='color:#111;'> 2.96KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 5.32KB </span>","children":null,"spread":false},{"title":"GenerateResource-ResGen.read.4.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"Mycompiler.application <span style='color:#111;'> 1.81KB </span>","children":null,"spread":false},{"title":"Mynotepad.FrmMain.resources <span style='color:#111;'> 231.72KB </span>","children":null,"spread":false},{"title":"Mycompiler.Properties.Resources.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"Mycompiler.exe.manifest <span style='color:#111;'> 3.41KB </span>","children":null,"spread":false},{"title":"Mycompiler.Form4.resources <span style='color:#111;'> 2.00KB </span>","children":null,"spread":false},{"title":"Mycompiler.Form3.resources <span style='color:#111;'> 1.93KB </span>","children":null,"spread":false},{"title":"Mynotepad.csproj.FileListAbsolute.txt <span style='color:#111;'> 1.63KB </span>","children":null,"spread":false},{"title":"GenerateResource-ResGen.write.1.tlog <span style='color:#111;'> 1.18KB </span>","children":null,"spread":false},{"title":"Mynotepad.Form3.resources <span style='color:#111;'> 1.93KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"Form4.Designer.cs <span style='color:#111;'> 2.89KB </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"Debug","children":[{"title":"Mycompiler.pdb <span style='color:#111;'> 103.50KB </span>","children":null,"spread":false},{"title":"Mycompiler.exe <span style='color:#111;'> 445.50KB </span>","children":null,"spread":false},{"title":"Mynotepad.vshost.exe.manifest <span style='color:#111;'> 2.95KB </span>","children":null,"spread":false},{"title":"Mycompiler.application <span style='color:#111;'> 1.81KB </span>","children":null,"spread":false},{"title":"Mycompiler.vshost.exe.manifest <span style='color:#111;'> 3.41KB </span>","children":null,"spread":false},{"title":"Mycompiler.exe.manifest <span style='color:#111;'> 3.41KB </span>","children":null,"spread":false},{"title":"Mycompiler.vshost.exe <span style='color:#111;'> 11.34KB </span>","children":null,"spread":false},{"title":"Mynotepad.vshost.application <span style='color:#111;'> 1.80KB </span>","children":null,"spread":false},{"title":"Mycompiler.vshost.application <span style='color:#111;'> 1.81KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"编译器.txt <span style='color:#111;'> 1.25KB </span>","children":null,"spread":false},{"title":"Mycompiler.suo <span style='color:#111;'> 42.00KB </span>","children":null,"spread":false}],"spread":true},{"title":"实验五 编译器 .doc <span style='color:#111;'> 1.46MB </span>","children":null,"spread":false}],"spread":true}]

评论信息

  • u011155180 :
    写的相当不错,给我我很大的帮助,我自己做的工具就是用的它的框架
    2016-04-18
  • jty19930608 :
    有参考价值,但是不全面,所以做参考吧
    2014-12-16
  • qq470869852 :
    还没有看具体实现,但是整体还是比较好的,我做wpf,网上代码太少
    2014-12-11
  • u013115415 :
    真好,刚好帮了我的大忙。只是这界面太高端,还得稍微改一下。
    2014-10-30
  • sens1992 :
    为什么就不能再写个源码的语法分析呢。。
    2014-06-06

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明