mirror of https://git.meli.delivery/meli/meli
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
448 B
Rust
25 lines
448 B
Rust
/*! A parser module for user commands passed through the Ex mode.
|
|
*/
|
|
use nom::digit;
|
|
use std;
|
|
|
|
named!(
|
|
usize_c<usize>,
|
|
map_res!(
|
|
map_res!(ws!(digit), std::str::from_utf8),
|
|
std::str::FromStr::from_str
|
|
)
|
|
);
|
|
|
|
named!(pub goto<usize>,
|
|
preceded!(tag!("b "),
|
|
call!(usize_c))
|
|
);
|
|
|
|
/*
|
|
named!(pub sort<&str>,
|
|
preceded!(tag!("sort "),
|
|
map_res!(call!(alpha), std::str::from_utf8))
|
|
);
|
|
*/
|