文件名称:Lexical-analysis
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:2.21kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
使用某种高级语言和LEX实现一个C语言子集的词法分析器,即从输入的源程序中,识别出各个具有独立意义的单词,滤掉空格和注释。依次输出各个单词的内部编码及单词符号自身值。(遇到错误时可显示“Error”,然后跳过错误部分继续显示)。其中空白符、制表符和换行符均视为空格,用来分隔单词,注释包括两种形式:/*…*/和//。-Use some kind of high-level language and the LEX lexical analyzer to achieve a C language subset from the input source to identify each word has an independent significance, filter out the whitespace and comments. Followed by the output of the internal encoding of each word and word symbols value. (Displayed when an error is encountered "Error", then skip the error part of the display). Where whitespace, tabs and line breaks are treated as spaces, used to separate words, annotation, including two forms :/* ...*/and//.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
lexical.cpp
lexical.l
result.txt
test.c
lexical.l
result.txt
test.c
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.