Boost Spirit v2 等同于经典as_lower_d
Boost Spirit v2 equivalent to classic as_lower_d
Spirit Classic 有 as_lower_d[]
,如果您想匹配不区分大小写的关键字,这非常有用。
我无法在 Spirit v2 / Qi 中找到类似的解析器。
"the correct way"在气中做以下事情会是什么?
rule = as_lower_d[ "keyword" ] >> "=" ...
Spirit Classic 有 as_lower_d[]
,如果您想匹配不区分大小写的关键字,这非常有用。
我无法在 Spirit v2 / Qi 中找到类似的解析器。
"the correct way"在气中做以下事情会是什么?
rule = as_lower_d[ "keyword" ] >> "=" ...