-
Notifications
You must be signed in to change notification settings - Fork 625
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
SystemVerilog: support struct and union member #2701
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2701 +/- ##
=======================================
Coverage 86.99% 86.99%
=======================================
Files 185 185
Lines 39441 39466 +25
=======================================
+ Hits 34310 34333 +23
- Misses 5131 5133 +2
Continue to review full report at Codecov.
|
...I don't like this change and the original code.
However, the change and the original code abuse them for dealing with a sequence. Do you know ptrArray (main/ptrarray.h) ? You can use ptrArray to store the sequence of tokens. |
I don't like it, either. But I also don't like to reinventing the wheels.
No, I did not. I have a question related to this topic. I will update verilog.c to use ptrArray. |
No, we don't have.
Yes, you can use getInputFileName() declared in main/read.h.
I would like you to see #2702 and merge it if it is o.k. |
I see. This means we do have a list of API.
Thanks.
You raised the bar! It will cause conflicts. |
6b82789
to
0469618
Compare
@masatake san, How about this? Please review again. |
Units updates - systemverilog-struct.d: add complex struct and enum test - *.d/expected.tags: update for struct and union member support - systemverilog-package.d/input.sv: fix an unmatched label name
0469618
to
3173073
Compare
Struct and union members are emitted by this fix.
The kind "member" (w) is added. (m and M were already used.)
Enum items are emitted in the defined order with
--sort=no
option.