搜索资源列表
C++
- 词法分析是编译程序的第一个处理阶段,可以通过两种途径来构造词法分析程序。其一是根据对语言中各类单词的某种描述或定义(如BNF),用手工的方式构造词法分析程序。例如,可根据文法或状态转换图构造相应的状态矩阵,该状态矩阵同控制程序便组成了编译程序的词法分析程序;-Lexical analysis is a compiler of the first processing stage, can be two ways to construct the lexical analysis process.
shiyan2
- 本函数是一个词法分析器,其分析主要从几个方面入手: * * 1.先判别是不是注释。一旦读入的字符出现 / * ,则用一个while循环一直读取下面的字符,直到出现* /为止。 * * 2.接着判断是不是以数值开头的。如果是以数值开头则再分情况讨论: * A.在遇到空格之前,后面读进来的都是数值的话,则很明显,这是一个数。然后将其种别码输出来(37,-) * B.在遇到空格之前,后面读进来的都是数值的话,譬如123ac 那么这是一个非法字符,输出错误-This funct
NE555-as-temperature-regulator
- In this archive is included an example code in proton basic compiler how to implement NE555 as temperature regulator.Working principle is based on the change of resistance of variable resistor NTC. Changing its resistance changes and the frequency ge
