summaryrefslogtreecommitdiffstats
path: root/Parser/pegen.h
diff options
context:
space:
mode:
authorDennis Sweeney <36520290+sweeneyde@users.noreply.github.com>2023-08-22 07:41:50 (GMT)
committerGitHub <noreply@github.com>2023-08-22 07:41:50 (GMT)
commit86617518c4ac824e2b6dc20691ba5a08df04f285 (patch)
treed2510cb804fca7f5835caa4f77facbce0fff97c6 /Parser/pegen.h
parent7f87ebbc3f52680c939791f397b9a478edf0c8d4 (diff)
downloadcpython-86617518c4ac824e2b6dc20691ba5a08df04f285.zip
cpython-86617518c4ac824e2b6dc20691ba5a08df04f285.tar.gz
cpython-86617518c4ac824e2b6dc20691ba5a08df04f285.tar.bz2
gh-108179: Add error message for parser stack overflows (#108256)
Diffstat (limited to 'Parser/pegen.h')
-rw-r--r--Parser/pegen.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Parser/pegen.h b/Parser/pegen.h
index 0852bb5..266d521 100644
--- a/Parser/pegen.h
+++ b/Parser/pegen.h
@@ -166,6 +166,8 @@ void *_PyPegen_raise_error_known_location(Parser *p, PyObject *errtype,
Py_ssize_t end_lineno, Py_ssize_t end_col_offset,
const char *errmsg, va_list va);
void _Pypegen_set_syntax_error(Parser* p, Token* last_token);
+void _Pypegen_stack_overflow(Parser *p);
+
Py_LOCAL_INLINE(void *)
RAISE_ERROR_KNOWN_LOCATION(Parser *p, PyObject *errtype,
Py_ssize_t lineno, Py_ssize_t col_offset,