Struct antlr_rust::error_listener::ConsoleErrorListener
source · [−]pub struct ConsoleErrorListener {}Expand description
Default error listener that outputs errors to stderr
Trait Implementations
sourceimpl Debug for ConsoleErrorListener
impl Debug for ConsoleErrorListener
sourceimpl<'a, T: Recognizer<'a>> ErrorListener<'a, T> for ConsoleErrorListener
impl<'a, T: Recognizer<'a>> ErrorListener<'a, T> for ConsoleErrorListener
sourcefn syntax_error(
&self,
_recognizer: &T,
_offending_symbol: Option<&<T::TF as TokenFactory<'a>>::Inner>,
line: isize,
column: isize,
msg: &str,
_e: Option<&ANTLRError>
)
fn syntax_error(
&self,
_recognizer: &T,
_offending_symbol: Option<&<T::TF as TokenFactory<'a>>::Inner>,
line: isize,
column: isize,
msg: &str,
_e: Option<&ANTLRError>
)
Called when parser/lexer encounter hard error. Read more
sourcefn report_ambiguity(
&self,
_recognizer: &T,
_dfa: &DFA,
_start_index: isize,
_stop_index: isize,
_exact: bool,
_ambig_alts: &BitSet,
_configs: &ATNConfigSet
)
fn report_ambiguity(
&self,
_recognizer: &T,
_dfa: &DFA,
_start_index: isize,
_stop_index: isize,
_exact: bool,
_ambig_alts: &BitSet,
_configs: &ATNConfigSet
)
This method is called by the parser when a full-context prediction results in an ambiguity. Read more
sourcefn report_attempting_full_context(
&self,
_recognizer: &T,
_dfa: &DFA,
_start_index: isize,
_stop_index: isize,
_conflicting_alts: &BitSet,
_configs: &ATNConfigSet
)
fn report_attempting_full_context(
&self,
_recognizer: &T,
_dfa: &DFA,
_start_index: isize,
_stop_index: isize,
_conflicting_alts: &BitSet,
_configs: &ATNConfigSet
)
This method is called when an SLL conflict occurs and the parser is about to use the full context information to make an LL decision. Read more
Auto Trait Implementations
impl RefUnwindSafe for ConsoleErrorListener
impl Send for ConsoleErrorListener
impl Sync for ConsoleErrorListener
impl Unpin for ConsoleErrorListener
impl UnwindSafe for ConsoleErrorListener
Blanket Implementations
sourceimpl<T> AnyExt for T where
T: Any + ?Sized,
impl<T> AnyExt for T where
T: Any + ?Sized,
sourcefn downcast_ref<T>(this: &Self) -> Option<&T> where
T: Any,
fn downcast_ref<T>(this: &Self) -> Option<&T> where
T: Any,
Attempts to downcast this to T behind reference
sourcefn downcast_mut<T>(this: &mut Self) -> Option<&mut T> where
T: Any,
fn downcast_mut<T>(this: &mut Self) -> Option<&mut T> where
T: Any,
Attempts to downcast this to T behind mutable reference
sourcefn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>> where
T: Any,
fn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>> where
T: Any,
Attempts to downcast this to T behind Rc pointer
sourcefn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>> where
T: Any,
fn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>> where
T: Any,
Attempts to downcast this to T behind Arc pointer
sourcefn downcast_box<T>(
this: Box<Self, Global>
) -> Result<Box<T, Global>, Box<Self, Global>> where
T: Any,
fn downcast_box<T>(
this: Box<Self, Global>
) -> Result<Box<T, Global>, Box<Self, Global>> where
T: Any,
Attempts to downcast this to T behind Box pointer
sourcefn downcast_move<T>(this: Self) -> Option<T> where
T: Any,
fn downcast_move<T>(this: Self) -> Option<T> where
T: Any,
Attempts to downcast owned Self to T,
useful only in generic context as a workaround for specialization Read more
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T, X> CoerceTo<T> for X where
T: CoerceFrom<X> + ?Sized,
impl<T, X> CoerceTo<T> for X where
T: CoerceFrom<X> + ?Sized,
fn coerce_rc_to(self: Rc<X>) -> Rc<T>
fn coerce_box_to(self: Box<X, Global>) -> Box<T, Global>ⓘNotable traits for Box<W, Global>impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
W: Write + ?Sized, impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;