Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
3d1f0955
Commit
3d1f0955
authored
Jan 12, 1996
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changes for ** (power) operator
parent
b17d5dea
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
13 deletions
+17
-13
Include/graminit.h
Include/graminit.h
+11
-10
Include/opcode.h
Include/opcode.h
+2
-0
Include/token.h
Include/token.h
+4
-3
No files found.
Include/graminit.h
View file @
3d1f0955
...
...
@@ -43,13 +43,14 @@
#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
Include/opcode.h
View file @
3d1f0955
...
...
@@ -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
...
...
Include/token.h
View file @
3d1f0955
...
...
@@ -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 3
6
#define ERRORTOKEN 3
7
#define N_TOKENS 3
8
#define OP 3
7
#define ERRORTOKEN 3
8
#define N_TOKENS 3
9
/* Special definitions for cooperation with parser */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment