diff options
author | Skip Montanaro <skip@pobox.com> | 2000-08-22 02:43:07 (GMT) |
---|---|---|
committer | Skip Montanaro <skip@pobox.com> | 2000-08-22 02:43:07 (GMT) |
commit | 46dfa5f4ed16c64edc845fffd4a5e2517415a2d6 (patch) | |
tree | 0357b1bd28ca24138dec5bac32bab2f70e988929 /Grammar | |
parent | 2823f03a56451f3187a1d85ffcef107f00f6f48e (diff) | |
download | cpython-46dfa5f4ed16c64edc845fffd4a5e2517415a2d6.zip cpython-46dfa5f4ed16c64edc845fffd4a5e2517415a2d6.tar.gz cpython-46dfa5f4ed16c64edc845fffd4a5e2517415a2d6.tar.bz2 |
require list comprehensions to start with a for clause
Diffstat (limited to 'Grammar')
-rw-r--r-- | Grammar/Grammar | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Grammar/Grammar b/Grammar/Grammar index f95923d..dd12b6d 100644 --- a/Grammar/Grammar +++ b/Grammar/Grammar @@ -77,7 +77,7 @@ term: factor (('*'|'/'|'%') factor)* factor: ('+'|'-'|'~') factor | power power: atom trailer* ('**' factor)* atom: '(' [testlist] ')' | '[' [listmaker] ']' | '{' [dictmaker] '}' | '`' testlist '`' | NAME | NUMBER | STRING+ -listmaker: test ( list_iter | (',' test)* [','] ) +listmaker: test ( list_for | (',' test)* [','] ) lambdef: 'lambda' [varargslist] ':' test trailer: '(' [arglist] ')' | '[' subscriptlist ']' | '.' NAME subscriptlist: subscript (',' subscript)* [','] |