当我试图用做关键字它给我的错误编译:文件法过早结束
premature end of file in lex.l file in line no 17.
%option noyywrap
%{
#include "grammer.tab.h"
%}
name ([0-9])
whitespace [ \r\t\v\f]
linefeed \n
%%
{name} { return NAME; }
":" { return COLON; }
"->" { return RIGHT_ARROW; }
"{" { return LEFT_BRACE;}
"}" { return RIGHT_BRACE;}
";" { return SEMICOLON;}
{whitespace}
{linefeed} ++yylineno;
%%
所以有人好心帮我。
错误: -
尾巴: - enter image description here
这个文件是什么样子的? –
当我编译make文件时出现这个错误 –
是的,是的。但是说你有一个错误,并要求修复它不适合堆栈溢出。如果你可以提供错误或Makefile,这将会更有用。 –