Description: Experiment 1: SAMPLE language lexical analyzer design
Inspection requirements:
After starting the program, the first output of the author s name, class, student number (available in Chinese, English or Pinyin)
Request input test program name, type the program name and automatically start the output of lexical analysis
Binary output of word-type sequence (see sample output style 1 and 2)
Requirements can be found in the following lexical errors and that the nature and location of the error:
Illegal characters, that is not the character set of symbols SAMPLE
Character constant lack of the right single quotation mark (character constants requires the left and right single quotation mark definition, can not cross)
Note lack of the right part of the boundary character*/(Note requires left and right respectively /* and*/define, can not cross).
To Search:
File list (Check if you may need any files):
Compiler
........\Compiler
........\Compiler.ncb
........\Compiler.sln
........\Compiler.suo
........\........\Analyzer.cpp
........\........\Compiler.vcproj
........\........\Compiler.vcproj.YUE-T60.Administrator.user
........\........\Debug
........\........\.....\Analyzer.obj
........\........\.....\BuildLog.htm
........\........\.....\Compiler.exe.intermediate.manifest
........\........\.....\mt.dep
........\........\.....\vc90.idb
........\........\.....\vc90.pdb
........\........\q.txt
........\........\Release
........\........\.......\Analyzer.obj
........\........\.......\BuildLog.htm
........\........\.......\Compiler.exe.intermediate.manifest
........\........\.......\mt.dep
........\........\.......\vc90.idb
........\........\.......\vc90.pdb
........\........\w.txt
........\Debug
........\.....\Compiler.exe
........\.....\Compiler.ilk
........\.....\Compiler.pdb
........\.....\w.txt
........\Release
........\.......\Compiler.exe
........\.......\Compiler.pdb
........\.......\w.txt