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."
This commit is contained in:
Jeremy Hylton 2000-06-20 19:10:44 +00:00
parent 56c807d318
commit 94988067b9
5 changed files with 28 additions and 18 deletions

View file

@ -1033,6 +1033,9 @@ err_input(err)
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";