title: Bison unexpected indentifier error
body: <pre><code>%{
  #include &lt;stdio.h&gt;
  #include &lt;string.h&gt;
  
  void yyerror(const char *str)
  {
          fprintf(stderr,"error: %s\n",str);
  }
  
  int yywrap()
  {
          return 1;
  }
  
  int main()
  {
          yyparse();
  }
  %}
  
  %token TOKMACHINE TOKLOGIN TOKPASSWORD VALUE SPACE NEWLINE
  input: auth input | input;
  delim: SPACE | NEWLINE;
  auth: TOKMACHINE delim VALUE delim TOKLOGIN delim  VALUE delim  TOKPASSWORD delim VALUE delim
  {
      printf("Found auth {%s,%s,%s}", $1,$3,$5);
  };
  </code></pre>
  
  <p>Here is simple bison grammar, with which I want to parse <code>.netrc</code> file.
  But I get error on <code>input</code> line:</p>
  
  <pre><code>netrc.y:23.1-5: syntax error, unexpected identifier:
  </code></pre>
  
  <p>I am new to Flex/Bison, but this example near literal copy from <a href="http://www.usna.edu/Users/cs/lmcdowel/courses/si413/F10/labs/L04/calc1/ex1.html" rel="nofollow"> here </a></p>