-
这是一份实验报告,目的是掌握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
-
PL/0分析程序
PL/0分析程序-PL/0 analytical procedures
- 2023-06-09 03:10:03下载
- 积分:1
-
A very simple BASIC interpreter. Quite compatible with Microsoft MBASIC (CP/M) a...
A very simple BASIC interpreter. Quite compatible with Microsoft MBASIC (CP/M) and GWBASIC (MS-DOS).
- 2022-01-26 06:17:10下载
- 积分:1
-
16F876控制的电动自行车驱动系统源程序
16F876控制的电动自行车驱动系统源程序-16F876 control of the drive system for electric bicycle source
- 2023-06-29 10:40:03下载
- 积分:1
-
C编写自己的语义的编译器,你可以用它给你homew…
自己用纯C语言做的词法编译器,可能大家作业能用的上吧,-A semantics compiler in c programed by myself,maybe you can use it foe you homework
- 2022-01-25 14:43:05下载
- 积分:1
-
为开发一产品,苦于没有相关资料,采用机器上读取
为开发一产品,苦于没有相关资料,采用机器上读取-for the development of a product, there is no relevant information on the machines used to read
- 2023-02-27 08:00:04下载
- 积分:1
-
ll(1)语法分析器
ll(1)语法分析器-ll (1) parser
- 2023-04-21 17:00:04下载
- 积分:1
-
光形态分析仪,自己安排,输入文件名
pl 词法分析器,自己编的,输入文件名 (包括后缀)即可-pl morphology analyzer, own arrange, the input filename
(decorates including after) then
- 2022-07-13 11:24:14下载
- 积分:1
-
一个很不错的可视化词法分析器 用C++写的,是编译老师布置的作业...
一个很不错的可视化词法分析器 用C++写的,是编译老师布置的作业-a very good visual lexical analyzer written in C, compile teachers layout operations
- 2022-05-26 05:27:13下载
- 积分:1
-
operator priority experiments can be imported grammar, production operator prior...
算符优先实验,可以输入文法,生成算符优先表,输入句子,生成移近-规约过程。并且还有实验报告。-operator priority experiments can be imported grammar, production operator priority list, input sentence, approached generation-the Statute of the process. And there are experimental report.
- 2022-02-12 01:29:25下载
- 积分:1