Module bpaf::_documentation::_1_tutorials::_1_combinatoric_api
source · Expand description
Combinatoric API
Parse arguments without using proc macros
When making parser in the Combinatoric style API you usually go though those steps
- Design data type your application will receive
- Design command line options user will have to pass
- Create a set of simple parsers
- Combine and transform simple parsers to create the final data type
- Transform resulting
Parser
intoOptionParser
and run it
Let’s go though some of them in more details:
- Making a simple parser
- Transforming parsers
- Combining multiple simple parsers
- Subcommand parsers
- Improving the user experience