Boost logo

Boost :

Subject: Re: [boost] Boost.SQL?
From: Eric Niebler (eric_at_[hidden])
Date: 2010-09-15 13:38:55


On 9/15/2010 1:38 AM, Roland Bock wrote:
> On 09/15/2010 06:09 AM, Eric Niebler wrote:
>> Also, see the series of articles about Proto I'm currently publishing on
>> cpp-next.com. Here's the latest:
>>
>> http://cpp-next.com/archive/2010/09/expressive-c-playing-with-syntax/
>
> Very nicely written! I'll definitely try to replace the current
> implementation of the WHERE expression, especially since Joel has
> offered to help with it :-)
>
> I probably also should use proto to build sequences of query building
> blocks like WHERE, GROUP_BY, ORDER_BY, LIMIT. I guess I could employ
> boost::mpl::less to make sure that a WHERE can be followed by a GROUP_BY
> expression, but not vice versa.

No, you'd write the grammar of your DSEL using Proto. See the docs for
Proto grammars. The article series hasn't gotten around to talking about
that yet.

-- 
Eric Niebler
BoostPro Computing
http://www.boostpro.com

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