Sjmarf@sh.itjust.works to Programmer Humor@programming.dev · 1 year agoBrace Stylesh.itjust.worksexternal-linkmessage-square158linkfedilinkarrow-up11.33Karrow-down114
arrow-up11.31Karrow-down1external-linkBrace Stylesh.itjust.worksSjmarf@sh.itjust.works to Programmer Humor@programming.dev · 1 year agomessage-square158linkfedilink
minus-squarefrezik@midwest.sociallinkfedilinkarrow-up1·1 year 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.