问题
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