Open pataei opened 1 year ago
Hi Parisa,
I took a look at this. It is still parameterized by a tags_t
type. So, unless I misunderstood, the refactor seems possibly incomplete?
Could you go through the whole IR and:
Another thing to consider: we may want to inline the parsing info and optional type into every constructor rather than using the "X" and "PreX" scheme.
If you do this, use a consistent names and always include those fields as the first 2 (or 1 if no type is needed) elements.
Does this PR fix #5? Can we make sure it does?
Does this PR fix #5? Can we make sure it does?
Yes, the statement now only allows constant, variable, and instantiation declarations.
@hackedy and @jnfoster Submitting this PR for review of surface IR, after the review I'll make this a draft PR. So please don't merge this.
The main goal of the IR is:
type_params
which isP4String * option type
, where theoption type
will be initiated tonone
after parsing and after type inference, it will be replaced with the inferred type.