Boost logo

Boost :

Subject: [boost] Requesting a review of Metaparse
From: Abel Sinkovics (abel_at_[hidden])
Date: 2012-01-28 13:24:23


I've created a version of Metaparse that depends on the Boost libraries
only. I request this version of Metaparse be placed in the queue for
formal review.

The zipped source code can be found here:
The documentation can be found here:

The library has been tested on the following compilers:
- GCC 4.6 (with and without -std=c++0x)
- GCC 3.4
- Clang 2.9
- Visual C++ 10

A quick summary:

Metaparse is a library for constructing parsers parsing at compile-time
based on template metaprogramming. The parsers built with the library
take boost::mpl::strings as input and can produce

- types
- objects (types with public static members)
- callable C++ functions (types with public static method)
- template metafunction classes

as output (based on the input being parsed).

On compilers supporting constexpr the library provides the following
syntactic sugar for writing the input of the parsers:

BOOST_STRING("this is a string")

The library can be used for implementing DSLs in C++, including DSLs
making C++ template metaprogramming easier (see examples).


Boost list run by bdawes at, gregod at, cpdaniel at, john at