[Python-checkins] python/dist/src/Grammar Grammar,1.45,1.46
tim_one@users.sourceforge.net
tim_one@users.sourceforge.net
Thu, 23 May 2002 13:05:43 -0700
Update of /cvsroot/python/python/dist/src/Grammar
In directory usw-pr-cvs1:/tmp/cvs-serv17107/python/Grammar
Modified Files:
Grammar
Log Message:
John Aycock correctly pointed out that the grammar for
"power" was formally ambiguous. Here's his fix.
Index: Grammar
===================================================================
RCS file: /cvsroot/python/python/dist/src/Grammar/Grammar,v
retrieving revision 1.45
retrieving revision 1.46
diff -C2 -d -r1.45 -r1.46
*** Grammar 15 Oct 2001 15:44:04 -0000 1.45
--- Grammar 23 May 2002 20:05:40 -0000 1.46
***************
*** 80,84 ****
term: factor (('*'|'/'|'%'|'//') factor)*
factor: ('+'|'-'|'~') factor | power
! power: atom trailer* ('**' factor)*
atom: '(' [testlist] ')' | '[' [listmaker] ']' | '{' [dictmaker] '}' | '`' testlist '`' | NAME | NUMBER | STRING+
listmaker: test ( list_for | (',' test)* [','] )
--- 80,84 ----
term: factor (('*'|'/'|'%'|'//') factor)*
factor: ('+'|'-'|'~') factor | power
! power: atom trailer* ['**' factor]
atom: '(' [testlist] ')' | '[' [listmaker] ']' | '{' [dictmaker] '}' | '`' testlist '`' | NAME | NUMBER | STRING+
listmaker: test ( list_for | (',' test)* [','] )