搜索资源列表
lexicalanalysis
- 为了实现的编译程序实用,源程序可采用自由书写格式,即一行内可以书写多个语句,一个语句也可以占领多行书写;标识符的前20个字符有效;整数用2个字节表示;长整数用4个字节表示。这样词法分析程序的主要工作为: (1)从源程序文件中读入字符。 (2)统计行数和列数用于错误单词的定位。 (3)删除空格类字符,包括回车、制表符空格。 (4)按拼写单词,并用(种别,单词)二元式表示。 (5)根据需要是否填写标识符表供以后各阶段使用。 这里采用的编译程序的实现方法是一遍扫描,即从左到右只
LL(1)Analysis
- 大学时的编译大作业,是对LL(1)语法的分析过程,会产生first集,follow集和预测分析表!-University at the time of compiling large operations, is a LL (1) syntax analysis process, will have first set, follow sets and predictive analysis table!
ntc
- Program in C (CCS to compiler). It is a Program in C (CCS to compiler). It is a thermometer realized with a PIC16F84 and a NTC. The time of load of a condenser of fixed value is moderate. The table of the resistance of the thermister versus the time
cifafenxi
- 简单词法分析器构造在开始状态,首先要读进一个字符。若读入的是一个空格(包括blank,tab,newline)就跳过它,再继续读字符,直到读进一个非空字符为止。 在标识符状态,识别并组合出一个标识符之后,还必须加入一些动作,以便查保留字表,确定识别出的单词符号是保留字,还是用户自定义标识符,并输出相应的记号。 在无符号数状态,可识别出各种常数,包括整数在内。在组数的同时,还要做从十进制数到二进制数的转换。 -A simple lexical analyzer constructed
c0_compiler
- 本编译器为扩充C0文法编译器,包含词法分析、语法分析、语义分析、四元式程序设计、符号表管理、错误处理、动态运行栈设计及优化程序设计-C0 as the expansion of the grammar compiler compilers, including lexical analysis, syntax analysis, semantic analysis, four-style programming, symbol table management, error handling,
