Sjmarf to Programmer Humor@programming.dev · 4 months agoBrace Styleimagemessage-square153fedilinkarrow-up11.31Karrow-down113
arrow-up11.3Karrow-down1imageBrace StyleSjmarf to Programmer Humor@programming.dev · 4 months agomessage-square153fedilink
minus-squarefrezik@midwest.sociallinkfedilinkarrow-up1·4 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.