Sjmarf@sh.itjust.works to Programmer Humor@programming.dev · 1 年前Brace Stylesh.itjust.worksimagemessage-square157fedilinkarrow-up11.32Karrow-down114
arrow-up11.3Karrow-down1imageBrace Stylesh.itjust.worksSjmarf@sh.itjust.works to Programmer Humor@programming.dev · 1 年前message-square157fedilink
minus-squarefrezik@midwest.sociallinkfedilinkarrow-up1·1 年前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.
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.