From 58c4083da7634993778e4c71f0d5d70919d02bf5 Mon Sep 17 00:00:00 2001 From: Michael Dyck Date: Wed, 20 Dec 2017 22:13:01 -0500 Subject: [PATCH] Editorial: add more lookahead-restrictions to NotEscapeSequence Specifically, add a [lookahead Syntax `u` HexDigit HexDigit [lookahead <! HexDigit] `u` HexDigit HexDigit HexDigit [lookahead <! HexDigit] `u` `{` [lookahead <! HexDigit] - `u` `{` NotCodePoint - `u` `{` CodePoint [lookahead != `}`] + `u` `{` NotCodePoint [lookahead <! HexDigit] + `u` `{` CodePoint [lookahead <! HexDigit] [lookahead != `}`] NotCodePoint :: HexDigits [> but only if MV of HexDigits > 0x10FFFF ] @@ -10845,10 +10845,10 @@

Static Semantics: TV and TRV

The TRV of NotEscapeSequence :: `u` `{` [lookahead <! HexDigit] is the sequence consisting of the code unit 0x0075 (LATIN SMALL LETTER U) followed by the code unit 0x007B (LEFT CURLY BRACKET).
  • - The TRV of NotEscapeSequence :: `u` `{` NotCodePoint is the sequence consisting of the code unit 0x0075 (LATIN SMALL LETTER U) followed by the code unit 0x007B (LEFT CURLY BRACKET) followed by the code units of the TRV of |NotCodePoint|. + The TRV of NotEscapeSequence :: `u` `{` NotCodePoint [lookahead <! HexDigit] is the sequence consisting of the code unit 0x0075 (LATIN SMALL LETTER U) followed by the code unit 0x007B (LEFT CURLY BRACKET) followed by the code units of the TRV of |NotCodePoint|.
  • - The TRV of NotEscapeSequence :: `u` `{` CodePoint [lookahead != `}`] is the sequence consisting of the code unit 0x0075 (LATIN SMALL LETTER U) followed by the code unit 0x007B (LEFT CURLY BRACKET) followed by the code units of the TRV of |CodePoint|. + The TRV of NotEscapeSequence :: `u` `{` CodePoint [lookahead <! HexDigit] [lookahead != `}`] is the sequence consisting of the code unit 0x0075 (LATIN SMALL LETTER U) followed by the code unit 0x007B (LEFT CURLY BRACKET) followed by the code units of the TRV of |CodePoint|.
  • The TRV of DecimalDigit :: one of `0` `1` `2` `3` `4` `5` `6` `7` `8` `9` is the SV of the |SourceCharacter| that is that single code point.