-
Notifications
You must be signed in to change notification settings - Fork 166
Open
Labels
Description
The position returned by the error_handler where() points to the last successful parse point, not the beginning of the failure. Hence the error messaging is not very meaningful and does not match the expected results in the tutorial.
Using the code from
https://www.boost.org/doc/libs/1_78_0/libs/spirit/doc/x3/html/spirit_x3/tutorials/error_handling.html
Using spirit X3 3.0.8, and in the tutorial documentation:
-------------------------
Now we have some errors
In line 16:
Failed: Expecting: person here:
'I am not a person!' <--- this should be a person
__^_
-------------------------
Parsing failed
-------------------------
Using spirit X3 3.0.10:
-------------------------
Now we have some errors
In line 15:
Failed: Expecting: person here:
43,
_____^_
-------------------------
Parsing failed
-------------------------