How to determine line/column numbers from boost::spirit::lex tokens?

浪尽此生 提交于 2020-01-04 05:30:31

问题


In its answer to this question, hkaiser said he would write an example of a token type which carries code position information. I really cannot find anything about this.

Can anyone point me to such an example ?


回答1:


He was probably referring to position_token, which did in fact get released, although there's little documentation. This SO question has good coverage of its usage.



来源:https://stackoverflow.com/questions/32073454/how-to-determine-line-column-numbers-from-boostspiritlex-tokens

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!