登录
首页 » Compiler program » 一个词法分析实验的源代码

一个词法分析实验的源代码

于 2022-03-21 发布 文件大小:106.97 kB
0 194
下载积分: 2 下载次数: 1

代码说明:

一个词法分析实验的源代码- A lexical analysis experiment source code

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

发表评论

0 个回复

  • 词法分析 从字符串表示的源程序中识别单词符号
    词法分析 从字符串表示的源程序中识别单词符号-Lexical analysis of source code from a string that identify word symbols
    2023-04-08 04:20:03下载
    积分:1
  • 词法分析器 对输入的程序进行分析,将关键字,保留字与系统标识符分开,并对其属性进行说明。 建立数组,将单词读入,对单词的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
  • 算符优先分析过程模拟 希望给大家帮助
    算符优先分析过程模拟 希望给大家帮助-算符优先分析过程模拟
    2022-08-09 22:00:45下载
    积分:1
  • 用词法+语法分析树写的四则运算,非常强大
    用词法+语法分析树写的四则运算,非常强大
    2022-03-22 11:19:24下载
    积分:1
  • 陈火旺的程序设计语言编译原理,里面是pdf格式的
    陈火旺的程序设计语言编译原理,里面是pdf格式的-Chen Huowang the principle of programming language compilers, which are pdf format
    2022-04-18 10:36:14下载
    积分:1
  • nVidia graphics development of the Cg language, used for pixel and vertex exagge...
    nVidia开发的图形语言 Cg,用于进行顶点渲染和象素渲染,语法类似于 C。-nVidia graphics development of the Cg language, used for pixel and vertex exaggerated exaggerated, similar to the C syntax.
    2022-07-04 14:18:06下载
    积分:1
  • 一个小语言的词法分析器,由此可以写出其他各种语言的词法分析器。这对编译原理的初学者或许有一定的帮助。...
    一个小语言的词法分析器,由此可以写出其他各种语言的词法分析器。这对编译原理的初学者或许有一定的帮助。-a small language lexical analyzer, it can be written in various languages other lexical analyzer. This compiler theory and beginners may be of some help.
    2022-08-17 20:51:49下载
    积分:1
  • Compiler Principle of First Set and Follow procedures set generation, which is m...
    编译原理中的First集与 Follow集生成程序,这是我用C++语言写的,希望对大家有点用处。-Compiler Principle of First Set and Follow procedures set generation, which is my C++ languages, we hope to somewhat useful.
    2022-08-03 11:14:07下载
    积分:1
  • 2022-02-11 19:46:34下载
    积分:1
  • 为了实现编译器的实用,可自由编写源代码…
    为了实现的编译程序实用,源程序可采用自由书写格式,即一行内可以书写多个语句,一个语句也可以占领多行书写;标识符的前20个字符有效;整数用2个字节表示;长整数用4个字节表示。这样词法分析程序的主要工作为: (1)从源程序文件中读入字符。 (2)统计行数和列数用于错误单词的定位。 (3)删除空格类字符,包括回车、制表符空格。 (4)按拼写单词,并用(种别,单词)二元式表示。 (5)根据需要是否填写标识符表供以后各阶段使用。 这里采用的编译程序的实现方法是一遍扫描,即从左到右只扫描一次源程序,也就是词法分析作为语法分析的一个子程序。故在编写词法分析程序时,用重复调用词法分析子程序取一单词的方法得到整个源程序的二元式流。 -in order to achieve the compiler practical, available free to write source code format, that his writing can be more than words, a statement can occupy multiple lines written; identifier of 20 characters effective; Integer with two byte; long integer with four byte. This lexical analysis for major work : (1) from source document read into the characters. (2) Statistics and a few mistakes out a few words for positioning. (3) delete the blank type characters, including the carriage return, tab spaces. (4) the spelling words and use (other species, words) dual ceremony. (5) whether the need for completing the table identifier subsequent stages. Here the compilers of th
    2022-01-23 11:14:40下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载