Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1)

Delta Between Two Patch Sets: Lib/lib2to3/Grammar.txt

Issue 15550: Trailing white spaces
Left Patch Set: Created 7 years, 6 months ago
Right Patch Set: Created 7 years, 6 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « Lib/idlelib/README.txt ('k') | Lib/test/cfgparser.2 » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 # Grammar for 2to3. This grammar supports Python 2.x and 3.x. 1 # Grammar for 2to3. This grammar supports Python 2.x and 3.x.
2 2
3 # Note: Changing the grammar specified in this file will most likely 3 # Note: Changing the grammar specified in this file will most likely
4 # require corresponding changes in the parser module 4 # require corresponding changes in the parser module
5 # (../Modules/parsermodule.c). If you can't make the changes to 5 # (../Modules/parsermodule.c). If you can't make the changes to
6 # that module yourself, please co-ordinate the required changes 6 # that module yourself, please co-ordinate the required changes
7 # with someone who can; ask around on python-dev for help. Fred 7 # with someone who can; ask around on python-dev for help. Fred
8 # Drake <fdrake@acm.org> will probably be listening there. 8 # Drake <fdrake@acm.org> will probably be listening there.
9 9
10 # NOTE WELL: You should also follow all the steps listed in PEP 306, 10 # NOTE WELL: You should also follow all the steps listed in PEP 306,
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 subscript: test | [test] ':' [test] [sliceop] 135 subscript: test | [test] ':' [test] [sliceop]
136 sliceop: ':' [test] 136 sliceop: ':' [test]
137 exprlist: (expr|star_expr) (',' (expr|star_expr))* [','] 137 exprlist: (expr|star_expr) (',' (expr|star_expr))* [',']
138 testlist: test (',' test)* [','] 138 testlist: test (',' test)* [',']
139 dictsetmaker: ( (test ':' test (comp_for | (',' test ':' test)* [','])) | 139 dictsetmaker: ( (test ':' test (comp_for | (',' test ':' test)* [','])) |
140 (test (comp_for | (',' test)* [','])) ) 140 (test (comp_for | (',' test)* [','])) )
141 141
142 classdef: 'class' NAME ['(' [arglist] ')'] ':' suite 142 classdef: 'class' NAME ['(' [arglist] ')'] ':' suite
143 143
144 arglist: (argument ',')* (argument [','] 144 arglist: (argument ',')* (argument [',']
145 |'*' test (',' argument)* [',' '**' test] 145 |'*' test (',' argument)* [',' '**' test]
146 |'**' test) 146 |'**' test)
147 argument: test [comp_for] | test '=' test # Really [keyword '='] test 147 argument: test [comp_for] | test '=' test # Really [keyword '='] test
148 148
149 comp_iter: comp_for | comp_if 149 comp_iter: comp_for | comp_if
150 comp_for: 'for' exprlist 'in' testlist_safe [comp_iter] 150 comp_for: 'for' exprlist 'in' testlist_safe [comp_iter]
151 comp_if: 'if' old_test [comp_iter] 151 comp_if: 'if' old_test [comp_iter]
152 152
153 testlist1: test (',' test)* 153 testlist1: test (',' test)*
154 154
155 # not used in grammar, but may appear in "node" passed from Parser to Compiler 155 # not used in grammar, but may appear in "node" passed from Parser to Compiler
156 encoding_decl: NAME 156 encoding_decl: NAME
157 157
158 yield_expr: 'yield' [testlist] 158 yield_expr: 'yield' [testlist]
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+