<div>Am I able to use the value of a variable as an expression, and if so, how?</div><div><br></div><div>I am trying to parse a language like this:</div><div><br></div><div><div>number = digit+ >start_capture_number_of_names %end_capture_number_of_names '\n';</div>
<div>name = ^[\n]* '\n';</div><div>main := number name{number_of_names}</div><div><br></div><div>where number_of_names is the number I captured earlier.  </div><div><br></div><div>Can I do it this way, or do I need to iterate using actions and the statements defined in 3.4 of the manual?</div>
<div><br></div><div>Larry Edelstein</div><div>San Francisco, CA</div></div>