The difference between> and >> in Boost Spirit

I am learning Boost-Spirit, from here and examples from StackOverflow.

However, I can’t find the difference between >and the >>“followed by” sequence operator?

For instance, the difference is here: -

        qi::phrase_parse(startIt
        , endIt
        , par_ob > ';' // par_ob >> ';' ??
        , qi::space
        , result
        );
+4
source share
1 answer

Read the documentation and you will find:

Like a sequence, the wait statement a> b parses two or more operands (a, b, ..., etc.), sequentially:

a> b> ...

, no-match ( false), , : > _, ( , ) .

:

+3

Source: https://habr.com/ru/post/1524910/


All Articles