WIP: ref(lexer): attempt to not try on every token
WIP: ref(lexer): attempt to not try on every token
Update on this:
Current Haddock uses try everywhere too so we probably shouldn't care that much.
choice' :: [Parser a] -> Parser a
choice' [] = empty
choice' [p] = p
choice' (p :…
WIP: ref(lexer): attempt to not try on every token
Maybe we shouldn't try to match \( and \) at lexer level? I don't think it's the lexer's responsibility to handle whether a construct is closed or not, lexer should only do character grouping.
WIP: ref(lexer): attempt to not try on every token