-
为了实现编译器的实用,可自由编写源代码…
为了实现的编译程序实用,源程序可采用自由书写格式,即一行内可以书写多个语句,一个语句也可以占领多行书写;标识符的前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
-
LCD接口使用CodeVision AVR
Lcd interfacing using code vision avr
- 2022-07-10 14:44:36下载
- 积分:1
-
单词频率统计,再次基础上可以开展更广泛的工作
单词频率统计,再次基础上可以开展更广泛的工作- The word frequency statistics, in the foundation may do a more
widespread work once more
- 2022-03-30 19:35:53下载
- 积分:1
-
串口通信用的全口通信程序,用C++实现的源代码…
口通信 VC 完整串口通信程序Vc++源代码 串口通讯 vc++ 源代码 vc 串口通信 串口通信 mfc 通信 发送程序 vc++ 串口 VC 串口通信程序 完整串口通信程序Vc 源代码 VC串口通信 窜口通信程序 《Visual C /Turbo C串口通信编程实践》 vc 接受串口数据 vc 串口通讯 代码 串口 发送 -Serial Port Communication VC complete communication program Vc++ Source code for serial communication vc++ Source code vc serial communication serial communication procedures mfc communications sent vc++ Serial serial communication program integrity VC serial communication program Vc source code VC serial communication port channeling communication program
- 2022-03-13 06:23:21下载
- 积分:1
-
C++版 词法分析、语法分析器
C++版 词法分析、语法分析器-C version of lexical analysis, grammar analyzer
- 2022-02-14 19:29:46下载
- 积分:1
-
此源代码程序为三色LED灯板PWM 控制程序,实现多路LED灯恒流控制。...
此源代码程序为三色LED灯板PWM 控制程序,实现多路LED灯恒流控制。-This source code program for the tri-color LED lamp board PWM control procedures, to achieve multi-channel constant current LED lamp control.
- 2022-02-01 00:13:15下载
- 积分:1
-
KEIL 编译器的使用说明,共八章非常详细。
KEIL 编译器的使用说明,共八章非常详细。-KEIL compiler userguide, a total of eight chapters in great detail.
- 2022-07-27 03:01:01下载
- 积分:1
-
Experiment to construct a grammar (should consider the transformation) of FIRST...
构造实验一所给文法(应考虑改造)的FIRST集合和FOLLOW集合;构造LL(1)分析表;构造预测分析的总控程序;利用分析表、分析栈和总控程序对源程序进行自上而下的语法分输出整个语法分析过程中栈的变化过程及分析结果,如符合语法规则输出“正确”,否则输出“错误”。
-Experiment to construct a grammar (should consider the transformation) of FIRST and FOLLOW set of the collection construct LL (1) analysis table structural prediction analysis of the master control procedures the use of analytical tables, analyze the stack and the total source code control procedures carried out since the last sub output down syntax parsing process of the whole stack and analysis of the results of the change process, such as the grammatical rules out the " right" , otherwise output " error."
- 2022-08-19 02:16:53下载
- 积分:1
-
C#语言编译器和库文件源码
C#语言编译器和库文件源码-C# Language compiler and library file source
- 2022-01-29 03:09:32下载
- 积分:1
-
A very simple BASIC interpreter. Quite compatible with Microsoft MBASIC (CP/M) a...
A very simple BASIC interpreter. Quite compatible with Microsoft MBASIC (CP/M) and GWBASIC (MS-DOS).
- 2022-01-26 06:17:10下载
- 积分:1