]> granicus.if.org Git - python/commitdiff
changes for ** (power) operator
authorGuido van Rossum <guido@python.org>
Fri, 12 Jan 1996 00:51:44 +0000 (00:51 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 12 Jan 1996 00:51:44 +0000 (00:51 +0000)
Include/graminit.h
Include/opcode.h
Include/token.h

index e541099a5ec4c35608083093695998e64c45f5ff..9fa64c2d141f21021731e11504a286ee7f677e1a 100644 (file)
 #define arith_expr 298
 #define term 299
 #define factor 300
-#define atom 301
-#define lambdef 302
-#define trailer 303
-#define subscript 304
-#define exprlist 305
-#define testlist 306
-#define dictmaker 307
-#define classdef 308
-#define arglist 309
-#define argument 310
+#define power 301
+#define atom 302
+#define lambdef 303
+#define trailer 304
+#define subscript 305
+#define exprlist 306
+#define testlist 307
+#define dictmaker 308
+#define classdef 309
+#define arglist 310
+#define argument 311
index 972558060c7ef0750487f4fc2a2922ee3b2b9551..401f765f5f4f84e4c31b59c981d7193532d2523d 100644 (file)
@@ -43,6 +43,8 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
 #define UNARY_INVERT   15
 
+#define BINARY_POWER   19
+
 #define BINARY_MULTIPLY        20
 #define BINARY_DIVIDE  21
 #define BINARY_MODULO  22
index 2be3a30516483ed17c8daf34c8b0c37d31af17a8..4558525fe113af1c1429dc28880c77966f53dc2c 100644 (file)
@@ -66,10 +66,11 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 #define CIRCUMFLEX     33
 #define LEFTSHIFT      34
 #define RIGHTSHIFT     35
+#define DOUBLESTAR     36
 /* Don't forget to update the table _PyParser_TokenNames in tokenizer.c! */
-#define OP             36
-#define ERRORTOKEN     37
-#define N_TOKENS       38
+#define OP             37
+#define ERRORTOKEN     38
+#define N_TOKENS       39
 
 /* Special definitions for cooperation with parser */