-
这是一份实验报告,目的是掌握YACC的使用方法,了解YACC处理二义性的方法。
用YACC等工具生成如下文法表示的表达式对应的计算器
exp...
这是一份实验报告,目的是掌握YACC的使用方法,了解YACC处理二义性的方法。
用YACC等工具生成如下文法表示的表达式对应的计算器
exp->exp + exp | exp - exp| exp * exp |exp / exp |exp ^ exp | - exp |(exp) |NUM
对于输入的表达式,能输出结果。比如:
3 +(4 *5)结果应为23
当出现错误时可以进行错误处理。
-This is a test report, the purpose is to master the use YACC to learn YACC handling of the ambiguity approach. Using tools such as YACC grammar that generates the following expression for the corresponding calculator exp-> exp+ exp | exp- exp | exp* exp | exp/exp | exp ^ exp |- exp | (exp) | NUM expression for the input type, can be output. For example: 3+ (4* 5) the result should be 23 when the error can be error-handling.
- 2022-05-23 10:34:44下载
- 积分:1
-
c language version morphology compiler
c语言版词法编译器-c language version morphology compiler
- 2022-08-17 08:14:41下载
- 积分:1
-
单独分离出来的C
单独分离出来的C-手工词法分析器,需要自己建立一个工程来运行本程序。为《编译原理与实践》一书之后的实验题的代码。-Single isolated C-hand lexical analyzer, needs its own to establish a project to run this program. For " Compiler Construction Principles and Practice," a book after the experiment of the code.
- 2023-09-08 19:30:08下载
- 积分:1
-
LL(1)文法源代码
LL(1)文法源代码-LL (1) grammar source code
- 2023-02-01 06:55:03下载
- 积分:1
-
PLO编译器 vc++编写界面美观 人性化 可用与分析研究
PLO编译器 vc++编写界面美观 人性化 可用与分析研究 -PLO compiler vc prepared beautiful interface can be humanized and analysis
- 2022-06-11 12:07:48下载
- 积分:1
-
test for character recognition sofware
test for character recognition sofware
- 2023-03-30 12:05:04下载
- 积分:1
-
简单的LL(1)的分析,具体可见程序,有过程,一目了然,谢谢指教...
简单的LL(1)的分析,具体可见程序,有过程,一目了然,谢谢指教-simple LL (1) analysis, we can see specific procedure, a process, clear, thank you enlighten
- 2022-07-10 14:53:07下载
- 积分:1
-
Java形式文法
Java形式文法-BNF.是设计形式文法的好范例。-Java form grammar-BNF. Form design is a good example of grammar.
- 2022-11-05 00:40:03下载
- 积分:1
-
pascal的编译器
交作业没问题
pascal的编译器
交作业没问题
-perpendicular operation of the compiler no problem Haha
- 2023-08-24 16:50:02下载
- 积分:1
-
c++ pl/0简易编译器
c++ pl/0简易编译器-c pl/0 simple compiler
- 2022-03-15 01:00:14下载
- 积分:1