Skip to content

Improve parsing#4

Open
guilhermedemouraa wants to merge 3 commits into
mainfrom
u/gui/improve-parsing-robustness
Open

Improve parsing#4
guilhermedemouraa wants to merge 3 commits into
mainfrom
u/gui/improve-parsing-robustness

Conversation

@guilhermedemouraa
Copy link
Copy Markdown
Collaborator

  • Sanitize names
  • Allow blank spaces
  • Allow blank space before semicolon

* Sanitize names
* Allow blank spaces
* Allow blank space before semicolon
@guilhermedemouraa guilhermedemouraa force-pushed the u/gui/improve-parsing-robustness branch from 0dc5514 to 74574dd Compare March 17, 2026 01:33
guilhermedemouraa and others added 2 commits March 16, 2026 18:39
- Fix normalize_dbc to only strip blank lines within BO_/SG_ message
  sections, preserving blank lines in header sections (NS_, BS_, BU_)
- Update all test assertions to use snake_case field names
- Update dbc_signals filter to use snake_case names
- Update doctest example

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Some DBC files have "SG_ NAME:" without space before colon.
The can-dbc parser requires "SG_ NAME :". Normalize this in
the preprocessing step.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

1 participant