
4 Jul
2009
4 Jul
'09
5:29 p.m.
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