Skip to content

Commit 0439757

Browse files
committed
Editorial: Drop Compile rules that are handled by the chain rule
(in CompileSubpattern, CompileAtom, CompileToCharSet, CompileAssertion)
1 parent 2742321 commit 0439757

File tree

1 file changed

+0
-42
lines changed

1 file changed

+0
-42
lines changed

spec.html

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -34828,11 +34828,6 @@ <h1>
3482834828
</emu-note>
3482934829

3483034830
<!-- Disjunction -->
34831-
<emu-grammar>Disjunction :: Alternative</emu-grammar>
34832-
<emu-alg>
34833-
1. Let _m_ be CompileSubpattern of |Alternative| with argument _direction_.
34834-
1. Return _m_.
34835-
</emu-alg>
3483634831
<emu-grammar>Disjunction :: Alternative `|` Disjunction</emu-grammar>
3483734832
<emu-alg>
3483834833
1. Let _m1_ be CompileSubpattern of |Alternative| with argument _direction_.
@@ -35208,10 +35203,6 @@ <h1>
3520835203
1. Remove from _A_ all characters corresponding to a code point on the right-hand side of the |LineTerminator| production.
3520935204
1. Return ! CharacterSetMatcher(_A_, *false*, _direction_).
3521035205
</emu-alg>
35211-
<emu-grammar>Atom :: `\` AtomEscape</emu-grammar>
35212-
<emu-alg>
35213-
1. Return CompileAtom of |AtomEscape| with argument _direction_.
35214-
</emu-alg>
3521535206
<emu-grammar>Atom :: CharacterClass</emu-grammar>
3521635207
<emu-alg>
3521735208
1. Let _cc_ be CompileCharacterClass of |CharacterClass|.
@@ -35416,16 +35407,8 @@ <h1>Runtime Semantics: CompileToCharSet</h1>
3541635407
<emu-alg>
3541735408
1. Return the empty CharSet.
3541835409
</emu-alg>
35419-
<emu-grammar>ClassRanges :: NonemptyClassRanges</emu-grammar>
35420-
<emu-alg>
35421-
1. Return CompileToCharSet of |NonemptyClassRanges|.
35422-
</emu-alg>
3542335410

3542435411
<!-- NonemptyClassRanges -->
35425-
<emu-grammar>NonemptyClassRanges :: ClassAtom</emu-grammar>
35426-
<emu-alg>
35427-
1. Return CompileToCharSet of |ClassAtom|.
35428-
</emu-alg>
3542935412
<emu-grammar>NonemptyClassRanges :: ClassAtom NonemptyClassRangesNoDash</emu-grammar>
3543035413
<emu-alg>
3543135414
1. Let _A_ be CompileToCharSet of |ClassAtom|.
@@ -35442,10 +35425,6 @@ <h1>Runtime Semantics: CompileToCharSet</h1>
3544235425
</emu-alg>
3544335426

3544435427
<!-- NonemptyClassRangesNoDash -->
35445-
<emu-grammar>NonemptyClassRangesNoDash :: ClassAtom</emu-grammar>
35446-
<emu-alg>
35447-
1. Return CompileToCharSet of |ClassAtom|.
35448-
</emu-alg>
3544935428
<emu-grammar>NonemptyClassRangesNoDash :: ClassAtomNoDash NonemptyClassRangesNoDash</emu-grammar>
3545035429
<emu-alg>
3545135430
1. Let _A_ be CompileToCharSet of |ClassAtomNoDash|.
@@ -35475,20 +35454,12 @@ <h1>Runtime Semantics: CompileToCharSet</h1>
3547535454
<emu-alg>
3547635455
1. Return the CharSet containing the single character `-` U+002D (HYPHEN-MINUS).
3547735456
</emu-alg>
35478-
<emu-grammar>ClassAtom :: ClassAtomNoDash</emu-grammar>
35479-
<emu-alg>
35480-
1. Return CompileToCharSet of |ClassAtomNoDash|.
35481-
</emu-alg>
3548235457

3548335458
<!-- ClassAtomNoDash -->
3548435459
<emu-grammar>ClassAtomNoDash :: SourceCharacter but not one of `\` or `]` or `-`</emu-grammar>
3548535460
<emu-alg>
3548635461
1. Return the CharSet containing the character matched by |SourceCharacter|.
3548735462
</emu-alg>
35488-
<emu-grammar>ClassAtomNoDash :: `\` ClassEscape</emu-grammar>
35489-
<emu-alg>
35490-
1. Return CompileToCharSet of |ClassEscape|.
35491-
</emu-alg>
3549235463

3549335464
<!-- ClassEscape -->
3549435465
<emu-grammar>
@@ -35503,12 +35474,6 @@ <h1>Runtime Semantics: CompileToCharSet</h1>
3550335474
1. Let _c_ be the character whose character value is _cv_.
3550435475
1. Return the CharSet containing the single character _c_.
3550535476
</emu-alg>
35506-
<emu-grammar>
35507-
ClassEscape :: CharacterClassEscape
35508-
</emu-grammar>
35509-
<emu-alg>
35510-
1. Return CompileToCharSet of |CharacterClassEscape|.
35511-
</emu-alg>
3551235477
<emu-note>
3551335478
<p>A |ClassAtom| can use any of the escape sequences that are allowed in the rest of the regular expression except for `\\b`, `\\B`, and backreferences. Inside a |CharacterClass|, `\\b` means the backspace character, while `\\B` and backreferences raise errors. Using a backreference inside a |ClassAtom| causes an error.</p>
3551435479
</emu-note>
@@ -46651,13 +46616,6 @@ <h1>Runtime Semantics: CompileSubpattern</h1>
4665146616

4665246617
<emu-annex id="sec-compileassertion-annexb">
4665346618
<h1>Runtime Semantics: CompileAssertion</h1>
46654-
<p>CompileAssertion includes the following additional evaluation rule:</p>
46655-
<emu-grammar>Assertion :: QuantifiableAssertion</emu-grammar>
46656-
<emu-alg>
46657-
1. Let _m_ be CompileAssertion of |QuantifiableAssertion|.
46658-
1. Return _m_.
46659-
</emu-alg>
46660-
4666146619
<p>CompileAssertion rules for the <emu-grammar>Assertion :: `(` `?` `=` Disjunction `)`</emu-grammar> and <emu-grammar>Assertion :: `(` `?` `!` Disjunction `)`</emu-grammar> productions are also used for the |QuantifiableAssertion| productions, but with |QuantifiableAssertion| substituted for |Assertion|.</p>
4666246620
</emu-annex>
4666346621

0 commit comments

Comments
 (0)