Skip to content

Conversation

@akihikodaki
Copy link

IEEE Std 1800-2023 has the following structural hierarchy:

  1. A.2.6 Function declarations and A.2.7 Task declarations
  2. A.2.8 Block item declarations
  3. A.2.1.3 Type declarations

Therefore, type declarations can be placed inside task and function declarations.

IEEE Std 1800-2023 has the following structural hierarchy:
1. A.2.6 Function declarations and A.2.7 Task declarations
2. A.2.8 Block item declarations
3. A.2.1.3 Type declarations

Therefore, type declarations can be placed inside task and function
declarations.
%error { parseErrorTok }

%expect 0
%expect 4
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like this introduces shift/reduce conflicts, meaning there is ambiguity in the grammar. I'm going to see if there is a way to add this feature without the conflicts.

Copy link
Owner

@zachjs zachjs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe I fixed the shift/reduce conflict. Can you please take a look and see if it still works for your use case?

@akihikodaki
Copy link
Author

I believe I fixed the shift/reduce conflict. Can you please take a look and see if it still works for your use case?

The change looks good to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants