diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-12-01 21:39:01 -0500 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-12-01 21:46:45 -0500 |
| commit | 1b8aab1ebfc36888d58d5347f7723e4bd1c5031c (patch) | |
| tree | 18f2fef309a13d84a6fb84c2ee2d15f629ca199a /src/c.bqn | |
| parent | 462ef9f8136c4d87e3dd320a68ba8b63a5238aac (diff) | |
Allow and ignore underscores in numbers
Diffstat (limited to 'src/c.bqn')
| -rw-r--r-- | src/c.bqn | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -58,7 +58,7 @@ Tokenize←{ wk←na⌊∘÷˜(⊑bA)-˜w/t # Kind of word from first char t-↩na×l∧t≥na+⊑bA # Case-insensitive i←l>n←l∧(+`w)⊏0∾wk<0 # Identifier/Number masks - num←is ReadNums○((∨⟜«0∾n)/0⊸∾) t×l # Numbers + num←is ReadNums○(((0∾us)<∨⟜«0∾n)/0⊸∾) t×l # Numbers ir←(us/˜«⊸<i)(⊢+∧⟜(2⊸=))0⊸≤⊸/wk # Identifier role id←(1-˜(i>us)×+`w>n)⊔t # Identifiers |
