8 Aug 23:52
new proto transforms in development
From: Eric Niebler <eric <at> boost-consulting.com>
Subject: new proto transforms in development
Newsgroups: gmane.comp.parsers.spirit.devel
Date: 2007-08-08 21:55:48 GMT
Subject: new proto transforms in development
Newsgroups: gmane.comp.parsers.spirit.devel
Date: 2007-08-08 21:55:48 GMT
In response to feedback that proto transforms are too hard to write, and per some suggestions from Dave A., I'm considering making some changes to proto's transform protocol. The new code is in https://svn.boost.org/svn/boost/branches/proto/v3. Here, for example, is how the toy spirit example looks using the new transforms: http://svn.boost.org/trac/boost/browser/branches/proto/v3/libs/xpressive/proto/test/toy_spirit3.cpp This is just a heads up, and a call for feedback. No docs yet, just the examples. -- -- Eric Niebler Boost Consulting www.boost-consulting.com The Astoria Seminar ==> http://www.astoriaseminar.com ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
Great work!
- Andy
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>
> One specific example would be the arithmetic expression grammar. My
> first guess at how to do this would be to add another element, say
> SpiritNonterminal, to:
>
> struct SpiritExpr : or_< SpiritSequence , SpiritAlternate ,
> SpiritDirective , SpiritTerminal
>>
> {};
SpiritSequence, SpiritAlternate and SpiritDirective are all
non-terminals. I'm not sure what your proposed SpiritNonterminal is for.
RSS Feed