-
commonly used programming language syntax and grammar forms to the public. Among...
现将本人搜集常用的程序设计语言的词法和形式文法提供给大家。其中,词法是按LEX格式编辑,形式文法是按YACC格式书写,大家可直接用LEX和YACC工具编译生成各类程序设计语言的分析器。-commonly used programming language syntax and grammar forms to the public. Among them, morphology is based on LEX format editing, grammar form is written by YACC format, we can use the LEX and YACC tools various compiler generation programming language analyzer.
- 2022-01-24 17:36:45下载
- 积分: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
-
这个源为C编译器生成的386或
This the source for a C compiler that generates 386 or
m68K code. Code generation is fairly good although the optimizer is
a little naive... the code itself should be highly portable although
there are some issues involved with porting from MSDOS that have to
be resolved for example the size of LONG on unix machines is so big
some of the code generated gets messed up.
- 2022-02-07 18:17:54下载
- 积分:1
-
简单的词法分析器 编译课程综合训练 java语言
简单的词法分析器 编译课程综合训练 java语言 -Simple lexical analyzer to compile a comprehensive training course java language
- 2022-03-20 11:20:02下载
- 积分:1
-
The translation principle procedure, please much advises.
编译原理程序,请多指教。- The translation principle procedure, please much advises.
- 2022-08-26 09:51:32下载
- 积分:1
-
Reorganizes unix v7 ya
整理 unix v7 的 ya- Reorganizes unix v7 ya
- 2022-03-04 16:01:54下载
- 积分:1
-
一个自己写的NFA转DFA的程序,编译的作业,很不错哦!
一个自己写的NFA转DFA的程序,编译的作业,很不错哦!-Write their own procedures for NFA to DFA, the compiler of the operation, is pretty good, oh!
- 2023-01-31 07:30:03下载
- 积分:1
-
The Lua code will be embedded in a presentation to their own method of procedure
本代码演示了将Lua嵌入到自己程序中的方法
-The Lua code will be embedded in a presentation to their own method of procedure
- 2022-04-14 11:34:49下载
- 积分:1
-
PHP解释器
PHP解释器 -PHP interpretor
- 2022-01-21 20:54:09下载
- 积分:1
-
编译原理实用教程PPT,中国水利水电出版社,作者杨德芳
编译原理实用教程PPT,中国水利水电出版社,作者杨德芳-failed to translate
- 2022-02-21 20:00:10下载
- 积分:1