• frezik
    link
    fedilink
    arrow-up
    1
    ·
    1 month ago

    IIRC, Python handles whitespace indentation by having the tokenizer convert them to INDENT/DEDENT tokens. The grammar can then handle them equivalently to a curly brace language.