diff Python/pythonrun.c @ 12970:63436719d12e legacy-trunk

Add new parser error code, E_OVERFLOW. This error is returned when the number of children of a node exceeds the max possible value for the short that is used to count them. The Python runtime converts this parser error into the SyntaxError "expression too long."
author Jeremy Hylton <jeremy@alum.mit.edu>
date Tue, 20 Jun 2000 19:10:44 +0000
parents 5213abfe5230
children 916fb024ce94
line wrap: on
line diff
--- a/Python/pythonrun.c	Tue Jun 20 18:52:57 2000 +0000
+++ b/Python/pythonrun.c	Tue Jun 20 19:10:44 2000 +0000
@@ -1033,6 +1033,9 @@
 	case E_INDENT:
 		msg = "inconsistent use of tabs and spaces in indentation";
 		break;
+	case E_OVERFLOW:
+		msg = "expression too long";
+		break;
 	default:
 		fprintf(stderr, "error=%d\n", err->error);
 		msg = "unknown parsing error";