summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2023-09-07 13:39:03 (GMT)
committerGitHub <noreply@github.com>2023-09-07 13:39:03 (GMT)
commit0858328ca2457ae95715eb93e347d5c0547bec6f (patch)
tree35c18050d74c747699f30e9862fd4a63fb14eaa7 /Tools
parentd485551c9d1792ff3539eef1d6374bd4c01dcd5d (diff)
downloadcpython-0858328ca2457ae95715eb93e347d5c0547bec6f.zip
cpython-0858328ca2457ae95715eb93e347d5c0547bec6f.tar.gz
cpython-0858328ca2457ae95715eb93e347d5c0547bec6f.tar.bz2
GH-108614: Add `RESUME_CHECK` instruction (GH-108630)
Diffstat (limited to 'Tools')
-rw-r--r--Tools/cases_generator/instructions.py1
-rw-r--r--Tools/cases_generator/parsing.py3
2 files changed, 3 insertions, 1 deletions
diff --git a/Tools/cases_generator/instructions.py b/Tools/cases_generator/instructions.py
index 9143ae0..145c1ad 100644
--- a/Tools/cases_generator/instructions.py
+++ b/Tools/cases_generator/instructions.py
@@ -37,6 +37,7 @@ FORBIDDEN_NAMES_IN_UOPS = (
"import_from",
"import_name",
"_PyObject_CallNoArgs", # Proxy for BEFORE_WITH
+ "TIER_ONE_ONLY",
)
diff --git a/Tools/cases_generator/parsing.py b/Tools/cases_generator/parsing.py
index 25de3a5..25be5ca 100644
--- a/Tools/cases_generator/parsing.py
+++ b/Tools/cases_generator/parsing.py
@@ -362,7 +362,8 @@ class Parser(PLexer):
if tkn := self.expect(lx.IDENTIFIER):
if self.expect(lx.COMMA):
if not (size := self.expect(lx.IDENTIFIER)):
- raise self.make_syntax_error("Expected identifier")
+ if not (size := self.expect(lx.NUMBER)):
+ raise self.make_syntax_error("Expected identifier or number")
if self.expect(lx.RPAREN):
if self.expect(lx.EQUALS):
if not self.expect(lx.LBRACE):