Write better parsers with Nom Supreme

preview_player
Показать описание
nom is a parser combinator library with a focus on safe parsing, streaming patterns, and as much as possible zero copy.

nom_supreme is a library that builds higher level tools on top of nom for both a better user experience as well as deeper error collection functionality.

Рекомендации по теме
Комментарии
Автор

I must say that even though think nom is a really great library I have this feel that it is not Rustic because it does not use "the" postfix way. At the same time, I would like to temper the "it should only be this way" feel. Having the choice is nice ! Will keep nom-supreme in mind !

DucBanal
Автор

Chris, this video with the GitHub example code is so great for being able to have examples for later. Thanks for all the content. These are going to be gold when I get to needing a parser.

TonyAlvesDev
Автор

Thank you for the video :) I tried making a PEG parser in rust (like pegjs) and it was going well until i realized that PEG parser optimization is a rabbit hole, and also error reporting is very hard. Nom looks much easier

EngineerNick
Автор

Nom Supreme is the first thing to make me seriously consider using Nom. Nom, as it's written, is a travesty of verbosity and inversion. Nom Supreme leans much more toward self documenting code -- much love

EthanSkowronski
Автор

nom_supreme is exactly what I need to work with nom conveniently

I am currently solving "Advent of Code 2022" and also was impressed by the power of nom presented in your videos on the advent.
But nom's syntax looked non-idiomatic for Rust development, kinda odd. This is less relevant to nom_supreme, which is much more comfortable

dj-maxus
Автор

such good timing! this is exactly what I needed

irlshrek
Автор

Would be interested in hearing your thoughts on chumsky

programjm
Автор

uhm hello, just dug up my old project beginnings where I had trouble finding the right parser library, and just now this video drops? are you in my walls?? I'm definitely gonna try this, thanks for sharing!

ilonachan
Автор

great video! can i request a video on logging? i want to know rust best practices for logging to stdout, file logging, and json logging

jackn
Автор

thanks, was about to give up on nom til I found this. I find it unusable without chaining, seems like a huge design mistake. Even with this supreme lib it seems like you can only chain certain combinators and its honestly not clear to me what goes with what so I get huge type errors and give up. Overall I find nom a huge PITA to use but thats just my initial experience.

el_carbonara
Автор

Does nom_supreme affect performance at all?

yellowajah
Автор

It's kinda sad that folk use default hex color parser but not something more complex, like whole css property

DeathSugar