Description: Design and implementation of C language lexical analysis procedures, requirements are as follows. (1) can be identified using the C language source code for each word symbols, and mark each word in the form of output symbols. (2) can recognize and read the comments in the source program. (3) you can count the number of rows in the source program statements, the number of words and number of characters, including punctuation and spaces are not counted as words, and output statistics. (4) Check the source of the illegal character errors exist, and can report the error location where the ranks. (5) found that there are errors in the source after proper recovery, so that lexical analysis can proceed through a lexical analysis process, you can check and report the source of all existing lexical spelling errors.
To Search:
File list (Check if you may need any files):
lex.cpp