Enum knightrs::ParseError [−][src]
pub enum ParseError { NothingToParse, UnknownTokenStart { chr: char, line: usize, }, UnterminatedQuote { line: usize, }, MissingFunctionArgument { func: char, number: usize, line: usize, }, InvalidString { line: usize, err: InvalidChar, }, }
The error type used to indicate an error whilst parsing Knight source code.
Variants
Indicates that the end of stream was reached before a value could be parsed.
Indicates that an invalid character was encountered.
Show fields
A starting quote was found without an associated ending quote.
Show fields
Fields of UnterminatedQuote
line: usize
The line number the string started on.
A function was parsed, but one of its arguments was not able to be parsed.
Show fields
An invalid character was encountered in a RcString
literal.
Show fields
Fields of InvalidString
Trait Implementations
impl Error for ParseError
[src]
impl Error for ParseError
[src]impl From<ParseError> for Error
[src]
impl From<ParseError> for Error
[src]fn from(err: ParseError) -> Self
[src]
Auto Trait Implementations
impl RefUnwindSafe for ParseError
impl RefUnwindSafe for ParseError
impl Send for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl Unpin for ParseError
impl UnwindSafe for ParseError
impl UnwindSafe for ParseError