README 564 B

1234567891011121314151617
  1. This example shows how a compile-time parsing error can be debugged.
  2. The commented code fails to compile and on some platforms the error report might
  3. be difficult to understand. This example demonstrates how debug_parsing_error
  4. can be used to get a user friendly error report about such thing. You need to
  5. run the compiled code to get the error message:
  6. Compile-time parsing results
  7. ----------------------------
  8. Input text:
  9. aaac
  10. Parsing failed:
  11. line 1, col 4: Expected: b
  12. The col and line information refers to the location of the error in the string
  13. literal.