summaryrefslogtreecommitdiff
path: root/Include/token.h
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2000-08-24 20:09:45 +0000
committerThomas Wouters <thomas@python.org>2000-08-24 20:09:45 +0000
commitddf8d813a7a2b8b28ee116811eb70f4e7889a7b6 (patch)
treed194fe5fe766541f680e6b14ab1766cb58184214 /Include/token.h
parentdfa689c16288c9a333080db8cbaaa25ddc296149 (diff)
downloadcpython-ddf8d813a7a2b8b28ee116811eb70f4e7889a7b6.tar.gz
The real suport for augmented assignment: new opcodes, new PyNumber and
PySequence methods and functions, new tokens.
Diffstat (limited to 'Include/token.h')
-rw-r--r--Include/token.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/Include/token.h b/Include/token.h
index 88ef3fcb6c..d6bdc85cee 100644
--- a/Include/token.h
+++ b/Include/token.h
@@ -53,10 +53,21 @@ extern "C" {
#define LEFTSHIFT 34
#define RIGHTSHIFT 35
#define DOUBLESTAR 36
+#define PLUSEQUAL 37
+#define MINEQUAL 38
+#define STAREQUAL 39
+#define SLASHEQUAL 40
+#define PERCENTEQUAL 41
+#define AMPEREQUAL 42
+#define VBAREQUAL 43
+#define CIRCUMFLEXEQUAL 44
+#define LEFTSHIFTEQUAL 45
+#define RIGHTSHIFTEQUAL 46
+#define DOUBLESTAREQUAL 47
/* Don't forget to update the table _PyParser_TokenNames in tokenizer.c! */
-#define OP 37
-#define ERRORTOKEN 38
-#define N_TOKENS 39
+#define OP 48
+#define ERRORTOKEN 49
+#define N_TOKENS 50
/* Special definitions for cooperation with parser */