Boost logo

Boost Users :

From: Joel de Guzman (djowel_at_[hidden])
Date: 2003-08-30 07:34:35


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". I
have a question though:

-- 
Joel de Guzman
http://www.boost-consulting.com
http://spirit.sf.net

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