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
09cea474
Commit
09cea474
authored
Jan 01, 1992
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't allow '==' at top level yet, to catch conversion errors.
parent
6a468bf7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
Grammar/Grammar
Grammar/Grammar
+2
-3
No files found.
Grammar/Grammar
View file @
09cea474
# Grammar for Python, version 10
# Grammar for Python, version 10
# Changes since version 9:
# Changes since version 9:
# Equality is now only tested with '=='; consequently
# Equality is now only tested with '=='
# Exprlist replaced by testlist everywhere except after 'for'
# Changes since version 8:
# Changes since version 8:
# Trailing commas in formal parameter lists are allowed
# Trailing commas in formal parameter lists are allowed
...
@@ -64,7 +63,7 @@ fpdef: NAME | '(' fplist ')'
...
@@ -64,7 +63,7 @@ fpdef: NAME | '(' fplist ')'
stmt: simple_stmt | compound_stmt
stmt: simple_stmt | compound_stmt
simple_stmt: small_stmt (';' small_stmt)* [';'] NEWLINE
simple_stmt: small_stmt (';' small_stmt)* [';'] NEWLINE
small_stmt: expr_stmt | print_stmt | del_stmt | pass_stmt | flow_stmt | import_stmt | global_stmt
small_stmt: expr_stmt | print_stmt | del_stmt | pass_stmt | flow_stmt | import_stmt | global_stmt
expr_stmt: (
testlist '=')* test
list
expr_stmt: (
exprlist '=')* expr
list
# For assignments, additional restrictions enforced by the interpreter
# For assignments, additional restrictions enforced by the interpreter
print_stmt: 'print' (test ',')* [test]
print_stmt: 'print' (test ',')* [test]
del_stmt: 'del' exprlist
del_stmt: 'del' exprlist
...
...
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