Introduction - If you have any usage issues, please Google them yourself
Compile a report principle experiment to experiment: lexical analyzer experimental purposes: to achieve lexical analysis program TINY+ language (scanner) Experiment: a lexical analyzer Input Output Scan program source code file, the output is token string. 2, you need to follow the " longest string matching principle" , such as matching the string ' : =' is the assignment operator instead of a colon and equals two operators. Token expressed as key-value pairs (Kind, Value) format. The following token symbols represent different categories (ie Kind values) KEY expressed reservations expressed special symbol SYM word identifier ID NUM represents a numerical value represents the string constant constant STR 3, the detection lexical error: give meaningful error messages and line number the error occurred.