metaparse/example/constexpr_parser
2017-04-20 17:14:02 +02:00
..
Jamfile.v2 Moving the library from Mpllibs to its own repository 2015-06-01 23:14:37 +02:00
main.cpp Remove calls to 1 argument macros with 0 arguments 2017-04-20 17:14:02 +02:00
README Moving the library from Mpllibs to its own repository 2015-06-01 23:14:37 +02:00

Parsers parsing "a* b* a*" and counting the appearance of the characters.
This parser is implemented in three different ways:
- One built with Metaparse
- One implemented using constexpr functions
- One built with Metaparse but parsing a subexpression with a constexpr parser:
  - a* at the beginning is parsed using a Metaparse parser
  - b* is parsed using a constexpr function
  - a* at the end is parsed using a Mataparse parser again

This example demonstrates how Metaparse can be combined with parsers using
constexpr functions.