-
这里以开始定义的PASCAL语言子集的源程序作为词法分析程序的输入数据。在词法分析中,自文 件头开始扫描源程序字符,一旦发现符合“单词”定义的源程序字符串时,将...
这里以开始定义的PASCAL语言子集的源程序作为词法分析程序的输入数据。在词法分析中,自文 件头开始扫描源程序字符,一旦发现符合“单词”定义的源程序字符串时,将它翻译成固定长度的单 词内部表示,并查填适当的信息表。经过词法分析后,源程序字符串(源程序的外部表示)被翻译成 具有等长信息的单词串(源程序的内部表示),并产生两个表格:常数表和标识符表,它们分别包含 了源程序中的所有常数和所有标识符。- Here starts the PASCAL language subset source program which
defines to take the lexical analyaer the data-in. In the lexical
analysis, starts from the article article to scan the source program
character, once discovered when conforms to "the word" the definition
source program character string, translates it the fixed length the
word interior to indicate, and looks up fills in the suitable
information table. After the lexical analysis, the source program
character string (source program exterior expression) is translated
has and so on the long information the word string (source program
internal expression), and produces two forms: The chart and the
identifier table, they have separately contained in source program all
constants and all identifiers.
- 2022-03-30 16:56:06下载
- 积分:1
-
C programm for frequency distribution.
C programm for frequency distribution.
- 2022-07-16 03:01:06下载
- 积分:1
-
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
-
能够生成exe执行文件的vc++源代码程序,多多指教~
能够生成exe执行文件的vc++源代码程序,多多指教~-capable of producing documents vc implementation of the source code procedures, exhibitions ~
- 2022-03-11 07:01:47下载
- 积分:1
-
MIPS32 instruction set of the assembler. Simulation environment in QUARTUS will...
MIPS32指令系统的汇编器。
在QUARTUS仿真环境中,将MIPS32指令写成的汇编程序翻译成二进制写入指令存储器。-MIPS32 instruction set of the assembler. Simulation environment in QUARTUS will MIPS32 assembler written instructions translated into binary memory write instructions.
- 2023-02-08 20:40:04下载
- 积分:1
-
这是扬创2440开发板的一个ADS环境下的一个测试程序,对初学者很有用的....
这是扬创2440开发板的一个ADS环境下的一个测试程序,对初学者很有用的.-Jan 2440 This is a development board an ADS environment of a test procedure, useful for beginners.
- 2023-05-06 00:45:03下载
- 积分:1
-
可插入OLE对象的编辑器
可插入OLE对象的编辑器- May insert the OLE object editor
- 2022-07-01 01:20:16下载
- 积分:1
-
顶程序
本程序用于自顶向下的语法分析。只您输入的上下问无关文法进行分析,并构造出预测分析表。-procedure for the top-down syntax analysis. Only you enter the ministry asked not grammar analysis and structural analysis projected table.
- 2023-07-11 12:30:05下载
- 积分:1
-
#包括<;fstream & gt;
#include
- 2022-02-03 06:24:20下载
- 积分:1
-
LEX程序 用来生成词法分析器
LEX程序 用来生成词法分析器-LEX procedure uses for to produce the morphology analyzer
- 2023-07-16 11:55:03下载
- 积分:1