Skip to content

Commit 56079e2

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

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
@@ -35003,11 +35003,6 @@ <h1>
3500335003
</emu-note>
3500435004

3500535005
<!-- Disjunction -->
35006-
<emu-grammar>Disjunction :: Alternative</emu-grammar>
35007-
<emu-alg>
35008-
1. Let _m_ be CompileSubpattern of |Alternative| with argument _direction_.
35009-
1. Return _m_.
35010-
</emu-alg>
3501135006
<emu-grammar>Disjunction :: Alternative `|` Disjunction</emu-grammar>
3501235007
<emu-alg>
3501335008
1. Let _m1_ be CompileSubpattern of |Alternative| with argument _direction_.
@@ -35383,10 +35378,6 @@ <h1>
3538335378
1. Remove from _A_ all characters corresponding to a code point on the right-hand side of the |LineTerminator| production.
3538435379
1. Return ! CharacterSetMatcher(_A_, *false*, _direction_).
3538535380
</emu-alg>
35386-
<emu-grammar>Atom :: `\` AtomEscape</emu-grammar>
35387-
<emu-alg>
35388-
1. Return CompileAtom of |AtomEscape| with argument _direction_.
35389-
</emu-alg>
3539035381
<emu-grammar>Atom :: CharacterClass</emu-grammar>
3539135382
<emu-alg>
3539235383
1. Let _cc_ be CompileCharacterClass of |CharacterClass|.
@@ -35591,16 +35582,8 @@ <h1>Runtime Semantics: CompileToCharSet</h1>
3559135582
<emu-alg>
3559235583
1. Return the empty CharSet.
3559335584
</emu-alg>
35594-
<emu-grammar>ClassRanges :: NonemptyClassRanges</emu-grammar>
35595-
<emu-alg>
35596-
1. Return CompileToCharSet of |NonemptyClassRanges|.
35597-
</emu-alg>
3559835585

3559935586
<!-- NonemptyClassRanges -->
35600-
<emu-grammar>NonemptyClassRanges :: ClassAtom</emu-grammar>
35601-
<emu-alg>
35602-
1. Return CompileToCharSet of |ClassAtom|.
35603-
</emu-alg>
3560435587
<emu-grammar>NonemptyClassRanges :: ClassAtom NonemptyClassRangesNoDash</emu-grammar>
3560535588
<emu-alg>
3560635589
1. Let _A_ be CompileToCharSet of |ClassAtom|.
@@ -35617,10 +35600,6 @@ <h1>Runtime Semantics: CompileToCharSet</h1>
3561735600
</emu-alg>
3561835601

3561935602
<!-- NonemptyClassRangesNoDash -->
35620-
<emu-grammar>NonemptyClassRangesNoDash :: ClassAtom</emu-grammar>
35621-
<emu-alg>
35622-
1. Return CompileToCharSet of |ClassAtom|.
35623-
</emu-alg>
3562435603
<emu-grammar>NonemptyClassRangesNoDash :: ClassAtomNoDash NonemptyClassRangesNoDash</emu-grammar>
3562535604
<emu-alg>
3562635605
1. Let _A_ be CompileToCharSet of |ClassAtomNoDash|.
@@ -35650,20 +35629,12 @@ <h1>Runtime Semantics: CompileToCharSet</h1>
3565035629
<emu-alg>
3565135630
1. Return the CharSet containing the single character `-` U+002D (HYPHEN-MINUS).
3565235631
</emu-alg>
35653-
<emu-grammar>ClassAtom :: ClassAtomNoDash</emu-grammar>
35654-
<emu-alg>
35655-
1. Return CompileToCharSet of |ClassAtomNoDash|.
35656-
</emu-alg>
3565735632

3565835633
<!-- ClassAtomNoDash -->
3565935634
<emu-grammar>ClassAtomNoDash :: SourceCharacter but not one of `\` or `]` or `-`</emu-grammar>
3566035635
<emu-alg>
3566135636
1. Return the CharSet containing the character matched by |SourceCharacter|.
3566235637
</emu-alg>
35663-
<emu-grammar>ClassAtomNoDash :: `\` ClassEscape</emu-grammar>
35664-
<emu-alg>
35665-
1. Return CompileToCharSet of |ClassEscape|.
35666-
</emu-alg>
3566735638

3566835639
<!-- ClassEscape -->
3566935640
<emu-grammar>
@@ -35678,12 +35649,6 @@ <h1>Runtime Semantics: CompileToCharSet</h1>
3567835649
1. Let _c_ be the character whose character value is _cv_.
3567935650
1. Return the CharSet containing the single character _c_.
3568035651
</emu-alg>
35681-
<emu-grammar>
35682-
ClassEscape :: CharacterClassEscape
35683-
</emu-grammar>
35684-
<emu-alg>
35685-
1. Return CompileToCharSet of |CharacterClassEscape|.
35686-
</emu-alg>
3568735652
<emu-note>
3568835653
<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>
3568935654
</emu-note>
@@ -46826,13 +46791,6 @@ <h1>Runtime Semantics: CompileSubpattern</h1>
4682646791

4682746792
<emu-annex id="sec-compileassertion-annexb">
4682846793
<h1>Runtime Semantics: CompileAssertion</h1>
46829-
<p>CompileAssertion includes the following additional evaluation rule:</p>
46830-
<emu-grammar>Assertion :: QuantifiableAssertion</emu-grammar>
46831-
<emu-alg>
46832-
1. Let _m_ be CompileAssertion of |QuantifiableAssertion|.
46833-
1. Return _m_.
46834-
</emu-alg>
46835-
4683646794
<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>
4683746795
</emu-annex>
4683846796

0 commit comments

Comments
 (0)