-
这是一份实验报告,目的是掌握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
-
简单的词法分析(parseclass.h)
简单的词法分析(parseclass.h)- Simple lexical analysis (parseclass.h)
- 2022-09-01 23:45:02下载
- 积分:1
-
Small C compiler source code to learn a good source.
Small C 编译器的源代码 学习好的源码。 -Small C compiler source code to learn a good source.
- 2022-01-22 15:45:43下载
- 积分:1
-
c―语言的句法分析器。读入一个C
c―语言的句法分析器。读入一个C--语言程序,判断该程序是不是一个合法的C--语言程序-c-language parser. Reading into a C-- Language Program, the judgment that the procedure was not a legitimate C-- Language Program
- 2023-07-23 18:45:02下载
- 积分:1
-
NASM是一个开源跨平台的汇编器。里面的源码有linux下和dos下的。包含一个NASM汇编教程,源码非常清晰,含少量汇编代码。...
NASM是一个开源跨平台的汇编器。里面的源码有linux下和dos下的。包含一个NASM汇编教程,源码非常清晰,含少量汇编代码。-NASM is an open source cross-platform assembler. Inside the source code under linux and dos are under. NASM contains a compilation of tutorials, source code is very clear, with a small amount of assembly code.
- 2022-03-30 13:18:34下载
- 积分:1
-
GCC and the PROGMEM Attribute.pdf, 介绍 GCC 编译器
GCC and the PROGMEM Attribute.pdf, 介绍 GCC 编译器- GCC and the PROGMEM Attribute.pdf , introduce gcc。
- 2023-03-16 02:30:02下载
- 积分:1
-
编译原理课程设计,语法分析.学校的课程设计,好象还有点用吧...
编译原理课程设计,语法分析.学校的课程设计,好象还有点用吧-compiler theory curriculum design, syntax analysis. School curriculum design, as if it still has some use
- 2022-03-21 03:46:45下载
- 积分:1
-
一个简单的公交查询管理系 d 统,采用最短路算法,利用odbcapi函数访问数据库。...
一个简单的公交查询管理系 d 统,采用最短路算法,利用odbcapi函数访问数据库。
-a simple inquiry Bus Marketing Management-d, the most shorted algorithm, use odbcapi function access to the database.
- 2022-03-29 10:07:13下载
- 积分:1
-
本人写的简单C词法分析器,能基本实现C词法分析。可以供要求不是很严格的毕业设计。...
本人写的简单C词法分析器,能基本实现C词法分析。可以供要求不是很严格的毕业设计。-I wrote a simple C lexical analyzer that can realize the basic lexical analysis of C. Can not very strict requirements for the graduation project.
- 2022-05-29 05:01:06下载
- 积分:1
-
Borland Pascal写的8051单片机模拟仿真器。内有源码,可惜是16位机的程序,只能在WIN98之前的系统可以正常使用。哪位高人能把源码改成W32就好...
Borland Pascal写的8051单片机模拟仿真器。内有源码,可惜是16位机的程序,只能在WIN98之前的系统可以正常使用。哪位高人能把源码改成W32就好了。-Written in Borland Pascal simulation device 8051. There are source code, but is 16-bit machine procedures, only in WIN98 system before normal use. An expert source who can change the W32 just fine.
- 2022-01-20 22:34:08下载
- 积分:1