J-F-Liu / pom

PEG parser combinators using operator overloading without macros.
MIT License
500 stars 31 forks source link

Use lazy_format! to repleace format! in constructing error messages #57

Open J-F-Liu opened 1 year ago

J-F-Liu commented 1 year ago

lazy_format! captures its arguments and returns an opaque struct with a Display implementation, rather than immediatly formatting them into a String. I think this can improve the parser performance.