title: Bison end of File gives syntax error?
body: <p>In my yacc file the i have a start symbol 'Program' as:</p>
  
  <pre><code>Program: Declaration Statements E_O_F {/*Semantic Action*/};
  </code></pre>
  
  <p>The E_O_F is a token returned by flex-lexer as:</p>
  
  <pre><code>&lt;&lt;EOF&gt;&gt; return E_O_F;
  </code></pre>
  
  <p>But when i compile my file, there is always a syntax error being reported at the lastline+1 th line. 
  Lex File: <a href="http://pastebin.com/4ytPrmjm" rel="nofollow">File</a>
  Yacc File: <a href="http://pastebin.com/8vdSJnjE" rel="nofollow">File</a></p>
  
  <p><strong>Input: test.txt</strong></p>
  
  <pre><code>a=(b);
  b=c+d/e;
  a=3/5-2*4;
  a=a-b;
  if(a&gt;b) 
  {
      a=a+1;
  }
  </code></pre>
  
  <p>I think i am not returning the </p>
  
  <pre><code>&lt;&lt;EOF&gt;&gt;
  </code></pre>
  
  <p>token correctly. Please help.</p>