Enum sise::ParseError
source · pub enum ParseError {
IllegalChr {
pos: Pos,
chr: u8,
},
IllegalChrInString {
pos: Pos,
chr: u8,
},
IllegalChrInComment {
pos: Pos,
chr: u8,
},
UnfinishedString {
pos: Pos,
},
UnexpectedToken {
pos: Pos,
token: Token,
},
ExpectedEof {
pos: Pos,
},
LineTooLong {
line: u32,
},
TooManyLines,
TooDeep {
pos: Pos,
},
AtomTooLong {
pos: Pos,
},
ListTooLong {
pos: Pos,
},
}
Expand description
Represents a parse error.
Variants§
IllegalChr
There is an invalid character.
IllegalChrInString
There is an invalid character inside a string (enclosed with "
).
IllegalChrInComment
There is an invalid character inside a comment.
UnfinishedString
End-of-file is reached before finding the closing "
.
UnexpectedToken
Unexpected token.
ExpectedEof
Found a token when expecting end-of-file.
LineTooLong
A line is longer than u32::max_value()
.
TooManyLines
There are more than u32::max_value()
lines.
TooDeep
Maximum specified list nesting depth exceeded.
AtomTooLong
Maximum atom length exceeded.
ListTooLong
Maximum number of list elements exceeded.
Trait Implementations§
source§impl Clone for ParseError
impl Clone for ParseError
source§fn clone(&self) -> ParseError
fn clone(&self) -> ParseError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ParseError
impl Debug for ParseError
source§impl Display for ParseError
impl Display for ParseError
source§impl Error for ParseError
impl Error for ParseError
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more