-
我的词法分析程序
我的词法分析程序- My lexical analyaer
- 2023-07-23 11:10:03下载
- 积分:1
-
这是一份实验报告,目的是掌握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源程序,输出二元式
一个词法分析程序,可以实现输入C源程序,输出二元式-a lexical analysis procedures, can achieve the importation of C source files, binary output-
- 2023-04-25 04:20:03下载
- 积分:1
-
输入文法,可以实现对非终结符,终结符的判断,最后判断文法。...
输入文法,可以实现对非终结符,终结符的判断,最后判断文法。-importation of grammar can be realized by the end of the non-Fu, Fu end of the judgment, the final judgment of grammar.
- 2022-05-31 20:44:29下载
- 积分:1
-
应用分枝定界法求解0 / 1背包问题!我的…
背包问题
采用分枝限界法解决0/1背包问题! 本人上机实习作业,通过老师验收,合格! 针对部分上机实习的同学可以来下~
-Knapsack problem using Branch and Bound method to solve 0/1 Knapsack Problem! My internship on the machine operation, through the teacher acceptance, qualified! The machine for some internship students can come to the next ~
- 2022-12-23 06:50:03下载
- 积分:1
-
D/A Converter (D/A converter)
D/A Converter(D/A转换器)-D/A Converter (D/A converter)
- 2022-05-06 04:41:14下载
- 积分:1
-
是用flex分析pl0源代码的程序,统计处其中所有的关键字和变量名称,这个rar文件中有readme,具体见其中的说明。另外还有2个测试文件ceshi1.pl0...
是用flex分析pl0源代码的程序,统计处其中所有的关键字和变量名称,这个rar文件中有readme,具体见其中的说明。另外还有2个测试文件ceshi1.pl0和ceshi2.pl0-is flex pl0 source code analysis procedures, the Census and Statistics Department in which all the keywords and variable names, the rar a readme file, as shown in the note. Another two tests and documents ceshi1.pl0 ceshi2.pl0
- 2022-06-20 00:44:12下载
- 积分:1
-
vc实现的pl0编译器,有读取输出功能
vc实现的pl0编译器,有读取输出功能-read() -write(),这个源码对初学编译原理者有很好的指导作用,我当初学的时候用了3天看懂了源码,也对编译原理更加理解了,毕竟只学理论不看代码是不可能真正理解的,原作者是dwing,我对代码做了一些修改,在此感谢dwing提供的代码-vc achieve pl0 compiler, a reader output- read ()- write (), the source for beginners compiler principles are very good role in guiding, I had time to study the use of three days to read the source code, but also to build a greater understanding of the tenets of all, the theory is not see the code is impossible to truly understand the original author dwing yes, I made some code changes like to thank the code dwing
- 2022-10-10 13:20:03下载
- 积分:1
-
Arranges with c can recognize some reserved words, indicates Fu
Hezheng real num...
用c编的能认一些保留字,表示符和正实数的词法分析器- Arranges with c can recognize some reserved words, indicates Fu
Hezheng real number morphology analyzer
- 2023-06-07 13:15:04下载
- 积分:1
-
关于编译原理的vc程序
关于编译原理的vc程序- About translation principle vc procedure
- 2022-07-08 17:06:34下载
- 积分:1