I'm new to Qi.
My goal is to use spirit::qi to create a CLI parser. By 'CLI parser' I do not mean the kind that processes command line options (e.g., app --help ) but something that processes commands typed by a user.
Example:
CLI> vacuum on
vacuum solenoid energized
CLI>
I have been examining a number of spirit::qi examples and trying to understand qi. I see that qi provides two similar APIs: qi::parse() and qi::phrase_parse(). The example code I've examined uses both APIs, but I do not yet understand how they differ.
Put differently, I would think that each of these APIs are specialized for solving specific parsing tasks, but I do not understand, when trying to select one of these APIs to solve a particular parsing problem, which one should I choose.
My thanks in advance.