-
这是一份实验报告,目的是掌握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
-
commonly used programming language syntax and grammar forms to the public. Among...
现将本人搜集常用的程序设计语言的词法和形式文法提供给大家。其中,词法是按LEX格式编辑,形式文法是按YACC格式书写,大家可直接用LEX和YACC工具编译生成各类程序设计语言的分析器。-commonly used programming language syntax and grammar forms to the public. Among them, morphology is based on LEX format editing, grammar form is written by YACC format, we can use the LEX and YACC tools various compiler generation programming language analyzer.
- 2022-02-01 15:12:35下载
- 积分:1
-
一个简易C语言解释器,语法规范见设计文档,感觉挺好用的,至少可以借鉴一下设计过程...
一个简易C语言解释器,语法规范见设计文档,感觉挺好用的,至少可以借鉴一下设计过程-a simple C language interpreter, syntax, see the design documents, the feeling is very good. at least we can draw on this design process
- 2022-05-16 11:07:55下载
- 积分:1
-
在文本下编辑,把需要分析的程序写在zf
在文本下编辑,把需要分析的程序写在zf-infile.txt内,程序的结尾必须以“@”标志符结束,程序结果输出在同目录内,文件名为zf-outfile.txt,此文件为自动生成。 - Edits under the text, the procedure which needs to analyze
writes in zf-infile.txt, the procedure ending must the designator end
by "@", the procedure result output in with the table of contents in,
document named zf-outfile.txt, this document is the automatic
production.
- 2022-06-01 10:33:22下载
- 积分:1
-
专门用来包装virtools文件的另一款工具,很好用的
专门用来包装virtools文件的另一款工具,很好用的-Dedicated to packaging virtools file another tool, a very good use
- 2022-01-29 00:37:51下载
- 积分:1
-
CppUnit源码和源码解析指导,里面用到很多设计模式,很好的代码...
CppUnit源码和源码解析指导,里面用到很多设计模式,很好的代码-CppUnit source and source analytic guidance, which used a lot of the design mode, very good code
- 2022-04-16 17:09:32下载
- 积分:1
-
一个简单的编译器,词法分析,语法分析,代码生成
一个简单的编译器,有词法分析,语法分析,代码生成-a simple compiler, lexical analysis, grammar analysis, code generation
- 2022-04-16 04:53:04下载
- 积分:1
-
语法分析器 能够对输入的数据进行判断 进行分析 判别输入字符串的各种信息...
语法分析器 能够对输入的数据进行判断 进行分析 判别输入字符串的各种信息
- 2023-02-28 18:40:02下载
- 积分:1
-
系统地讲述了计算机语言的编译原理。如:编译器、词法分析、文法等...
系统地讲述了计算机语言的编译原理。如:编译器、词法分析、文法等-Systematically about the principles of computer language compiler. Such as: compiler, lexical analysis, grammar, etc.
- 2023-03-09 13:55:04下载
- 积分:1
-
编写一个C语言的子集的词法分析程序,对C语言源代码程序进行扫描,识别简单语言的基本字、标识符、无符号整数、运算符和界符等单词符号,产生的单词转换成特别码表示,形...
编写一个C语言的子集的词法分析程序,对C语言源代码程序进行扫描,识别简单语言的基本字、标识符、无符号整数、运算符和界符等单词符号,产生的单词转换成特别码表示,形成word文件(单词序列)保存。-CCwordSequence) preservation.
- 2022-01-26 05:44:59下载
- 积分:1