kallemooo / Asap2

Asap2 parser.
MIT License
38 stars 21 forks source link

Error when an IF_DATA is encountered inside an AXIS_PTS #4

Closed losullivan59 closed 5 years ago

losullivan59 commented 6 years ago

I tried this A2L parsing utility on one of my A2L's, and it errored out, stating that an IF_DATA keyword was unexpected in an AXIS_PTS. I believe this is valid A2L syntax per ASAM MCD-2 MC. See https://www.asam.net/standards/detail/mcd-2-mc/wiki/.

I am pretty new to LEX/YACC, but i think maybe the error is on line 498 of Asap2.Language.grammar.y?

| axis_pts if_data {

should be

| axis_pts_data if_data {

Maybe?

Otherwise this is an awesome tool - thanks for making it available!

kallemooo commented 5 years ago

Yes it is correct, it should be | axis_pts_data if_data {