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 tc39#1673.)
  • Loading branch information
jmdyck committed Jul 24, 2021
1 parent fd5771f commit 7a471da
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 @@ -33187,8 +33187,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 @@ -33213,7 +33212,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 @@ -33938,8 +33937,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" type="abstract operation">
Expand Down

0 comments on commit 7a471da

Please sign in to comment.