Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update syntax examples to parser operator docs #770

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions doc/x3/quick_reference.qbk
Original file line number Diff line number Diff line change
Expand Up @@ -214,21 +214,21 @@ pages and pages of reference documentation.
[section:operator Parser Operators]

[table
[[Expression] [Attribute] [Description]]
[[__x3_not_predicate__] [`Unused`] [Not predicate. If the predicate `a` matches,
[[Expression] [Attribute] [Description]]
[[__x3_not_predicate__ `!a`] [`Unused`] [Not predicate. If the predicate `a` matches,
fail. Otherwise, return a zero length match.]]
[[__x3_and_predicate__] [`Unused`] [And predicate. If the predicate `a` matches,
[[__x3_and_predicate__ `&a`] [`Unused`] [And predicate. If the predicate `a` matches,
return a zero length match. Otherwise, fail.]]
[[__x3_optional__] [`optional<A>`] [Optional. Parse `a` zero or one time]]
[[__x3_kleene__] [`vector<A>`] [Kleene. Parse `a` zero or more times]]
[[__x3_plus__] [`vector<A>`] [Plus. Parse `a` one or more times]]
[[__x3_alternative__] [`variant<A, B>`] [Alternative. Parse `a` or `b`]]
[[__x3_sequence__] [`tuple<A, B>`] [Sequence. Parse `a` followed by `b`]]
[[__x3_expect__] [`tuple<A, B>`] [Expect. Parse `a` followed by `b`. `b` is
[[__x3_optional__ `-a`] [`optional<A>`] [Optional. Parse `a` zero or one time]]
[[__x3_kleene__ `*a`] [`vector<A>`] [Kleene. Parse `a` zero or more times]]
[[__x3_plus__ `+a`] [`vector<A>`] [Plus. Parse `a` one or more times]]
[[__x3_alternative__ `a | b`] [`variant<A, B>`] [Alternative. Parse `a` or `b`]]
[[__x3_sequence__ `a >> b`] [`tuple<A, B>`] [Sequence. Parse `a` followed by `b`]]
[[__x3_expect__ `a > b`] [`tuple<A, B>`] [Expect. Parse `a` followed by `b`. `b` is
expected to match when `a` matches, otherwise,
an `expectation_failure` is thrown.]]
[[__x3_difference__] [`A`] [Difference. Parse `a` but not `b`]]
[[__x3_list__] [`vector<A>`] [List. Parse `a` delimited `b` one or more times]]
[[__x3_difference__ `a - b`] [`A`] [Difference. Parse `a` but not `b`]]
[[__x3_list__ `a % b`] [`vector<A>`] [List. Parse `a` delimited `b` one or more times]]
]

[endsect]
Expand Down
Loading