« Return to Thread: [qi] order of aleternatives

Re: [qi] order of aleternatives

by Joel de Guzman-2 :: Rate this Message:

Reply to Author | View in Thread

Carl Barron wrote:

> I thougt    x =  a | b | c | d ;  would do
>
> if a matches  then  match found
> else if b matches then match found
> else if c matches then match found
> else if d matches then match found
> else match not found
>
> How ever integere in attached code appears to test zero (last
> alternative) first, is this a bug
> or a feature??   All integer is supposed to do is determine base and
> convert text to a 32 bit unsigned integer,   This is a simple qi parser
> of ipv4_addresses no lex.

Hmmm.. Looks like a bug indeed :(.
Can you simplify the code to a minimum test case?

Regards,
--
Joel de Guzman
http://www.boostpro.com
http://spirit.sf.net


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Spirit-general mailing list
Spirit-general@...
https://lists.sourceforge.net/lists/listinfo/spirit-general

 « Return to Thread: [qi] order of aleternatives