2020-11-09 16:27:07 +00:00
|
|
|
// use std::fmt::Debug;
|
2020-08-01 18:39:55 +00:00
|
|
|
|
2020-11-09 16:27:07 +00:00
|
|
|
// 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>,
|
|
|
|
// }
|
2020-08-01 18:39:55 +00:00
|
|
|
|
2020-11-09 16:27:07 +00:00
|
|
|
// pub type ParseResult<T> = Result<T, ParseError<T>>;
|
2020-08-01 18:39:55 +00:00
|
|
|
|
2020-11-09 16:27:07 +00:00
|
|
|
// impl<T: Debug> From<ParseError<T>> for nu_errors::ShellError {
|
|
|
|
// fn from(e: ParseError<T>) -> Self {
|
|
|
|
// e.cause.into()
|
|
|
|
// }
|
|
|
|
// }
|