Sjmarf@sh.itjust.works to Programmer Humor · 10 months agoBrace Stylesh.itjust.worksimagemessage-square155linkfedilinkarrow-up11.33Karrow-down113
arrow-up11.32Karrow-down1imageBrace Stylesh.itjust.worksSjmarf@sh.itjust.works to Programmer Humor · 10 months agomessage-square155linkfedilink
minus-squarefrezik@midwest.sociallinkfedilinkarrow-up2·10 months agoIIRC, 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.