Compiler errors flex未识别期权看跌期权

Compiler errors flex未识别期权看跌期权,compiler-errors,bison,flex-lexer,Compiler Errors,Bison,Flex Lexer,当我编译时,我得到一个错误: 运动中:7:无法识别的%选项: 如果我没有该选项,它会告诉我已定义但未使用unput %{ #include <stdio.h> #include <string.h> #include <ctype.h> #include "motion.tab.h" %} %option noinput nounput‏ DISTANCE [0-9]+ %% u return U; d retur

当我编译时,我得到一个错误: 运动中:7:无法识别的%选项: 如果我没有该选项,它会告诉我已定义但未使用unput

%{
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include "motion.tab.h"
%}
%option noinput nounput‏
DISTANCE    [0-9]+
%%
u           return U;
d           return D;
l           return L;
r           return R;
n           return N;
{DISTANCE}  {yylval.numval=atoi(yytext); return NUM;}
\n          return END;
%{
#包括
#包括
#包括
#包括“motion.tab.h”
%}
%期权无投入产出‏
距离[0-9]+
%%
u返回u;
d返回d;
l返回l;
r返回r;
n返回n;
{DISTANCE}{yylval.numval=atoi(yytext);返回NUM;}
\n返回端;

在单词
名词put
后面有一个Unicode字符U+2005的实例(一个固定宽度的小空格)


删除该行并在文本编辑器(而不是文字处理器)中重新键入。

您使用的是哪个flex版本?(
flex--version