storing line numbers of expressions with boost.spirit 2

后端 未结 3 1798
生来不讨喜
生来不讨喜 2021-01-11 18:47

I am planning on doing a script transformation utility (for extended diagnostic information) using Boost.Spirit 2.

While there is support for line information etc.

3条回答
  •  孤城傲影
    2021-01-11 19:39

    Here is another useful article that explains how to use the exception that the phrase_parse function throws.

    The article describes how to get error messages like this:

    Exception: parse error at file STDIN line 1 column 10
    '123,42.0,a,1.4'
              ^- here
    

提交回复
热议问题