Skip to content

Commit

Permalink
Editorial: Merge PatternCharacter + ExtendedPatternCharacter
Browse files Browse the repository at this point in the history
  • Loading branch information
jmdyck committed Jul 11, 2021
1 parent febd3e3 commit 71b8a2a
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -30273,19 +30273,16 @@ <h2>Patterns</h2>
`(` GroupSpecifier[?U] Disjunction[?U, ?N] `)`
`(` `?` `:` Disjunction[?U, ?N] `)`
[~U] InvalidBracedQuantifier
[+U] PatternCharacter
[~U] ExtendedPatternCharacter
PatternCharacter[?U]

InvalidBracedQuantifier ::
`{` DecimalDigits[~Sep] `}`
`{` DecimalDigits[~Sep] `,` `}`
`{` DecimalDigits[~Sep] `,` DecimalDigits[~Sep] `}`

ExtendedPatternCharacter ::
SourceCharacter but not one of `^` `$` `\` `.` `*` `+` `?` `(` `)` `[` `|`

PatternCharacter ::
SourceCharacter but not SyntaxCharacter
PatternCharacter[U] ::
[+U] SourceCharacter but not SyntaxCharacter
[~U] SourceCharacter but not one of `^` `$` `\` `.` `*` `+` `?` `(` `)` `[` `|`

SyntaxCharacter :: one of
`^` `$` `\` `.` `*` `+` `?` `(` `)` `[` `]` `{` `}` `|`
Expand Down Expand Up @@ -31307,12 +31304,6 @@ <h1>Atom</h1>
<emu-alg>
1. Return the Matcher that is the result of evaluating |Disjunction| with argument _direction_.
</emu-alg>
<p>The production <emu-grammar>Atom ::! ExtendedPatternCharacter</emu-grammar> evaluates as follows:</p>
<emu-alg>
1. Let _ch_ be the character represented by |ExtendedPatternCharacter|.
1. Let _A_ be a one-element CharSet containing the character _ch_.
1. Return ! CharacterSetMatcher(_A_, *false*, _direction_).
</emu-alg>
<p>The production <emu-grammar>Atom ::! PatternCharacter</emu-grammar> evaluates as follows:</p>
<emu-alg>
1. Let _ch_ be the character matched by |PatternCharacter|.
Expand Down Expand Up @@ -41724,7 +41715,6 @@ <h1>Regular Expressions</h1>
<emu-prodref name="QuantifierPrefix"></emu-prodref>
<emu-prodref name="Atom"></emu-prodref>
<emu-prodref name="InvalidBracedQuantifier"></emu-prodref>
<emu-prodref name="ExtendedPatternCharacter"></emu-prodref>
<emu-prodref name="PatternCharacter"></emu-prodref>
<emu-prodref name="SyntaxCharacter"></emu-prodref>
<emu-prodref name="GroupSpecifier"></emu-prodref>
Expand Down

0 comments on commit 71b8a2a

Please sign in to comment.