Asap2 icon indicating copy to clipboard operation
Asap2 copied to clipboard

Number notation not understood

Open prj opened this issue 4 years ago • 2 comments

      /begin CHARACTERISTIC DATA_AsdDsbcCtl.AsdDsbcCtl_tiFil_nGrd_C_VW.At_Fnt
      	"time constant for speed gradient"
         VALUE
         0xa086e5b2
         _REC_S1VAL_20_U1
         2.54
         _CNV_R_R_gqBeevc_jq_228_CM
         1.e-002
         2.55
         DISPLAY_IDENTIFIER AsdDsbcCtl_tiFil_nGrd_C_VW.At_Fnt
         FORMAT "%6.2"
         /begin IF_DATA ETK
            DP_BLOB
            0xa086e5b2
            1
         /end IF_DATA
      /end CHARACTERISTIC

The parser does not like the "1.e-002". Syntax error, unexpected IDENTIFIER, expecting NUMBER

prj avatar Apr 18 '20 15:04 prj

I modified the regex a little in the lex file and got it to work...

prj avatar Apr 18 '20 16:04 prj

@prj how did you change this? were you able to parse the number correctly?

gabriel-kozma avatar May 06 '23 02:05 gabriel-kozma