[sv-bc] for-loop BNF issue

From: Steven Sharp <sharp@cadence.com>
Date: Thu May 06 2004 - 08:58:54 PDT

I may not have the latest document, so this might have been handled
already but...

The BNF for an enhanced for-loop with variable declarations allows a
type followed by a list_of_variable_assignments. But the BNF for a
list_of_variable_assignments allows assignments to much more complex
things than identifiers, which are not appropriate in a declaration.
For example, it can include bit-selects, part-selects and concatenations.
So the BNF would allow things like

        for (int {a[3],b[3:4]} = 0; ...

Steven Sharp
sharp@cadence.com
Received on Thu May 6 08:58:57 2004

This archive was generated by hypermail 2.1.8 : Thu May 06 2004 - 08:59:07 PDT