docs: fix some spelling errors (#19816)
* docs: fix some spelling errors * contributing: fix spelling error Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> * Update contributing.md * Update intern.md * Update manual.md * Update manual_experimental_strictnotnil.md * Update nimgrep_cmdline.txt * Update pegdocs.txt * Update testament.md * Update tut1.md Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com>
This commit is contained in:
parent
e8ae2dc90b
commit
b4157f6772
10 changed files with 143 additions and 141 deletions
|
|
@ -13,12 +13,12 @@ notation meaning
|
|||
``A / ... / Z`` Ordered choice: Apply expressions `A`, ..., `Z`, in this
|
||||
order, to the text ahead, until one of them succeeds and
|
||||
possibly consumes some text. Indicate success if one of
|
||||
expressions succeeded. Otherwise do not consume any text
|
||||
expressions succeeded. Otherwise, do not consume any text
|
||||
and indicate failure.
|
||||
``A ... Z`` Sequence: Apply expressions `A`, ..., `Z`, in this order,
|
||||
to consume consecutive portions of the text ahead, as long
|
||||
as they succeed. Indicate success if all succeeded.
|
||||
Otherwise do not consume any text and indicate failure.
|
||||
Otherwise, do not consume any text and indicate failure.
|
||||
The sequence's precedence is higher than that of ordered
|
||||
choice: ``A B / C`` means ``(A B) / Z`` and
|
||||
not ``A (B / Z)``.
|
||||
|
|
@ -44,20 +44,20 @@ notation meaning
|
|||
``E+`` One or more: Apply expression `E` repeatedly to match
|
||||
the text ahead, as long as it succeeds. Consume the matched
|
||||
text (if any) and indicate success if there was at least
|
||||
one match. Otherwise indicate failure.
|
||||
one match. Otherwise, indicate failure.
|
||||
``E*`` Zero or more: Apply expression `E` repeatedly to match
|
||||
the text ahead, as long as it succeeds. Consume the matched
|
||||
text (if any). Always indicate success.
|
||||
``E?`` Zero or one: If expression `E` matches the text ahead,
|
||||
consume it. Always indicate success.
|
||||
``[s]`` Character class: If the character ahead appears in the
|
||||
string `s`, consume it and indicate success. Otherwise
|
||||
string `s`, consume it and indicate success. Otherwise,
|
||||
indicate failure.
|
||||
``[a-b]`` Character range: If the character ahead is one from the
|
||||
range `a` through `b`, consume it and indicate success.
|
||||
Otherwise indicate failure.
|
||||
Otherwise, indicate failure.
|
||||
``'s'`` String: If the text ahead is the string `s`, consume it
|
||||
and indicate success. Otherwise indicate failure.
|
||||
and indicate success. Otherwise, indicate failure.
|
||||
``i's'`` String match ignoring case.
|
||||
``y's'`` String match ignoring style.
|
||||
``v's'`` Verbatim string match: Use this to override a global
|
||||
|
|
@ -66,15 +66,15 @@ notation meaning
|
|||
``y$j`` String match ignoring style for back reference.
|
||||
``v$j`` Verbatim string match for back reference.
|
||||
``.`` Any character: If there is a character ahead, consume it
|
||||
and indicate success. Otherwise (that is, at the end of
|
||||
and indicate success. Otherwise, (that is, at the end of
|
||||
input) indicate failure.
|
||||
``_`` Any Unicode character: If there is an UTF-8 character
|
||||
ahead, consume it and indicate success. Otherwise indicate
|
||||
``_`` Any Unicode character: If there is a UTF-8 character
|
||||
ahead, consume it and indicate success. Otherwise, indicate
|
||||
failure.
|
||||
``@E`` Search: Shorthand for ``(!E .)* E``. (Search loop for the
|
||||
pattern `E`.)
|
||||
``{@} E`` Captured Search: Shorthand for ``{(!E .)*} E``. (Search
|
||||
loop for the pattern `E`.) Everything until and exluding
|
||||
loop for the pattern `E`.) Everything until and excluding
|
||||
`E` is captured.
|
||||
``@@ E`` Same as ``{@} E``.
|
||||
``A <- E`` Rule: Bind the expression `E` to the *nonterminal symbol*
|
||||
|
|
@ -82,7 +82,7 @@ notation meaning
|
|||
matching engine.**
|
||||
``\identifier`` Built-in macro for a longer expression.
|
||||
``\ddd`` Character with decimal code *ddd*.
|
||||
``\"``, etc Literal ``"``, etc.
|
||||
``\"``, etc. Literal ``"``, etc.
|
||||
=============== ============================================================
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue