Commit Graph

2612 Commits

Author SHA1 Message Date
Geoffroy Couprie
b66ff43eff
fix(bits): Accept Parser, not parser-like functions (#1599)
Co-authored-by: Ed Page <eopage@gmail.com>
2022-12-30 16:28:21 +01:00
Geoffroy Couprie
326344a821
Clarify role of 'cut' (#1603)
* Clarify role of 'cut'

* update phrasing

Co-authored-by: Ed Page <eopage@gmail.com>
2022-12-30 16:27:47 +01:00
Geoffroy Couprie
0884bf886a
Remove hidden map! and call! macros (#1601)
They are not needed anymore to implement some combinators

Co-authored-by: Ed Page <eopage@gmail.com>
2022-12-30 16:20:29 +01:00
Geoffroy Couprie
fadde7cb0d
Ensure prop tests treat inf/nan the same (#1600)
Co-authored-by: Ed Page <eopage@gmail.com>
2022-12-30 16:18:56 +01:00
John Kugelman
400331efcb
Fix clamped capacity to be divided by element size (#1549)
* Fix clamped capacity to be divided by element size

- Fixes https://github.com/Geal/nom/issues/1459#issuecomment-1244461213
- Also change `clamp` to `min` so this works on Rust 2018 edition.

* Update src/multi/mod.rs

Co-authored-by: Geoffroy Couprie <geo.couprie@gmail.com>
Co-authored-by: Geoffroy Couprie <contact@geoffroycouprie.com>
2022-12-28 22:25:37 +01:00
Geoffroy Couprie
ad63809709
deactivate failing test (#1596) 2022-12-28 22:14:26 +01:00
Geoffroy Couprie
f16efaf5fb add a CODEOWNERS file 2022-12-28 21:50:55 +01:00
puzzlewolf
8f48120d5d doc: fix typo 2022-12-28 15:31:04 +01:00
barower
353f37e0f6 Update making_a_new_parser_from_scratch.md
When trying `dbg_dmp` snippet, I noticed it does not compile. This change updates this snippet so that it matches https://docs.rs/nom/latest/nom/error/fn.dbg_dmp.html
2022-12-28 15:24:46 +01:00
John Kugelman
3645656644 Clamp Vec::with_capacity to 64KiB to avoid OOM 2022-09-12 21:36:46 +02:00
Axel Viala
b4aeb3b803 Fix unecessary parentheses around match arm expression
warn observed with rustc 1.65.0-nightly (40336865f 2022-08-15).
2022-09-12 21:30:48 +02:00
LoganDark
761ab0a24f Implement nom::sequence::Tuple for () (Unit) 2022-05-21 16:40:19 +02:00
Carter
1a686f5180 feat(readme): add Wordle result parser to list 2022-05-21 16:12:03 +02:00
francois joubert
eb148c1c90 Add a table of content to the readme file. 2022-05-21 16:10:56 +02:00
Geoffroy Couprie
294ffb3d9e v7.1.1 2022-03-14 23:34:12 +01:00
Geoffroy Couprie
8285735f93 as_slice is not available on array in 1.48 2022-03-14 23:30:39 +01:00
Fredrick Brennan
bb8ef79733 impl<'a> FindToken<char> for &'a [char]
Close Geal/nom#1282.
2022-03-14 22:54:19 +01:00
Christopher Hotchkiss
dae689efda Merged the allows into a single line as recommended by @Stargateur 2022-03-14 22:50:26 +01:00
Christopher Hotchkiss
bf575957ea Added two allows so clippy would pass a very complicated math formula for testing. 2022-03-14 22:50:26 +01:00
Constantin Nickel
eaddf7a52e Remove version check for i128 functions 2022-03-14 22:42:09 +01:00
LoganDark
481cd2dea6 Improve rust-style identifiers code
There is no reason to heap allocate for each individual character (or each group of characters?) when the allocated collection isn't even going to be used anyway
2022-03-14 22:32:55 +01:00
Marcel Müller
68929821c8 Clarify the return value of recognize_float_parts 2022-03-14 22:30:38 +01:00
Eric
5074124339 Update README.md 2022-03-14 22:26:32 +01:00
Eric
189a601b5f Update README.md 2022-03-14 22:26:32 +01:00
Roee Shapira
0a72abe23e Wrap the input parsers to the tuple sequence combinator in a tuple 2022-03-14 22:23:17 +01:00
Xiretza
addc306ba5 README: mention "MSRV" keyword for better discoverability
Currently, grepping the codebase for "MSRV" yields only a changelog
entry that doesn't point toward the actually relevant section in the
README.
2022-03-14 22:21:03 +01:00
Xiretza
c19f9392c8 Cargo.toml: specify minimum rust version
This field causes cargo to automatically verify that a recent enough
rustc version is being used. For cargo versions before 1.56, adding this
option creates a build warning - from [0]:

> The first version of Cargo that supports this field was released with Rust
> 1.56.0. In older releases, the field will be ignored, and Cargo will display
> a warning.

[0]: https://doc.rust-lang.org/cargo/reference/manifest.html#the-rust-version-field
2022-03-14 22:21:03 +01:00
Maximilian Roos
1819d7824c Small typo 2022-03-14 22:18:45 +01:00
Maxime
10f2a7dd50 fix typo in docs
nom no longer relies on macros, but an exclamation mark was left over
2022-03-14 22:16:25 +01:00
Geoffroy Couprie
3ef4805b93 Merge branch 'pxeger-main' 2022-03-14 22:12:52 +01:00
Patrick Reader
d83a501986 fix more dead links 2022-03-14 22:12:15 +01:00
pxeger
2c82abdfd3 update links in PULL_REQUEST_TEMPLATE.md (master -> main) 2022-03-14 22:12:15 +01:00
pxeger
7f2531df64 update links pointing to master -> main 2022-03-14 22:12:11 +01:00
Geoffroy Couprie
c3157a8706 Update src/sequence/mod.rs 2022-03-14 22:00:52 +01:00
Doehyun Baek
e481c7743f Add docs of number limitation of tuple 2022-03-14 22:00:52 +01:00
Tamo
cbd6777663 Add Meilisearch to the list of project using nom
Since this PR in milli https://github.com/meilisearch/milli/pull/400 and its integration in [Meilisearch v0.24.0](https://github.com/meilisearch/MeiliSearch/releases/tag/v0.24.0) we use nom to parse our [filter](https://docs.meilisearch.com/reference/features/filtering_and_faceted_search.html#filtering-and-faceted-search)
2022-03-14 21:55:08 +01:00
SphinxKnight
3e32bb8411 Rewrite URL to complete fcd27b5 2022-03-14 21:54:09 +01:00
SphinxKnight
16963d82fc Typofix - dead link
I was just browsing out of curiosity and this link failed due to an apparent refactoring.
Let me know if something else is needed here :)
2022-03-14 21:54:09 +01:00
Thomas
6580debbfe Doc example for take 2022-03-14 21:51:42 +01:00
Geoffroy Couprie
e99f9e0e7e remove dead code 2021-12-16 22:16:57 +01:00
Thomas
d482ac3aff Add example for integer parsing to digit1 2021-12-11 18:21:35 +01:00
Geoffroy Couprie
b6f79c4d37 v7.1.0 2021-11-04 22:10:06 +01:00
Geoffroy Couprie
324125f23e relax the flat_map argument from Fn to FnMut 2021-11-03 23:03:33 +01:00
Geoffroy Couprie
f8633f9a8f introduce a workaround for float parsing
this will afford some time until we get a proper fix with minimal
lexical for floats that are to large
2021-11-03 22:47:58 +01:00
homersimpsons
02433c2c98 Readme: Fix coverage badge 2021-10-25 20:59:45 +02:00
wuaoxiang
4a2f9af9ed Add JsonValue::Null to json example 2021-10-23 22:34:38 +02:00
wuaoxiang
337c218965 Fix typos 2021-10-23 22:34:38 +02:00
homersimpsons
0d65b54549 Remove blockbuf-arithmetic test from Cargo.toml 2021-10-23 22:28:41 +02:00
homersimpsons
00f4085402 Remove dead code (tests/blockbuf-arithmetic.rs) 2021-10-23 22:28:41 +02:00
Luiz Carlos
96cd14b2c4 fix: fixed doc code blocks
Some code blocks inside the `sequence` module had no spacing between code blocks and lines above, making it fail to render as a valid block.
2021-10-23 22:26:44 +02:00