文件名称: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
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
编译器