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
690959f1
Commit
690959f1
authored
Jul 05, 2010
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
untabify
parent
9273f809
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
Grammar/Grammar
Grammar/Grammar
+6
-6
No files found.
Grammar/Grammar
View file @
690959f1
...
@@ -11,9 +11,9 @@
...
@@ -11,9 +11,9 @@
# "How to Change Python's Grammar"
# "How to Change Python's Grammar"
# Start symbols for the grammar:
# Start symbols for the grammar:
#
single_input is a single interactive statement;
#
single_input is a single interactive statement;
#
file_input is a module or sequence of commands read from an input file;
#
file_input is a module or sequence of commands read from an input file;
#
eval_input is the input for the eval() and input() functions.
#
eval_input is the input for the eval() and input() functions.
# NB: compound_stmt in single_input is followed by extra NEWLINE!
# NB: compound_stmt in single_input is followed by extra NEWLINE!
single_input: NEWLINE | simple_stmt | compound_stmt NEWLINE
single_input: NEWLINE | simple_stmt | compound_stmt NEWLINE
file_input: (NEWLINE | stmt)* ENDMARKER
file_input: (NEWLINE | stmt)* ENDMARKER
...
@@ -68,9 +68,9 @@ while_stmt: 'while' test ':' suite ['else' ':' suite]
...
@@ -68,9 +68,9 @@ while_stmt: 'while' test ':' suite ['else' ':' suite]
for_stmt: 'for' exprlist 'in' testlist ':' suite ['else' ':' suite]
for_stmt: 'for' exprlist 'in' testlist ':' suite ['else' ':' suite]
try_stmt: ('try' ':' suite
try_stmt: ('try' ':' suite
((except_clause ':' suite)+
((except_clause ':' suite)+
['else' ':' suite]
['else' ':' suite]
['finally' ':' suite] |
['finally' ':' suite] |
'finally' ':' suite))
'finally' ':' suite))
with_stmt: 'with' with_item (',' with_item)* ':' suite
with_stmt: 'with' with_item (',' with_item)* ':' suite
with_item: test ['as' expr]
with_item: test ['as' expr]
# NB compile.c makes sure that the default except clause is last
# NB compile.c makes sure that the default except clause is last
...
...
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