-
TINY+编译器源码
语言表达式的定义
(1) <表达式> ::= <算术表达式>|<逻辑表达式>...
TINY+编译器源码
语言表达式的定义
(1) ::= |
(2) ::= ±|±|
(3) ::= *|/|
(4) ::=
(5) ::= |
(6) ::= or |
(7) ::= and |
(8) ::= |not
(9) ::= | | |
(10) ::= ||=| =-err
- 2023-04-14 01:05:03下载
- 积分:1
-
A VisualC++ Realize the C
一个VisualC++实现的C-语言的编译器-A VisualC++ Realize the C-language compiler
- 2022-07-02 02:14:29下载
- 积分:1
-
编译原理的词法分析器!
编译原理的词法分析器!-Compilation Principle of lexical analyzer!
- 2022-03-26 00:18:30下载
- 积分:1
-
一个编译器 包括词法分析和语义分析 是课程设计 有要借鉴的同学可以参考...
一个编译器 包括词法分析和语义分析 是课程设计 有要借鉴的同学可以参考-a compiler including lexical analysis and semantic analysis of the design of the curriculum to learn from the students can refer to
- 2022-03-13 08:13:33下载
- 积分:1
-
PL/0语言的词法分析,主要是将每个词识别并且读入
PL/0语言的词法分析,主要是将每个词识别并且读入-PL/0 language lexical analysis, mainly to identify each word and read
- 2023-06-10 07:45:03下载
- 积分:1
-
构造接受语言{{}}的一台自动机,对于任意输入的一个字符串,模拟其运行过程,判断字符串是否接受。...
构造接受语言{{}}的一台自动机,对于任意输入的一个字符串,模拟其运行过程,判断字符串是否接受。-structure acceptable language (()) of an automatic machine for the indiscriminate importation of a string, its process simulation, the judge whether to accept the string.
- 2022-05-12 11:44:55下载
- 积分:1
-
词法分析器:源程序的运行方式: 运行程序 输入一个已存在的文本文档的文件名。如:input.txt 如果要对整个程序进行语法分析,则按‘y’键,否则按‘n’键...
词法分析器:源程序的运行方式: 运行程序 输入一个已存在的文本文档的文件名。如:input.txt 如果要对整个程序进行语法分析,则按‘y’键,否则按‘n’键 如果要对程序进行语法分析,则按‘y’键,否则按‘n’键 程序结束-lexical analyzer : the source of the mode of operation : the importation of operational procedures already exist in a text file in the file name. Such as : input.txt if the entire procedure syntax analysis, the provision "y" button, or by the "n" key to the procedure syntax analysis, the provision "y" button, or by the "n" key end of the program
- 2022-08-11 09:13:53下载
- 积分:1
-
编译原理源代码 以及实验描述 找了很久才找到的
编译原理源代码 以及实验描述 找了很久才找到的-Compiler Construction Principles and experimental description of the source code looking for a long time to find the
- 2022-09-07 15:15: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
-
一个外国人写的词法分析程序,大家可以参考一下,不过代码太多了!
有点难...
一个外国人写的词法分析程序,大家可以参考一下,不过代码太多了!
有点难-a foreigner writing lexical analysis procedures, we can take a look, but too many of code! Hard
- 2022-03-24 03:52:29下载
- 积分:1