-
Notifications
You must be signed in to change notification settings - Fork 38
Added missing Attribute Definitions #22
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
base: main
Are you sure you want to change the base?
Conversation
|
Hey Johannes, thank you for bearing with me. This looks great! Would you mind fixing those small CI issues? |
|
Sure, i'll get on that. Sorry for the open and close, just a misclick :D |
|
This is my first time working with github actions and unfortunately the rust toolchain that's used in the ci is very different from my local one (newest stable). |
|
I wonder if these would be better to do via the new lexer https://github.com/oxibus/can-dbc-pest - the structs might be similar, but all the lexing logic would be in the pest crate |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
|
I reworked this PR, but there are now a few things we must fix before it gets merged:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks fine, no obvious issues here.
I haven't run this, so my review is purely a code review.
|
My preference would be to merge your change first - the BA_REL stuff prevents real files from being parsed at all. Then we can fix up this change and mine in any order. The attribute parsing added here is something I suspect just doesn't matter for most use-cases. Presumably everyone also only looking for attributes they already know about in dbc files. The main value of this change IMO is just to "check the box": now it's done rather than TODO. |
I saw that Attribute Definitions were missing so i added them.
I also added a few tests and changed the relevant ones.
The enum members now all contain a String for the name of the attribute.