Struct erg_parser::error::LexError
source · pub struct LexError(_);
Implementations§
source§impl LexError
impl LexError
pub fn new(core: ErrorCore) -> Self
pub fn set_hint<S: Into<String>>(&mut self, hint: S)
pub fn compiler_bug(errno: usize, loc: Location, fn_name: &str, line: u32) -> Self
pub fn feature_error(errno: usize, loc: Location, name: &str) -> Self
pub fn simple_syntax_error(errno: usize, loc: Location) -> Self
pub fn syntax_error<S: Into<String>>(
errno: usize,
loc: Location,
desc: S,
hint: Option<String>
) -> Self
pub fn syntax_warning<S: Into<String>>(
errno: usize,
loc: Location,
desc: S,
hint: Option<String>
) -> Self
pub fn no_var_error(
errno: usize,
loc: Location,
name: &str,
similar_name: Option<String>
) -> Self
pub fn invalid_chunk_error(errno: usize, loc: Location) -> LexError
pub fn invalid_arg_decl_error(errno: usize, loc: Location) -> LexError
pub fn invalid_definition_of_last_block(errno: usize, loc: Location) -> LexError
pub fn failed_to_analyze_block(errno: usize, loc: Location) -> LexError
pub fn invalid_mutable_symbol(errno: usize, lit: &str, loc: Location) -> LexError
Trait Implementations§
source§impl Error for LexError
impl Error for LexError
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
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()