存储前pressions的行号与boost.spirit 2 [英] storing line numbers of expressions with boost.spirit 2

查看:139
本文介绍了存储前pressions的行号与boost.spirit 2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我打算做使用脚本转换实用程序(扩展的诊断信息)Boost.Spirit 2

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

虽然对于行信息等支持解析错误,我怎么能成功地解析前pressions存储行号齐?

While there is support for line information etc. for parsing errors, how i can store line numbers for successfully parsed expressions with Qi?

推荐答案

根据邮件列表的 Spirit.Classic 的的位置也可以使用迭代器的精神2 的。结果
也有上<一的一篇文章href=\"http://boost-spirit.com/home/articles/qi-example/creating-your-own-parser-component-for-spirit-qi\"相对=nofollow>上iter_pos解析器中的的精神的-blog。

As per the mailing list, Spirit.Classic positional iterators can also be used with Spirit 2.
There is also an article on an iter_pos-parser on the Spirit-blog.

<子>我会当我有时间来检验更新。

这篇关于存储前pressions的行号与boost.spirit 2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆