telus-agcg/wise_units

"dar" fails to parse to "deciare"

Opened this issue · 0 comments

While the case in the summary probably isn't realistic, it's representative of other cases as well. In this case, wise_units (greedily) parses the prefix "da" (deka), leaving the "r" token, which doesn't parse, thus causing an error. In this case we'd actually like to non-greedily parse the "d" in "dar", leaving the parser to parse "d" and "ar".