Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to parse constant_expression with parameter first #30

Open
drom opened this issue Oct 10, 2019 · 0 comments
Open

Fail to parse constant_expression with parameter first #30

drom opened this issue Oct 10, 2019 · 0 comments
Labels
bug Something isn't working hacktoberfest

Comments

@drom
Copy link
Collaborator

drom commented Oct 10, 2019

If I change the order of parameter and constant in the following expression:

assign a = b[1+Param:0];

...
(constant_expression
  (constant_expression (constant_primary
    (primary_literal (integral_number (decimal_number (unsigned_number))))))
  (constant_expression (constant_primary
    (parameter_identifier (simple_identifier))))
)
...

to:

assign a = b[Param+1:0]; 

Then parser fails.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working hacktoberfest
Projects
None yet
Development

No branches or pull requests

1 participant