blob: 2b6f49b0bcdb33a1977f1c2d9fec2c4cd640b571 [file] [log] [blame]
Guido van Rossum85a5fbb1990-10-14 12:07:46 +00001/* Error codes passed around between file input, tokenizer, parser and
2 interpreter. This was necessary so we can turn them into Python
3 exceptions at a higher level. */
4
5#define E_OK 10 /* No error */
6#define E_EOF 11 /* (Unexpected) EOF read */
7#define E_INTR 12 /* Interrupted */
8#define E_TOKEN 13 /* Bad token */
9#define E_SYNTAX 14 /* Syntax error */
10#define E_NOMEM 15 /* Ran out of memory */
11#define E_DONE 16 /* Parsing complete */
12#define E_ERROR 17 /* Execution error */