Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Parser Operators

Expression

Attribute

Description

Not Predicate

Unused

Not predicate. If the predicate a matches, fail. Otherwise, return a zero length match.

And Predicate

Unused

And predicate. If the predicate a matches, return a zero length match. Otherwise, fail.

Optional

optional<A>

Optional. Parse a zero or one time

Kleene

vector<A>

Kleene. Parse a zero or more times

Plus

vector<A>

Plus. Parse a one or more times

Alternative

variant<A, B>

Alternative. Parse a or b

Sequence

tuple<A, B>

Sequence. Parse a followed by b

Expectation operator

tuple<A, B>

Expect. Parse a followed by b. b is expected to match when a matches, otherwise, an expectation_failure is thrown.

Difference

A

Difference. Parse a but not b

List

vector<A>

List. Parse a delimited b one or more times


PrevUpHomeNext