3 ms·
you don't semicolons, but they can be handy. One way of looking at them is as an infix operator (a monad if you want). Another remark is that Python parsing ca
by toolslive 6y ago
you don't semicolons, but they can be handy. One way of looking at them is as an infix operator (a monad if you want).
Another remark is that Python parsing can be hard as a single newline can actually end multiple blocks. Lexers are not designed to have a single char denote multiple tokens.
- gnufx 6y agoCan't semicolons essentially be either infix or postfix (terminators), depending on the language? Parsing the offside rule -- I know that's not actually Python -- can be done straightforwardly with a parsing combinator transformer (originally due to Hutton?) if tokens are associated with layout information.