错误如下: 请您检查一下是否您的模式中出现空格,这是模式中所不允许的。 具体可参考:lex - lex中无法识别的规则 - unrecognized rule in lex - 堆栈内存溢出 (stackoom.com)