How to find all word except a few in flex?
问题 I need to find all words except a few (e.g. "car", "bus", "train") in flex. Have you got any ideas how to do it? 回答1: This has been left unanswered for some time, and is a standard problem that new users of lex/flex encounter when starting. There is also not a clear answer elsewhere on SO. The question is asking how do you match all identifiers that are not reserved words. This is a standard computer language feature that occurs in almost every compiler. It just was not expressed in a way