Commit Graph

108 Commits

Author SHA1 Message Date
Wolf Thomsen
6e45c5d1f3
Remove duplicated section from error_management.md (#1529)
* Remove duplicated section from error_management.md

The section explaining the three different error types was duplicated (with minimal changes between the two sections). This (small) PR removes the redundancy.

* Update doc/error_management.md

Co-authored-by: Geoffroy Couprie <geo.couprie@gmail.com>
2022-12-30 18:01:29 +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
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
Roee Shapira
0a72abe23e Wrap the input parsers to the tuple sequence combinator in a tuple 2022-03-14 22:23:17 +01:00
Maximilian Roos
1819d7824c Small typo 2022-03-14 22:18:45 +01:00
Patrick Reader
d83a501986 fix more dead links 2022-03-14 22:12:15 +01:00
pxeger
7f2531df64 update links pointing to master -> main 2022-03-14 22:12:11 +01:00
wuaoxiang
337c218965 Fix typos 2021-10-23 22:34:38 +02:00
Guillaume
b4d50017e2 Use [] for vec! macro 2021-10-21 23:16:49 +02:00
Geoffroy Couprie
56a7a42346 point the docs to Parser::map and Parser::flat_map 2021-10-10 22:25:48 +02:00
Jihchi Lee
eb181568a4 Fix broken "take_while" link 2021-10-10 22:10:55 +02:00
Drumato
8ab6827c2d specify the syntax highlight to code snippet in error doc 2021-09-25 16:29:14 +02:00
Nipunn Koorapati
5ce4183ff7 Fix doc for fold_many_m_n (one of the args takes a lambda) 2021-09-25 16:25:56 +02:00
Michael Schubart
0b1343bc19 alt takes tuple
Co-authored-by: Jihchi Lee <achi@987.tw>
2021-09-25 16:22:11 +02:00
Michael Schubart
07dd0510cc Fix usage comment of alt() combinator
Looks like `|` is a leftover from the old macro-based API.
2021-09-25 16:22:11 +02:00
Geoffroy Couprie
3de831816c remove mentions of macros in the documentation 2021-08-21 12:24:09 +02:00
cenodis
808a85bbcf Add fail parser 2021-08-17 11:42:00 +02:00
Geoffroy Couprie
ea483e5a81 fix formatting 2021-08-14 15:47:43 +02:00
Geoffroy Couprie
5777c81cdd update the error management doc 2021-08-14 15:43:42 +02:00
Geoffroy Couprie
9f0f6e35c9 add imports to code examples in recipes
making sure the examples build
2021-08-03 15:04:26 +02:00
Guillaume
7856d01bb7 Doc - Use function links (fix #1290) 2021-06-19 12:14:10 +02:00
vallentin
82309d2fa5 Fixed recipe links 2021-01-23 17:08:27 +01:00
Geoffroy Couprie
8bb87ae3f2 convert Fn to FnMut 2020-11-24 10:27:09 +01:00
Kirill Vasiltsov
236d7dffec Remove wrong call from an example
It tries to apply the thing to source immediately when it should just return the combinator
2020-11-24 10:27:09 +01:00
Josh Holmer
b9ee869c3c Remove whitespace parsers from choosing a combinator docs
These parsers were removed in 6.0.0 and should be removed from all documentation.
2020-11-24 10:15:28 +01:00
toshokan
43be5fa071 Remove another pi char. 2020-11-24 10:14:34 +01:00
Olivier
8688637631 Remove weird Pi char. 2020-10-24 11:29:01 +02:00
Olivier
a6f9f23b0f Remove duplicated words. 2020-10-24 11:29:01 +02:00
Geoffroy Couprie
8098465542 FromStr example 2020-10-11 16:12:42 +02:00
Nia Calia-Bogan
48c5a7cc3f
consumed (previously with_input) parser combinator (#1146)
* consumed parser

* Update

Add test and modify choosing a combinator
2020-08-30 15:05:38 +02:00
Geoffroy Couprie
12c0e922ed
remove Mozilla IRC mentions 2020-08-23 11:52:17 +02:00
Robert Jacobson
c79acf95ad Add a "recipes" section to the docs (issue #1169). 2020-08-22 14:52:45 +02:00
Ivan Veselov
dbaa2e5ec5 Add success combinator returning the given value without consuming 2020-05-30 12:14:20 +02:00
Antoine Cezar
e766634631
Add custom errors example (#1151)
* Add example of custom error

* Add custom_errors.rs link to documentation
2020-05-30 11:55:38 +02:00
nnt
4a95dfa532
Fixing a lot of minor issues & inconsistencies in the documentation (#1143) 2020-05-30 11:53:44 +02:00
akitsu-sanae
289ce2dedd fix doc 2020-02-24 11:58:01 +01:00
Judson
8a17c4d094 Updating doc reference to util::dbg_dmp 2020-01-07 18:16:57 +01:00
Jonas Platte
acb2f6a71f Fix a few typos 2020-01-07 17:51:43 +01:00
Geoffroy Couprie
9ec97b682f
Merge pull request #1030 from Hywan/patch-8
doc(error) Fix code style
2020-01-07 17:41:30 +01:00
ottosson
7f65fb1700 Update links to point to latest version 2020-01-07 17:37:27 +01:00
Mathias Ottosson
43182a4151 Remove count_fixed from documentation 2020-01-07 17:37:27 +01:00
Mathias Ottosson
9566dd0fc7 Update links in docs for list of combinators 2020-01-07 17:37:27 +01:00
Ivan Enderlin
2fbbbb02cf
doc(error) Fix code style
Because why not.
2019-09-11 22:20:18 +02:00
Jos van den Oever
eef808017b fix return type in example 2019-08-22 10:33:04 +02:00
Joel Depooter
954114af1b Add missing use statement to "Code organization" parser example 2019-08-22 10:32:46 +02:00
dalance
14d2279e14 Fix custom_input_types.md 2019-07-28 11:01:04 +02:00
Bruce Mitchener
da2ba9a70c Fix typos. 2019-06-28 13:27:50 +02:00
Geoffroy Couprie
55034c0ae3 rewrite the error management guide 2019-06-17 16:03:49 +02:00
Geoffroy Couprie
85ccb0772a rewrite the "Making a new parser from scratch" guide 2019-05-14 14:46:55 +02:00
Geoffroy Couprie
0b8daeda09 add the upgrading doc for nom 5 2019-05-14 12:05:26 +02:00