3 ms·
So a semicolon plays three roles in the code (arg; statement; block;;), and it seems that ;; has higher precedence when ;;; is seen.
by voaie 11y ago
So a semicolon plays three roles in the code (arg; statement; block;;), and it seems that ;; has higher precedence when ;;; is seen.
- ori_b 11y agoSort of. Endlines have one role: They end statements, although there are potentially many kinds of statement that they end. ';' and '\n' are alternative equivalent renderings of line endings. ';;' ends blocks. And yes, the lexer does the usual longest prefix match.