Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comparison to chomp #89

Closed
DemiMarie opened this issue Mar 21, 2017 · 1 comment
Closed

Comparison to chomp #89

DemiMarie opened this issue Mar 21, 2017 · 1 comment

Comments

@DemiMarie
Copy link

Chomp is another parser combinator library for Rust. It aims at being as fast or faster than parsers hand-written in C.

How does Chomp compare to Combine?

@Marwes
Copy link
Owner

Marwes commented Mar 22, 2017

Its current implementation relies a lot on macros which has the usual conveniences of convenient syntax at the cost of generality and needing to learn the macro's syntax. There has been some efforts in chomp to move away from the macro based solution I think which more or less resulted in the same trait based approach as in combine (with an almost identical Parser trait).

Performance should be roughly the same, chomp (and nom) can be slightly faster (a couple of %) as combine makes an effort to construct good errors.

@Marwes Marwes closed this as completed Oct 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants