Boost logo

Boost :

Subject: Re: [boost] compile time parser generator
From: Dave Abrahams (dave_at_[hidden])
Date: 2012-01-07 16:52:54

on Fri Jan 06 2012, "Martin Bidlingmaier" <> wrote:

> Hello,
> with c++11's constexpr it got possible to parse strings in c++ at
> compile time. I've written a parser generator to create an AST for a
> given EBNF syntax at compile time, which can be traversed at both run
> time and compile time (actually, parsing can take place at run time,
> too, but it's probably rather slow). At the moment, the only compiler
> I know of that implements enough of c++11 features is gcc (version >=
> 4.6). Is refining my implementation worth the effort, has such a
> library a chance to make it into boost?

It was only a matter of time before someone proposed this. Of course it
has a chance to make it into boost. I guess the the first question will
be, "can you describe some plausible use-cases?"

Dave Abrahams
BoostPro Computing

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