nom
nom copied to clipboard
Rust parser combinator framework
## Prerequisites - Rust version : `rustc 1.62.1 (e092d0b6b 2022-07-16)` - nom version : `7.1.1` - nom compilation features used: none ## The problem Sometimes, a custom input type is...
For my [parse-hyperlinks - crate](https://crates.io/crates/parse-hyperlinks) I implemented a parser for balanced nested brackets like in `ur`. It is called [parse_hyperlinks::take_until_unbalanced](https://docs.rs/parse-hyperlinks/0.9.3/parse_hyperlinks/fn.take_until_unbalanced.html) and it is designed to work with `nom::sequence::delimited`: ```rust use...
Hey mate, Nom is a really powerful library and when it works well, it can do amazing things. But sometimes it can be extremely hard to find which of the...
Hi this PR contain a personal project done in nom for TL schema parsing. Following this [grammar](https://core.telegram.org/mtproto/TL-formal)
Recently I wanted to write something like this: ```rust fn parser(input: &str) -> IResult { map( many_till( terminated(not_line_ending, line_ending), peek(alt((eof, header, modifier))), ), |(lines, _)| lines, )(input) } ``` where...
We currently have a few example parsers. In order to test the project and make it useful, other formats can be implemented. Here is a list, if anyone wants to...
Right now, `nom` has distinct types for complete and streaming parsers. Problems with this - Requires duplicate module hierarchies (#1414 would move them around) - Can't provide convenience implementations for...
Hi, I'm a newbie to Nom (and I'm probably only an intermediate Rust programmer), and I have personally found that this project lacks documentation for newcomers. I thought that it...
This reexport seems to be a remnant from the days of macro parsers, which no longer exist. It has caused confusion on several occasions. `nom::complete::tag`, for example, refers to `nom::bits::complete::tag`,...
Hello, I had some time and went ahead to implement the issue #1533 that I opened today. I think this function could be useful when parsing flags from a bit...