Re: X3: Using dynamic Repetition Parser Directives

Seth <[email protected]>
Newsgroups gmane.comp.parsers.spirit.general
Message-ID <[email protected]>
On 27-01-16 21:59, Mike Gresens wrote:
> Hi,
>
> Let's start with x3::repeat(3)[foo]. Ok, no problem.
> Now let's say we want a rule like x3::repeat(n)[foo]. And n is parsed
> before.
> Something like x3::int_ > x3::repeat(n)[foo].
>
> How we can use the int parsed by x3::int_ as 'n' in x3::repeat(n)[foo] ?
>
>

For now you can do this:
https://stackoverflow.com/questions/33624149/boost-spirit-x3-cannot-compile-repeat-directive-with-variable-factor/33627991#33627991

There was a previous discussion here:

 -
http://boost.2283326.n4.nabble.com/Porting-from-Qi-to-X3-td4676224.html#a4676425
 -
http://boost.2283326.n4.nabble.com/Porting-from-Qi-to-X3-td4676224.html#a4676613

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.