[Python-ideas] Hooking between lexer and parser

random832 at fastmail.us random832 at fastmail.us
Mon Jun 8 03:37:50 CEST 2015

On Sun, Jun 7, 2015, at 18:21, Greg Ewing wrote:
> random832 at fastmail.us wrote:
> > I'm actually talking about what happens if the _untransformed_ stream
> > contains an unbalanced bracket that the hook is supposed to eliminate
> I'm of the opinion that designing an input language
> to require or allow unmatched brackets is a bad
> idea. If nothing else, it causes grief for editors
> that do bracket matching.

Suppose one of the brackets is quoted somehow, or mismatched bracket
pairs such as [this), perhaps including tokens that are not normally
considered brackets, are somehow meaningful.

More information about the Python-ideas mailing list