Guido van Rossum | 85a5fbb | 1990-10-14 12:07:46 +0000 | [diff] [blame^] | 1 | /* 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 */ |