title: Bison: how to access of value of previous non-terminal without using globals?
body: <p>I have two rules in my large grammar:</p>
  <pre><code>indexed_component
      : name '(' val_list ')' 
      ;
  
  val_list
      : val          
      | val_list ',' val
      ;
  </code></pre>
  <p>How can access the value of 'name' within val_list ?</p>
  <p>I know I can use a global variable, but this is highly recursive so I would have to use a stack and I want to avoid the bother.</p>