|
Boost : |
Subject: Re: [boost] Requesting a review of Metaparse
From: Christopher Jefferson (chris_at_[hidden])
Date: 2012-01-28 17:19:21
On 28 Jan 2012, at 18:24, Abel Sinkovics wrote:
> 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")
Two questions:
1) What are the upper limits on the kinds of parsers you can build?
2) How does the library compare to boost::spirit? Is there some reason you did not build it on to of that existing library?
Chris
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk