2

IDK が精神 X3 で no_case を実行する方法に問題があります。スピリットには no_case はありませんが、使用すると次のようになります。

    // If you get an error no matching function for call to 'as_parser'
    // here, for either p or s, then p or s is not a parser or there is
    // no suitable conversion from p to a parser.

私は混乱していて、リンゴとオレンジを混ぜようとしている可能性があります (qi と x3、たとえば IDK x3::parse と qi::parse の違い)

だからtl; dr私の質問は、これを機能させる方法です:

bool parsed = phrase_parse(first, last, no_case[char_('a')], space);

(no_case がなくても動作します)

4

1 に答える 1