title: Bison parse can't tell between variable declaration and assignment
body: <p>So I have rules for my grammar,</p>
  
  <pre><code>Method     : METHODNAME Params ')' ':' Types '{' VarsDecs Statements RETURN Returns '}' ';'
             ;
             ;
  VarsDecs   : VarDec VarsDecs 
             | 
             ;
  VarDec     : VARNAME ':' Types ';'
             ;
  Statements : Statement Statements
             |
             ;
  Statement  : Assignment
             | Print
             | If
             ;                            
  Assignment : VARNAME '=' Expression ';'
             ;
  </code></pre>
  
  <p>And my parser cannot tell when the variable declaration stops and statements start when assignment is the first statement found because assignment also starts with VARNAME.</p>
  
  <p>How would I go about fixing this?</p>