1
0
Fork 0
arangodb/3rdParty/boost/1.69.0/libs/metaparse/example/constexpr_parser
Jan fa7de56cf8
upgrade to boost 1.69.0 (#7910)
2019-01-09 17:17:33 +01:00
..
Jamfile.v2 upgrade to boost 1.69.0 (#7910) 2019-01-09 17:17:33 +01:00
README upgrade to boost 1.69.0 (#7910) 2019-01-09 17:17:33 +01:00
main.cpp upgrade to boost 1.69.0 (#7910) 2019-01-09 17:17:33 +01:00

README

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.