Sjmarf@sh.itjust.works to Programmer Humor@programming.dev · 4 months agoBrace Stylesh.itjust.worksexternal-linkmessage-square154fedilinkarrow-up11.27Karrow-down114
arrow-up11.26Karrow-down1external-linkBrace Stylesh.itjust.worksSjmarf@sh.itjust.works to Programmer Humor@programming.dev · 4 months agomessage-square154fedilink
minus-squarefreziklinkfedilinkarrow-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.