登录
首页 » Compiler program » 这个语法分析器用到的是自顶向下的递归调用的方法,根据Cminus语言的文法规则 的BNF范式编写递归调用的代码,parse方法是程序的入口,它调用的stmt_s...

这个语法分析器用到的是自顶向下的递归调用的方法,根据Cminus语言的文法规则 的BNF范式编写递归调用的代码,parse方法是程序的入口,它调用的stmt_s...

于 2023-07-09 发布 文件大小:137.77 kB
0 89
下载积分: 2 下载次数: 1

代码说明:

这个语法分析器用到的是自顶向下的递归调用的方法,根据Cminus语言的文法规则 的BNF范式编写递归调用的代码,parse方法是程序的入口,它调用的stmt_sequence完成整个语法分析工作,stmt_sequence背后是12个互相调用的方法,它本身也在语法分析的过程中被调用到。 每个方法在最后会返回一个构造好的节点DefaultMutableTreeNode节点t给调用它的方法,然后调用它的方法用这个返回的节点继续构造,最后语法分析完成后会返回一棵完全构造好了的树节点,然后将这个树节点作为根节点生成一个树控件JTree显示到窗体程序上 -CMM  parser

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 这个源为C编译器生成的386或
    This the source for a C compiler that generates 386 or m68K code. Code generation is fairly good although the optimizer is a little naive... the code itself should be highly portable although there are some issues involved with porting from MSDOS that have to be resolved for example the size of LONG on unix machines is so big some of the code generated gets messed up.
    2022-02-07 18:17:54下载
    积分:1
  • this a pack include source code for quartus 2. It is an implementation of t...
    this a pack include source code for quartus 2. It is an implementation of the LC2. The LC-2 computer is described in Introduction to Computing Systems from Bits & Gates to C & Beyond by Yale Patt and Sanjay Patel, McGraw Hill, 2001. The LC2 model can be run as a simulation or downloaded to the UP3 in a larger model, TOP_LC2 that adds video output. Push buttons reset and single step the processor and a video output display of registers is generated. This state machine VHDL-based model of the LC-2 includes all source files. Currently compiled for a Cyclone EP1C6Q240 FPGA.
    2022-03-21 20:11:09下载
    积分:1
  • VC++设计语法编辑器
    VC++设计语法编辑器-VC design grammar editor
    2022-01-27 21:08:28下载
    积分:1
  • flex code,compiler theory curriculum design, the C write PL / 0 compiler, a deta...
    flex code,compiler theory curriculum design, the C write PL / 0 compiler, a detailed documentation and code -flex code, compiler theory curriculum design, the C write PL/0 compiler, a detailed documentation and code
    2022-08-11 12:30:35下载
    积分:1
  • 语言解释器的源代码,可以在Linux,Windows,
    Lua语言解释器源代码,可以在linux,windows,
    2022-04-28 10:47:39下载
    积分:1
  • 编译原理的词法分析器!
    编译原理的词法分析器!-Compilation Principle of lexical analyzer!
    2022-03-26 00:18:30下载
    积分:1
  • 突出真实
    HIGHLIGHT TRUE #define NOHIGHLIGHT FALSE #define UPDATE TRUE #define NOUPDATE FALSE #define FORMAT TRUE #define NOFORMAT FALSE #define LEFT 0-HIGHLIGHT# define NOHIGHLIGHT TRUE FALSE UPDATE# define TRUE## define FALSE de NOUPDATE fine FORMAT# define TRUE FALSE# defin NOFORMAT e LEFT 0
    2022-06-02 08:45:33下载
    积分:1
  • Communication System PCM codec mode. matlab achieve.
    通信传输系统中的PCM编码解码方式。matlab实现。-Communication System PCM codec mode. matlab achieve.
    2022-08-06 01:34:08下载
    积分:1
  • 基于控制台的词法分析器
    基于控制台的词法分析器- Based on control bench morphology analyzer
    2022-04-28 23:23:58下载
    积分:1
  • 计算机器程序~ 附带词法分析~
    计算机器程序~ 附带词法分析~- Computation machine program ~ supplementary lexical analysis ~
    2022-01-24 17:09:53下载
    积分:1
  • 696516资源总数
  • 106457会员总数
  • 15今日下载