Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Number notation not understood #9

Open
prj opened this issue Apr 18, 2020 · 2 comments
Open

Number notation not understood #9

prj opened this issue Apr 18, 2020 · 2 comments

Comments

@prj
Copy link

prj commented Apr 18, 2020

      /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
Copy link
Author

prj commented Apr 18, 2020

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

@gabriel-kozma
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants