登录
首页 » Compiler program » 这是一个用C++实现的语法制导翻译程序,当输入一个表达式时可以将其转化为相应的四元式...

这是一个用C++实现的语法制导翻译程序,当输入一个表达式时可以将其转化为相应的四元式...

于 2022-01-26 发布 文件大小:7.35 kB
0 97
下载积分: 2 下载次数: 1

代码说明:

这是一个用C++实现的语法制导翻译程序,当输入一个表达式时可以将其转化为相应的四元式-This is a realization of the C syntax translation guided procedure, when an input expression can be translated into the corresponding four yuan-

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

发表评论

0 个回复

  • brief introduction, the entire project is divided into five documents : Main.c
    简单介绍一下,整个工程分为5个文件:Main.c ----- 程序的入口点,其实很简单,就是调用两个函数。Global.h ----- 定义了一些全局变量及宏Parse.h ----- 语法分析器的主要算法Prece.h ----- 定义和实现了一些关于优先级的操作Stack.h ----- 定义和实现了一个栈及其操作编译的时候只要用TC2.0或者WinTC打开Main.c文件进行编译就好了。如发现有Bug请在这里贴出来或者把修改后的代码跟帖在这里:)总之,这个工程仅仅是一个简单示例,告诉大家怎么样把课堂上学到的知识运用到实际编程当中去,工程中所用到的模块化思想,数据结构等知识都是大家学过的,大三了,希望大家在最后这段时间里把写程序的本领练就出来。:)-brief introduction, the entire project is divided into five documents : Main.c----- procedure entry point, it is actually very simple, it is called two functions. Global.h----- definition of global variables and Wang Parse.h----- parser the main algorithm Prece.h----- definition and realization of a number of priority the operation Stack.h----- the definition and implementation of a stack and operation of the compiler used whenever WITH TC 2.0 or WinTC open Main.c documents compiled enough. If found please Bug out here or affixed to amend the code of Columbia here :) Overall, the project is just a simple example, like to tell you how to put classroom knowledge
    2022-09-22 15:55:02下载
    积分:1
  • 赋值语言翻译(C++)源代码+详细的课程设计报告 定义赋值语句;分析出翻译中要解决的问题;明确翻译错误的表达以及处理...
    赋值语言翻译(C++)源代码+详细的课程设计报告 定义赋值语句;分析出翻译中要解决的问题;明确翻译错误的表达以及处理-Assignment language translation (C++) Source code report detailed the definition of curriculum design assignment analysis of translation problems to be solved clear expression of a translation error, as well as treatment
    2023-04-26 15:30:03下载
    积分:1
  • seg数据的各种转换代码,比较全,总共四个,为了凑5个,能下载原吗,忍痛3啊...
    seg数据的各种转换代码,比较全,总共四个,为了凑5个,能下载原吗,忍痛3啊-seg code conversion of data to compare the whole, a total of four, five in order to put together, you can download the original, and in pain 3 ah
    2022-01-25 16:10:28下载
    积分:1
  • VC环境下实现的词法分析,语法分析程序 VC VC VC
    VC环境下实现的词法分析,语法分析程序 VC VC VC-VC environment under the lexical analysis, grammar analysis procedures VC VC VC
    2022-05-24 16:16:36下载
    积分:1
  • PASCAL 源程序转 C 语言源程序
    PASCAL 源程序转 C 语言源程序-PASCAL C language source to source
    2022-06-03 00:39:48下载
    积分:1
  • 一个也可以在UNIX里实现的词法扫描程序
    一个也可以在UNIX里实现的词法扫描程序- Also may the morphology scanning procedure which realizes in UNIX
    2022-02-20 08:18:34下载
    积分:1
  • 一个汇编语言编译器源码
    一个汇编语言编译器源码- A assembly language compiler source code
    2023-04-27 11:25:03下载
    积分:1
  • OH, a c variable target language compiler source code, the compiler can use vc.n...
    lcc,一个可变目标c语言编译器的源码,可以用vc.net编译-OH, a c variable target language compiler source code, the compiler can use vc.net
    2022-10-23 11:50:03下载
    积分:1
  • 一个小翻译用C++语言编的,可以
    用C语言编的一个小解释器,可以执行C程序的!算是可以执行C程序的C程序吧! (大师)写的哦!- A small interpreter arranges which with the C language, may carry out the C procedure! Is may carry out C the procedure C procedure! (Master) writes oh!
    2022-05-22 18:44:48下载
    积分:1
  • LL(1)文法使用的是确定的自顶向下的分析技术。LL(1)的含义是:第一个L表明自顶向下分析是从左向右扫描输入串,第2个L表明分析过程中将使用最左推导,1表明只...
    LL(1)文法使用的是确定的自顶向下的分析技术。LL(1)的含义是:第一个L表明自顶向下分析是从左向右扫描输入串,第2个L表明分析过程中将使用最左推导,1表明只需向右看一个符号便可决定如何推导,即选择哪个产生式(规则)进行推导。-LL (1) grammar using a set top-down analysis techniques. LL (1) the meaning is: the first one L shows a top-down analysis is a scan input string from left to right, the first two L shows the analysis process will be the most left-derivation, one that will be just right to see a sign can decide how to derive, choose what Production (rules) for derivation. LL (1) grammar, followed by calculation of the discriminant needs FIRST sets, FOLLOW sets and SELLECT set, and then determine whether to LL (1) grammar, the last sentence further analysis.
    2022-02-06 11:59:23下载
    积分:1
  • 696518资源总数
  • 105540会员总数
  • 37今日下载