in reply to Re: Evolution of python
in thread Evolution of python

I suspect the semantic white space makes the Python grammar ambiguous from a theoretical standpoint. Anyone have a proof of this?

I ask as I was trying to think of how tools could be programmed to make the activity of programming easier for people with visual impairments. I think languages with clear block demarcations have advantages here.

Replies are listed 'Best First'.
Re^3: Evolution of python
by haukex (Archbishop) on Jul 14, 2019 at 14:14 UTC
    I suspect the semantic white space makes the Python grammar ambiguous from a theoretical standpoint.

    I'd be a bit surprised if that were the case... anyway, there's a Full Grammar specification available, and the source for the grammar is here.

      Lol, I was hoping someone else did a proof. I'm not terribly excited about doing it myself. I had actually looked at those docs, but there wasn't an obvious answer to the question. Thanks though!

      Edit: Old thread, but it appears this question was asked awhile back. Seems to be context-free if I understand this correctly. Is Python context-sensitive?