|
Boost Users : |
Subject: Re: [Boost-users] Boost qi parser
From: Igor R (boost.lists_at_[hidden])
Date: 2014-03-02 03:11:38
> {
> name = "new"
> sub_name = "SUBTITLE"
> values = { 1, 2, 3; }
> input_values = { 1, 2, 3; 5, 5, 6 10, 12, 3}
> type = input
> intval = 100
> }
>
What is mapDef, i.e what resulting attribute type do you want to get?
Anyway, you don't have to skip wihtespeaces in your grammar, it's up
to skipper to do this. Besides, note that operator "|" has
boost::variant as its attribute (i.e. (+char_("abcd") | int_) would
result in variant<stirng, int>) and is usually useful when you want to
select the resulting type based on the input.
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