Sjmarf@sh.itjust.works to Programmer Humor@programming.dev · 5 months agoBrace Stylesh.itjust.worksexternal-linkmessage-square137fedilinkarrow-up11.26Karrow-down110
arrow-up11.25Karrow-down1external-linkBrace Stylesh.itjust.worksSjmarf@sh.itjust.works to Programmer Humor@programming.dev · 5 months agomessage-square137fedilink
minus-squarefrezik@midwest.sociallinkfedilinkarrow-up1·5 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.