登录
首页 » Compiler program » 简单的词法扫描器,可以分析各种简单的C原文件

简单的词法扫描器,可以分析各种简单的C原文件

于 2022-01-28 发布 文件大小:7.20 kB
0 131
下载积分: 2 下载次数: 1

代码说明:

简单的词法扫描器,可以分析各种简单的C原文件-simple lexical scanner, a simple analysis of the original documents C

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

发表评论

0 个回复

  • 词法分析器 对输入的程序进行分析,将关键字,保留字与系统标识符分开,并对其属性进行说明。 建立数组,将单词读入,对单词的ASCII码进行判断,将在ASCII码值...
    词法分析器 对输入的程序进行分析,将关键字,保留字与系统标识符分开,并对其属性进行说明。 建立数组,将单词读入,对单词的ASCII码进行判断,将在ASCII码值在一定区间进行区分(使用if语句来判断),分开来后,对其所在ASCII值区间的不同,给予以不同的属性(比如:系统保留字…),词法分析器完成后要能识别+,-,=等字符。-lexical analyzer on the importation procedures for analysis, keyword, the word reservation system with separate identifier, and a description of their attributes. The establishment of an array, you read the word, the right word ASCII judgment, in ASCII value in a certain area and distinguish between (use to determine if statements), separately, its value lies ASCII range of different, to give a different properties (such as : system retain the word ...), after the completion of a lexical analyzer to identify,-, =, etc. characters.
    2022-02-26 09:14:02下载
    积分:1
  • basic c compiler 类似于basic语法的脚本
    basic c compiler 类似于basic语法的脚本-basic c compiler is similar to basic grammar of the script
    2023-01-07 18:35:03下载
    积分:1
  • make文件自动生成器,可生成多种编译器的make文件
    make文件自动生成器,可生成多种编译器的make文件-make document automatic production, may produce the many kinds of compilers the make document
    2022-07-03 13:39:41下载
    积分:1
  • VC realize the program used to compile a small system, in the system to achieve...
    该程序用VC实现了一个小型编译系统,在系统中实现了完整的词法扫描,语法分析,予以分析以及模拟代码生成等模块.-VC realize the program used to compile a small system, in the system to achieve a complete lexical scanning, syntax analysis, to analysis and simulation code generation modules.
    2022-03-09 20:03:49下载
    积分: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
  • 词法分析,是一个一个单词的分析
    词法分析,是一个一个单词的分析- The lexical analysis, is one by one the word analysis
    2022-03-17 10:53:17下载
    积分:1
  • 判断a^mba^n m,n=0的字符串
    判断a^mba^n m,n=0的字符串- Judges a^mba^n m, the n=0 character string
    2022-05-24 12:20:42下载
    积分:1
  • c下的词法分析器代码,很实用的
    c下的词法分析器代码,很实用的-c morphology analyzer code, is very practical
    2023-04-06 00:00:04下载
    积分:1
  • 用LL(1)法对布尔表达式的语法分析
    用LL(1)法对布尔表达式的语法分析- (1) the law analyzes with LL to the Boolean expression grammar
    2022-01-21 05:59:58下载
    积分:1
  • 编译原理实践教程PL0语言编译程序源代码。参考书:清华大学出版社的《编译原理》作者吕映芝、张素琴等。 实现主要功能有:对使用PL0语言编写的程序进行词法分析...
    编译原理实践教程PL0语言编译程序源代码。参考书:清华大学出版社的《编译原理》作者吕映芝、张素琴等。 实现主要功能有:对使用PL0语言编写的程序进行词法分析,查看词法分析的结果,语法分析, 生成中间代码并可供查看,以及解释执行。 压缩包中含有实验报告文本,其中有程序中各功能模块及主要功能的详细说明。-Compilation Principle Practice Guide PL0 source language compiler. Reference: Tsinghua University Press, Compiler Construction Principles author Lu Ying-chi, such as Su-Qin Zhang. The realization of the main functions are: the use of language PL0 lexical analysis procedure to see the results of lexical analysis, syntax analysis, intermediate code generation and will also be available to view and explain the implementation. Experimental package contains the text of the report, including detailed description of every functional process modules and main functions.
    2022-07-02 04:07:16下载
    积分:1
  • 696518资源总数
  • 106227会员总数
  • 11今日下载