-
Java写的词法/语法分析器。可生成JAVA语言或者是C++的词法和语法分析器。并可产生语法分析树和对该树进行遍历...
Java写的词法/语法分析器。可生成JAVA语言或者是C++的词法和语法分析器。并可产生语法分析树和对该树进行遍历 -Syntactic and phrase parser in JAVA which can produce JAVA or C
- 2022-03-12 10:21:31下载
- 积分:1
-
用YACC写的语法分析器
用YACC写的语法分析器- Grammar analyzer writes which with YACC
- 2022-06-17 16:24:20下载
- 积分:1
-
词法分析器,用于输入表达式后输出单个独立的数据项
词法分析器,用于输入表达式后输出单个独立的数据项-lexical analyzer for the importation of expression output of a single independent data item
- 2022-07-06 18:33:27下载
- 积分:1
-
简单的词法分析小例子
简单的词法分析小例子- Simple lexical analysis small example
- 2022-07-28 03:18:57下载
- 积分: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
-
bison源代码.bison 是替代yacc的语法分析程序生成器. yacc是 Yet Another Compiler Compiler的缩写. bison又...
bison源代码.bison 是替代yacc的语法分析程序生成器. yacc是 Yet Another Compiler Compiler的缩写. bison又是什么呐 是一个生成可以分析文本文件结构的程序的程序. 用户不用直接编写程序而只用确定好如何分析这些文本文件的规则就可以了. 这种文本结构应用的例子举不胜举, 其中一个就是计算器(calculator).-bison source code. Bison is a replacement generates a syntax analysis program generator. Yacc yes Yet Another Compiler Compiler"s initials. What is the bison Na is a generation of text files can be analyzed the structure of procedures procedures. users need not directly preparation procedures identified only as good Dr analysis of these text files on the rules. This text structure Application examples abound. which is a calculator (calculator).
- 2023-05-26 21:20:03下载
- 积分:1
-
本程序包括详细的词法分析,语法分析,语义分析和中间代码生成,写得很不错,可读性很强。是关于循环语句的翻译...
本程序包括详细的词法分析,语法分析,语义分析和中间代码生成,写得很不错,可读性很强。是关于循环语句的翻译-this procedure include a detailed analysis of the morphology, syntax, semantic analysis and intermediate code generation, very good, very readable. On the loop is the translation
- 2022-05-13 15:26:00下载
- 积分:1
-
jsp technology, a management system management system
jsp技术,一个管理系统-jsp technology, a management system management system
- 2022-06-21 08:42:16下载
- 积分:1
-
简单的词法分析,可以识别关键字错误,识别无效符号等等,通用!...
简单的词法分析,可以识别关键字错误,识别无效符号等等,通用!-Simple lexical analysis to identify the wrong keywords, identify invalid symbols and so on, General!
- 2022-03-03 08:16:24下载
- 积分:1
-
environment : windows98/2000/xp, Visula 6.0 C compiler through. Graduation topic...
环境:windows98/2000/xp,Visula C++6.0下编译通过.毕业设计的题目,基本上按照编译原理的步骤实现的,有词法分析,检查,表成式生成等,我想大家应该都会喜欢的!-environment : windows98/2000/xp, Visula 6.0 C compiler through. Graduation topic, basically compiled in accordance with the principle of the steps, lexical analysis, inspection, as table-generation, I think we will be like!
- 2022-01-30 14:41:37下载
- 积分:1