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

Fix several issues with the dbc parser #29

Merged
merged 5 commits into from
Aug 21, 2020

Conversation

mguentner
Copy link
Contributor

I could not load a dbc file produced by a recent version of CANdb++ similar to the one I added to this PR due to parser errors.

This PR contains the necessary fixes to dbc_grammar.peg alongside with a primitive test case.

this file has been copied 1:1 from
https://github.com/ANCIT/pythoncan-examples/blob/master/python-can-examples/resources/comfort.dbc

and is  licensed under the EPL 2.0

This dbc file seems to have been produced with a Vector tool
and features EV_ (environment variables) and BA_DEF with FLOAT
values. Both of which are missing in the peg parser grammar.
ev_ lines define environment variables
@rkollataj
Copy link
Member

Looks good. Thanks!

@rkollataj rkollataj merged commit 1caef70 into GENIVI:master Aug 21, 2020
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