summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1991-10-24 14:59:31 (GMT)
committerGuido van Rossum <guido@python.org>1991-10-24 14:59:31 (GMT)
commit7928cd7636060c09da613d6f226a54903b86740a (patch)
treea098fc51fb6d3beb0efc3a7905c762190443b183 /Include
parent7a6dfa7d79597f29866033ecf648457fe7572a8f (diff)
downloadcpython-7928cd7636060c09da613d6f226a54903b86740a.zip
cpython-7928cd7636060c09da613d6f226a54903b86740a.tar.gz
cpython-7928cd7636060c09da613d6f226a54903b86740a.tar.bz2
Added shift and mask ops.
Diffstat (limited to 'Include')
-rw-r--r--Include/opcode.h8
-rw-r--r--Include/token.h10
2 files changed, 15 insertions, 3 deletions
diff --git a/Include/opcode.h b/Include/opcode.h
index 7edf661..62cedb3 100644
--- a/Include/opcode.h
+++ b/Include/opcode.h
@@ -35,6 +35,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#define UNARY_NOT 12
#define UNARY_CONVERT 13
#define UNARY_CALL 14
+#define UNARY_INVERT 15
#define BINARY_MULTIPLY 20
#define BINARY_DIVIDE 21
@@ -56,6 +57,13 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#define STORE_SUBSCR 60
#define DELETE_SUBSCR 61
+#define BINARY_LSHIFT 62
+#define BINARY_RSHIFT 63
+#define BINARY_AND 64
+#define BINARY_XOR 65
+#define BINARY_OR 66
+
+
#define PRINT_EXPR 70
#define PRINT_ITEM 71
#define PRINT_NEWLINE 72
diff --git a/Include/token.h b/Include/token.h
index 9c1ed71..d29c784 100644
--- a/Include/token.h
+++ b/Include/token.h
@@ -56,10 +56,14 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#define NOTEQUAL 29
#define LESSEQUAL 30
#define GREATEREQUAL 31
+#define TILDE 32
+#define CIRCUMFLEX 33
+#define LEFTSHIFT 34
+#define RIGHTSHIFT 35
/* Don't forget to update the table tok_name in tokenizer.c! */
-#define OP 32
-#define ERRORTOKEN 33
-#define N_TOKENS 34
+#define OP 36
+#define ERRORTOKEN 37
+#define N_TOKENS 38
/* Special definitions for cooperation with parser */