Sujet : Re: Extract lines from file, add to new files
De : ram (at) *nospam* zedat.fu-berlin.de (Stefan Ram)
Groupes : comp.lang.pythonDate : 15. Jan 2024, 13:35:22
Autres entêtes
Organisation : Stefan Ram
Message-ID : <whitespace-20240115133331@ram.dialup.fu-berlin.de>
References : 1 2 3 4 5 6 7 8 9
Antoon Pardon <
antoon.pardon@vub.be> writes:
No it doesn't. Here is the definition of a block, it clearly mentions
indentation:
In many programming languages, whitespace is missing from the grammar.
This is not an error in the grammar of those languages though, because
the grammar actually is split into a "lexical" and a "syntactical"
part. Whitespace is used in the lexical part to split the input into
tokens. Then the grammar does not need to take whitespace into
account anymore. It operates on the tokens from the lexical phase.