boost/libs/metaparse/example/constexpr_parser
2022-12-15 23:45:23 +08:00
..
Jamfile.v2 源码提交 2022-12-15 23:45:23 +08:00
main.cpp 源码提交 2022-12-15 23:45:23 +08:00
README 源码提交 2022-12-15 23:45:23 +08: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.