• frezik@midwest.social
    link
    fedilink
    arrow-up
    1
    ·
    5 months 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.