Parsing nested lists in BQN
16 points by veqq
16 points by veqq
This approach to parsing, and wrangling with trees in array languages in general, have been really eye-opening for me! Plus, it's really quite a lot of fun.
It's also worth noting that CBQN's performance characteristics seem to have changed quite a bit since that post, as for me the nested array-based version is faster than the recursive descent approach.