nu-parser 0.27.1

Nushell parser
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// use std::fmt::Debug;

// A combination of an informative parse error, and what has been successfully parsed so far
// #[derive(Debug)]
// pub struct ParseError {
//     /// An informative cause for this parse error
//     pub cause: nu_errors::ParseError,
//     // /// What has been successfully parsed, if anything
//     // pub partial: Option<T>,
// }

// pub type ParseResult<T> = Result<T, ParseError<T>>;

// impl<T: Debug> From<ParseError<T>> for nu_errors::ShellError {
//     fn from(e: ParseError<T>) -> Self {
//         e.cause.into()
//     }
// }