Comments (4)
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.
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.
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.
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)
- REF_UNIT should be "keyword", not "block" HOT 1
- Issue parsing A2L-files with double quotes within long names HOT 1
- namemap public API HOT 4
- merge_mod_par issue HOT 3
- a2l merge group or function issue HOT 4
- Extract Record Layout field from Characteristics variables HOT 3
- RECORD_LAYOUT fields are not sorted correctly HOT 2
- Please add a CHAGELOG and use SemVer HOT 5
- Readme exampe not working: latest Version 1.5 uses A2LErrors instead of String
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from a2lfile.