mirror of
https://github.com/nushell/nushell.git
synced 2025-01-14 10:18:14 +01:00
21 lines
503 B
Rust
21 lines
503 B
Rust
pub use crate::Span;
|
|
|
|
#[derive(Debug)]
|
|
pub enum ParseError {
|
|
ExtraTokens(Span),
|
|
ExtraPositional(Span),
|
|
UnexpectedEof(String, Span),
|
|
Unclosed(String, Span),
|
|
UnknownStatement(Span),
|
|
Mismatch(String, Span),
|
|
VariableNotFound(Span),
|
|
UnknownCommand(Span),
|
|
NonUtf8(Span),
|
|
UnknownFlag(Span),
|
|
MissingFlagParam(Span),
|
|
ShortFlagBatchCantTakeArg(Span),
|
|
MissingPositional(String, Span),
|
|
MissingRequiredFlag(String, Span),
|
|
IncompleteMathExpression(Span),
|
|
}
|