搜索资源列表
lexicalanalysis
- 为了实现的编译程序实用,源程序可采用自由书写格式,即一行内可以书写多个语句,一个语句也可以占领多行书写;标识符的前20个字符有效;整数用2个字节表示;长整数用4个字节表示。这样词法分析程序的主要工作为: (1)从源程序文件中读入字符。 (2)统计行数和列数用于错误单词的定位。 (3)删除空格类字符,包括回车、制表符空格。 (4)按拼写单词,并用(种别,单词)二元式表示。 (5)根据需要是否填写标识符表供以后各阶段使用。 这里采用的编译程序的实现方法是一遍扫描,即从左到右只
语法分析
- 打开2.tab.c编译运行,a.txt为测试用的PL/0程序。 2.output中有所有的产生式和LALR分析表的所有状态。- Opens the 2.tab.c translation movement, a.txt is measures the test the PL/0 procedure. In 2.output has all production patterns and LALR analytical table all conditions.
form
- 本程序为一编译器,模拟链接,可通过TAB键选择按钮,enter键进入链接
c
- 实现源程序输入串中注释、续行符的删除,换行符和Tab的替换,大写字母变换,得到预处理后的文本串,为单词识别做好准备。-Realization of input strings in the source notes, continued at the deleted line, newlines, and Tab replacement, capital letters transform, obtained after pretreatment of the text string, read
cifafenxi
- 简单词法分析器构造在开始状态,首先要读进一个字符。若读入的是一个空格(包括blank,tab,newline)就跳过它,再继续读字符,直到读进一个非空字符为止。 在标识符状态,识别并组合出一个标识符之后,还必须加入一些动作,以便查保留字表,确定识别出的单词符号是保留字,还是用户自定义标识符,并输出相应的记号。 在无符号数状态,可识别出各种常数,包括整数在内。在组数的同时,还要做从十进制数到二进制数的转换。 -A simple lexical analyzer constructed
translatorHTML2RTF
- This a HTML to RTF translator. This translator is done in LEX and YACC. You need to pass to the translator the html file and the application will output a file formatted in rtf style according to the html you ve entered. For using: lex file.l, yacc
cparser
- lex and yacc for string interpreter
tab
- 编译实验,语法分析,实现建立TABLE表-Compiler parsing