文件名称:compiler

  • 所属分类:
  • C#编程
  • 资源属性:
  • [Windows] [Visual.Net] [源码]
  • 上传时间:
  • 2012-12-22
  • 文件大小:
  • 621kb
  • 下载次数:
  • 0次
  • 提 供 者:
  • Ja***
  • 相关连接:
  • 下载说明:
  • 别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容均来自于网络,请自行研究使用

本编译器主要有四部分功能:

1、词法分析

编制一个读单词过程,从输入的源程序中,识别出各个具有独立意义的单词,即基本保留字、标识符、常数、运算符、分隔符五大类。并依次输出各个单词的内部编码及单词符号自身值。(遇到错误时可显示“Error”,然后跳过错误部分继续显示)。

2、语法分析之递归下降分析

  递归下降分析法的前提是文法必需为LL(1)文法,此功能为验证性功能,已经给出文法,输入一符号串,验证是否属于该文法的句子即可。

3、语法分析之LL(1)预测分析

  此功能为验证性功能,已经给出文法,对任意输入的符号串进行分析验证是否属于该文法的句子即可。

4、逆波兰式的生成及计算

  从键盘输入一个表达式符号串(中缀算术表达式),根据算符优先分析表对表达式符号串进行堆栈(或其他)操作,输出分析结果,并对生成的逆波兰式进行计算。

5、 另外,本编译器具备基本的记事本编辑操作功能,此部分功能不做具体介绍。

-The compiler part there are four main functions:

1, morphology analysis

Prepare a read words process, from the input source program, identify each independent meaning of words, namely basic reserved words, identifier, constant, operators, separator five categories. And in turn output each word internal coding and word sign their own value. (meet mistake can show "Error", and then skip the wrong part continue to display).

2, grammar analysis of recursive descent analysis

Recursive descent analysis is the premise of grammar necessary for LL (1) grammar, this function to test function, has been given grammar, input a string, verify whether to belong to this method sentences can.

3, grammar analysis of LL (1) the forecast analysis

This function to test function, has been given grammar, to any input string analysis verify whether to belong to this method sentences can.

4, reverse polish style formation and calculation

From the keyboard input an expression string (dressed arithmetic
(系统自动生成,下载前可以参看下载内容)

下载文件列表





编译器\Mycompiler.sln

......\Mycompiler.suo

......\..notepad\About.cs

......\.........\About.Designer.cs

......\.........\About.resx

......\.........\bin\Debug\Mycompiler.application

......\.........\...\.....\Mycompiler.exe

......\.........\...\.....\Mycompiler.exe.manifest

......\.........\...\.....\Mycompiler.pdb

......\.........\...\.....\Mycompiler.vshost.application

......\.........\...\.....\Mycompiler.vshost.exe

......\.........\...\.....\Mycompiler.vshost.exe.manifest

......\.........\...\.....\Mynotepad.vshost.application

......\.........\...\.....\Mynotepad.vshost.exe.manifest

......\.........\ClassDiagram1.cd

......\.........\DEUS EX.ico

......\.........\Folder\GrammarLL.cs

......\.........\......\GrammarRD.cs

......\.........\......\LPascal.cs

......\.........\......\RPN.cs

......\.........\Form1.cs

......\.........\Form1.Designer.cs

......\.........\Form1.resx

......\.........\Form3.cs

......\.........\Form3.Designer.cs

......\.........\Form3.resx

......\.........\Form4.cs

......\.........\Form4.Designer.cs

......\.........\Form4.resx

......\.........\Goto.cs

......\.........\Goto.resx

......\.........\Mycompiler.csproj

......\.........\Mycompiler.csproj.user

......\.........\Mynotepad_TemporaryKey.pfx

......\.........\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

......\.........\...\.....\GenerateResource-ResGen.read.1.tlog

......\.........\...\.....\GenerateResource-ResGen.read.4.tlog

......\.........\...\.....\GenerateResource-ResGen.write.1.tlog

......\.........\...\.....\GenerateResource-ResGen.write.4.tlog

......\.........\...\.....\Mycompiler.About.resources

......\.........\...\.....\Mycompiler.application

......\.........\...\.....\Mycompiler.csproj.FileListAbsolute.txt

......\.........\...\.....\Mycompiler.exe

......\.........\...\.....\Mycompiler.exe.manifest

......\.........\...\.....\Mycompiler.Form3.resources

......\.........\...\.....\Mycompiler.Form4.resources

......\.........\...\.....\Mycompiler.FrmMain.resources

......\.........\...\.....\Mycompiler.Goto.resources

......\.........\...\.....\Mycompiler.pdb

......\.........\...\.....\Mycompiler.Properties.Resources.resources

......\.........\...\.....\Mynotepad.About.resources

......\.........\...\.....\Mynotepad.csproj.FileListAbsolute.txt

......\.........\...\.....\Mynotepad.Form3.resources

......\.........\...\.....\Mynotepad.Form4.resources

......\.........\...\.....\Mynotepad.FrmMain.resources

......\.........\...\.....\Mynotepad.Goto.resources

......\.........\...\.....\TempPE\Properties.Resources.Designer.cs.dll

......\.........\Properties\AssemblyInfo.cs

......\.........\..........\Resources.Designer.cs

......\.........\..........\Resources.resx

......\.........\..........\Settings.Designer.cs

......\.........\..........\Settings.settings

......\编译器.txt

......\Mynotepad\obj\Debug\TempPE

......\.........\bin\Debug

......\.........\obj\Debug

......\.........\bin

......\.........\Folder

......\.........\obj

......\.........\Properties

......\Mynotepad

编译器

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org