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 Sep 29, 2021
1 parent 6f66976 commit e21c032
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 @@ -34296,19 +34296,16 @@ <h2>Patterns</h2>
`(` GroupSpecifier[?UnicodeMode] Disjunction[?UnicodeMode, ?N] `)`
`(` `?` `:` Disjunction[?UnicodeMode, ?N] `)`
[~UnicodeMode] InvalidBracedQuantifier
[+UnicodeMode] PatternCharacter
[~UnicodeMode] ExtendedPatternCharacter
PatternCharacter[?UnicodeMode]

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 @@ -35400,12 +35397,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 @@ -46618,7 +46609,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 e21c032

Please sign in to comment.