The code snippet in Wiki doesn't compile #188
lenguyenthanh
started this conversation in
General
Replies: 1 comment 4 replies
-
Are you sure, it compiles fine in Scastie: admittedly, I missed a |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, thanks for the wiki, I'm reading it (slowly) and it really helps me.
I see that the code snippet in chain doesn't compile. Here the fix:
lazy val expr: Parsley[Int] = chain.left1(term, ('+' #> add <|> '-' #> sub).map(f => (x, y) => f(y)(x)))
I'm not sure it is intended (for making thing simpler) so I post it here. Hope that this is the right place.
Beta Was this translation helpful? Give feedback.
All reactions