« Return to Thread: [proto] grammar compile error

Re: [proto] grammar compile error

by Eric Niebler-3 :: Rate this Message:

Reply to Author | View in Thread

Felipe Magno de Almeida wrote:
> And I want to create the looser grammar, composed of all
> sub-expressions inside the full grammar somehow. Is there a way to do
> this in proto, or should I start creating it with mpl?
> Is there a way to iterate a grammar?

This sounds like more work than is truly necessary. There is really only
one good reason to specify a grammar when defining a domain, and that is
to disable troublesome operator overloads. My suggestion would be to not
specify your dsel's grammar up front, but rather only validate full
expressions at the point of evaluation. You lose no safety that way.

--
Eric Niebler
BoostPro Computing
http://www.boostpro.com
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

 « Return to Thread: [proto] grammar compile error