|
Boost : |
Subject: Re: [boost] [spirit] semantic action for mismatches?
From: Joel de Guzman (joel_at_[hidden])
Date: 2011-01-07 23:04:52
On 1/8/2011 11:54 AM, caustik wrote:
> So, how about if you want the rule "r" to still mismatch? Since eps always
> matches, the rule "r" as a whole succeeds.
!eps[cleanup]
> Also, how do you access the result of "p" from inside "cleanup"?
Use rule local variables to pass data.
Regards,
-- Joel de Guzman http://www.boostpro.com http://spirit.sf.net
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk