Scanner
所属分类:编译器/解释器
开发工具:Visual C++
文件大小:169KB
下载次数:16
上传日期:2007-12-19 11:22:55
上 传 者:
seker_xinjian
说明: 一个能够分析三种整数、标识符、主要运算符和主要关键字的词法分析程序。
㈠、基本要求:
标识符 <字母>(<字母>|<数字字符>)*
十进制整数 0 | (1|2|3|4|5|6|7|8|9)(0|1|2|3|4|5|6|7|8|9)*
八进制整数 0(1|2|3|4|5|6|7)(0|1|2|3|4|5|6|7)*
十六进制整数 0x(0|1|2|3|4|5|6|7|8|9|a|b|c|d|e|f)(0|1|2|3|4|5|6|7|8|9|a|b|c|d|e|f)*
运算符和分隔符 + - * / > < = ( ) ;
关键字 if then else while do
㈡、附加要求:
标识符 <字母>(<字母>|<数字字符>)*(ε|_|.)(<字母>|<数字字符>)*
十进制整数 (0|1|2|3|4|5|6|7|8|9)(0|1|2|3|4|5|6|7|8|9)*(ε|.)(0|1|2|3|4|5|6|7|8|9)(0|1|2|3|4|5|6|7|8|9)*
八进制整数 0(1|2|3|4|5|6|7)(0|1|2|3|4|5|6|7)* (ε|.)(0|1|2|3|4|5|6|7)(0|1|2|3|4|5|6|7)*
十六进制整数 0x(0|1|2|3|4|5|6|7|8|9|a|b|c|d|e|f)(0|1|2|3|4|5|6|7|8|9|a|b|c|d|e|f)* (ε|.)
(0|1|2|3|4|5|6|7|8|9|a|b|c|d|e|f)(0|1|2|3|4|5|6|7|8|9|a|b|c|d|e|f)*
(err)
文件列表:
Scanner\Debug\Scanner.exe (184401, 2007-06-18)
Scanner\Debug\Scanner.obj (16868, 2007-06-18)
Scanner\Debug\Scanner.pdb (377856, 2007-06-18)
Scanner\Debug\StdAfx.obj (2169, 2007-06-18)
Scanner\Debug\vc60.pdb (53248, 2007-06-18)
Scanner\Scanner.cpp (8581, 2007-06-18)
Scanner\Scanner.dsp (4548, 2007-06-18)
Scanner\Scanner.dsw (539, 2007-06-18)
Scanner\Scanner.ncb (33792, 2007-06-18)
Scanner\Scanner.opt (48640, 2007-06-18)
Scanner\Scanner.plg (248, 2007-06-18)
Scanner\StdAfx.cpp (294, 2007-06-18)
Scanner\StdAfx.h (769, 2007-06-18)
Scanner\xinjian.txt (44, 2007-06-18)
Scanner\Debug (0, 2007-12-19)
Scanner (0, 2007-12-19)
编译原理上机报告(词法分析器).doc (175104, 2007-06-21)
========================================================================
CONSOLE APPLICATION : Scanner
========================================================================
AppWizard has created this Scanner application for you.
This file contains a summary of what you will find in each of the files that
make up your Scanner application.
Scanner.dsp
This file (the project file) contains information at the project level and
is used to build a single project or subproject. Other users can share the
project (.dsp) file, but they should export the makefiles locally.
Scanner.cpp
This is the main application source file.
/////////////////////////////////////////////////////////////////////////////
Other standard files:
StdAfx.h, StdAfx.cpp
These files are used to build a precompiled header (PCH) file
named Scanner.pch and a precompiled types file named StdAfx.obj.
/////////////////////////////////////////////////////////////////////////////
Other notes:
AppWizard uses "TODO:" to indicate parts of the source code you
should add to or customize.
/////////////////////////////////////////////////////////////////////////////
近期下载者:
相关文件:
收藏者: