diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-04-12 13:52:10 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-04-12 13:52:10 -0400 |
| commit | ac218725344df82c9826110f759b292768893cd5 (patch) | |
| tree | 476767f78ed7ea1353aa042428f133748541e94a /src | |
| parent | f2a42df2f33c99a47e0c04d1bc17662f2319b8b1 (diff) | |
Fix system word token start index
Diffstat (limited to 'src')
| -rw-r--r-- | src/c.bqn | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -59,7 +59,8 @@ Tokenize←{ wk←na⌊∘÷˜(⊑bA)-˜w/t # Kind of word from first char t-↩na×l∧t≥na+⊑bA # Case-insensitive {⟨𝕩/is,"System dot with no name"⟩!0}⍟(∨´)sy>«l - wi←0<wt←(2×wk≥0)(×⟜¬+⊢)w/»sy # Type: 0 number, 1 system, 2 identifier + w≠↩»⊸∨sy # Start system word at dot + wi←0<wt←(2×wk≥0)(×⟜¬+⊢)w/sy # Type: 0 number, 1 system, 2 identifier i←l>n←l∧(+`w)⊏0∾¬wi # Identifier/Number masks num←is ReadNums○(((0∾us)<∨⟜«0∾n)/0⊸∾) t×l # Numbers ir←(us/˜«⊸<i)(⊢+∧⟜(2⊸=))wi/wk # Identifier role |
