Boost logo

Boost Users :

Subject: Re: [Boost-users] [Spirit] Equivalent of limit_d in spirit 2.x
From: Thomas Heller (thom.heller_at_[hidden])
Date: 2010-07-19 06:06:10


On Mon, Jul 19, 2010 at 10:33 AM, Roland Bock <rbock_at_[hidden]> wrote:
> Joel de Guzman wrote:
>> On 7/19/10 12:21 PM, Roland Bock wrote:
>>>
>>> I'd like to make two suggestions for the documentation:
>>>
>>> a) It would be cool to have something like this in the tutorial:
>>>
>>>     uint_[_pass = (min<= _1&&  _1<= max)][ref(year) = _1]
>>>
>>> It shows an example usage of _pass and spirit's ability to handle
>>> multiple semantic actions.
>>>
>>> b) The links from the spirit documentation into the phoenix
>>> documentation could be more targeted (currently they link to the index
>>> page).  In the given example, I have some trouble in finding more
>>> information about _pass in the phoenix documentation.
>>
>> Well, contributions welcome, ahem ahem :-P
>
> OK, I'll try to come up with a section for the tutorial in the next few
> days :-)
> Where should I send it?
>
>
> As for the links into phoenix, well, I did not find the _pass anywhere
> in the phoenix documentation. Otherwise I would have been more precise...

_pass does not really belong into the phoenix docs, as it is spirit specific :)
Anyway, it is just a placeholder for semantic actions where you can
specify wether the rule was parsed correctly or not.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net