登录
首页 » Compiler program » brief introduction, the entire project is divided into five documents : Main.c

brief introduction, the entire project is divided into five documents : Main.c

于 2022-09-22 发布 文件大小:11.82 kB
0 151
下载积分: 2 下载次数: 1

代码说明:

简单介绍一下,整个工程分为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

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

发表评论

0 个回复

  • java 词法分析器 c语言实现. java 词法分析器 c语言实现.
    java 词法分析器 c语言实现. java 词法分析器 c语言实现.-java lexical analyzer c language. java lexical analyzer c language.
    2022-06-17 03:56:02下载
    积分:1
  • c写的plo源程序,包括词法分析,语法分析,语义分析,可以通过vc++6.0编译...
    c写的plo源程序,包括词法分析,语法分析,语义分析,可以通过vc++6.0编译-c write plo source, including lexical analysis, syntax analysis, semantic analysis, can vc++ 6.0 compiler
    2022-02-07 13:27:22下载
    积分:1
  • c/C++ 代码安全检测,c/C++ 代码安全检测
    c/C++ 代码安全检测,c/C++ 代码安全检测 -check c/c++ code security check c/c++ code security
    2022-01-24 18:11:57下载
    积分:1
  • #包括“定义。”
    #include "define.h" #include #include #include #include FILE *fp /*////////////////////////////////////////////////////////////////////////////// This is a pretreatment. /////////////////////////////////////////////////////////////////////////////*/ void readIntoBuffer(char buffer[256]) { char ch1 char temp int i for(i=0 i
    2022-07-10 06:26:26下载
    积分:1
  • five micro
    5个微型词法分析器,供参考-five micro-lexical analyzer for reference
    2022-04-28 02:14:17下载
    积分:1
  • 前些天写了个小语言的词法分析程序,因为前些天在VC知识库看到一个pascal词法分析的程序,觉得写得挺复杂的。其实词法分析程序的原理都是一样的,所以我想只要搞明...
    前些天写了个小语言的词法分析程序,因为前些天在VC知识库看到一个pascal词法分析的程序,觉得写得挺复杂的。其实词法分析程序的原理都是一样的,所以我想只要搞明白了简单的词法分析程序,再写复杂的就不难了,无非是多加几个关键字,多写几个条件判断语句而已。词法分析是编译程序的基础,也是最简单的。好,现在让我们看程序吧。 先让我们看看这个小语言的文法吧-few days ago wrote a small language lexical analysis procedures, because the other day in the knowledge base to see a VC pascal lexical analysis procedures, find that quite complex. In fact, lexical analysis procedure is the same principle, I think if you understood a simple lexical analysis procedure to write complex it is not difficult, is nothing but add a few keywords and writing several conditions judgment statement it. Lexical analysis is the basis of compilers, as well as the most simple. Well, now let us look at the procedures it. Let us look at this small language grammar it
    2022-08-08 01:17:36下载
    积分:1
  • C_minus BNF language syntax definition of procedures from the list of statement...
    C_minus语言的BNF语法定义 程序由声明的列表(或序列)组成,声明可以是函数或变量声明,顺序是任意的。至少必须有一个声明。接下来是语义限制(这些在C中不会出现)。所有的变量和函数在使用前必须声明(这避免了向后backpatching引用)。程序中最后的声明必须是一个函数声明,名字为main。注意,C-缺乏原型,因此声明和定义之间没有区别(像C一样)。-C_minus BNF language syntax definition of procedures from the list of statement (or sequence), with a statement can be variable or function statement, the order is arbitrary. There must be at least one statement. Next is the semantic constraints (these will not arise C). All the variables and functions to be used in the statement (which avoids the use Backpatching backwards). Procedures must be the last statement is a function declaration, the name of the main. Attention C- lack of a prototype, and the definition of a statement is no difference between (the same as C).
    2022-03-04 15:33:26下载
    积分:1
  • 词法分析程序。用于词法分析器的制作与应用。
    词法分析程序。用于词法分析器的制作与应用。-lexical analysis procedure. Lexical analyzer for the production and application.
    2022-03-24 12:45:44下载
    积分:1
  • 一个很不错的可视化词法分析器 用C++写的,是编译老师布置的作业...
    一个很不错的可视化词法分析器 用C++写的,是编译老师布置的作业-a very good visual lexical analyzer written in C, compile teachers layout operations
    2022-05-26 05:27:13下载
    积分:1
  • 一个程序,用于判定给定的文法是否为LL(1)文法。 实现了:1.文法的机内表示;2. FIRST集和FOLLOW集的计算; 3. LL(1)预测分析表的构造。...
    一个程序,用于判定给定的文法是否为LL(1)文法。 实现了:1.文法的机内表示;2. FIRST集和FOLLOW集的计算; 3. LL(1)预测分析表的构造。-a procedure for the determination of grammar to whether LL (1) grammar. Realized : 1. Grammar said the machines; 2. FIRST FOLLOW sets and set computing; 3. LL (1) Forecast and Analysis table structure.
    2022-02-02 05:12:53下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载