Home
last modified time | relevance | path

Searched refs:many1 (Results 1 – 11 of 11) sorted by relevance

/third_party/rust/crates/rust-cexpr/src/
Dliteral.rs47 use nom::multi::{fold_many0, many0, many1, many_m_n};
189 map_opt(preceded(char('x'), many1(hexadecimal)), |v| { in escaped_char()
259 map_opt(preceded(tag("0x"), many1(complete(hexadecimal))), |v| { in c_int()
262 map_opt(preceded(tag("0X"), many1(complete(hexadecimal))), |v| { in c_int()
265 map_opt(preceded(tag("0b"), many1(complete(binary))), |v| { in c_int()
268 map_opt(preceded(tag("0B"), many1(complete(binary))), |v| { in c_int()
271 map_opt(preceded(char('0'), many1(complete(octal))), |v| { in c_int()
274 map_opt(many1(complete(decimal)), |v| c_int_radix(v, 10)), in c_int()
294 pair(opt(byte!(b'-' | b'+')), many1(complete(decimal))), in float_exp()
303 many1(complete(decimal)), in c_float()
[all …]
/third_party/rust/crates/nom/doc/
Dnom_recipes.md158 If you wish to limit the number of digits in a valid integer literal, replace `many1` with
169 multi::{many0, many1},
180 many1(
194 multi::{many0, many1},
206 many1(
222 multi::{many0, many1},
233 many1(
247 multi::{many0, many1},
258 many1(
271 multi::{many0, many1},
[all …]
Dchoosing_a_combinator.md48 …ies the parser 0 or more times and returns the list of results in a Vec. `many1` does the same ope…
/third_party/rust/crates/nom/benchmarks/benches/
Dhttp.rs7 …sult, bytes::complete::{tag, take_while1}, character::complete::{line_ending, char}, multi::many1};
99 let (input, value) = many1(message_header_value)(input)?; in message_header()
106 let (input, h) = many1(message_header)(input)?; in request()
/third_party/rust/crates/nom/tests/
Doverflow.rs58 use nom::multi::many1; in overflow_incomplete_many1()
61 many1(length_data(be_u64))(i) in overflow_incomplete_many1()
/third_party/node/deps/npm/node_modules/nopt/
DREADME.md33 , "many1" : [String, Array]
84 $ node my-program.js --many1 5 --many1 null --many1 foo
85 { many1: ["5", "null", "foo"] }
/third_party/rust/crates/nom/src/multi/
Dtests.rs15 count, fold_many0, fold_many1, fold_many_m_n, length_count, many0, many1, many_m_n, many_till,
136 many1(tag("abcd"))(i) in many1_test()
196 many1(tst)(i) in infinite_many()
Dmod.rs108 pub fn many1<I, O, E, F>(mut f: F) -> impl FnMut(I) -> IResult<I, Vec<O>, E> in many1() function
/third_party/rust/crates/nom/src/
Dstr.rs4 use crate::{branch::alt, bytes::complete::tag_no_case, combinator::recognize, multi::many1};
510 recognize(many1(alt((tag("a"), tag("b")))))(i) in recognize_is_a()
/third_party/rust/crates/nom/.github/
DISSUE_TEMPLATE.md31 named!(multi<&[u8], Vec<&[u8]> >, many1!( tag!( "abcd" ) ) );
/third_party/rust/crates/nom/
DCHANGELOG.md981 - @jethrogb for fixing input usage in `many1`
994 - `many1` inccorectly used the `len` function instead of `input_len`
1120 - if the child parser of `many0!` or `many1!` returns `Incomplete`, it will return `Incomplete` too…
1192 - @daboross for refactoring `many0!` and `many1!`
1379 - @filipegoncalves and @thehydroimpulse for debugging an infinite loop in many0 and many1
1394 - `many0!` and `many1!` forbid parsers that do not consume input