|
Boost Users : |
From: Joel de Guzman (djowel_at_[hidden])
Date: 2003-08-30 07:40:36
HartmutKaiser_at_[hidden] wrote:
> If you look at the parser definition, you'll notice, that this
> particular list parser is designed to parse escaped C-strings, integers
> or reals separated by commas. I.e. no empty elements. If you would like
> to make your list_p to match even empty elements, you'd have to make the
> list_csv_item optional:
>
> list_csv =
> list_p(
> !list_csv_item[append(vec_item)],
> // ---------^ note this exclamation sign!
> ','
> )[append(vec_list)]
> ;
Ok, I stand corrected. Please disregard my previous comment that
"I guess the list_p was not designed to work with null entries".
Hartmut is the list_p expert ;-)
-- Joel de Guzman http://www.boost-consulting.com http://spirit.sf.net PS> Can we move the discussion to Spirit's mailing list now?
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