-
这个语法分析器用到的是自顶向下的递归调用的方法,根据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
-
一个程序,用于判定给定的文法是否为算符优先文法。 实现了:1.文法的机内表示;2. FIRSTVT集和LASTVT集的计算; 3. 算符优先关系矩阵的构造。...
一个程序,用于判定给定的文法是否为算符优先文法。 实现了:1.文法的机内表示;2. FIRSTVT集和LASTVT集的计算; 3. 算符优先关系矩阵的构造。-a procedure for the determination of grammar to whether the operator priority to grammar. Realized : 1. Grammar said the machines; 2. LASTVT FIRSTVT sets and set computing; 3. Operator precedence relations of the matrix structure.
- 2022-02-18 16:37:46下载
- 积分:1
-
用C++编写的一个简单C语言词法分析器,把需要分析的内容保存在C:input.txt,分
析完毕好保存在C:output.txt...
用C++编写的一个简单C语言词法分析器,把需要分析的内容保存在C:input.txt,分
析完毕好保存在C:output.txt-Using C++ to prepare a simple C language lexical analyzer, the need to analyze the contents stored in C: input.txt, finished the analysis of well preserved in the C: output.txt
- 2022-03-04 19:38:51下载
- 积分:1
-
武汉理工大学计算机学院编译原理课程设计之DO
武汉理工大学计算机学院编译原理课程设计之DO-WHILE语句的翻译程序设计-Wuhan Polytechnic University computer science theory courses compiler design DO-WHILE statement to the translation program design
- 2023-08-08 03:55:03下载
- 积分:1
-
C编译器源代码(超级牛b)
C编译器源代码(超级牛b)-C compiler source code (super cow b)
- 2022-03-19 16:59:42下载
- 积分:1
-
本代码为根据老师的课程设计要求做的小编译器的词法分析部分和语法分析部分,附件中有老师的要求文档,还有语法分析时使用到的分析表...
本代码为根据老师的课程设计要求做的小编译器的词法分析部分和语法分析部分,附件中有老师的要求文档,还有语法分析时使用到的分析表-This code is based on the teacher" s curriculum design requirements to do a small part of the compiler" s lexical analysis and syntax analysis section, in the annex to the request of the teacher documents, as well as the use of grammatical analysis to the analysis table
- 2022-03-21 23:02:52下载
- 积分:1
-
关于C编译起的源码,喜欢C++的朋友可以
关于C编译起的源码,喜欢C++的朋友可以-On the C compiler from the source code, like C++" s friends can see
- 2022-01-31 02:00:13下载
- 积分:1
-
简单的使用mfc开发的程序。
简单的使用mfc开发的程序。- Simple use mfc develops procedure.
- 2022-01-27 19:04:33下载
- 积分:1
-
有用,非常得有用。
有用,非常得有用。- Useful, extremely usefully.
- 2022-09-02 07:25:02下载
- 积分:1
-
这是一个PL0编译系统的词法分析程序 能识别出所有的单词并分类...
这是一个PL0编译系统的词法分析程序 能识别出所有的单词并分类-PL0 This is a compiler of lexical analysis procedure to identify all the words and classification
- 2022-04-24 20:01:40下载
- 积分:1