title: filename.l:16: EOF encountered inside an action
body: <p>I have a lex file like this    </p>
  
  <pre><code>   %{
          #include "y.tab.h"
      %}
  
      %%
      "print"     {return print;}
      "exit"      {return exit_command;}
      [a-zA-Z]    {yylval.id = atoi(yytext); return identifier;}
      [0-9]+      {yylval.num = atoi(yytext);} return number;}
      [ \t\n]     ;
      [-+=;]      {return yytext[0];}
      .       {ECHO; yyerror("unexpected charater");}
      %%
  
      int yywrap(void){return 1;}
  </code></pre>
  
  <p>But when I try to run lex filename.l<br>
  I get following error </p>
  
  <pre><code>filename.l:16: EOF encountered inside an action
  </code></pre>
  
  <p>Can anybody see any error</p>