Description: A C language lexical analyzer, is a good learning compiler theory of reference, write the program with VS2010, the lexical analysis process can be analyzed in C:
Identifier (a letter or underscore, followed can be alphanumeric or an underscore)
String constants
Character constants
Integer constant
General Real
With+ /- scientific notation
No+ /- scientific notation
Notes, can not handle pre-order 33 kinds of operators Description:, () [] operator in the world, where a,?: Sizeof did not give 11 kinds of procedure delimiter 32 kinds of keyword use the conversion table design , run fast, I also can identify the symbols for each numbered. This program designed with the VS2010 MFC, welcome to download share. . . .
To Search:
File list (Check if you may need any files):
NBuilder
........\Debug
........\ipch
........\....\nbuilder-50343034
........\....\.................\nbuilder-ce9121.ipch
........\NBuilder
........\NBuilder.sdf
........\NBuilder.sln
........\NBuilder.suo
........\........\Debug
........\........\.....\NBuilder.Build.CppClean.log
........\........\.....\NBuilder.log
........\........\Extern.cpp
........\........\Extern.h
........\........\Lexical.cpp
........\........\Lexical.h
........\........\MainFrm.cpp
........\........\MainFrm.h
........\........\NBuilder.aps
........\........\NBuilder.cpp
........\........\NBuilder.h
........\........\NBuilder.rc
........\........\NBuilder.reg
........\........\NBuilder.vcxproj
........\........\NBuilder.vcxproj.filters
........\........\NBuilder.vcxproj.user
........\........\NBuilderDoc.cpp
........\........\NBuilderDoc.h
........\........\NBuilderView.cpp
........\........\NBuilderView.h
........\........\OutputWnd.cpp
........\........\OutputWnd.h
........\........\ReadMe.txt
........\........\res
........\........\resource.h
........\........\...\NBuilder.ico
........\........\...\NBuilder.rc2
........\........\...\NBuilderDoc.ico
........\........\...\output_wnd.ico
........\........\...\output_wnd_hc.ico
........\........\...\Toolbar.bmp
........\........\...\Toolbar256.bmp
........\........\stdafx.cpp
........\........\stdafx.h
........\........\targetver.h
........\........\UserImages.bmp