Git Product home page Git Product logo

Comments (4)

DanielT avatar DanielT commented on May 25, 2024

Identifiers in a2l files are not allowed to start with digits. In fact only numeric literals can contain a digit in the first position.

Accordingly, the tokenizer sees a numeric literal when it encounters the '1' of "1ms", then it considers 'm' to be the beginning of the next token and complains about missing whitespace between the two.

from a2lfile.

DanielT avatar DanielT commented on May 25, 2024

I should add that various tools have different levels of "standard compliance". It's possible that your file was created and processed without complaint by some other application. In that case it may be worth adding some kind of compatibility workaround.

from a2lfile.

Eltom777 avatar Eltom777 commented on May 25, 2024

Thank you @DanielT for the quick response. I would also like to add that this tool is amazing. It is much more robust than the other a2l parsers available on Github. Great work !

from a2lfile.

DanielT avatar DanielT commented on May 25, 2024

You're welcome.
I thought about this some more and decided that a code change is needed after all: There should be better error messages in this case. I'm changing this case to produce a ParserError::InvalidIdentifier instead of the confusing MissingWhitespace error.

from a2lfile.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.