README 537 B

123456789101112
  1. Parsers parsing "a* b* a*" and counting the appearance of the characters.
  2. This parser is implemented in three different ways:
  3. - One built with Metaparse
  4. - One implemented using constexpr functions
  5. - One built with Metaparse but parsing a subexpression with a constexpr parser:
  6. - a* at the beginning is parsed using a Metaparse parser
  7. - b* is parsed using a constexpr function
  8. - a* at the end is parsed using a Mataparse parser again
  9. This example demonstrates how Metaparse can be combined with parsers using
  10. constexpr functions.