Re: case-generate grammar issues.


Subject: Re: case-generate grammar issues.
From: Paul Graham (pgraham@Cadence.COM)
Date: Wed Aug 22 2001 - 20:17:11 PDT


Krishna,

I don't see any ambiguity. A generate_case_item contains exactly one
generate_item_or_null. So it is impossible for "Y" to be considered as the
start of another instantiation.

Paul

> generate
> case (TYPE)
> X : inst1 my_inst(a,b,ci,sum,co);
> Y*10-Y+100 : inst2 my_inst(a,b,ci,sum,co);
> default : inst3 my_inst(a,b,ci,sum,co);
> endcase

> since case branch here is essentially a generate_item
> it gets real ugly to determine if the parser was reading
> another instantiation or another branch on reading 'Y'
> after it finishes with branch 1.



This archive was generated by hypermail 2b28 : Wed Aug 22 2001 - 20:24:12 PDT