Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: Evolution of python

by thechartist (Monk)
on Jul 14, 2019 at 14:06 UTC ( #11102832=note: print w/replies, xml ) Need Help??


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 (Bishop) 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?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11102832]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2020-10-28 03:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (259 votes). Check out past polls.

    Notices?