Enum php_parser_rs::lexer::error::SyntaxError
source · pub enum SyntaxError {
UnexpectedEndOfFile(Span),
UnexpectedError(Span),
UnexpectedCharacter(u8, Span),
InvalidHaltCompiler(Span),
InvalidOctalEscape(Span),
InvalidOctalLiteral(Span),
InvalidUnicodeEscape(Span),
UnpredictableState(Span),
InvalidDocIndentation(Span),
InvalidDocBodyIndentationLevel(usize, Span),
UnrecognisedToken(u8, Span),
}
Variants§
UnexpectedEndOfFile(Span)
UnexpectedError(Span)
UnexpectedCharacter(u8, Span)
InvalidHaltCompiler(Span)
InvalidOctalEscape(Span)
InvalidOctalLiteral(Span)
InvalidUnicodeEscape(Span)
UnpredictableState(Span)
InvalidDocIndentation(Span)
InvalidDocBodyIndentationLevel(usize, Span)
UnrecognisedToken(u8, Span)
Trait Implementations§
source§impl Debug for SyntaxError
impl Debug for SyntaxError
source§impl Display for SyntaxError
impl Display for SyntaxError
source§impl From<SyntaxError> for ParseError
impl From<SyntaxError> for ParseError
source§fn from(e: SyntaxError) -> Self
fn from(e: SyntaxError) -> Self
Converts to this type from the input type.