diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-06-07 09:54:06 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-06-07 09:54:06 -0400 |
| commit | b84320aaa4302295dbbf76c24d0cf257a816d427 (patch) | |
| tree | 47d29239857ef1a1592e496198b747ea433f9016 | |
| parent | 027b59a117d305ca872031cf4a07bb026f271d9c (diff) | |
Fix error on input with no parens
| -rwxr-xr-x | c.bqn | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -5,7 +5,7 @@ Parse←{ na←f×1+l↑0∾c∨v e←/c⋄d←+`o-c ed←e⊏d⋄b←(⍋⍋ed)⊏(⍋⊏⟜d)⊸⊏/o - s←e-(e∾l)⊏˜{u←(≠e)¨𝕩⋄{(𝕩⊏u)↩𝕨⊏˜𝕨⍋𝕩}¨´˘2↕⊔𝕩⋄u}ed + s←e-(e∾l)⊏˜{u←(≠e)¨𝕩⋄{(𝕩⊏u)↩𝕨⊏˜𝕨⍋𝕩}¨´˘2↕⊔𝕩⋄u}⍟(0<≠)ed fe←f×(l-1)++`(-⊸≍s)⌾((e≍b)⊸⊏)l⥊0 ia←+`l↑0∾f-l↑/⁼∧f/fe sel←¬∘⊏⟜(o∨c)⊸/⍋(fe⌈↕l)-ia |
