[Python-ideas] allow line break at operators

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Aug 12 02:21:23 CEST 2011


Terry Reedy wrote:
> Hence, all 
> grammar proposals must stay within the bounds of LL(1) context-free 
> languages.

I don't think any of the proposals so far go beyond LL(1).
However, some of them might require rethinking the traditional
form of interface between the tokeniser and the parser. For
example, instead of treating newlines as a separate token,
have a flag which says "this token occurred at the end of a
line", that the parser can take notice of or not depending
on the context.

-- 
Greg



More information about the Python-ideas mailing list