You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, when you write something like Plus <$> expr <* char '+' <*> expr <|> number and use that on the string 1+2+3 you'll get two results: Plus 1 (Plus 2 3) and Plus (Plus 1 2) 3.
We lack a way to specify which one of these should be chosen. Perhaps a notation like Plus <$> expr <* char '+' <<*> expr <|> number could force it to only return Plus (Plus 1 2) 3.
I don't have a clear idea of how to accomplish this in the algorithm.
The text was updated successfully, but these errors were encountered:
Currently, when you write something like
Plus <$> expr <* char '+' <*> expr <|> number
and use that on the string1+2+3
you'll get two results:Plus 1 (Plus 2 3)
andPlus (Plus 1 2) 3
.We lack a way to specify which one of these should be chosen. Perhaps a notation like
Plus <$> expr <* char '+' <<*> expr <|> number
could force it to only returnPlus (Plus 1 2) 3
.I don't have a clear idea of how to accomplish this in the algorithm.
The text was updated successfully, but these errors were encountered: