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

A2L Parsing error when COMPU_METHOD name has square brackets in middle #50

Open
robertm39 opened this issue Feb 1, 2024 · 1 comment

Comments

@robertm39
Copy link

When the conversion name for a dataitem has square-brackets in the middle of it, the parser seems to assume that that's the end of the name.
When I read the conversion of a dataitem like this, it only includes everything up to the closing square-bracket.
Snippets:

From the A2L file:
/begin MEASUREMENT ***.******_12 "" UWORD ***.******[12]_******* 0 0.0 0.0 65535.0 ECU_ADDRESS 0x******** DISPLAY_IDENTIFIER ***.******[12] /end MEASUREMENT

An error message from when the parser was running (after calling db.import_a2l(...))
**************.a2l::line ****:** extraneous input '_*******' expecting {INT, HEX}

@christoph2
Copy link
Owner

A completely new parser written in C++ is on the way, which fixes this and other parsing related problems (not to mention the performance boost...).
There's some final touch required, but I think it should be ready within the next two weeks.

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

No branches or pull requests

2 participants