Skip to content

Cannot parse (a.a[a.a[a]]) #18

@numero-744

Description

@numero-744

This one looks fun

https://github.com/openhwgroup/cva6/blob/028ce43fce323728012c7f0d37253994701e7372/core/issue_read_operands.sv#L494

Below is an example, as minimal as I could do.
The commented line is the one which fails.
All other lines are correctly parsed.

assign a = (a);
assign a = (a.a);
assign a = (a.a[a]);
assign a = (a.a[a.a]);
//assign a = (a.a[a.a[a]]); ERROR
assign a = a.a[a.a[a]];
assign a = (a[a.a[a]]);
assign a = (a.a[a[a]]);
assign a = (a.a[a.a]);
assign a = (a.a.a.a);
assign a = (a.a[a.a.a.a]);

Current commit: d589921 (Mon Mar 10 14:56:16 2025 +0100) Update generated parser

PS: I confirm that the previous fix, for #17, worked 💚

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions