4 ms·
I’ve found the notion of a parent vector to be useful for parsing problems. I like to call them Apter trees after this article http://archive.vector.org.uk/art
by gitonthescene 3y ago
I’ve found the notion of a parent vector to be useful for parsing problems. I like to call them Apter trees after this article http://archive.vector.org.uk/art10500340 http://archive.vector.org.uk/art10500340, but it’s also the core idea in Aaron Hsu’s thesis.
- gitonthescene 3y ago≠\ is an awesome trick. You might also like {2 | (1+⍳≢⍵) (⊣ - ⌈\⍤×) ~⍵}` for `⎕IO←0 for detecting which escape characters are themselves escaped. This is translated from BQN: https://github.com/mlochbaum/BQN/blob/master/md.bqn#L53 https://github.com/mlochbaum/BQN/blob/master/md.bqn#L53 This last is more compactly expressed as <\ when you have left to right folds which (unfortunately) APL does not.