Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The nom crate has an RGB parser example: https://docs.rs/nom/latest/nom/#example

It’s slightly longer, but more legible.



Yeah, that one appeals to me more than the morrow example. The difference between that and the Haskell, other than any particular choices I made about use of operators instead of more explicit bindings, is really just syntactic decoration around functions and such.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: