kallemooo / Asap2

Asap2 parser.
MIT License
38 stars 21 forks source link

Number notation not understood #9

Open prj opened 4 years ago

prj commented 4 years ago
      /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 commented 4 years ago

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

gabriel-kozma commented 1 year ago

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