A2L parsing error due to the preprocessing the multipline comments
xfkeivn opened this issue · 1 comments
In the preprocessing of multiple line comments as following lines, all this COMPU_METHOD will be removed. It will cause the error in the lexcer paring. so either
- don't preprocess the comments, because the lexcer will first channel hidden to remove the comments
- keep the text after / when / and */ at the same line.
/begin COMPU_METHOD
/* Name of CompuMethod / SWC_JctTempEstm_CM_single
/ Long identifier / "Q = V"
/ Conversion Type / RAT_FUNC
/ Format / "%8.6"
/ Units / ""
/ Coefficients */ COEFFS 0 1 0 0 0 1
/end COMPU_METHOD
/begin COMPU_METHOD
/end COMPU_METHOD
I will soon release a completely new parser written in C++, which fixes this and other problems (not to mention dramatically increased processing speed and reduced memory consumption).
Note: the parsing result of your example will be still incorrect, because parameters Name
to Unit
are mandatory!