使用列号增强精神动态词法分析器?
我在制作跟踪列号的动态增强精神词法分析器时遇到困难。这可能吗?谁能提供一个简单的例子吗?
谢谢!
I'm having trouble making a dynamic boost spirit lexer that tracks the column number. Is this possible? Can anyone provide a simple example?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
看看这篇文章
如何使用 Boost::Spirit::Lex 来 lex 一个文件,而不需要先将整个文件读入内存?
和
http://www.boost.org/doc/libs/ 1_48_0/libs/wave/doc/samples.html
Take a look at this post
How to use Boost::Spirit::Lex to lex a file without reading the whole file into memory first?
And
http://www.boost.org/doc/libs/1_48_0/libs/wave/doc/samples.html
http://boost-spirit。 com/home/articles/qi-example/tracking-the-input-position-while-parsing/
他们在整篇文章中引用的代码发布在最后。
http://boost-spirit.com/home/articles/qi-example/tracking-the-input-position-while-parsing/
The code they reference throughout the article is posted at the end.