Kaydet (Commit) 84ee323c authored tarafından Tim Peters's avatar Tim Peters

John Aycock correctly pointed out that the grammar for

"power" was formally ambiguous.  Here's his fix.
üst c32f0336
......@@ -79,7 +79,7 @@ shift_expr: arith_expr (('<<'|'>>') arith_expr)*
arith_expr: term (('+'|'-') term)*
term: factor (('*'|'/'|'%'|'//') factor)*
factor: ('+'|'-'|'~') factor | power
power: atom trailer* ('**' factor)*
power: atom trailer* ['**' factor]
atom: '(' [testlist] ')' | '[' [listmaker] ']' | '{' [dictmaker] '}' | '`' testlist '`' | NAME | NUMBER | STRING+
listmaker: test ( list_for | (',' test)* [','] )
lambdef: 'lambda' [varargslist] ':' test
......
......@@ -20,6 +20,7 @@ Oliver Andrich
Ross Andrus
Jason Asbahr
David Ascher
John Aycock
Donovan Baarda
Alfonso Baciero
Stig Bakken
......
......@@ -1005,15 +1005,14 @@ static arc arcs_48_1[3] = {
static arc arcs_48_2[1] = {
{119, 3},
};
static arc arcs_48_3[2] = {
{24, 2},
static arc arcs_48_3[1] = {
{0, 3},
};
static state states_48[4] = {
{1, arcs_48_0},
{3, arcs_48_1},
{1, arcs_48_2},
{2, arcs_48_3},
{1, arcs_48_3},
};
static arc arcs_49_0[7] = {
{16, 1},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment