Boost logo

Boost Users :

Subject: Re: [Boost-users] [spirit] This parser hang
From: TONGARI (tongari95_at_[hidden])
Date: 2010-12-01 11:14:43


2010/12/1, Kamil Zubair <kamilzubair_at_[hidden]>:
>
> Yes, I'm targeting V2. Actually I try to make parser that match string that
> doesn't contain several characters. Is this the right way to do it :
>
> +(~(char_(':')|'*'|'?'))

I think you need: +(~qi::char_(":*?"))

> Is there any mention in spirit documentation that mention char parser must
> use operator~() instead of operator !()? I don't see any operator ~() in
> parser operators section in doc, what it is mean anyway ?

refer to
http://www.boost.org/doc/libs/1_45_0/libs/spirit/doc/html/spirit/qi/reference/char/char.html

it says: "Negate cp. The result is a negated char parser that matches
any character in the ns encoding except the characters matched by cp.
"

~operator is char parser specific, not present in operators reference, however.


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