tzlaine / parser

A C++ parser combinator library.
Boost Software License 1.0
70 stars 12 forks source link

Cleaner description of attribute combination #62

Closed akrzemi1 closed 5 months ago

akrzemi1 commented 5 months ago

The table in Combining Operations implies that the attribute of (int_ % ',') | attr(std::vector<int>{}) would be std::variant<std::vector<int>, std::vector<int>>. But it isn't due to special rules. While these special rules are described in Parser attributes, we cannot see them from the Table 1.2. (Combining Operations and Their Semantics)

tzlaine commented 5 months ago

Ah, thanks, I plain forgot to mention that.