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 Jun 14, 2021
1 parent 98d58c5 commit e3808d2
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 @@ -30342,19 +30342,16 @@ <h2>Patterns</h2>
`(` GroupSpecifier[?U] Disjunction[?U, ?N] `)`
`(` `?` `:` Disjunction[?U, ?N] `)`
[~U] InvalidBracedQuantifier
[+U] PatternCharacter
[~U] ExtendedPatternCharacter
PatternCharacter[?U]

InvalidBracedQuantifier ::
`{` DecimalDigits `}`
`{` DecimalDigits `,` `}`
`{` DecimalDigits `,` DecimalDigits `}`

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 @@ -31386,12 +31383,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. Call CharacterSetMatcher(_A_, *false*, _direction_) and return its Matcher result.
</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 @@ -41823,7 +41814,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 e3808d2

Please sign in to comment.