From 7e1f1e749d6a93b49bfa8ef7da25abf8f17e8cd9 Mon Sep 17 00:00:00 2001 From: Philip Chimento Date: Mon, 4 Nov 2024 11:34:21 -0800 Subject: [PATCH] regexp-generator: Update ECMA-262 quote in header While we're touching this we may as well update the quote from ECMA-262 to match what it currently says. --- ...racter-class-digit-class-escape-flags-u.js | 37 +++++++++++-------- ...it-class-escape-plus-quantifier-flags-u.js | 37 +++++++++++-------- ...lass-digit-class-escape-plus-quantifier.js | 37 +++++++++++-------- .../character-class-digit-class-escape.js | 37 +++++++++++-------- ...er-class-non-digit-class-escape-flags-u.js | 37 +++++++++++-------- ...it-class-escape-plus-quantifier-flags-u.js | 37 +++++++++++-------- ...-non-digit-class-escape-plus-quantifier.js | 37 +++++++++++-------- .../character-class-non-digit-class-escape.js | 37 +++++++++++-------- ...ass-non-whitespace-class-escape-flags-u.js | 37 +++++++++++-------- ...ce-class-escape-plus-quantifier-flags-u.js | 37 +++++++++++-------- ...whitespace-class-escape-plus-quantifier.js | 37 +++++++++++-------- ...acter-class-non-whitespace-class-escape.js | 37 +++++++++++-------- ...ter-class-non-word-class-escape-flags-u.js | 37 +++++++++++-------- ...rd-class-escape-plus-quantifier-flags-u.js | 37 +++++++++++-------- ...s-non-word-class-escape-plus-quantifier.js | 37 +++++++++++-------- .../character-class-non-word-class-escape.js | 37 +++++++++++-------- ...r-class-whitespace-class-escape-flags-u.js | 37 +++++++++++-------- ...ce-class-escape-plus-quantifier-flags-u.js | 37 +++++++++++-------- ...whitespace-class-escape-plus-quantifier.js | 37 +++++++++++-------- ...character-class-whitespace-class-escape.js | 37 +++++++++++-------- ...aracter-class-word-class-escape-flags-u.js | 37 +++++++++++-------- ...rd-class-escape-plus-quantifier-flags-u.js | 37 +++++++++++-------- ...class-word-class-escape-plus-quantifier.js | 37 +++++++++++-------- .../character-class-word-class-escape.js | 37 +++++++++++-------- tools/regexp-generator/header.mjs | 37 +++++++++++-------- 25 files changed, 550 insertions(+), 375 deletions(-) diff --git a/test/built-ins/RegExp/CharacterClassEscapes/character-class-digit-class-escape-flags-u.js b/test/built-ins/RegExp/CharacterClassEscapes/character-class-digit-class-escape-flags-u.js index b8449807ab..ab314ff581 100644 --- a/test/built-ins/RegExp/CharacterClassEscapes/character-class-digit-class-escape-flags-u.js +++ b/test/built-ins/RegExp/CharacterClassEscapes/character-class-digit-class-escape-flags-u.js @@ -10,29 +10,36 @@ info: | https://github.com/tc39/test262/tree/main/tools/regexp-generator/ for any changes. - CharacterClassEscape[U] :: + CharacterClassEscape[UnicodeMode] :: d D s S w W + [+UnicodeMode] p{ UnicodePropertyValueExpression } + [+UnicodeMode] P{ UnicodePropertyValueExpression } - 21.2.2.12 CharacterClassEscape + 22.2.2.9 Runtime Semantics: CompileToCharSet - The production CharacterClassEscape :: d evaluates as follows: - Return the ten-element set of characters containing the characters 0 through 9 inclusive. - The production CharacterClassEscape :: D evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: d. - The production CharacterClassEscape :: s evaluates as follows: - Return the set of characters containing the characters that are on the right-hand side of - the WhiteSpace or LineTerminator productions. - The production CharacterClassEscape :: S evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: s. - The production CharacterClassEscape :: w evaluates as follows: - Return the set of all characters returned by WordCharacters(). - The production CharacterClassEscape :: W evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: w. + CharacterClassEscape :: d + 1. Return the ten-element CharSet containing the characters 0, 1, 2, 3, + 4, 5, 6, 7, 8, and 9. + CharacterClassEscape :: D + 1. Let S be the CharSet returned by CharacterClassEscape :: d. + 2. Return CharacterComplement(rer, S). + CharacterClassEscape :: s + 1. Return the CharSet containing all characters corresponding to a code + point on the right-hand side of the WhiteSpace or LineTerminator + productions. + CharacterClassEscape :: S + 1. Let S be the CharSet returned by CharacterClassEscape :: s. + 2. Return CharacterComplement(rer, S). + CharacterClassEscape :: w + 1. Return MaybeSimpleCaseFolding(rer, WordCharacters(rer)). + CharacterClassEscape :: W + 1. Let S be the CharSet returned by CharacterClassEscape :: w. + 2. Return CharacterComplement(rer, S). features: [String.fromCodePoint] includes: [regExpUtils.js] flags: [generated] diff --git a/test/built-ins/RegExp/CharacterClassEscapes/character-class-digit-class-escape-plus-quantifier-flags-u.js b/test/built-ins/RegExp/CharacterClassEscapes/character-class-digit-class-escape-plus-quantifier-flags-u.js index d55b1a1732..230ceb7cce 100644 --- a/test/built-ins/RegExp/CharacterClassEscapes/character-class-digit-class-escape-plus-quantifier-flags-u.js +++ b/test/built-ins/RegExp/CharacterClassEscapes/character-class-digit-class-escape-plus-quantifier-flags-u.js @@ -10,29 +10,36 @@ info: | https://github.com/tc39/test262/tree/main/tools/regexp-generator/ for any changes. - CharacterClassEscape[U] :: + CharacterClassEscape[UnicodeMode] :: d D s S w W + [+UnicodeMode] p{ UnicodePropertyValueExpression } + [+UnicodeMode] P{ UnicodePropertyValueExpression } - 21.2.2.12 CharacterClassEscape + 22.2.2.9 Runtime Semantics: CompileToCharSet - The production CharacterClassEscape :: d evaluates as follows: - Return the ten-element set of characters containing the characters 0 through 9 inclusive. - The production CharacterClassEscape :: D evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: d. - The production CharacterClassEscape :: s evaluates as follows: - Return the set of characters containing the characters that are on the right-hand side of - the WhiteSpace or LineTerminator productions. - The production CharacterClassEscape :: S evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: s. - The production CharacterClassEscape :: w evaluates as follows: - Return the set of all characters returned by WordCharacters(). - The production CharacterClassEscape :: W evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: w. + CharacterClassEscape :: d + 1. Return the ten-element CharSet containing the characters 0, 1, 2, 3, + 4, 5, 6, 7, 8, and 9. + CharacterClassEscape :: D + 1. Let S be the CharSet returned by CharacterClassEscape :: d. + 2. Return CharacterComplement(rer, S). + CharacterClassEscape :: s + 1. Return the CharSet containing all characters corresponding to a code + point on the right-hand side of the WhiteSpace or LineTerminator + productions. + CharacterClassEscape :: S + 1. Let S be the CharSet returned by CharacterClassEscape :: s. + 2. Return CharacterComplement(rer, S). + CharacterClassEscape :: w + 1. Return MaybeSimpleCaseFolding(rer, WordCharacters(rer)). + CharacterClassEscape :: W + 1. Let S be the CharSet returned by CharacterClassEscape :: w. + 2. Return CharacterComplement(rer, S). features: [String.fromCodePoint] includes: [regExpUtils.js] flags: [generated] diff --git a/test/built-ins/RegExp/CharacterClassEscapes/character-class-digit-class-escape-plus-quantifier.js b/test/built-ins/RegExp/CharacterClassEscapes/character-class-digit-class-escape-plus-quantifier.js index 93fffb8db6..9401e9a1d6 100644 --- a/test/built-ins/RegExp/CharacterClassEscapes/character-class-digit-class-escape-plus-quantifier.js +++ b/test/built-ins/RegExp/CharacterClassEscapes/character-class-digit-class-escape-plus-quantifier.js @@ -10,29 +10,36 @@ info: | https://github.com/tc39/test262/tree/main/tools/regexp-generator/ for any changes. - CharacterClassEscape[U] :: + CharacterClassEscape[UnicodeMode] :: d D s S w W + [+UnicodeMode] p{ UnicodePropertyValueExpression } + [+UnicodeMode] P{ UnicodePropertyValueExpression } - 21.2.2.12 CharacterClassEscape + 22.2.2.9 Runtime Semantics: CompileToCharSet - The production CharacterClassEscape :: d evaluates as follows: - Return the ten-element set of characters containing the characters 0 through 9 inclusive. - The production CharacterClassEscape :: D evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: d. - The production CharacterClassEscape :: s evaluates as follows: - Return the set of characters containing the characters that are on the right-hand side of - the WhiteSpace or LineTerminator productions. - The production CharacterClassEscape :: S evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: s. - The production CharacterClassEscape :: w evaluates as follows: - Return the set of all characters returned by WordCharacters(). - The production CharacterClassEscape :: W evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: w. + CharacterClassEscape :: d + 1. Return the ten-element CharSet containing the characters 0, 1, 2, 3, + 4, 5, 6, 7, 8, and 9. + CharacterClassEscape :: D + 1. Let S be the CharSet returned by CharacterClassEscape :: d. + 2. Return CharacterComplement(rer, S). + CharacterClassEscape :: s + 1. Return the CharSet containing all characters corresponding to a code + point on the right-hand side of the WhiteSpace or LineTerminator + productions. + CharacterClassEscape :: S + 1. Let S be the CharSet returned by CharacterClassEscape :: s. + 2. Return CharacterComplement(rer, S). + CharacterClassEscape :: w + 1. Return MaybeSimpleCaseFolding(rer, WordCharacters(rer)). + CharacterClassEscape :: W + 1. Let S be the CharSet returned by CharacterClassEscape :: w. + 2. Return CharacterComplement(rer, S). features: [String.fromCodePoint] includes: [regExpUtils.js] flags: [generated] diff --git a/test/built-ins/RegExp/CharacterClassEscapes/character-class-digit-class-escape.js b/test/built-ins/RegExp/CharacterClassEscapes/character-class-digit-class-escape.js index 13dc81094d..6968fb0a93 100644 --- a/test/built-ins/RegExp/CharacterClassEscapes/character-class-digit-class-escape.js +++ b/test/built-ins/RegExp/CharacterClassEscapes/character-class-digit-class-escape.js @@ -10,29 +10,36 @@ info: | https://github.com/tc39/test262/tree/main/tools/regexp-generator/ for any changes. - CharacterClassEscape[U] :: + CharacterClassEscape[UnicodeMode] :: d D s S w W + [+UnicodeMode] p{ UnicodePropertyValueExpression } + [+UnicodeMode] P{ UnicodePropertyValueExpression } - 21.2.2.12 CharacterClassEscape + 22.2.2.9 Runtime Semantics: CompileToCharSet - The production CharacterClassEscape :: d evaluates as follows: - Return the ten-element set of characters containing the characters 0 through 9 inclusive. - The production CharacterClassEscape :: D evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: d. - The production CharacterClassEscape :: s evaluates as follows: - Return the set of characters containing the characters that are on the right-hand side of - the WhiteSpace or LineTerminator productions. - The production CharacterClassEscape :: S evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: s. - The production CharacterClassEscape :: w evaluates as follows: - Return the set of all characters returned by WordCharacters(). - The production CharacterClassEscape :: W evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: w. + CharacterClassEscape :: d + 1. Return the ten-element CharSet containing the characters 0, 1, 2, 3, + 4, 5, 6, 7, 8, and 9. + CharacterClassEscape :: D + 1. Let S be the CharSet returned by CharacterClassEscape :: d. + 2. Return CharacterComplement(rer, S). + CharacterClassEscape :: s + 1. Return the CharSet containing all characters corresponding to a code + point on the right-hand side of the WhiteSpace or LineTerminator + productions. + CharacterClassEscape :: S + 1. Let S be the CharSet returned by CharacterClassEscape :: s. + 2. Return CharacterComplement(rer, S). + CharacterClassEscape :: w + 1. Return MaybeSimpleCaseFolding(rer, WordCharacters(rer)). + CharacterClassEscape :: W + 1. Let S be the CharSet returned by CharacterClassEscape :: w. + 2. Return CharacterComplement(rer, S). features: [String.fromCodePoint] includes: [regExpUtils.js] flags: [generated] diff --git a/test/built-ins/RegExp/CharacterClassEscapes/character-class-non-digit-class-escape-flags-u.js b/test/built-ins/RegExp/CharacterClassEscapes/character-class-non-digit-class-escape-flags-u.js index 8ceb94fd8c..e634524ab3 100644 --- a/test/built-ins/RegExp/CharacterClassEscapes/character-class-non-digit-class-escape-flags-u.js +++ b/test/built-ins/RegExp/CharacterClassEscapes/character-class-non-digit-class-escape-flags-u.js @@ -10,29 +10,36 @@ info: | https://github.com/tc39/test262/tree/main/tools/regexp-generator/ for any changes. - CharacterClassEscape[U] :: + CharacterClassEscape[UnicodeMode] :: d D s S w W + [+UnicodeMode] p{ UnicodePropertyValueExpression } + [+UnicodeMode] P{ UnicodePropertyValueExpression } - 21.2.2.12 CharacterClassEscape + 22.2.2.9 Runtime Semantics: CompileToCharSet - The production CharacterClassEscape :: d evaluates as follows: - Return the ten-element set of characters containing the characters 0 through 9 inclusive. - The production CharacterClassEscape :: D evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: d. - The production CharacterClassEscape :: s evaluates as follows: - Return the set of characters containing the characters that are on the right-hand side of - the WhiteSpace or LineTerminator productions. - The production CharacterClassEscape :: S evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: s. - The production CharacterClassEscape :: w evaluates as follows: - Return the set of all characters returned by WordCharacters(). - The production CharacterClassEscape :: W evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: w. + CharacterClassEscape :: d + 1. Return the ten-element CharSet containing the characters 0, 1, 2, 3, + 4, 5, 6, 7, 8, and 9. + CharacterClassEscape :: D + 1. Let S be the CharSet returned by CharacterClassEscape :: d. + 2. Return CharacterComplement(rer, S). + CharacterClassEscape :: s + 1. Return the CharSet containing all characters corresponding to a code + point on the right-hand side of the WhiteSpace or LineTerminator + productions. + CharacterClassEscape :: S + 1. Let S be the CharSet returned by CharacterClassEscape :: s. + 2. Return CharacterComplement(rer, S). + CharacterClassEscape :: w + 1. Return MaybeSimpleCaseFolding(rer, WordCharacters(rer)). + CharacterClassEscape :: W + 1. Let S be the CharSet returned by CharacterClassEscape :: w. + 2. Return CharacterComplement(rer, S). features: [String.fromCodePoint] includes: [regExpUtils.js] flags: [generated] diff --git a/test/built-ins/RegExp/CharacterClassEscapes/character-class-non-digit-class-escape-plus-quantifier-flags-u.js b/test/built-ins/RegExp/CharacterClassEscapes/character-class-non-digit-class-escape-plus-quantifier-flags-u.js index 95db8b614e..6cde639a1b 100644 --- a/test/built-ins/RegExp/CharacterClassEscapes/character-class-non-digit-class-escape-plus-quantifier-flags-u.js +++ b/test/built-ins/RegExp/CharacterClassEscapes/character-class-non-digit-class-escape-plus-quantifier-flags-u.js @@ -10,29 +10,36 @@ info: | https://github.com/tc39/test262/tree/main/tools/regexp-generator/ for any changes. - CharacterClassEscape[U] :: + CharacterClassEscape[UnicodeMode] :: d D s S w W + [+UnicodeMode] p{ UnicodePropertyValueExpression } + [+UnicodeMode] P{ UnicodePropertyValueExpression } - 21.2.2.12 CharacterClassEscape + 22.2.2.9 Runtime Semantics: CompileToCharSet - The production CharacterClassEscape :: d evaluates as follows: - Return the ten-element set of characters containing the characters 0 through 9 inclusive. - The production CharacterClassEscape :: D evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: d. - The production CharacterClassEscape :: s evaluates as follows: - Return the set of characters containing the characters that are on the right-hand side of - the WhiteSpace or LineTerminator productions. - The production CharacterClassEscape :: S evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: s. - The production CharacterClassEscape :: w evaluates as follows: - Return the set of all characters returned by WordCharacters(). - The production CharacterClassEscape :: W evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: w. + CharacterClassEscape :: d + 1. Return the ten-element CharSet containing the characters 0, 1, 2, 3, + 4, 5, 6, 7, 8, and 9. + CharacterClassEscape :: D + 1. Let S be the CharSet returned by CharacterClassEscape :: d. + 2. Return CharacterComplement(rer, S). + CharacterClassEscape :: s + 1. Return the CharSet containing all characters corresponding to a code + point on the right-hand side of the WhiteSpace or LineTerminator + productions. + CharacterClassEscape :: S + 1. Let S be the CharSet returned by CharacterClassEscape :: s. + 2. Return CharacterComplement(rer, S). + CharacterClassEscape :: w + 1. Return MaybeSimpleCaseFolding(rer, WordCharacters(rer)). + CharacterClassEscape :: W + 1. Let S be the CharSet returned by CharacterClassEscape :: w. + 2. Return CharacterComplement(rer, S). features: [String.fromCodePoint] includes: [regExpUtils.js] flags: [generated] diff --git a/test/built-ins/RegExp/CharacterClassEscapes/character-class-non-digit-class-escape-plus-quantifier.js b/test/built-ins/RegExp/CharacterClassEscapes/character-class-non-digit-class-escape-plus-quantifier.js index 1d00928aec..94a8d83129 100644 --- a/test/built-ins/RegExp/CharacterClassEscapes/character-class-non-digit-class-escape-plus-quantifier.js +++ b/test/built-ins/RegExp/CharacterClassEscapes/character-class-non-digit-class-escape-plus-quantifier.js @@ -10,29 +10,36 @@ info: | https://github.com/tc39/test262/tree/main/tools/regexp-generator/ for any changes. - CharacterClassEscape[U] :: + CharacterClassEscape[UnicodeMode] :: d D s S w W + [+UnicodeMode] p{ UnicodePropertyValueExpression } + [+UnicodeMode] P{ UnicodePropertyValueExpression } - 21.2.2.12 CharacterClassEscape + 22.2.2.9 Runtime Semantics: CompileToCharSet - The production CharacterClassEscape :: d evaluates as follows: - Return the ten-element set of characters containing the characters 0 through 9 inclusive. - The production CharacterClassEscape :: D evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: d. - The production CharacterClassEscape :: s evaluates as follows: - Return the set of characters containing the characters that are on the right-hand side of - the WhiteSpace or LineTerminator productions. - The production CharacterClassEscape :: S evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: s. - The production CharacterClassEscape :: w evaluates as follows: - Return the set of all characters returned by WordCharacters(). - The production CharacterClassEscape :: W evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: w. + CharacterClassEscape :: d + 1. Return the ten-element CharSet containing the characters 0, 1, 2, 3, + 4, 5, 6, 7, 8, and 9. + CharacterClassEscape :: D + 1. Let S be the CharSet returned by CharacterClassEscape :: d. + 2. Return CharacterComplement(rer, S). + CharacterClassEscape :: s + 1. Return the CharSet containing all characters corresponding to a code + point on the right-hand side of the WhiteSpace or LineTerminator + productions. + CharacterClassEscape :: S + 1. Let S be the CharSet returned by CharacterClassEscape :: s. + 2. Return CharacterComplement(rer, S). + CharacterClassEscape :: w + 1. Return MaybeSimpleCaseFolding(rer, WordCharacters(rer)). + CharacterClassEscape :: W + 1. Let S be the CharSet returned by CharacterClassEscape :: w. + 2. Return CharacterComplement(rer, S). features: [String.fromCodePoint] includes: [regExpUtils.js] flags: [generated] diff --git a/test/built-ins/RegExp/CharacterClassEscapes/character-class-non-digit-class-escape.js b/test/built-ins/RegExp/CharacterClassEscapes/character-class-non-digit-class-escape.js index 634d0f0d9c..305a95235e 100644 --- a/test/built-ins/RegExp/CharacterClassEscapes/character-class-non-digit-class-escape.js +++ b/test/built-ins/RegExp/CharacterClassEscapes/character-class-non-digit-class-escape.js @@ -10,29 +10,36 @@ info: | https://github.com/tc39/test262/tree/main/tools/regexp-generator/ for any changes. - CharacterClassEscape[U] :: + CharacterClassEscape[UnicodeMode] :: d D s S w W + [+UnicodeMode] p{ UnicodePropertyValueExpression } + [+UnicodeMode] P{ UnicodePropertyValueExpression } - 21.2.2.12 CharacterClassEscape + 22.2.2.9 Runtime Semantics: CompileToCharSet - The production CharacterClassEscape :: d evaluates as follows: - Return the ten-element set of characters containing the characters 0 through 9 inclusive. - The production CharacterClassEscape :: D evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: d. - The production CharacterClassEscape :: s evaluates as follows: - Return the set of characters containing the characters that are on the right-hand side of - the WhiteSpace or LineTerminator productions. - The production CharacterClassEscape :: S evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: s. - The production CharacterClassEscape :: w evaluates as follows: - Return the set of all characters returned by WordCharacters(). - The production CharacterClassEscape :: W evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: w. + CharacterClassEscape :: d + 1. Return the ten-element CharSet containing the characters 0, 1, 2, 3, + 4, 5, 6, 7, 8, and 9. + CharacterClassEscape :: D + 1. Let S be the CharSet returned by CharacterClassEscape :: d. + 2. Return CharacterComplement(rer, S). + CharacterClassEscape :: s + 1. Return the CharSet containing all characters corresponding to a code + point on the right-hand side of the WhiteSpace or LineTerminator + productions. + CharacterClassEscape :: S + 1. Let S be the CharSet returned by CharacterClassEscape :: s. + 2. Return CharacterComplement(rer, S). + CharacterClassEscape :: w + 1. Return MaybeSimpleCaseFolding(rer, WordCharacters(rer)). + CharacterClassEscape :: W + 1. Let S be the CharSet returned by CharacterClassEscape :: w. + 2. Return CharacterComplement(rer, S). features: [String.fromCodePoint] includes: [regExpUtils.js] flags: [generated] diff --git a/test/built-ins/RegExp/CharacterClassEscapes/character-class-non-whitespace-class-escape-flags-u.js b/test/built-ins/RegExp/CharacterClassEscapes/character-class-non-whitespace-class-escape-flags-u.js index 930dfcb463..2880d6b5bd 100644 --- a/test/built-ins/RegExp/CharacterClassEscapes/character-class-non-whitespace-class-escape-flags-u.js +++ b/test/built-ins/RegExp/CharacterClassEscapes/character-class-non-whitespace-class-escape-flags-u.js @@ -10,29 +10,36 @@ info: | https://github.com/tc39/test262/tree/main/tools/regexp-generator/ for any changes. - CharacterClassEscape[U] :: + CharacterClassEscape[UnicodeMode] :: d D s S w W + [+UnicodeMode] p{ UnicodePropertyValueExpression } + [+UnicodeMode] P{ UnicodePropertyValueExpression } - 21.2.2.12 CharacterClassEscape + 22.2.2.9 Runtime Semantics: CompileToCharSet - The production CharacterClassEscape :: d evaluates as follows: - Return the ten-element set of characters containing the characters 0 through 9 inclusive. - The production CharacterClassEscape :: D evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: d. - The production CharacterClassEscape :: s evaluates as follows: - Return the set of characters containing the characters that are on the right-hand side of - the WhiteSpace or LineTerminator productions. - The production CharacterClassEscape :: S evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: s. - The production CharacterClassEscape :: w evaluates as follows: - Return the set of all characters returned by WordCharacters(). - The production CharacterClassEscape :: W evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: w. + CharacterClassEscape :: d + 1. Return the ten-element CharSet containing the characters 0, 1, 2, 3, + 4, 5, 6, 7, 8, and 9. + CharacterClassEscape :: D + 1. Let S be the CharSet returned by CharacterClassEscape :: d. + 2. Return CharacterComplement(rer, S). + CharacterClassEscape :: s + 1. Return the CharSet containing all characters corresponding to a code + point on the right-hand side of the WhiteSpace or LineTerminator + productions. + CharacterClassEscape :: S + 1. Let S be the CharSet returned by CharacterClassEscape :: s. + 2. Return CharacterComplement(rer, S). + CharacterClassEscape :: w + 1. Return MaybeSimpleCaseFolding(rer, WordCharacters(rer)). + CharacterClassEscape :: W + 1. Let S be the CharSet returned by CharacterClassEscape :: w. + 2. Return CharacterComplement(rer, S). features: [String.fromCodePoint] includes: [regExpUtils.js] flags: [generated] diff --git a/test/built-ins/RegExp/CharacterClassEscapes/character-class-non-whitespace-class-escape-plus-quantifier-flags-u.js b/test/built-ins/RegExp/CharacterClassEscapes/character-class-non-whitespace-class-escape-plus-quantifier-flags-u.js index 633017c0e0..ba49812bd7 100644 --- a/test/built-ins/RegExp/CharacterClassEscapes/character-class-non-whitespace-class-escape-plus-quantifier-flags-u.js +++ b/test/built-ins/RegExp/CharacterClassEscapes/character-class-non-whitespace-class-escape-plus-quantifier-flags-u.js @@ -10,29 +10,36 @@ info: | https://github.com/tc39/test262/tree/main/tools/regexp-generator/ for any changes. - CharacterClassEscape[U] :: + CharacterClassEscape[UnicodeMode] :: d D s S w W + [+UnicodeMode] p{ UnicodePropertyValueExpression } + [+UnicodeMode] P{ UnicodePropertyValueExpression } - 21.2.2.12 CharacterClassEscape + 22.2.2.9 Runtime Semantics: CompileToCharSet - The production CharacterClassEscape :: d evaluates as follows: - Return the ten-element set of characters containing the characters 0 through 9 inclusive. - The production CharacterClassEscape :: D evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: d. - The production CharacterClassEscape :: s evaluates as follows: - Return the set of characters containing the characters that are on the right-hand side of - the WhiteSpace or LineTerminator productions. - The production CharacterClassEscape :: S evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: s. - The production CharacterClassEscape :: w evaluates as follows: - Return the set of all characters returned by WordCharacters(). - The production CharacterClassEscape :: W evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: w. + CharacterClassEscape :: d + 1. Return the ten-element CharSet containing the characters 0, 1, 2, 3, + 4, 5, 6, 7, 8, and 9. + CharacterClassEscape :: D + 1. Let S be the CharSet returned by CharacterClassEscape :: d. + 2. Return CharacterComplement(rer, S). + CharacterClassEscape :: s + 1. Return the CharSet containing all characters corresponding to a code + point on the right-hand side of the WhiteSpace or LineTerminator + productions. + CharacterClassEscape :: S + 1. Let S be the CharSet returned by CharacterClassEscape :: s. + 2. Return CharacterComplement(rer, S). + CharacterClassEscape :: w + 1. Return MaybeSimpleCaseFolding(rer, WordCharacters(rer)). + CharacterClassEscape :: W + 1. Let S be the CharSet returned by CharacterClassEscape :: w. + 2. Return CharacterComplement(rer, S). features: [String.fromCodePoint] includes: [regExpUtils.js] flags: [generated] diff --git a/test/built-ins/RegExp/CharacterClassEscapes/character-class-non-whitespace-class-escape-plus-quantifier.js b/test/built-ins/RegExp/CharacterClassEscapes/character-class-non-whitespace-class-escape-plus-quantifier.js index b0dd01235c..13078ae813 100644 --- a/test/built-ins/RegExp/CharacterClassEscapes/character-class-non-whitespace-class-escape-plus-quantifier.js +++ b/test/built-ins/RegExp/CharacterClassEscapes/character-class-non-whitespace-class-escape-plus-quantifier.js @@ -10,29 +10,36 @@ info: | https://github.com/tc39/test262/tree/main/tools/regexp-generator/ for any changes. - CharacterClassEscape[U] :: + CharacterClassEscape[UnicodeMode] :: d D s S w W + [+UnicodeMode] p{ UnicodePropertyValueExpression } + [+UnicodeMode] P{ UnicodePropertyValueExpression } - 21.2.2.12 CharacterClassEscape + 22.2.2.9 Runtime Semantics: CompileToCharSet - The production CharacterClassEscape :: d evaluates as follows: - Return the ten-element set of characters containing the characters 0 through 9 inclusive. - The production CharacterClassEscape :: D evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: d. - The production CharacterClassEscape :: s evaluates as follows: - Return the set of characters containing the characters that are on the right-hand side of - the WhiteSpace or LineTerminator productions. - The production CharacterClassEscape :: S evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: s. - The production CharacterClassEscape :: w evaluates as follows: - Return the set of all characters returned by WordCharacters(). - The production CharacterClassEscape :: W evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: w. + CharacterClassEscape :: d + 1. Return the ten-element CharSet containing the characters 0, 1, 2, 3, + 4, 5, 6, 7, 8, and 9. + CharacterClassEscape :: D + 1. Let S be the CharSet returned by CharacterClassEscape :: d. + 2. Return CharacterComplement(rer, S). + CharacterClassEscape :: s + 1. Return the CharSet containing all characters corresponding to a code + point on the right-hand side of the WhiteSpace or LineTerminator + productions. + CharacterClassEscape :: S + 1. Let S be the CharSet returned by CharacterClassEscape :: s. + 2. Return CharacterComplement(rer, S). + CharacterClassEscape :: w + 1. Return MaybeSimpleCaseFolding(rer, WordCharacters(rer)). + CharacterClassEscape :: W + 1. Let S be the CharSet returned by CharacterClassEscape :: w. + 2. Return CharacterComplement(rer, S). features: [String.fromCodePoint] includes: [regExpUtils.js] flags: [generated] diff --git a/test/built-ins/RegExp/CharacterClassEscapes/character-class-non-whitespace-class-escape.js b/test/built-ins/RegExp/CharacterClassEscapes/character-class-non-whitespace-class-escape.js index 7acda42a88..74c1093384 100644 --- a/test/built-ins/RegExp/CharacterClassEscapes/character-class-non-whitespace-class-escape.js +++ b/test/built-ins/RegExp/CharacterClassEscapes/character-class-non-whitespace-class-escape.js @@ -10,29 +10,36 @@ info: | https://github.com/tc39/test262/tree/main/tools/regexp-generator/ for any changes. - CharacterClassEscape[U] :: + CharacterClassEscape[UnicodeMode] :: d D s S w W + [+UnicodeMode] p{ UnicodePropertyValueExpression } + [+UnicodeMode] P{ UnicodePropertyValueExpression } - 21.2.2.12 CharacterClassEscape + 22.2.2.9 Runtime Semantics: CompileToCharSet - The production CharacterClassEscape :: d evaluates as follows: - Return the ten-element set of characters containing the characters 0 through 9 inclusive. - The production CharacterClassEscape :: D evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: d. - The production CharacterClassEscape :: s evaluates as follows: - Return the set of characters containing the characters that are on the right-hand side of - the WhiteSpace or LineTerminator productions. - The production CharacterClassEscape :: S evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: s. - The production CharacterClassEscape :: w evaluates as follows: - Return the set of all characters returned by WordCharacters(). - The production CharacterClassEscape :: W evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: w. + CharacterClassEscape :: d + 1. Return the ten-element CharSet containing the characters 0, 1, 2, 3, + 4, 5, 6, 7, 8, and 9. + CharacterClassEscape :: D + 1. Let S be the CharSet returned by CharacterClassEscape :: d. + 2. Return CharacterComplement(rer, S). + CharacterClassEscape :: s + 1. Return the CharSet containing all characters corresponding to a code + point on the right-hand side of the WhiteSpace or LineTerminator + productions. + CharacterClassEscape :: S + 1. Let S be the CharSet returned by CharacterClassEscape :: s. + 2. Return CharacterComplement(rer, S). + CharacterClassEscape :: w + 1. Return MaybeSimpleCaseFolding(rer, WordCharacters(rer)). + CharacterClassEscape :: W + 1. Let S be the CharSet returned by CharacterClassEscape :: w. + 2. Return CharacterComplement(rer, S). features: [String.fromCodePoint] includes: [regExpUtils.js] flags: [generated] diff --git a/test/built-ins/RegExp/CharacterClassEscapes/character-class-non-word-class-escape-flags-u.js b/test/built-ins/RegExp/CharacterClassEscapes/character-class-non-word-class-escape-flags-u.js index de152cb9f3..3b0c7e4db3 100644 --- a/test/built-ins/RegExp/CharacterClassEscapes/character-class-non-word-class-escape-flags-u.js +++ b/test/built-ins/RegExp/CharacterClassEscapes/character-class-non-word-class-escape-flags-u.js @@ -10,29 +10,36 @@ info: | https://github.com/tc39/test262/tree/main/tools/regexp-generator/ for any changes. - CharacterClassEscape[U] :: + CharacterClassEscape[UnicodeMode] :: d D s S w W + [+UnicodeMode] p{ UnicodePropertyValueExpression } + [+UnicodeMode] P{ UnicodePropertyValueExpression } - 21.2.2.12 CharacterClassEscape + 22.2.2.9 Runtime Semantics: CompileToCharSet - The production CharacterClassEscape :: d evaluates as follows: - Return the ten-element set of characters containing the characters 0 through 9 inclusive. - The production CharacterClassEscape :: D evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: d. - The production CharacterClassEscape :: s evaluates as follows: - Return the set of characters containing the characters that are on the right-hand side of - the WhiteSpace or LineTerminator productions. - The production CharacterClassEscape :: S evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: s. - The production CharacterClassEscape :: w evaluates as follows: - Return the set of all characters returned by WordCharacters(). - The production CharacterClassEscape :: W evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: w. + CharacterClassEscape :: d + 1. Return the ten-element CharSet containing the characters 0, 1, 2, 3, + 4, 5, 6, 7, 8, and 9. + CharacterClassEscape :: D + 1. Let S be the CharSet returned by CharacterClassEscape :: d. + 2. Return CharacterComplement(rer, S). + CharacterClassEscape :: s + 1. Return the CharSet containing all characters corresponding to a code + point on the right-hand side of the WhiteSpace or LineTerminator + productions. + CharacterClassEscape :: S + 1. Let S be the CharSet returned by CharacterClassEscape :: s. + 2. Return CharacterComplement(rer, S). + CharacterClassEscape :: w + 1. Return MaybeSimpleCaseFolding(rer, WordCharacters(rer)). + CharacterClassEscape :: W + 1. Let S be the CharSet returned by CharacterClassEscape :: w. + 2. Return CharacterComplement(rer, S). features: [String.fromCodePoint] includes: [regExpUtils.js] flags: [generated] diff --git a/test/built-ins/RegExp/CharacterClassEscapes/character-class-non-word-class-escape-plus-quantifier-flags-u.js b/test/built-ins/RegExp/CharacterClassEscapes/character-class-non-word-class-escape-plus-quantifier-flags-u.js index 56e10eee74..1b4a6f7009 100644 --- a/test/built-ins/RegExp/CharacterClassEscapes/character-class-non-word-class-escape-plus-quantifier-flags-u.js +++ b/test/built-ins/RegExp/CharacterClassEscapes/character-class-non-word-class-escape-plus-quantifier-flags-u.js @@ -10,29 +10,36 @@ info: | https://github.com/tc39/test262/tree/main/tools/regexp-generator/ for any changes. - CharacterClassEscape[U] :: + CharacterClassEscape[UnicodeMode] :: d D s S w W + [+UnicodeMode] p{ UnicodePropertyValueExpression } + [+UnicodeMode] P{ UnicodePropertyValueExpression } - 21.2.2.12 CharacterClassEscape + 22.2.2.9 Runtime Semantics: CompileToCharSet - The production CharacterClassEscape :: d evaluates as follows: - Return the ten-element set of characters containing the characters 0 through 9 inclusive. - The production CharacterClassEscape :: D evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: d. - The production CharacterClassEscape :: s evaluates as follows: - Return the set of characters containing the characters that are on the right-hand side of - the WhiteSpace or LineTerminator productions. - The production CharacterClassEscape :: S evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: s. - The production CharacterClassEscape :: w evaluates as follows: - Return the set of all characters returned by WordCharacters(). - The production CharacterClassEscape :: W evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: w. + CharacterClassEscape :: d + 1. Return the ten-element CharSet containing the characters 0, 1, 2, 3, + 4, 5, 6, 7, 8, and 9. + CharacterClassEscape :: D + 1. Let S be the CharSet returned by CharacterClassEscape :: d. + 2. Return CharacterComplement(rer, S). + CharacterClassEscape :: s + 1. Return the CharSet containing all characters corresponding to a code + point on the right-hand side of the WhiteSpace or LineTerminator + productions. + CharacterClassEscape :: S + 1. Let S be the CharSet returned by CharacterClassEscape :: s. + 2. Return CharacterComplement(rer, S). + CharacterClassEscape :: w + 1. Return MaybeSimpleCaseFolding(rer, WordCharacters(rer)). + CharacterClassEscape :: W + 1. Let S be the CharSet returned by CharacterClassEscape :: w. + 2. Return CharacterComplement(rer, S). features: [String.fromCodePoint] includes: [regExpUtils.js] flags: [generated] diff --git a/test/built-ins/RegExp/CharacterClassEscapes/character-class-non-word-class-escape-plus-quantifier.js b/test/built-ins/RegExp/CharacterClassEscapes/character-class-non-word-class-escape-plus-quantifier.js index fd50a3589c..893efc8fe4 100644 --- a/test/built-ins/RegExp/CharacterClassEscapes/character-class-non-word-class-escape-plus-quantifier.js +++ b/test/built-ins/RegExp/CharacterClassEscapes/character-class-non-word-class-escape-plus-quantifier.js @@ -10,29 +10,36 @@ info: | https://github.com/tc39/test262/tree/main/tools/regexp-generator/ for any changes. - CharacterClassEscape[U] :: + CharacterClassEscape[UnicodeMode] :: d D s S w W + [+UnicodeMode] p{ UnicodePropertyValueExpression } + [+UnicodeMode] P{ UnicodePropertyValueExpression } - 21.2.2.12 CharacterClassEscape + 22.2.2.9 Runtime Semantics: CompileToCharSet - The production CharacterClassEscape :: d evaluates as follows: - Return the ten-element set of characters containing the characters 0 through 9 inclusive. - The production CharacterClassEscape :: D evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: d. - The production CharacterClassEscape :: s evaluates as follows: - Return the set of characters containing the characters that are on the right-hand side of - the WhiteSpace or LineTerminator productions. - The production CharacterClassEscape :: S evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: s. - The production CharacterClassEscape :: w evaluates as follows: - Return the set of all characters returned by WordCharacters(). - The production CharacterClassEscape :: W evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: w. + CharacterClassEscape :: d + 1. Return the ten-element CharSet containing the characters 0, 1, 2, 3, + 4, 5, 6, 7, 8, and 9. + CharacterClassEscape :: D + 1. Let S be the CharSet returned by CharacterClassEscape :: d. + 2. Return CharacterComplement(rer, S). + CharacterClassEscape :: s + 1. Return the CharSet containing all characters corresponding to a code + point on the right-hand side of the WhiteSpace or LineTerminator + productions. + CharacterClassEscape :: S + 1. Let S be the CharSet returned by CharacterClassEscape :: s. + 2. Return CharacterComplement(rer, S). + CharacterClassEscape :: w + 1. Return MaybeSimpleCaseFolding(rer, WordCharacters(rer)). + CharacterClassEscape :: W + 1. Let S be the CharSet returned by CharacterClassEscape :: w. + 2. Return CharacterComplement(rer, S). features: [String.fromCodePoint] includes: [regExpUtils.js] flags: [generated] diff --git a/test/built-ins/RegExp/CharacterClassEscapes/character-class-non-word-class-escape.js b/test/built-ins/RegExp/CharacterClassEscapes/character-class-non-word-class-escape.js index 47b663fadf..358db870d5 100644 --- a/test/built-ins/RegExp/CharacterClassEscapes/character-class-non-word-class-escape.js +++ b/test/built-ins/RegExp/CharacterClassEscapes/character-class-non-word-class-escape.js @@ -10,29 +10,36 @@ info: | https://github.com/tc39/test262/tree/main/tools/regexp-generator/ for any changes. - CharacterClassEscape[U] :: + CharacterClassEscape[UnicodeMode] :: d D s S w W + [+UnicodeMode] p{ UnicodePropertyValueExpression } + [+UnicodeMode] P{ UnicodePropertyValueExpression } - 21.2.2.12 CharacterClassEscape + 22.2.2.9 Runtime Semantics: CompileToCharSet - The production CharacterClassEscape :: d evaluates as follows: - Return the ten-element set of characters containing the characters 0 through 9 inclusive. - The production CharacterClassEscape :: D evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: d. - The production CharacterClassEscape :: s evaluates as follows: - Return the set of characters containing the characters that are on the right-hand side of - the WhiteSpace or LineTerminator productions. - The production CharacterClassEscape :: S evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: s. - The production CharacterClassEscape :: w evaluates as follows: - Return the set of all characters returned by WordCharacters(). - The production CharacterClassEscape :: W evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: w. + CharacterClassEscape :: d + 1. Return the ten-element CharSet containing the characters 0, 1, 2, 3, + 4, 5, 6, 7, 8, and 9. + CharacterClassEscape :: D + 1. Let S be the CharSet returned by CharacterClassEscape :: d. + 2. Return CharacterComplement(rer, S). + CharacterClassEscape :: s + 1. Return the CharSet containing all characters corresponding to a code + point on the right-hand side of the WhiteSpace or LineTerminator + productions. + CharacterClassEscape :: S + 1. Let S be the CharSet returned by CharacterClassEscape :: s. + 2. Return CharacterComplement(rer, S). + CharacterClassEscape :: w + 1. Return MaybeSimpleCaseFolding(rer, WordCharacters(rer)). + CharacterClassEscape :: W + 1. Let S be the CharSet returned by CharacterClassEscape :: w. + 2. Return CharacterComplement(rer, S). features: [String.fromCodePoint] includes: [regExpUtils.js] flags: [generated] diff --git a/test/built-ins/RegExp/CharacterClassEscapes/character-class-whitespace-class-escape-flags-u.js b/test/built-ins/RegExp/CharacterClassEscapes/character-class-whitespace-class-escape-flags-u.js index e7efac3600..a04b7a6daf 100644 --- a/test/built-ins/RegExp/CharacterClassEscapes/character-class-whitespace-class-escape-flags-u.js +++ b/test/built-ins/RegExp/CharacterClassEscapes/character-class-whitespace-class-escape-flags-u.js @@ -10,29 +10,36 @@ info: | https://github.com/tc39/test262/tree/main/tools/regexp-generator/ for any changes. - CharacterClassEscape[U] :: + CharacterClassEscape[UnicodeMode] :: d D s S w W + [+UnicodeMode] p{ UnicodePropertyValueExpression } + [+UnicodeMode] P{ UnicodePropertyValueExpression } - 21.2.2.12 CharacterClassEscape + 22.2.2.9 Runtime Semantics: CompileToCharSet - The production CharacterClassEscape :: d evaluates as follows: - Return the ten-element set of characters containing the characters 0 through 9 inclusive. - The production CharacterClassEscape :: D evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: d. - The production CharacterClassEscape :: s evaluates as follows: - Return the set of characters containing the characters that are on the right-hand side of - the WhiteSpace or LineTerminator productions. - The production CharacterClassEscape :: S evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: s. - The production CharacterClassEscape :: w evaluates as follows: - Return the set of all characters returned by WordCharacters(). - The production CharacterClassEscape :: W evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: w. + CharacterClassEscape :: d + 1. Return the ten-element CharSet containing the characters 0, 1, 2, 3, + 4, 5, 6, 7, 8, and 9. + CharacterClassEscape :: D + 1. Let S be the CharSet returned by CharacterClassEscape :: d. + 2. Return CharacterComplement(rer, S). + CharacterClassEscape :: s + 1. Return the CharSet containing all characters corresponding to a code + point on the right-hand side of the WhiteSpace or LineTerminator + productions. + CharacterClassEscape :: S + 1. Let S be the CharSet returned by CharacterClassEscape :: s. + 2. Return CharacterComplement(rer, S). + CharacterClassEscape :: w + 1. Return MaybeSimpleCaseFolding(rer, WordCharacters(rer)). + CharacterClassEscape :: W + 1. Let S be the CharSet returned by CharacterClassEscape :: w. + 2. Return CharacterComplement(rer, S). features: [String.fromCodePoint] includes: [regExpUtils.js] flags: [generated] diff --git a/test/built-ins/RegExp/CharacterClassEscapes/character-class-whitespace-class-escape-plus-quantifier-flags-u.js b/test/built-ins/RegExp/CharacterClassEscapes/character-class-whitespace-class-escape-plus-quantifier-flags-u.js index 2619d5b348..42c80fc5fe 100644 --- a/test/built-ins/RegExp/CharacterClassEscapes/character-class-whitespace-class-escape-plus-quantifier-flags-u.js +++ b/test/built-ins/RegExp/CharacterClassEscapes/character-class-whitespace-class-escape-plus-quantifier-flags-u.js @@ -10,29 +10,36 @@ info: | https://github.com/tc39/test262/tree/main/tools/regexp-generator/ for any changes. - CharacterClassEscape[U] :: + CharacterClassEscape[UnicodeMode] :: d D s S w W + [+UnicodeMode] p{ UnicodePropertyValueExpression } + [+UnicodeMode] P{ UnicodePropertyValueExpression } - 21.2.2.12 CharacterClassEscape + 22.2.2.9 Runtime Semantics: CompileToCharSet - The production CharacterClassEscape :: d evaluates as follows: - Return the ten-element set of characters containing the characters 0 through 9 inclusive. - The production CharacterClassEscape :: D evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: d. - The production CharacterClassEscape :: s evaluates as follows: - Return the set of characters containing the characters that are on the right-hand side of - the WhiteSpace or LineTerminator productions. - The production CharacterClassEscape :: S evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: s. - The production CharacterClassEscape :: w evaluates as follows: - Return the set of all characters returned by WordCharacters(). - The production CharacterClassEscape :: W evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: w. + CharacterClassEscape :: d + 1. Return the ten-element CharSet containing the characters 0, 1, 2, 3, + 4, 5, 6, 7, 8, and 9. + CharacterClassEscape :: D + 1. Let S be the CharSet returned by CharacterClassEscape :: d. + 2. Return CharacterComplement(rer, S). + CharacterClassEscape :: s + 1. Return the CharSet containing all characters corresponding to a code + point on the right-hand side of the WhiteSpace or LineTerminator + productions. + CharacterClassEscape :: S + 1. Let S be the CharSet returned by CharacterClassEscape :: s. + 2. Return CharacterComplement(rer, S). + CharacterClassEscape :: w + 1. Return MaybeSimpleCaseFolding(rer, WordCharacters(rer)). + CharacterClassEscape :: W + 1. Let S be the CharSet returned by CharacterClassEscape :: w. + 2. Return CharacterComplement(rer, S). features: [String.fromCodePoint] includes: [regExpUtils.js] flags: [generated] diff --git a/test/built-ins/RegExp/CharacterClassEscapes/character-class-whitespace-class-escape-plus-quantifier.js b/test/built-ins/RegExp/CharacterClassEscapes/character-class-whitespace-class-escape-plus-quantifier.js index 4cfeee9ab8..a62c2864b9 100644 --- a/test/built-ins/RegExp/CharacterClassEscapes/character-class-whitespace-class-escape-plus-quantifier.js +++ b/test/built-ins/RegExp/CharacterClassEscapes/character-class-whitespace-class-escape-plus-quantifier.js @@ -10,29 +10,36 @@ info: | https://github.com/tc39/test262/tree/main/tools/regexp-generator/ for any changes. - CharacterClassEscape[U] :: + CharacterClassEscape[UnicodeMode] :: d D s S w W + [+UnicodeMode] p{ UnicodePropertyValueExpression } + [+UnicodeMode] P{ UnicodePropertyValueExpression } - 21.2.2.12 CharacterClassEscape + 22.2.2.9 Runtime Semantics: CompileToCharSet - The production CharacterClassEscape :: d evaluates as follows: - Return the ten-element set of characters containing the characters 0 through 9 inclusive. - The production CharacterClassEscape :: D evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: d. - The production CharacterClassEscape :: s evaluates as follows: - Return the set of characters containing the characters that are on the right-hand side of - the WhiteSpace or LineTerminator productions. - The production CharacterClassEscape :: S evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: s. - The production CharacterClassEscape :: w evaluates as follows: - Return the set of all characters returned by WordCharacters(). - The production CharacterClassEscape :: W evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: w. + CharacterClassEscape :: d + 1. Return the ten-element CharSet containing the characters 0, 1, 2, 3, + 4, 5, 6, 7, 8, and 9. + CharacterClassEscape :: D + 1. Let S be the CharSet returned by CharacterClassEscape :: d. + 2. Return CharacterComplement(rer, S). + CharacterClassEscape :: s + 1. Return the CharSet containing all characters corresponding to a code + point on the right-hand side of the WhiteSpace or LineTerminator + productions. + CharacterClassEscape :: S + 1. Let S be the CharSet returned by CharacterClassEscape :: s. + 2. Return CharacterComplement(rer, S). + CharacterClassEscape :: w + 1. Return MaybeSimpleCaseFolding(rer, WordCharacters(rer)). + CharacterClassEscape :: W + 1. Let S be the CharSet returned by CharacterClassEscape :: w. + 2. Return CharacterComplement(rer, S). features: [String.fromCodePoint] includes: [regExpUtils.js] flags: [generated] diff --git a/test/built-ins/RegExp/CharacterClassEscapes/character-class-whitespace-class-escape.js b/test/built-ins/RegExp/CharacterClassEscapes/character-class-whitespace-class-escape.js index 62f60a0180..42c8b93e3b 100644 --- a/test/built-ins/RegExp/CharacterClassEscapes/character-class-whitespace-class-escape.js +++ b/test/built-ins/RegExp/CharacterClassEscapes/character-class-whitespace-class-escape.js @@ -10,29 +10,36 @@ info: | https://github.com/tc39/test262/tree/main/tools/regexp-generator/ for any changes. - CharacterClassEscape[U] :: + CharacterClassEscape[UnicodeMode] :: d D s S w W + [+UnicodeMode] p{ UnicodePropertyValueExpression } + [+UnicodeMode] P{ UnicodePropertyValueExpression } - 21.2.2.12 CharacterClassEscape + 22.2.2.9 Runtime Semantics: CompileToCharSet - The production CharacterClassEscape :: d evaluates as follows: - Return the ten-element set of characters containing the characters 0 through 9 inclusive. - The production CharacterClassEscape :: D evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: d. - The production CharacterClassEscape :: s evaluates as follows: - Return the set of characters containing the characters that are on the right-hand side of - the WhiteSpace or LineTerminator productions. - The production CharacterClassEscape :: S evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: s. - The production CharacterClassEscape :: w evaluates as follows: - Return the set of all characters returned by WordCharacters(). - The production CharacterClassEscape :: W evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: w. + CharacterClassEscape :: d + 1. Return the ten-element CharSet containing the characters 0, 1, 2, 3, + 4, 5, 6, 7, 8, and 9. + CharacterClassEscape :: D + 1. Let S be the CharSet returned by CharacterClassEscape :: d. + 2. Return CharacterComplement(rer, S). + CharacterClassEscape :: s + 1. Return the CharSet containing all characters corresponding to a code + point on the right-hand side of the WhiteSpace or LineTerminator + productions. + CharacterClassEscape :: S + 1. Let S be the CharSet returned by CharacterClassEscape :: s. + 2. Return CharacterComplement(rer, S). + CharacterClassEscape :: w + 1. Return MaybeSimpleCaseFolding(rer, WordCharacters(rer)). + CharacterClassEscape :: W + 1. Let S be the CharSet returned by CharacterClassEscape :: w. + 2. Return CharacterComplement(rer, S). features: [String.fromCodePoint] includes: [regExpUtils.js] flags: [generated] diff --git a/test/built-ins/RegExp/CharacterClassEscapes/character-class-word-class-escape-flags-u.js b/test/built-ins/RegExp/CharacterClassEscapes/character-class-word-class-escape-flags-u.js index 0443554efc..0c271591d0 100644 --- a/test/built-ins/RegExp/CharacterClassEscapes/character-class-word-class-escape-flags-u.js +++ b/test/built-ins/RegExp/CharacterClassEscapes/character-class-word-class-escape-flags-u.js @@ -10,29 +10,36 @@ info: | https://github.com/tc39/test262/tree/main/tools/regexp-generator/ for any changes. - CharacterClassEscape[U] :: + CharacterClassEscape[UnicodeMode] :: d D s S w W + [+UnicodeMode] p{ UnicodePropertyValueExpression } + [+UnicodeMode] P{ UnicodePropertyValueExpression } - 21.2.2.12 CharacterClassEscape + 22.2.2.9 Runtime Semantics: CompileToCharSet - The production CharacterClassEscape :: d evaluates as follows: - Return the ten-element set of characters containing the characters 0 through 9 inclusive. - The production CharacterClassEscape :: D evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: d. - The production CharacterClassEscape :: s evaluates as follows: - Return the set of characters containing the characters that are on the right-hand side of - the WhiteSpace or LineTerminator productions. - The production CharacterClassEscape :: S evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: s. - The production CharacterClassEscape :: w evaluates as follows: - Return the set of all characters returned by WordCharacters(). - The production CharacterClassEscape :: W evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: w. + CharacterClassEscape :: d + 1. Return the ten-element CharSet containing the characters 0, 1, 2, 3, + 4, 5, 6, 7, 8, and 9. + CharacterClassEscape :: D + 1. Let S be the CharSet returned by CharacterClassEscape :: d. + 2. Return CharacterComplement(rer, S). + CharacterClassEscape :: s + 1. Return the CharSet containing all characters corresponding to a code + point on the right-hand side of the WhiteSpace or LineTerminator + productions. + CharacterClassEscape :: S + 1. Let S be the CharSet returned by CharacterClassEscape :: s. + 2. Return CharacterComplement(rer, S). + CharacterClassEscape :: w + 1. Return MaybeSimpleCaseFolding(rer, WordCharacters(rer)). + CharacterClassEscape :: W + 1. Let S be the CharSet returned by CharacterClassEscape :: w. + 2. Return CharacterComplement(rer, S). features: [String.fromCodePoint] includes: [regExpUtils.js] flags: [generated] diff --git a/test/built-ins/RegExp/CharacterClassEscapes/character-class-word-class-escape-plus-quantifier-flags-u.js b/test/built-ins/RegExp/CharacterClassEscapes/character-class-word-class-escape-plus-quantifier-flags-u.js index a04b661f6f..26f035fabb 100644 --- a/test/built-ins/RegExp/CharacterClassEscapes/character-class-word-class-escape-plus-quantifier-flags-u.js +++ b/test/built-ins/RegExp/CharacterClassEscapes/character-class-word-class-escape-plus-quantifier-flags-u.js @@ -10,29 +10,36 @@ info: | https://github.com/tc39/test262/tree/main/tools/regexp-generator/ for any changes. - CharacterClassEscape[U] :: + CharacterClassEscape[UnicodeMode] :: d D s S w W + [+UnicodeMode] p{ UnicodePropertyValueExpression } + [+UnicodeMode] P{ UnicodePropertyValueExpression } - 21.2.2.12 CharacterClassEscape + 22.2.2.9 Runtime Semantics: CompileToCharSet - The production CharacterClassEscape :: d evaluates as follows: - Return the ten-element set of characters containing the characters 0 through 9 inclusive. - The production CharacterClassEscape :: D evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: d. - The production CharacterClassEscape :: s evaluates as follows: - Return the set of characters containing the characters that are on the right-hand side of - the WhiteSpace or LineTerminator productions. - The production CharacterClassEscape :: S evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: s. - The production CharacterClassEscape :: w evaluates as follows: - Return the set of all characters returned by WordCharacters(). - The production CharacterClassEscape :: W evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: w. + CharacterClassEscape :: d + 1. Return the ten-element CharSet containing the characters 0, 1, 2, 3, + 4, 5, 6, 7, 8, and 9. + CharacterClassEscape :: D + 1. Let S be the CharSet returned by CharacterClassEscape :: d. + 2. Return CharacterComplement(rer, S). + CharacterClassEscape :: s + 1. Return the CharSet containing all characters corresponding to a code + point on the right-hand side of the WhiteSpace or LineTerminator + productions. + CharacterClassEscape :: S + 1. Let S be the CharSet returned by CharacterClassEscape :: s. + 2. Return CharacterComplement(rer, S). + CharacterClassEscape :: w + 1. Return MaybeSimpleCaseFolding(rer, WordCharacters(rer)). + CharacterClassEscape :: W + 1. Let S be the CharSet returned by CharacterClassEscape :: w. + 2. Return CharacterComplement(rer, S). features: [String.fromCodePoint] includes: [regExpUtils.js] flags: [generated] diff --git a/test/built-ins/RegExp/CharacterClassEscapes/character-class-word-class-escape-plus-quantifier.js b/test/built-ins/RegExp/CharacterClassEscapes/character-class-word-class-escape-plus-quantifier.js index d312c1e103..d8d3692c34 100644 --- a/test/built-ins/RegExp/CharacterClassEscapes/character-class-word-class-escape-plus-quantifier.js +++ b/test/built-ins/RegExp/CharacterClassEscapes/character-class-word-class-escape-plus-quantifier.js @@ -10,29 +10,36 @@ info: | https://github.com/tc39/test262/tree/main/tools/regexp-generator/ for any changes. - CharacterClassEscape[U] :: + CharacterClassEscape[UnicodeMode] :: d D s S w W + [+UnicodeMode] p{ UnicodePropertyValueExpression } + [+UnicodeMode] P{ UnicodePropertyValueExpression } - 21.2.2.12 CharacterClassEscape + 22.2.2.9 Runtime Semantics: CompileToCharSet - The production CharacterClassEscape :: d evaluates as follows: - Return the ten-element set of characters containing the characters 0 through 9 inclusive. - The production CharacterClassEscape :: D evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: d. - The production CharacterClassEscape :: s evaluates as follows: - Return the set of characters containing the characters that are on the right-hand side of - the WhiteSpace or LineTerminator productions. - The production CharacterClassEscape :: S evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: s. - The production CharacterClassEscape :: w evaluates as follows: - Return the set of all characters returned by WordCharacters(). - The production CharacterClassEscape :: W evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: w. + CharacterClassEscape :: d + 1. Return the ten-element CharSet containing the characters 0, 1, 2, 3, + 4, 5, 6, 7, 8, and 9. + CharacterClassEscape :: D + 1. Let S be the CharSet returned by CharacterClassEscape :: d. + 2. Return CharacterComplement(rer, S). + CharacterClassEscape :: s + 1. Return the CharSet containing all characters corresponding to a code + point on the right-hand side of the WhiteSpace or LineTerminator + productions. + CharacterClassEscape :: S + 1. Let S be the CharSet returned by CharacterClassEscape :: s. + 2. Return CharacterComplement(rer, S). + CharacterClassEscape :: w + 1. Return MaybeSimpleCaseFolding(rer, WordCharacters(rer)). + CharacterClassEscape :: W + 1. Let S be the CharSet returned by CharacterClassEscape :: w. + 2. Return CharacterComplement(rer, S). features: [String.fromCodePoint] includes: [regExpUtils.js] flags: [generated] diff --git a/test/built-ins/RegExp/CharacterClassEscapes/character-class-word-class-escape.js b/test/built-ins/RegExp/CharacterClassEscapes/character-class-word-class-escape.js index 13c55d1a74..d7950ae9d5 100644 --- a/test/built-ins/RegExp/CharacterClassEscapes/character-class-word-class-escape.js +++ b/test/built-ins/RegExp/CharacterClassEscapes/character-class-word-class-escape.js @@ -10,29 +10,36 @@ info: | https://github.com/tc39/test262/tree/main/tools/regexp-generator/ for any changes. - CharacterClassEscape[U] :: + CharacterClassEscape[UnicodeMode] :: d D s S w W + [+UnicodeMode] p{ UnicodePropertyValueExpression } + [+UnicodeMode] P{ UnicodePropertyValueExpression } - 21.2.2.12 CharacterClassEscape + 22.2.2.9 Runtime Semantics: CompileToCharSet - The production CharacterClassEscape :: d evaluates as follows: - Return the ten-element set of characters containing the characters 0 through 9 inclusive. - The production CharacterClassEscape :: D evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: d. - The production CharacterClassEscape :: s evaluates as follows: - Return the set of characters containing the characters that are on the right-hand side of - the WhiteSpace or LineTerminator productions. - The production CharacterClassEscape :: S evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: s. - The production CharacterClassEscape :: w evaluates as follows: - Return the set of all characters returned by WordCharacters(). - The production CharacterClassEscape :: W evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: w. + CharacterClassEscape :: d + 1. Return the ten-element CharSet containing the characters 0, 1, 2, 3, + 4, 5, 6, 7, 8, and 9. + CharacterClassEscape :: D + 1. Let S be the CharSet returned by CharacterClassEscape :: d. + 2. Return CharacterComplement(rer, S). + CharacterClassEscape :: s + 1. Return the CharSet containing all characters corresponding to a code + point on the right-hand side of the WhiteSpace or LineTerminator + productions. + CharacterClassEscape :: S + 1. Let S be the CharSet returned by CharacterClassEscape :: s. + 2. Return CharacterComplement(rer, S). + CharacterClassEscape :: w + 1. Return MaybeSimpleCaseFolding(rer, WordCharacters(rer)). + CharacterClassEscape :: W + 1. Let S be the CharSet returned by CharacterClassEscape :: w. + 2. Return CharacterComplement(rer, S). features: [String.fromCodePoint] includes: [regExpUtils.js] flags: [generated] diff --git a/tools/regexp-generator/header.mjs b/tools/regexp-generator/header.mjs index d52388647c..26fbe8ec25 100644 --- a/tools/regexp-generator/header.mjs +++ b/tools/regexp-generator/header.mjs @@ -11,29 +11,36 @@ info: | https://github.com/tc39/test262/tree/main/tools/regexp-generator/ for any changes. - CharacterClassEscape[U] :: + CharacterClassEscape[UnicodeMode] :: d D s S w W + [+UnicodeMode] p{ UnicodePropertyValueExpression } + [+UnicodeMode] P{ UnicodePropertyValueExpression } - 21.2.2.12 CharacterClassEscape + 22.2.2.9 Runtime Semantics: CompileToCharSet - The production CharacterClassEscape :: d evaluates as follows: - Return the ten-element set of characters containing the characters 0 through 9 inclusive. - The production CharacterClassEscape :: D evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: d. - The production CharacterClassEscape :: s evaluates as follows: - Return the set of characters containing the characters that are on the right-hand side of - the WhiteSpace or LineTerminator productions. - The production CharacterClassEscape :: S evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: s. - The production CharacterClassEscape :: w evaluates as follows: - Return the set of all characters returned by WordCharacters(). - The production CharacterClassEscape :: W evaluates as follows: - Return the set of all characters not included in the set returned by CharacterClassEscape :: w. + CharacterClassEscape :: d + 1. Return the ten-element CharSet containing the characters 0, 1, 2, 3, + 4, 5, 6, 7, 8, and 9. + CharacterClassEscape :: D + 1. Let S be the CharSet returned by CharacterClassEscape :: d. + 2. Return CharacterComplement(rer, S). + CharacterClassEscape :: s + 1. Return the CharSet containing all characters corresponding to a code + point on the right-hand side of the WhiteSpace or LineTerminator + productions. + CharacterClassEscape :: S + 1. Let S be the CharSet returned by CharacterClassEscape :: s. + 2. Return CharacterComplement(rer, S). + CharacterClassEscape :: w + 1. Return MaybeSimpleCaseFolding(rer, WordCharacters(rer)). + CharacterClassEscape :: W + 1. Let S be the CharSet returned by CharacterClassEscape :: w. + 2. Return CharacterComplement(rer, S). features: [String.fromCodePoint] includes: [regExpUtils.js] flags: [generated]