• frezik@midwest.social
    link
    fedilink
    arrow-up
    1
    ·
    4 个月前

    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.