summaryrefslogtreecommitdiffstats
path: root/Include/token.h
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2000-08-24 20:09:45 (GMT)
committerThomas Wouters <thomas@python.org>2000-08-24 20:09:45 (GMT)
commitdd8dbdb7172fbafb5ffab8600e620103fc19879e (patch)
treed0706f5e94cb061057f85138e8637885c9f4cb57 /Include/token.h
parente289e0bd0c3db9755bb2ddd49b08091049bc301d (diff)
downloadcpython-dd8dbdb7172fbafb5ffab8600e620103fc19879e.zip
cpython-dd8dbdb7172fbafb5ffab8600e620103fc19879e.tar.gz
cpython-dd8dbdb7172fbafb5ffab8600e620103fc19879e.tar.bz2
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 88ef3fc..d6bdc85 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 */