Description: Input: The input is a text file, which is in line with the contents of a language grammar, syntax required source (input file as C++ or Java source code, words, syntax definition reference C++, Java can C++, Java we only need choose a familiar language can be), for example, position = initial+ rate* 60
Output: design and realization of the input file processing (disable regular expressions) to obtain the following output, the output is a text file, for the previous example, which reads:
(Identifier, position)
(The assignment operator, =)
(Identifier, initial)
(Addition operator,+)
(Identifier, rate)
(Multiplication operator,*)
(Integer, 60)
(Separator, )
To Search:
File list (Check if you may need any files):
a.cpp