文件名称:cifafenxi
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:3.02kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
简单词法分析器构造在开始状态,首先要读进一个字符。若读入的是一个空格(包括blank,tab,newline)就跳过它,再继续读字符,直到读进一个非空字符为止。
在标识符状态,识别并组合出一个标识符之后,还必须加入一些动作,以便查保留字表,确定识别出的单词符号是保留字,还是用户自定义标识符,并输出相应的记号。
在无符号数状态,可识别出各种常数,包括整数在内。在组数的同时,还要做从十进制数到二进制数的转换。
-A simple lexical analyzer constructed at the beginning of the state, first of all to read into a character. If the read is a space (including the blank, tab, newline) will skip it, and then continue to read characters until the time into a non-empty character so far. In the identifier state, to identify and assemble an identifier, you must also add some actions in order to check a reserved word table to determine the identify of the word symbols are reserved words, or user-defined identifier, and output the corresponding symbol. In the unsigned status, can identify a variety of constants, including the integer included. In the group number, we must also do a number from decimal to binary number conversion.
在标识符状态,识别并组合出一个标识符之后,还必须加入一些动作,以便查保留字表,确定识别出的单词符号是保留字,还是用户自定义标识符,并输出相应的记号。
在无符号数状态,可识别出各种常数,包括整数在内。在组数的同时,还要做从十进制数到二进制数的转换。
-A simple lexical analyzer constructed at the beginning of the state, first of all to read into a character. If the read is a space (including the blank, tab, newline) will skip it, and then continue to read characters until the time into a non-empty character so far. In the identifier state, to identify and assemble an identifier, you must also add some actions in order to check a reserved word table to determine the identify of the word symbols are reserved words, or user-defined identifier, and output the corresponding symbol. In the unsigned status, can identify a variety of constants, including the integer included. In the group number, we must also do a number from decimal to binary number conversion.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
新建文本文档.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.