-
这个语法分析器用到的是自顶向下的递归调用的方法,根据Cminus语言的文法规则 的BNF范式编写递归调用的代码,parse方法是程序的入口,它调用的stmt_s...
这个语法分析器用到的是自顶向下的递归调用的方法,根据Cminus语言的文法规则 的BNF范式编写递归调用的代码,parse方法是程序的入口,它调用的stmt_sequence完成整个语法分析工作,stmt_sequence背后是12个互相调用的方法,它本身也在语法分析的过程中被调用到。
每个方法在最后会返回一个构造好的节点DefaultMutableTreeNode节点t给调用它的方法,然后调用它的方法用这个返回的节点继续构造,最后语法分析完成后会返回一棵完全构造好了的树节点,然后将这个树节点作为根节点生成一个树控件JTree显示到窗体程序上
-CMM parser
- 2023-07-09 15:45:03下载
- 积分:1
-
c语言分析器。读入一个C语言程序以确定该程序不是合法的C语言程序。如果程序有语法和语义错误,请给出错误消息。至少要处理以下错误:(1)所有的语法错误。C-语法,见C-文档(2)语义错误:
- 2022-05-07 03:29:31下载
- 积分:1
-
Simulation of serial communication serial port communication code M88 simulation...
模拟串口通信代码M88
模拟串口通信代码M-Simulation of serial communication serial port communication code M88 simulation code M
- 2022-02-07 15:40:13下载
- 积分:1
-
Compiler Type Check & Scope Check
Compiler Type Check & Scope Check
- 2022-07-24 19:39:32下载
- 积分:1
-
这是一个词法分析器的实验报告,比较齐全,用C++编写,源码可直接运行...
这是一个词法分析器的实验报告,比较齐全,用C++编写,源码可直接运行-This is a lexical analyzer experiment report, relatively complete, and C++ Prepared source code can be directly run
- 2022-11-14 15:40:04下载
- 积分:1
-
拿出这个程序来主要是因为原文中只有一个LEX程序,
拿出这个程序来主要是因为原文中只有一个LEX程序,- Puts out this procedure to come mainly is because in the
original text only has a LEX procedure,
- 2022-09-16 13:45:03下载
- 积分:1
-
输入已经消除左递归的以及提取公共左因子的LL(1)文法,再输入相应的表达式,若分析成功,则在递归输出过程中输出"acc",若不成功,则有相应的报错以及位置指名。...
输入已经消除左递归的以及提取公共左因子的LL(1)文法,再输入相应的表达式,若分析成功,则在递归输出过程中输出"acc",若不成功,则有相应的报错以及位置指名。注意,要把同一个非终结符的产生式分成单个输入。他会自动计算first,follow,预测分析表的构造,但并不输出。-importation has been eliminated and left recursive public from the left-LL (1) grammar, further importation of the corresponding expression, if the analysis is successful, the output of the recursive process output "belongs", if successful, there were errors and the corresponding location named. Attention, we should end with a non-escalation of production into a single input. He will be automatically calculated first, follow, and predicting and analyzing the table structure, but does not export.
- 2022-03-22 06:15:04下载
- 积分:1
-
文本编辑程序 可以对文本进行修改 添加删除等操作
文本编辑程序 可以对文本进行修改 添加删除等操作- The text editor may carry on the revision increase deletion to
the text and so on to operate
- 2022-05-05 11:18:21下载
- 积分:1
-
m68k series compiled by the C
m68k系列反汇编的C语言源码,供学习编译原理的同学使用。实用!-m68k series compiled by the C-language source code, the compiler theory for studying the students to use. Practical!
- 2023-07-30 23:40:02下载
- 积分:1
-
YYCC语言编译器
YYCC语言编译器-YYCC Language Compiler
- 2022-01-24 12:31:29下载
- 积分:1