-
这是一份实验报告,目的是掌握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
-
一个也可以在UNIX里实现的词法扫描程序
一个也可以在UNIX里实现的词法扫描程序- Also may the morphology scanning procedure which realizes in
UNIX
- 2022-02-20 08:18:34下载
- 积分:1
-
flex的使用方法
flex的使用方法-the use of flex
- 2023-08-03 07:45:03下载
- 积分:1
-
parser from complete c/c to C change
语法分析器 完成从c/c++向C++转变-parser from complete c/c to C change
- 2022-01-21 00:37:55下载
- 积分:1
-
dropped by recursive approach to design their own compiler, generating PL/0 Stac...
按递归下降方式设计其编译程序,生成PL/0栈式指令代码,然后解释执行。用(a=1)+2*(b=3+4*5)/2+2*a*b-(a=a+5)/ (c=2) 测试-dropped by recursive approach to design their own compiler, generating PL/0 Stack-code instructions, and then the interpretation and implementation. Using (a = 1) 2* (b = 3 4* 5)/2* a* b- (a = 5 a)/(c = 2) Testing
- 2022-01-25 23:49:31下载
- 积分:1
-
一个词法分析程序,可以实现输入C源程序,输出二元式
一个词法分析程序,可以实现输入C源程序,输出二元式-a lexical analysis procedures, can achieve the importation of C source files, binary output-
- 2023-04-25 04:20:03下载
- 积分:1
-
自己写的Bacis解释机。
可以正常运行!
自己写的Bacis解释机。
可以正常运行!-Bacis written explanation of their own machines. Normal operation can be!
- 2022-08-20 06:22:10下载
- 积分:1
-
布尔表达式的翻译
布尔表达式的翻译- Boolean expression translation
- 2022-05-07 00:53:13下载
- 积分:1
-
请你们使用一下!可能你们喜欢这个.我在我的电脑上使用过.
请你们使用一下!可能你们喜欢这个.我在我的电脑上使用过.-you use! You may like this. In my computer use.
- 2022-07-18 18:42:54下载
- 积分:1
-
TINYC source code
TINYC的源代码-TINYC source code
- 2023-04-16 17:45:04下载
- 积分:1