metaparse/example/parsing_error
2017-04-20 16:35:06 +02:00
..
.gitignore Moving the library from Mpllibs to its own repository 2015-06-01 23:14:37 +02:00
Jamfile.v2 Moving the library from Mpllibs to its own repository 2015-06-01 23:14:37 +02:00
main.cpp Separate C++98 and C++11 implementations 2017-04-20 16:35:06 +02:00
README Explain the parsing_error example in its README 2015-10-15 12:09:37 +02:00

This example shows how a compile-time parsing error can be debugged.
The commented code fails to compile and on some platforms the error report might
be difficult to understand. This example demonstrates how debug_parsing_error
can be used to get a user friendly error report about such thing. You need to
run the compiled code to get the error message:

Compile-time parsing results
----------------------------
Input text:
aaac

Parsing failed:
line 1, col 4: Expected: b

The col and line information refers to the location of the error in the string
literal.