| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,9 +11,9 @@ | |||
| 11 | 11 | # "How to Change Python's Grammar" | |
| 12 | 12 | ||
| 13 | 13 | # Start symbols for the grammar: | |
| 14 | - # single_input is a single interactive statement; | ||
| 15 | - # file_input is a module or sequence of commands read from an input file; | ||
| 16 | - # eval_input is the input for the eval() and input() functions. | ||
| 14 | + # single_input is a single interactive statement; | ||
| 15 | + # file_input is a module or sequence of commands read from an input file; | ||
| 16 | + # eval_input is the input for the eval() and input() functions. | ||
| 17 | 17 | # NB: compound_stmt in single_input is followed by extra NEWLINE! | |
| 18 | 18 | single_input: NEWLINE | simple_stmt | compound_stmt NEWLINE | |
| 19 | 19 | file_input: (NEWLINE | stmt)* ENDMARKER | |
@@ -68,9 +68,9 @@ while_stmt: 'while' test ':' suite ['else' ':' suite] | |||
| 68 | 68 | for_stmt: 'for' exprlist 'in' testlist ':' suite ['else' ':' suite] | |
| 69 | 69 | try_stmt: ('try' ':' suite | |
| 70 | 70 | ((except_clause ':' suite)+ | |
| 71 | - ['else' ':' suite] | ||
| 72 | - ['finally' ':' suite] | | ||
| 73 | - 'finally' ':' suite)) | ||
| 71 | + ['else' ':' suite] | ||
| 72 | + ['finally' ':' suite] | | ||
| 73 | + 'finally' ':' suite)) | ||
| 74 | 74 | with_stmt: 'with' with_item (',' with_item)* ':' suite | |
| 75 | 75 | with_item: test ['as' expr] | |
| 76 | 76 | # NB compile.c makes sure that the default except clause is last | |
| Back | FazBrowse Home | New Git URL |
0 commit comments