Skip to content

Commit

Permalink
Editorial: Simplify the 'Atom' production
Browse files Browse the repository at this point in the history
... by merging the two capturing-group alternatives.

(This may be affected by the outcome of issue #1673.)
  • Loading branch information
jmdyck committed Jun 23, 2021
1 parent d7dae0b commit 52c9dda
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -30328,8 +30328,7 @@ <h2>Patterns</h2>
`\` AtomEscape[?U, ?N]
[~U] `\` [lookahead == `c`]
CharacterClass[?U]
[+U] `(` GroupSpecifier[?U] Disjunction[?U, ?N] `)`
[~U] `(` Disjunction[?U, ?N] `)`
`(` GroupSpecifier[?U] Disjunction[?U, ?N] `)`
`(` `?` `:` Disjunction[?U, ?N] `)`
[~U] InvalidBracedQuantifier
[+U] PatternCharacter
Expand All @@ -30354,7 +30353,7 @@ <h2>Group Specifiers</h2>
<emu-grammar type="definition">
GroupSpecifier[U] ::
[empty]
`?` GroupName[?U]
[+U] `?` GroupName[?U]

GroupName[U] ::
`&lt;` RegExpIdentifierName[?U] `&gt;`
Expand Down Expand Up @@ -31079,8 +31078,6 @@ <h1>Term</h1>
1. Assert: _c_ is a Continuation.
1. Return ! RepeatMatcher(_m_, _min_, _max_, _greedy_, _x_, _c_, _parenIndex_, _parenCount_).
</emu-alg>
<p>----</p>
<p>In the above algorithm, references to <emu-grammar>Atom ::! `(` GroupSpecifier Disjunction `)`</emu-grammar> are to be interpreted as meaning <emu-grammar>Atom ::! `(` GroupSpecifier Disjunction `)`</emu-grammar> or <emu-grammar>Atom ::! `(` Disjunction `)`</emu-grammar> .</p>
<p>The production <emu-grammar>Term ::! QuantifiableAssertion Quantifier</emu-grammar> evaluates the same as the production <emu-grammar>Term ::! Atom Quantifier</emu-grammar> but with |QuantifiableAssertion| substituted for |Atom|.</p>

<emu-clause id="sec-runtime-semantics-repeatmatcher-abstract-operation" aoid="RepeatMatcher">
Expand Down

0 comments on commit 52c9dda

Please sign in to comment.