Should PrefixUpTo and PrefixThrough work with @ParserBuilder as input ? #164
-
Do you think that being able to passe multiple parser to PrefixUpTo and PrefixThrough is a desirable feature ? Or will it lead to bad utilisation of the library ? PrefixUpTo {
","
Newline()
End()
} |
Beta Was this translation helpful? Give feedback.
Answered by
randomeizer
Mar 2, 2022
Replies: 1 comment
-
This was something I asked a while back, and the concern from @stephencelis and @mbrandonw was that it would potentially be very expensive because you would have to basically run the wrapped parser against the input, character by character, and that parser could be very expensive. I think it could be quite useful, but it's definitely a performance risk. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mackoj
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This was something I asked a while back, and the concern from @stephencelis and @mbrandonw was that it would potentially be very expensive because you would have to basically run the wrapped parser against the input, character by character, and that parser could be very expensive.
I think it could be quite useful, but it's definitely a performance risk.