-
词法分析器:源程序的运行方式: 运行程序 输入一个已存在的文本文档的文件名。如:input.txt 如果要对整个程序进行语法分析,则按‘y’键,否则按‘n’键...
词法分析器:源程序的运行方式: 运行程序 输入一个已存在的文本文档的文件名。如:input.txt 如果要对整个程序进行语法分析,则按‘y’键,否则按‘n’键 如果要对程序进行语法分析,则按‘y’键,否则按‘n’键 程序结束-lexical analyzer : the source of the mode of operation : the importation of operational procedures already exist in a text file in the file name. Such as : input.txt if the entire procedure syntax analysis, the provision "y" button, or by the "n" key to the procedure syntax analysis, the provision "y" button, or by the "n" key end of the program
- 2022-08-11 09:13:53下载
- 积分:1
-
Compilation Principle grammar
编译原理语法&词法分析器(附带实验报告)希望对大家有用-Compilation Principle grammar
- 2022-03-12 15:06:21下载
- 积分: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
-
TINYC source code
TINYC的源代码-TINYC source code
- 2023-04-16 17:45:04下载
- 积分:1
-
为EBNF符号对象的完整支持;
Complete support for EBNF notation; Object-oriented parser design; C++ output; Deterministic bottom-up "shift-reduce" parsing; SLR(1), LALR(1) and LR(1) table construction methods; Automatic parse tree creation; Possibility to output parse tree in XML format; Verbose conflict diagnostics; Generation of tree traverse procedures
- 2022-01-24 16:51:06下载
- 积分:1
-
使用Eclipse开发的词法分析器和语法分析器,其中词法分析器用的自己设计的算法~...
使用Eclipse开发的词法分析器和语法分析器,其中词法分析器用的自己设计的算法~-use Eclipse development of the lexical analyzer and parser, with the lexical analyzer designed algorithm ~
- 2022-03-12 07:00:07下载
- 积分:1
-
The use of C/C++ language as the implementation language, to achieve a simple PL...
使用C/C++语言作为实现语言,实现一个简单PL/0语言的编译器。手工编码实现编译器的组成部分。语法分析程序采用递归下降分析法。-The use of C/C++ language as the implementation language, to achieve a simple PL/0 language compiler. Hand-coding part of the compiler. Parser uses recursive descent analysis.
- 2023-03-06 02:05:03下载
- 积分:1
-
对于中文分词词典,并对词典数据进行标注…
用于中文分词的切分词典,还有词性标注,以这个词典数据库为基础建立文本分类,文本检索或文本过滤可以节省很多时间.很全,强烈推荐!-for the Chinese word segmentation Dictionary, and tagging to the dictionary database based text classification, text retrieval or text filtering can save a lot of time. All very strongly recommended!
- 2022-08-10 07:33:12下载
- 积分:1
-
转别人的,很难找,不会编译啊,请教高手多指点
转别人的,很难找,不会编译啊,请教高手多指点-To others, it is difficult to find, will not compile, ah, many experts point to ask
- 2022-07-11 02:22:54下载
- 积分:1
-
《编译原理实践教程》中的程序作了一些扩展,可以将程序转化成四元式。 本人认为书上的程序极为垃圾!
《编译原理实践教程》中的程序作了一些扩展,可以将程序转化成四元式。 本人认为书上的程序极为垃圾!- "Translation Principle Practice Course" the center procedure
has made some expansions, may transform the procedure four Yuan types.
Myself think in the book procedure extremely trash!
- 2023-06-16 23:55:03下载
- 积分:1