Kaydet (Commit) 3d1f0955 authored tarafından Guido van Rossum's avatar Guido van Rossum

changes for ** (power) operator

üst b17d5dea
...@@ -43,13 +43,14 @@ ...@@ -43,13 +43,14 @@
#define arith_expr 298 #define arith_expr 298
#define term 299 #define term 299
#define factor 300 #define factor 300
#define atom 301 #define power 301
#define lambdef 302 #define atom 302
#define trailer 303 #define lambdef 303
#define subscript 304 #define trailer 304
#define exprlist 305 #define subscript 305
#define testlist 306 #define exprlist 306
#define dictmaker 307 #define testlist 307
#define classdef 308 #define dictmaker 308
#define arglist 309 #define classdef 309
#define argument 310 #define arglist 310
#define argument 311
...@@ -43,6 +43,8 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ...@@ -43,6 +43,8 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#define UNARY_INVERT 15 #define UNARY_INVERT 15
#define BINARY_POWER 19
#define BINARY_MULTIPLY 20 #define BINARY_MULTIPLY 20
#define BINARY_DIVIDE 21 #define BINARY_DIVIDE 21
#define BINARY_MODULO 22 #define BINARY_MODULO 22
......
...@@ -66,10 +66,11 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ...@@ -66,10 +66,11 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#define CIRCUMFLEX 33 #define CIRCUMFLEX 33
#define LEFTSHIFT 34 #define LEFTSHIFT 34
#define RIGHTSHIFT 35 #define RIGHTSHIFT 35
#define DOUBLESTAR 36
/* Don't forget to update the table _PyParser_TokenNames in tokenizer.c! */ /* Don't forget to update the table _PyParser_TokenNames in tokenizer.c! */
#define OP 36 #define OP 37
#define ERRORTOKEN 37 #define ERRORTOKEN 38
#define N_TOKENS 38 #define N_TOKENS 39
/* Special definitions for cooperation with parser */ /* Special definitions for cooperation with parser */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment