Introduction - If you have any usage issues, please Google them yourself
few days ago wrote a small language lexical analysis procedures, because the other day in the knowledge base to see a VC pascal lexical analysis procedures, find that quite complex. In fact, lexical analysis procedure is the same principle, I think if you understood a simple lexical analysis procedure to write complex it is not difficult, is nothing but add a few keywords and writing several conditions judgment statement it. Lexical analysis is the basis of compilers, as well as the most simple. Well, now let us look at the procedures it. Let us look at this small language grammar it
Packet : 311772词法分析2004328831139.rar filelist
词法分析2004328831139\词法分析2004328831139.txt
词法分析2004328831139\lex23\global.h
词法分析2004328831139\lex23\lex.cpp
词法分析2004328831139\lex23\lex.dsp
词法分析2004328831139\lex23\lex.dsw
词法分析2004328831139\lex23\lex.exe
词法分析2004328831139\lex23\lex.ncb
词法分析2004328831139\lex23\lex.plg
词法分析2004328831139\lex23\output.txt
词法分析2004328831139\lex23\output2.txt
词法分析2004328831139\lex23\test.txt
词法分析2004328831139\lex23\test2.txt
词法分析2004328831139\lex23\Debug
词法分析2004328831139\lex23\lex.opt
词法分析2004328831139\lex23
词法分析2004328831139\CompilerCode.doc
词法分析2004328831139\词法分析\词法分析.dsw
词法分析2004328831139\词法分析\词法分析.ncb
词法分析2004328831139\词法分析\词法分析.dsp
词法分析2004328831139\词法分析\cifa.ncb
词法分析2004328831139\词法分析\cifa.plg
词法分析2004328831139\词法分析\cifa.cpp
词法分析2004328831139\词法分析\cifa.dsp
词法分析2004328831139\词法分析\cifa.dsw
词法分析2004328831139\词法分析\infile.txt
词法分析2004328831139\词法分析\outfile.txt
词法分析2004328831139\词法分析\词法分析.plg
词法分析2004328831139\词法分析\cifa.opt
词法分析2004328831139\词法分析\词法分析.opt
词法分析2004328831139\词法分析\Debug
词法分析2004328831139\词法分析
词法分析2004328831139\词法分析--test\词法分析.dsw
词法分析2004328831139\词法分析--test\词法分析.ncb
词法分析2004328831139\词法分析--test\词法分析.dsp
词法分析2004328831139\词法分析--test\cifa.ncb
词法分析2004328831139\词法分析--test\cifa.plg
词法分析2004328831139\词法分析--test\cifa.cpp
词法分析2004328831139\词法分析--test\infile.txt
词法分析2004328831139\词法分析--test\outfile.txt
词法分析2004328831139\词法分析--test\cifa.dsp
词法分析2004328831139\词法分析--test\cifa.opt
词法分析2004328831139\词法分析--test\cifa.dsw
词法分析2004328831139\词法分析--test\词法分析.opt
词法分析2004328831139\词法分析--test\Debug
词法分析2004328831139\词法分析--test
词法分析2004328831139\cifa001.cpp
词法分析2004328831139