Boost logo

Boost :

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


Hi,

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:
http://abel.web.elte.hu/metaparse/metaparse.zip
The documentation can be found here:
http://abel.web.elte.hu/metaparse/metaparse

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).

Regards,
   Abel


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk