J-F-Liu / pom

PEG parser combinators using operator overloading without macros.
MIT License
496 stars 30 forks source link

Compared with nom? #16

Closed vincascm closed 7 years ago

vincascm commented 7 years ago

i found a crate, nom, compared the two what are the advantages and disadvantages?

J-F-Liu commented 7 years ago

Simply, nom: macro based, less flexible grammar, good performance, hard to debug; pom: parser combinator, more flexible, good readability, easy to extend;

vincascm commented 7 years ago

THX,very nice work.

alishir commented 5 years ago

Is there any performance comparison between nom and pom?

0b01 commented 4 years ago

@alishir pom should be much much slower(100x) due to allocating and formatting error message everytime a parser doesn't match.